ERC-721
Overview
Max Total Supply
0 MOMENT-FLEX
Holders
890
Market
Volume (24H)
0.2105 ETH
Min Price (24H)
$716.80 @ 0.210500 ETH
Max Price (24H)
$716.80 @ 0.210500 ETH
Other Info
Token Contract
Balance
1 MOMENT-FLEXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenArt721CoreV2_BrightMomentsFlex
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 25 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. import "../../interfaces/0.8.x/IRandomizer.sol"; import "../../interfaces/0.8.x/IGenArt721CoreV2_PBAB.sol"; import "@openzeppelin-4.5/contracts/utils/Strings.sol"; import "@openzeppelin-4.5/contracts/token/ERC721/ERC721.sol"; pragma solidity 0.8.9; /** * @title Art Blocks Engine ERC-721 core contract with FLEX integration. * Allows for projects to specify external asset dependencies from either IPFS or ARWEAVE. * @author Art Blocks Inc. */ contract GenArt721CoreV2_BrightMomentsFlex is ERC721, IGenArt721CoreV2_PBAB { /// randomizer contract IRandomizer public randomizerContract; /// version & type of this core contract string public constant coreVersion = "v2.0.0"; string public constant coreType = "GenArt721CoreV2_ENGINE_FLEX"; 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; bool externalAssetDependenciesLocked; uint24 externalAssetDependencyCount; mapping(uint256 => ExternalAssetDependency) externalAssetDependencies; } event ExternalAssetDependencyUpdated( uint256 indexed _projectId, uint256 indexed _index, string _cid, ExternalAssetDependencyType _dependencyType, uint24 _externalAssetDependencyCount ); event ExternalAssetDependencyRemoved( uint256 indexed _projectId, uint256 indexed _index ); event GatewayUpdated( ExternalAssetDependencyType indexed _dependencyType, string _gatewayAddress ); event ProjectExternalAssetDependenciesLocked(uint256 indexed _projectId); enum ExternalAssetDependencyType { IPFS, ARWEAVE } struct ExternalAssetDependency { string cid; ExternalAssetDependencyType dependencyType; } string public preferredIPFSGateway; string public preferredArweaveGateway; uint256 constant ONE_MILLION = 1_000_000; mapping(uint256 => Project) projects; //All financial functions are stripped from struct for visibility mapping(uint256 => address payable) public projectIdToArtistAddress; mapping(uint256 => string) public projectIdToCurrencySymbol; mapping(uint256 => address) public projectIdToCurrencyAddress; mapping(uint256 => uint256) public projectIdToPricePerTokenInWei; mapping(uint256 => address payable) public projectIdToAdditionalPayee; mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address payable public renderProviderAddress; /// Percentage of mint revenue allocated to render provider uint256 public renderProviderPercentage = 10; mapping(uint256 => uint256) public tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; /// admin for contract address public admin; /// true if address is whitelisted mapping(address => bool) public isWhitelisted; /// true if minter is whitelisted mapping(address => bool) public isMintWhitelisted; /// next project ID to be created uint256 public nextProjectId = 0; modifier onlyValidTokenId(uint256 _tokenId) { require(_exists(_tokenId), "Token ID does not exist"); _; } modifier onlyUnlockedProjectExternalAssetDependencies(uint256 _projectId) { require( !projects[_projectId].externalAssetDependenciesLocked, "Project external asset dependencies are locked" ); _; } modifier onlyUnlocked(uint256 _projectId) { require(!projects[_projectId].locked, "Only if unlocked"); _; } modifier onlyArtist(uint256 _projectId) { require( msg.sender == projectIdToArtistAddress[_projectId], "Only artist" ); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only admin"); _; } modifier onlyWhitelisted() { require(isWhitelisted[msg.sender], "Only whitelisted"); _; } modifier onlyArtistOrWhitelisted(uint256 _projectId) { require( isWhitelisted[msg.sender] || msg.sender == projectIdToArtistAddress[_projectId], "Only artist or whitelisted" ); _; } /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. * @param _randomizerContract Randomizer contract. */ constructor( string memory _tokenName, string memory _tokenSymbol, address _randomizerContract ) ERC721(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = payable(msg.sender); randomizerContract = IRandomizer(_randomizerContract); } /** * @notice Mints a token from project `_projectId` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _projectId Project ID to mint a token on. * @param _by Purchaser of minted token. * @dev sender must be a whitelisted minter */ function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 _tokenId) { require( isMintWhitelisted[msg.sender], "Must mint from whitelisted minter contract." ); require( projects[_projectId].invocations + 1 <= projects[_projectId].maxInvocations, "Must not exceed max invocations" ); require( projects[_projectId].active || _by == projectIdToArtistAddress[_projectId], "Project must exist and be active" ); require( !projects[_projectId].paused || _by == projectIdToArtistAddress[_projectId], "Purchases are paused." ); uint256 tokenId = _mintToken(_to, _projectId); return tokenId; } function _mintToken(address _to, uint256 _projectId) internal returns (uint256 _tokenId) { uint256 tokenIdToBe = (_projectId * ONE_MILLION) + projects[_projectId].invocations; projects[_projectId].invocations = projects[_projectId].invocations + 1; bytes32 hash = keccak256( abi.encodePacked( projects[_projectId].invocations, block.number, blockhash(block.number - 1), randomizerContract.returnValue() ) ); tokenIdToHash[tokenIdToBe] = hash; hashToTokenId[hash] = tokenIdToBe; _mint(_to, tokenIdToBe); tokenIdToProjectId[tokenIdToBe] = _projectId; emit Mint(_to, tokenIdToBe, _projectId); return tokenIdToBe; } /** * @notice Updates preferredIPFSGateway to `_gateway`. */ function updateIPFSGateway(string calldata _gateway) public onlyWhitelisted { preferredIPFSGateway = _gateway; emit GatewayUpdated(ExternalAssetDependencyType.IPFS, _gateway); } /** * @notice Updates preferredArweaveGateway to `_gateway`. */ function updateArweaveGateway(string calldata _gateway) public onlyWhitelisted { preferredArweaveGateway = _gateway; emit GatewayUpdated(ExternalAssetDependencyType.ARWEAVE, _gateway); } /** * @notice Updates contract admin to `_adminAddress`. */ function updateAdmin(address _adminAddress) public onlyAdmin { admin = _adminAddress; } /** * @notice Updates render provider address to `_renderProviderAddress`. */ function updateRenderProviderAddress(address payable _renderProviderAddress) public onlyAdmin { renderProviderAddress = _renderProviderAddress; } /** * @notice Updates render provider mint revenue percentage to * `_renderProviderPercentage`. */ function updateRenderProviderPercentage(uint256 _renderProviderPercentage) public onlyAdmin { require(_renderProviderPercentage <= 25, "Max of 25%"); renderProviderPercentage = _renderProviderPercentage; } /** * @notice Whitelists `_address`. */ function addWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of `_address`. */ function removeWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = false; } /** * @notice Whitelists minter `_address`. */ function addMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of minter `_address`. */ function removeMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = false; } /** * @notice Updates randomizer to `_randomizerAddress`. */ function updateRandomizerAddress(address _randomizerAddress) public onlyWhitelisted { randomizerContract = IRandomizer(_randomizerAddress); } /** * @notice Locks project `_projectId`. */ function toggleProjectIsLocked(uint256 _projectId) public onlyWhitelisted onlyUnlocked(_projectId) { projects[_projectId].locked = true; } /** * @notice Locks external asset dependencies for project `_projectId`. */ function lockProjectExternalAssetDependencies(uint256 _projectId) external onlyArtistOrWhitelisted(_projectId) onlyUnlockedProjectExternalAssetDependencies(_projectId) { projects[_projectId].externalAssetDependenciesLocked = true; emit ProjectExternalAssetDependenciesLocked(_projectId); } /** * @notice Toggles project `_projectId` as active/inactive. */ function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted { projects[_projectId].active = !projects[_projectId].active; } /** * @notice Updates artist of project `_projectId` to `_artistAddress`. */ function updateProjectArtistAddress( uint256 _projectId, address payable _artistAddress ) public onlyArtistOrWhitelisted(_projectId) { projectIdToArtistAddress[_projectId] = _artistAddress; } /** * @notice Toggles paused state of project `_projectId`. */ function toggleProjectIsPaused(uint256 _projectId) public onlyArtist(_projectId) { projects[_projectId].paused = !projects[_projectId].paused; } /** * @notice Adds new project `_projectName` by `_artistAddress`. * @param _projectName Project name. * @param _artistAddress Artist's address. * @param _pricePerTokenInWei Price to mint a token, in Wei. */ function addProject( string memory _projectName, address payable _artistAddress, uint256 _pricePerTokenInWei ) public onlyWhitelisted { uint256 projectId = nextProjectId; projectIdToArtistAddress[projectId] = _artistAddress; projects[projectId].name = _projectName; projectIdToCurrencySymbol[projectId] = "ETH"; projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei; projects[projectId].paused = true; projects[projectId].maxInvocations = ONE_MILLION; nextProjectId = nextProjectId + 1; } /** * @notice Updates payment currency of project `_projectId` to be * `_currencySymbol`. * @param _projectId Project ID to update. * @param _currencySymbol Currency symbol. * @param _currencyAddress Currency address. */ function updateProjectCurrencyInfo( uint256 _projectId, string memory _currencySymbol, address _currencyAddress ) public onlyArtist(_projectId) { projectIdToCurrencySymbol[_projectId] = _currencySymbol; projectIdToCurrencyAddress[_projectId] = _currencyAddress; } /** * @notice Updates price per token of project `_projectId` to be * '_pricePerTokenInWei`, in Wei. */ function updateProjectPricePerTokenInWei( uint256 _projectId, uint256 _pricePerTokenInWei ) public onlyArtist(_projectId) { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } /** * @notice Updates name of project `_projectId` to be `_projectName`. */ function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].name = _projectName; } /** * @notice Updates artist name for project `_projectId` to be * `_projectArtistName`. */ function updateProjectArtistName( uint256 _projectId, string memory _projectArtistName ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].artist = _projectArtistName; } /** * @notice Updates additional payee for project `_projectId` to be * `_additionalPayee`, receiving `_additionalPayeePercentage` percent * of artist mint and royalty revenues. */ function updateProjectAdditionalPayeeInfo( uint256 _projectId, address payable _additionalPayee, uint256 _additionalPayeePercentage ) public onlyArtist(_projectId) { require(_additionalPayeePercentage <= 100, "Max of 100%"); projectIdToAdditionalPayee[_projectId] = _additionalPayee; projectIdToAdditionalPayeePercentage[ _projectId ] = _additionalPayeePercentage; } /** * @notice Updates artist secondary market royalties for project * `_projectId` to be `_secondMarketRoyalty` percent. */ function updateProjectSecondaryMarketRoyaltyPercentage( uint256 _projectId, uint256 _secondMarketRoyalty ) public onlyArtist(_projectId) { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[ _projectId ] = _secondMarketRoyalty; } /** * @notice Updates description of project `_projectId`. */ function updateProjectDescription( uint256 _projectId, string memory _projectDescription ) public onlyArtist(_projectId) { projects[_projectId].description = _projectDescription; } /** * @notice Updates website of project `_projectId` to be `_projectWebsite`. */ function updateProjectWebsite( uint256 _projectId, string memory _projectWebsite ) public onlyArtist(_projectId) { projects[_projectId].website = _projectWebsite; } /** * @notice Updates license for project `_projectId`. */ function updateProjectLicense( uint256 _projectId, string memory _projectLicense ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].license = _projectLicense; } /** * @notice Updates maximum invocations for project `_projectId` to * `_maxInvocations`. */ function updateProjectMaxInvocations( uint256 _projectId, uint256 _maxInvocations ) public onlyArtist(_projectId) { require( (!projects[_projectId].locked || _maxInvocations < projects[_projectId].maxInvocations), "Only if unlocked" ); require( _maxInvocations > projects[_projectId].invocations, "You must set max invocations greater than current invocations" ); require(_maxInvocations <= ONE_MILLION, "Cannot exceed 1000000"); projects[_projectId].maxInvocations = _maxInvocations; } /** * @notice Adds a script to project `_projectId`. * @param _projectId Project to be updated. * @param _script Script to be added. */ function addProjectScript(uint256 _projectId, string memory _script) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scripts[ projects[_projectId].scriptCount ] = _script; projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1; } /** * @notice Updates script for project `_projectId` at script ID `_scriptId`. * @param _projectId Project to be updated. * @param _scriptId Script ID to be updated. * @param _script Script to be added. */ function updateProjectScript( uint256 _projectId, uint256 _scriptId, string memory _script ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { require( _scriptId < projects[_projectId].scriptCount, "scriptId out of range" ); projects[_projectId].scripts[_scriptId] = _script; } /** * @notice Updates external asset dependency for project `_projectId`. * @param _projectId Project to be updated. * @param _index Asset index. * @param _cid Asset cid (Content identifier). * @param _dependencyType Asset dependency type. * 0 - IPFS * 1 - ARWEAVE */ function updateProjectExternalAssetDependency( uint256 _projectId, uint256 _index, string calldata _cid, ExternalAssetDependencyType _dependencyType ) external onlyUnlockedProjectExternalAssetDependencies(_projectId) onlyArtistOrWhitelisted(_projectId) { uint24 assetCount = projects[_projectId].externalAssetDependencyCount; require(_index < assetCount, "Asset index out of range"); projects[_projectId].externalAssetDependencies[_index].cid = _cid; projects[_projectId] .externalAssetDependencies[_index] .dependencyType = _dependencyType; emit ExternalAssetDependencyUpdated( _projectId, _index, _cid, _dependencyType, assetCount ); } /** * @notice Removes external asset dependency for project `_projectId` at index `_index`. * Removal is done by swapping the element to be removed with the last element in the array, then deleting this last element. * Assets with indices higher than `_index` can have their indices adjusted as a result of this operation. * @param _projectId Project to be updated. * @param _index Asset index */ function removeProjectExternalAssetDependency( uint256 _projectId, uint256 _index ) external onlyUnlockedProjectExternalAssetDependencies(_projectId) onlyArtistOrWhitelisted(_projectId) { uint24 assetCount = projects[_projectId].externalAssetDependencyCount; require(_index < assetCount, "Asset index out of range"); uint24 lastElementIndex = assetCount - 1; projects[_projectId].externalAssetDependencies[_index] = projects[ _projectId ].externalAssetDependencies[lastElementIndex]; delete projects[_projectId].externalAssetDependencies[lastElementIndex]; projects[_projectId].externalAssetDependencyCount = lastElementIndex; emit ExternalAssetDependencyRemoved(_projectId, _index); } /** * @notice Adds external asset dependency for project `_projectId`. * @param _projectId Project to be updated. * @param _cid Asset cid (Content identifier). * @param _dependencyType Asset dependency type. * 0 - IPFS * 1 - ARWEAVE */ function addProjectExternalAssetDependency( uint256 _projectId, string calldata _cid, ExternalAssetDependencyType _dependencyType ) external onlyUnlockedProjectExternalAssetDependencies(_projectId) onlyArtistOrWhitelisted(_projectId) { uint24 assetCount = projects[_projectId].externalAssetDependencyCount; ExternalAssetDependency memory asset = ExternalAssetDependency({ cid: _cid, dependencyType: _dependencyType }); projects[_projectId].externalAssetDependencies[assetCount] = asset; projects[_projectId].externalAssetDependencyCount = assetCount + 1; emit ExternalAssetDependencyUpdated( _projectId, assetCount, _cid, _dependencyType, assetCount + 1 ); } /** * @notice Removes last script from project `_projectId`. */ function removeProjectLastScript(uint256 _projectId) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { require( projects[_projectId].scriptCount > 0, "there are no scripts to remove" ); delete projects[_projectId].scripts[ projects[_projectId].scriptCount - 1 ]; projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1; } /** * @notice Updates script json for project `_projectId`. */ function updateProjectScriptJSON( uint256 _projectId, string memory _projectScriptJSON ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].scriptJSON = _projectScriptJSON; } /** * @notice Updates ipfs hash for project `_projectId`. */ function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].ipfsHash = _ipfsHash; } /** * @notice Updates base URI for project `_projectId` to `_newBaseURI`. */ function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyArtist(_projectId) { projects[_projectId].projectBaseURI = _newBaseURI; } /** * @notice Returns project details for project `_projectId`. * @param _projectId Project to be queried. * @return projectName Name of project * @return artist Artist of project * @return description Project description * @return website Project website * @return license Project license */ function projectDetails(uint256 _projectId) public view returns ( string memory projectName, string memory artist, string memory description, string memory website, string memory license ) { projectName = projects[_projectId].name; artist = projects[_projectId].artist; description = projects[_projectId].description; website = projects[_projectId].website; license = projects[_projectId].license; } /** * @notice Returns project token information for project `_projectId`. * @param _projectId Project to be queried. * @return artistAddress Project Artist's address * @return pricePerTokenInWei Price to mint a token, in Wei * @return invocations Current number of invocations * @return maxInvocations Maximum allowed invocations * @return active Boolean representing if project is currently active * @return additionalPayee Additional payee address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return currency Symbol of project's currency * @return currencyAddress Address of project's currency */ function projectTokenInfo(uint256 _projectId) public view returns ( address artistAddress, uint256 pricePerTokenInWei, uint256 invocations, uint256 maxInvocations, bool active, address additionalPayee, uint256 additionalPayeePercentage, string memory currency, address currencyAddress ) { artistAddress = projectIdToArtistAddress[_projectId]; pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId]; invocations = projects[_projectId].invocations; maxInvocations = projects[_projectId].maxInvocations; active = projects[_projectId].active; additionalPayee = projectIdToAdditionalPayee[_projectId]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ _projectId ]; currency = projectIdToCurrencySymbol[_projectId]; currencyAddress = projectIdToCurrencyAddress[_projectId]; } /** * @notice Returns script information for project `_projectId`. * @param _projectId Project to be queried. * @return scriptJSON Project's script json * @return scriptCount Count of scripts for project * @return ipfsHash IPFS hash for project * @return locked Boolean representing if project is locked * @return paused Boolean representing if project is paused */ function projectScriptInfo(uint256 _projectId) public view returns ( string memory scriptJSON, uint256 scriptCount, string memory ipfsHash, bool locked, bool paused ) { scriptJSON = projects[_projectId].scriptJSON; scriptCount = projects[_projectId].scriptCount; ipfsHash = projects[_projectId].ipfsHash; locked = projects[_projectId].locked; paused = projects[_projectId].paused; } /** * @notice Returns script for project `_projectId` at script index `_index` */ function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } /** * @notice Returns external asset dependency for project `_projectId` at index `_index`. */ function projectExternalAssetDependencyByIndex( uint256 _projectId, uint256 _index ) public view returns (ExternalAssetDependency memory) { return projects[_projectId].externalAssetDependencies[_index]; } /** * @notice Returns external asset dependency count for project `_projectId` at index `_index`. */ function projectExternalAssetDependencyCount(uint256 _projectId) public view returns (uint256) { return uint256(projects[_projectId].externalAssetDependencyCount); } /** * @notice Returns base URI for project `_projectId`. */ function projectURIInfo(uint256 _projectId) public view returns (string memory projectBaseURI) { projectBaseURI = projects[_projectId].projectBaseURI; } /** * @notice Gets royalty data for token ID `_tokenId`. * @param _tokenId Token ID to be queried. * @return artistAddress Artist's payment address * @return additionalPayee Additional payee's payment address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return royaltyFeeByID Total royalty percentage to be sent to * combination of artist and additional payee */ function getRoyaltyData(uint256 _tokenId) public view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ) { artistAddress = projectIdToArtistAddress[tokenIdToProjectId[_tokenId]]; additionalPayee = projectIdToAdditionalPayee[ tokenIdToProjectId[_tokenId] ]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ tokenIdToProjectId[_tokenId] ]; royaltyFeeByID = projectIdToSecondaryMarketRoyaltyPercentage[ tokenIdToProjectId[_tokenId] ]; } /** * @notice Gets token URI for token ID `_tokenId`. */ function tokenURI(uint256 _tokenId) public view override onlyValidTokenId(_tokenId) returns (string memory) { return string( abi.encodePacked( projects[tokenIdToProjectId[_tokenId]].projectBaseURI, Strings.toString(_tokenId) ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc. pragma solidity ^0.8.0; interface IGenArt721CoreV2_PBAB { /** * @notice Token ID `_tokenId` minted on project ID `_projectId` to `_to`. */ event Mint( address indexed _to, uint256 indexed _tokenId, uint256 indexed _projectId ); // getter function of public variable function admin() external view returns (address); // getter function of public variable function nextProjectId() external view returns (uint256); // getter function of public mapping function tokenIdToProjectId(uint256 tokenId) external view returns (uint256 projectId); function isWhitelisted(address sender) external view returns (bool); function projectIdToCurrencySymbol(uint256 _projectId) external view returns (string memory); function projectIdToCurrencyAddress(uint256 _projectId) external view returns (address); function projectIdToArtistAddress(uint256 _projectId) external view returns (address payable); function projectIdToPricePerTokenInWei(uint256 _projectId) external view returns (uint256); function projectIdToAdditionalPayee(uint256 _projectId) external view returns (address payable); function projectIdToAdditionalPayeePercentage(uint256 _projectId) external view returns (uint256); function projectTokenInfo(uint256 _projectId) external view returns ( address, uint256, uint256, uint256, bool, address, uint256, string memory, address ); function renderProviderAddress() external view returns (address payable); function renderProviderPercentage() external view returns (uint256); function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 tokenId); function getRoyaltyData(uint256 _tokenId) external view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ); }
// SPDX-License-Identifier: LGPL-3.0-only // Creatd By: Art Blocks Inc. pragma solidity ^0.8.0; interface IRandomizer { function returnValue() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 25 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_randomizerContract","type":"address"}],"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":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_index","type":"uint256"}],"name":"ExternalAssetDependencyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_index","type":"uint256"},{"indexed":false,"internalType":"string","name":"_cid","type":"string"},{"indexed":false,"internalType":"enum GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependencyType","name":"_dependencyType","type":"uint8"},{"indexed":false,"internalType":"uint24","name":"_externalAssetDependencyCount","type":"uint24"}],"name":"ExternalAssetDependencyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependencyType","name":"_dependencyType","type":"uint8"},{"indexed":false,"internalType":"string","name":"_gatewayAddress","type":"string"}],"name":"GatewayUpdated","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":"uint256","name":"_projectId","type":"uint256"}],"name":"ProjectExternalAssetDependenciesLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_projectName","type":"string"},{"internalType":"address payable","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_cid","type":"string"},{"internalType":"enum GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependencyType","name":"_dependencyType","type":"uint8"}],"name":"addProjectExternalAssetDependency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coreType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coreVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyData","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"uint256","name":"royaltyFeeByID","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"lockProjectExternalAssetDependencies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_by","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preferredArweaveGateway","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preferredIPFSGateway","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectDetails","outputs":[{"internalType":"string","name":"projectName","type":"string"},{"internalType":"string","name":"artist","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"license","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectExternalAssetDependencyByIndex","outputs":[{"components":[{"internalType":"string","name":"cid","type":"string"},{"internalType":"enum GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependencyType","name":"dependencyType","type":"uint8"}],"internalType":"struct GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependency","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectExternalAssetDependencyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToArtistAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencySymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToPricePerTokenInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToSecondaryMarketRoyaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectScriptInfo","outputs":[{"internalType":"string","name":"scriptJSON","type":"string"},{"internalType":"uint256","name":"scriptCount","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectTokenInfo","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"invocations","type":"uint256"},{"internalType":"uint256","name":"maxInvocations","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectURIInfo","outputs":[{"internalType":"string","name":"projectBaseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizerContract","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"removeProjectExternalAssetDependency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderProviderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderProviderPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_gateway","type":"string"}],"name":"updateArweaveGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_gateway","type":"string"}],"name":"updateIPFSGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_additionalPayee","type":"address"},{"internalType":"uint256","name":"_additionalPayeePercentage","type":"uint256"}],"name":"updateProjectAdditionalPayeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_artistAddress","type":"address"}],"name":"updateProjectArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectArtistName","type":"string"}],"name":"updateProjectArtistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateProjectBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectDescription","type":"string"}],"name":"updateProjectDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_cid","type":"string"},{"internalType":"enum GenArt721CoreV2_BrightMomentsFlex.ExternalAssetDependencyType","name":"_dependencyType","type":"uint8"}],"name":"updateProjectExternalAssetDependency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateProjectIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectLicense","type":"string"}],"name":"updateProjectLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"updateProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"updateProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updateProjectPricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectScriptJSON","type":"string"}],"name":"updateProjectScriptJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_secondMarketRoyalty","type":"uint256"}],"name":"updateProjectSecondaryMarketRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"updateProjectWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_randomizerAddress","type":"address"}],"name":"updateRandomizerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_renderProviderAddress","type":"address"}],"name":"updateRenderProviderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_renderProviderPercentage","type":"uint256"}],"name":"updateRenderProviderPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a60125560006019553480156200001b57600080fd5b5060405162004d0838038062004d088339810160408190526200003e9162000241565b82518390839062000057906000906020850190620000ce565b5080516200006d906001906020840190620000ce565b505060168054336001600160a01b031991821681179092556000828152601760205260409020805460ff19166001179055601180548216909217909155600680549091166001600160a01b039390931692909217909155506200030b915050565b828054620000dc90620002ce565b90600052602060002090601f0160209004810192826200010057600085556200014b565b82601f106200011b57805160ff19168380011785556200014b565b828001600101855582156200014b579182015b828111156200014b5782518255916020019190600101906200012e565b50620001599291506200015d565b5090565b5b808211156200015957600081556001016200015e565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019c57600080fd5b81516001600160401b0380821115620001b957620001b962000174565b604051601f8301601f19908116603f01168101908282118183101715620001e457620001e462000174565b816040528381526020925086838588010111156200020157600080fd5b600091505b8382101562000225578582018301518183018401529082019062000206565b83821115620002375760008385830101525b9695505050505050565b6000806000606084860312156200025757600080fd5b83516001600160401b03808211156200026f57600080fd5b6200027d878388016200018a565b945060208601519150808211156200029457600080fd5b50620002a3868287016200018a565b604086015190935090506001600160a01b0381168114620002c357600080fd5b809150509250925092565b600181811c90821680620002e357607f821691505b602082108114156200030557634e487b7160e01b600052602260045260246000fd5b50919050565b6149ed806200031b6000396000f3fe608060405234801561001057600080fd5b50600436106103aa5760003560e01c80638c2c3622116101ec578063ba3c234511610116578063ba3c23451461098a578063c34a03b51461099d578063c6d73231146109b0578063c87b56dd146109c3578063cc74234b146109d6578063cfbf4d97146109f6578063d03c390c14610a09578063d195b36514610a1c578063d50f513814610a2f578063d7b044b614610a42578063db2ff86114610a6b578063e13208b414610a7e578063e2f273bd14610a91578063e935b7b114610aa4578063e985e9c514610aad578063ed8abfda14610ac0578063f51f74a914610ae0578063f6cd39e314610b00578063f70c0f0414610b08578063f851a44014610b2857600080fd5b80638c2c3622146107395780638c3c9cdd146107615780638dd91a561461077457806395d89b411461079857806397dc86cf146107a0578063a11ec70a146107b3578063a22cb465146107c6578063a3b2cca6146107d9578063a47d29cb146107ec578063a65ff74c14610815578063acad012414610897578063ad0305ce146108aa578063ad283290146108cd578063ad576c45146108fc578063ae45ad981461090f578063b1656ba314610949578063b7b04fae1461095c578063b7ba527d1461096f578063b88d4fde1461097757600080fd5b80633af32abf116102d85780633af32abf146105675780633e48e8481461058a5780633fef6c2a1461059d57806342842e0e146105b0578063498dd0c1146105c35780634aa6d417146105ec5780634e1d64af146106105780635464c30914610635578063621a1f74146106485780636352211e1461066857806366e462371461067b57806369d14faf1461068e5780636b6ec8a6146106a15780636c907b7f146106b457806370a08231146106c7578063826fc391146106da578063867f1a3b146106ed5780638763ad1e146107005780638ba8f14d146107135780638bddb0a61461072657600080fd5b806301ffc9a7146103af57806306fdde03146103d7578063081812fc146103ec578063095ea7b3146104175780630d1706731461042c5780630d4d15131461043f57806310154bad1461046057806310a9ef181461047357806311f5fdf1146104865780631b689c0b1461049957806320927ec9146104b957806323b872dd146104cc57806325b75d68146104df5780632642c6b6146104f2578063291d9549146105125780632d9c0205146105255780632e9eb74f1461053857806336c7c12c146105415780633785996314610554575b600080fd5b6103c26103bd366004613d08565b610b3b565b60405190151581526020015b60405180910390f35b6103df610b8d565b6040516103ce9190613d84565b6103ff6103fa366004613d97565b610c1f565b6040516001600160a01b0390911681526020016103ce565b61042a610425366004613dc5565b610cac565b005b61042a61043a366004613e9c565b610dbd565b61045261044d366004613ee2565b610e6e565b6040519081526020016103ce565b61042a61046e366004613f24565b611071565b61042a610481366004613f9d565b6110bf565b61042a610494366004613d97565b61123c565b6104526104a7366004613d97565b60136020526000908152604090205481565b6103df6104c7366004613d97565b6112a9565b61042a6104da366004614004565b611343565b61042a6104ed366004613e9c565b611374565b610505610500366004614045565b611424565b6040516103ce919061409f565b61042a610520366004613f24565b611525565b6103df610533366004613d97565b611570565b61045260125481565b6006546103ff906001600160a01b031681565b61042a610562366004613e9c565b611615565b6103c2610575366004613f24565b60176020526000908152604090205460ff1681565b61042a610598366004613e9c565b611678565b61042a6105ab366004613e9c565b6116d5565b61042a6105be366004614004565b611785565b6103ff6105d1366004613d97565b600c602052600090815260409020546001600160a01b031681565b6105ff6105fa366004613d97565b6117a0565b6040516103ce9594939291906140d7565b6103df60405180604001604052806006815260200165076322e302e360d41b81525081565b61042a61064336600461411c565b611922565b610452610656366004613d97565b60146020526000908152604090205481565b6103ff610676366004613d97565b61199e565b61042a61068936600461415d565b611a15565b61042a61069c3660046141ba565b611bfd565b61042a6106af366004613f24565b611c7e565b61042a6106c2366004613f24565b611cca565b6104526106d5366004613f24565b611d1b565b61042a6106e8366004614045565b611da2565b61042a6106fb366004613f24565b611f13565b61042a61070e3660046141ea565b611f5e565b61042a610721366004613d97565b612056565b61042a610734366004613f24565b6120df565b61074c610747366004613d97565b61212d565b6040516103ce99989796959493929190614232565b6103df61076f366004614045565b612250565b610787610782366004613d97565b612300565b6040516103ce959493929190614298565b6103df61262e565b61042a6107ae366004614045565b61263d565b61042a6107c1366004613d97565b612688565b61042a6107d4366004614305565b6126ef565b61042a6107e7366004613e9c565b6126fe565b6103ff6107fa366004613d97565b600a602052600090815260409020546001600160a01b031681565b61086c610823366004613d97565b6000908152601360209081526040808320548352600a825280832054600e835281842054600f845282852054601090945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103ce565b61042a6108a5366004613e9c565b61275b565b6103c26108b8366004613f24565b60186020526000908152604090205460ff1681565b6104526108db366004613d97565b6000908152600960205260409020600c0154600160201b900462ffffff1690565b61042a61090a366004614045565b61284c565b6103df6040518060400160405280601b81526020017a08ecadc82e4e86e646286dee4caac64be8a9c8e929c8abe8c988ab602b1b81525081565b61042a610957366004614338565b612a2f565b61042a61096a366004613e9c565b612b43565b6103df612bf3565b61042a610985366004614387565b612c00565b61042a610998366004613d97565b612c32565b61042a6109ab366004614045565b612d0d565b61042a6109be366004613e9c565b612d79565b6103df6109d1366004613d97565b612e29565b6104526109e4366004613d97565b600f6020526000908152604090205481565b6011546103ff906001600160a01b031681565b61042a610a17366004613d97565b612ecb565b61042a610a2a366004614406565b612f1d565b61042a610a3d36600461411c565b612fa6565b6103ff610a50366004613d97565b600e602052600090815260409020546001600160a01b031681565b61042a610a79366004613d97565b612fe9565b61042a610a8c366004614455565b613149565b61042a610a9f366004613f24565b6131dc565b61045260195481565b6103c2610abb36600461447c565b613228565b610452610ace366004613d97565b60106020526000908152604090205481565b610452610aee366004613d97565b60156020526000908152604090205481565b6103df613256565b610452610b16366004613d97565b600d6020526000908152604090205481565b6016546103ff906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b6c57506001600160e01b03198216635b5e139f60e01b145b80610b8757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b9c906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc8906144aa565b8015610c155780601f10610bea57610100808354040283529160200191610c15565b820191906000526020600020905b815481529060010190602001808311610bf857829003601f168201915b5050505050905090565b6000610c2a82613263565b610c905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cb78261199e565b9050806001600160a01b0316836001600160a01b03161415610d255760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c87565b336001600160a01b0382161480610d415750610d418133613228565b610dae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c87565b610db88383613280565b505050565b6000828152600960205260409020600c01548290610100900460ff1615610df65760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680610e2c57506000818152600a60205260409020546001600160a01b031633145b610e485760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792860190613b2d565b5050505050565b3360009081526018602052604081205460ff16610ee15760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610c87565b60008381526009602052604090206007810154600690910154610f05906001614553565b1115610f535760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c87565b6000838152600960205260409020600c015460ff1680610f8c57506000838152600a60205260409020546001600160a01b038381169116145b610fd85760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c87565b6000838152600960205260409020600c015462010000900460ff16158061101857506000838152600a60205260409020546001600160a01b038381169116145b61105c5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c87565b600061106885856132ee565b95945050505050565b6016546001600160a01b0316331461109b5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6000858152600960205260409020600c015485906301000000900460ff16156110fa5760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054869060ff168061113057506000818152600a60205260409020546001600160a01b031633145b61114c5760405162461bcd60e51b8152600401610c8790614509565b6000878152600960205260409020600c0154600160201b900462ffffff168087106111895760405162461bcd60e51b8152600401610c87906145dd565b60008881526009602090815260408083208a8452600d0190915290206111b0908787613bb1565b5060008881526009602090815260408083208a8452600d01909152902060019081018054869260ff199091169083818111156111ee576111ee614067565b021790555086887f1628bf0d5f04426de03959d1da1357d8210b3b99e35281256ab7e9bd55dae9498888888660405161122a9493929190614638565b60405180910390a35050505050505050565b6016546001600160a01b031633146112665760405162461bcd60e51b8152600401610c879061456b565b60198111156112a45760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c87565b601255565b600b60205260009081526040902080546112c2906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546112ee906144aa565b801561133b5780601f106113105761010080835404028352916020019161133b565b820191906000526020600020905b81548152906001019060200180831161131e57829003601f168201915b505050505081565b61134d338261348d565b6113695760405162461bcd60e51b8152600401610c879061466f565b610db8838383613557565b6000828152600960205260409020600c01548290610100900460ff16156113ad5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff16806113e357506000818152600a60205260409020546001600160a01b031633145b6113ff5760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600490920191860190613b2d565b604080518082018252606081526000602080830182905285825260098152838220858352600d019052829020825180840190935280549192918290829061146a906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054611496906144aa565b80156114e35780601f106114b8576101008083540402835291602001916114e3565b820191906000526020600020905b8154815290600101906020018083116114c657829003601f168201915b505050918352505060018281015460209092019160ff169081111561150a5761150a614067565b600181111561151b5761151b614067565b9052509392505050565b6016546001600160a01b0316331461154f5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6000818152600960205260409020600501805460609190611590906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546115bc906144aa565b80156116095780601f106115de57610100808354040283529160200191611609565b820191906000526020600020905b8154815290600101906020018083116115ec57829003601f168201915b50505050509050919050565b6000828152600a602052604090205482906001600160a01b0316331461164d5760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600390920191850190613b2d565b50505050565b6000828152600a602052604090205482906001600160a01b031633146116b05760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600590920191850190613b2d565b6000828152600960205260409020600c01548290610100900460ff161561170e5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff168061174457506000818152600a60205260409020546001600160a01b031633145b6117605760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600b90920191860190613b2d565b610db883838360405180602001604052806000815250612c00565b6060600060606000806009600087815260200190815260200160002060080180546117ca906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546117f6906144aa565b80156118435780601f1061181857610100808354040283529160200191611843565b820191906000526020600020905b81548152906001019060200180831161182657829003601f168201915b5050506000898152600960205260409020600a810154600b909101805494995090975092611873925090506144aa565b80601f016020809104026020016040519081016040528092919081815260200182805461189f906144aa565b80156118ec5780601f106118c1576101008083540402835291602001916118ec565b820191906000526020600020905b8154815290600101906020018083116118cf57829003601f168201915b5050506000988952505060096020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b3360009081526017602052604090205460ff166119515760405162461bcd60e51b8152600401610c87906146e5565b61195d60088383613bb1565b5060015b7f897675a9bb2e78c7082f6dd757f2db5e1d07724c1f2d46fea1da4e17e5061afd838360405161199292919061470f565b60405180910390a25050565b6000818152600260205260408120546001600160a01b031680610b875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c87565b6000848152600960205260409020600c015484906301000000900460ff1615611a505760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054859060ff1680611a8657506000818152600a60205260409020546001600160a01b031633145b611aa25760405162461bcd60e51b8152600401610c8790614509565b6000868152600960209081526040808320600c01548151601f8901849004909302830160609081018352918301888152600160201b90910462ffffff169392918291908a908a9081908501838280828437600092019190915250505090825250602001866001811115611b1757611b17614067565b9052600089815260096020908152604080832062ffffff87168452600d0182529091208251805193945084939192611b5492849290910190613b2d565b50602082015160018083018054909160ff19909116908381811115611b7b57611b7b614067565b0217905550611b8f91508390506001614723565b6000898152600960205260409020600c01805462ffffff60201b1916600160201b62ffffff938416021790558216887f1628bf0d5f04426de03959d1da1357d8210b3b99e35281256ab7e9bd55dae949898989611bed886001614723565b60405161122a9493929190614638565b33600090815260176020526040902054829060ff1680611c3357506000818152600a60205260409020546001600160a01b031633145b611c4f5760405162461bcd60e51b8152600401610c8790614509565b506000918252600a602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6016546001600160a01b03163314611ca85760405162461bcd60e51b8152600401610c879061456b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526017602052604090205460ff16611cf95760405162461bcd60e51b8152600401610c87906146e5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611d865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c87565b506001600160a01b031660009081526003602052604090205490565b6000828152600a602052604090205482906001600160a01b03163314611dda5760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960205260409020600c0154610100900460ff161580611e10575060008381526009602052604090206007015482105b611e2c5760405162461bcd60e51b8152600401610c87906144df565b6000838152600960205260409020600601548211611eb25760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c87565b620f4240821115611efd5760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c87565b5060009182526009602052604090912060070155565b6016546001600160a01b03163314611f3d5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601860205260409020805460ff19169055565b3360009081526017602052604090205460ff16611f8d5760405162461bcd60e51b8152600401610c87906146e5565b6019546000818152600a6020908152604080832080546001600160a01b0319166001600160a01b038816179055600982529091208551611fcf92870190613b2d565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600b9091529290922090516120069290613b2d565b506000818152600d6020908152604080832085905560099091529020600c8101805462ff0000191662010000179055620f424060079091015560195461204d906001614553565b60195550505050565b3360009081526017602052604090205460ff166120855760405162461bcd60e51b8152600401610c87906146e5565b6000818152600960205260409020600c01548190610100900460ff16156120be5760405162461bcd60e51b8152600401610c87906144df565b506000908152600960205260409020600c01805461ff001916610100179055565b6016546001600160a01b031633146121095760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601860205260409020805460ff19166001179055565b6000818152600a6020908152604080832054600d8352818420546009845282852060068101546007820154600c90920154600e875285882054600f885286892054600b90985295882080546001600160a01b039687169995989397949660ff90931695929094169360609291906121a3906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546121cf906144aa565b801561221c5780601f106121f15761010080835404028352916020019161221c565b820191906000526020600020905b8154815290600101906020018083116121ff57829003601f168201915b50505060009c8d525050600c6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526009602081815260408084208585529092019052902080546060919061227a906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546122a6906144aa565b80156122f35780601f106122c8576101008083540402835291602001916122f3565b820191906000526020600020905b8154815290600101906020018083116122d657829003601f168201915b5050505050905092915050565b6060806060806060600960008781526020019081526020016000206000018054612329906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612355906144aa565b80156123a25780601f10612377576101008083540402835291602001916123a2565b820191906000526020600020905b81548152906001019060200180831161238557829003601f168201915b50505060008981526009602052604090206001018054939850926123c8925090506144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546123f4906144aa565b80156124415780601f1061241657610100808354040283529160200191612441565b820191906000526020600020905b81548152906001019060200180831161242457829003601f168201915b5050506000898152600960205260409020600201805493975092612467925090506144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612493906144aa565b80156124e05780601f106124b5576101008083540402835291602001916124e0565b820191906000526020600020905b8154815290600101906020018083116124c357829003601f168201915b5050506000898152600960205260409020600301805493965092612506925090506144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612532906144aa565b801561257f5780601f106125545761010080835404028352916020019161257f565b820191906000526020600020905b81548152906001019060200180831161256257829003601f168201915b50505060008981526009602052604090206004018054939550926125a5925090506144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546125d1906144aa565b801561261e5780601f106125f35761010080835404028352916020019161261e565b820191906000526020600020905b81548152906001019060200180831161260157829003601f168201915b5050505050905091939590929450565b606060018054610b9c906144aa565b6000828152600a602052604090205482906001600160a01b031633146126755760405162461bcd60e51b8152600401610c87906146c0565b506000918252600d602052604090912055565b6000818152600a602052604090205481906001600160a01b031633146126c05760405162461bcd60e51b8152600401610c87906146c0565b506000908152600960205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b6126fa3383836136f3565b5050565b6000828152600a602052604090205482906001600160a01b031633146127365760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600290920191850190613b2d565b6000828152600960205260409020600c01548290610100900460ff16156127945760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff16806127ca57506000818152600a60205260409020546001600160a01b031633145b6127e65760405162461bcd60e51b8152600401610c8790614509565b6000848152600960208181526040808420600a810154855290920181529120845161281392860190613b2d565b506000848152600960205260409020600a0154612831906001614553565b600094855260096020526040909420600a0193909355505050565b6000828152600960205260409020600c015482906301000000900460ff16156128875760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054839060ff16806128bd57506000818152600a60205260409020546001600160a01b031633145b6128d95760405162461bcd60e51b8152600401610c8790614509565b6000848152600960205260409020600c0154600160201b900462ffffff168084106129165760405162461bcd60e51b8152600401610c87906145dd565b600061292360018361474a565b600087815260096020908152604080832062ffffff85168452600d019091528082208883529120815492935090918190839061295e906144aa565b612969929190613c25565b50600182810154828201805460ff90921692909160ff191690838181111561299357612993614067565b02179055505050600086815260096020908152604080832062ffffff85168452600d019091528120906129c68282613ca0565b50600101805460ff19169055600086815260096020526040808220600c01805462ffffff60201b1916600160201b62ffffff86160217905551869188917fa2290757ebb75dea327ace340daae74c1ac76aca04f6fd163fbf5b87e6d707599190a3505050505050565b6000838152600960205260409020600c01548390610100900460ff1615612a685760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054849060ff1680612a9e57506000818152600a60205260409020546001600160a01b031633145b612aba5760405162461bcd60e51b8152600401610c8790614509565b6000858152600960205260409020600a01548410612b125760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c87565b6000858152600960208181526040808420888552909201815291208451612b3b92860190613b2d565b505050505050565b6000828152600960205260409020600c01548290610100900460ff1615612b7c5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680612bb257506000818152600a60205260409020546001600160a01b031633145b612bce5760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600190920191860190613b2d565b600880546112c2906144aa565b612c0a338361348d565b612c265760405162461bcd60e51b8152600401610c879061466f565b611672848484846137be565b33600090815260176020526040902054819060ff1680612c6857506000818152600a60205260409020546001600160a01b031633145b612c845760405162461bcd60e51b8152600401610c8790614509565b6000828152600960205260409020600c015482906301000000900460ff1615612cbf5760405162461bcd60e51b8152600401610c879061458f565b600083815260096020526040808220600c01805463ff000000191663010000001790555184917fcbd4f9053ca1f820efad7731ae6c938613bfef183ee6f03f61cc8d4ab583f5dc91a2505050565b6000828152600a602052604090205482906001600160a01b03163314612d455760405162461bcd60e51b8152600401610c87906146c0565b6064821115612d665760405162461bcd60e51b8152600401610c879061476e565b5060009182526010602052604090912055565b6000828152600960205260409020600c01548290610100900460ff1615612db25760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680612de857506000818152600a60205260409020546001600160a01b031633145b612e045760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600890920191860190613b2d565b606081612e3581613263565b612e7b5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610c87565b600083815260136020908152604080832054835260099091529020600501612ea2846137f1565b604051602001612eb39291906147af565b60405160208183030381529060405291505b50919050565b3360009081526017602052604090205460ff16612efa5760405162461bcd60e51b8152600401610c87906146e5565b6000908152600960205260409020600c01805460ff19811660ff90911615179055565b6000838152600a602052604090205483906001600160a01b03163314612f555760405162461bcd60e51b8152600401610c87906146c0565b6000848152600b602090815260409091208451612f7492860190613b2d565b50506000928352600c602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b3360009081526017602052604090205460ff16612fd55760405162461bcd60e51b8152600401610c87906146e5565b612fe160078383613bb1565b506000611961565b6000818152600960205260409020600c01548190610100900460ff16156130225760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054829060ff168061305857506000818152600a60205260409020546001600160a01b031633145b6130745760405162461bcd60e51b8152600401610c8790614509565b6000838152600960205260409020600a01546130d25760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c87565b60008381526009602081905260408220600a810154910191906130f79060019061484d565b815260200190815260200160002060006131119190613ca0565b6000838152600960205260409020600a015461312f9060019061484d565b600093845260096020526040909320600a01929092555050565b6000838152600a602052604090205483906001600160a01b031633146131815760405162461bcd60e51b8152600401610c87906146c0565b60648211156131a25760405162461bcd60e51b8152600401610c879061476e565b506000928352600e6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600f9052912055565b6016546001600160a01b031633146132065760405162461bcd60e51b8152600401610c879061456b565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600780546112c2906144aa565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132b58261199e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260096020526040812060060154819061330f620f424085614864565b6133199190614553565b600084815260096020526040902060060154909150613339906001614553565b6000848152600960205260408120600601829055904361335a60018261484d565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b1580156133a957600080fd5b505afa1580156133bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133e19190614883565b6040805160208101959095528401929092526060830152608082015260a00160408051601f19818403018152918152815160209283012060008581526014845282812082905581815260159093529120839055905061344085836138ee565b60008281526013602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061349882613263565b6134f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c87565b60006135048361199e565b9050806001600160a01b0316846001600160a01b0316148061353f5750836001600160a01b031661353484610c1f565b6001600160a01b0316145b8061354f575061354f8185613228565b949350505050565b826001600160a01b031661356a8261199e565b6001600160a01b0316146135ce5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c87565b6001600160a01b0382166136305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c87565b61363b600082613280565b6001600160a01b038316600090815260036020526040812080546001929061366490849061484d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613692908490614553565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156137515760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c87565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6137c9848484613557565b6137d584848484613a20565b6116725760405162461bcd60e51b8152600401610c879061489c565b6060816138155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561383f5780613829816148ee565b91506138389050600a8361491f565b9150613819565b6000816001600160401b0381111561385957613859613df1565b6040519080825280601f01601f191660200182016040528015613883576020820181803683370190505b5090505b841561354f5761389860018361484d565b91506138a5600a86614933565b6138b0906030614553565b60f81b8183815181106138c5576138c5614947565b60200101906001600160f81b031916908160001a9053506138e7600a8661491f565b9450613887565b6001600160a01b0382166139445760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c87565b61394d81613263565b156139995760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c87565b6001600160a01b03821660009081526003602052604081208054600192906139c2908490614553565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613b2257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613a6490339089908890889060040161495d565b602060405180830381600087803b158015613a7e57600080fd5b505af1925050508015613aae575060408051601f3d908101601f19168201909252613aab9181019061499a565b60015b613b08573d808015613adc576040519150601f19603f3d011682016040523d82523d6000602084013e613ae1565b606091505b508051613b005760405162461bcd60e51b8152600401610c879061489c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061354f565b506001949350505050565b828054613b39906144aa565b90600052602060002090601f016020900481019282613b5b5760008555613ba1565b82601f10613b7457805160ff1916838001178555613ba1565b82800160010185558215613ba1579182015b82811115613ba1578251825591602001919060010190613b86565b50613bad929150613cdd565b5090565b828054613bbd906144aa565b90600052602060002090601f016020900481019282613bdf5760008555613ba1565b82601f10613bf85782800160ff19823516178555613ba1565b82800160010185558215613ba1579182015b82811115613ba1578235825591602001919060010190613c0a565b828054613c31906144aa565b90600052602060002090601f016020900481019282613c535760008555613ba1565b82601f10613c645780548555613ba1565b82800160010185558215613ba157600052602060002091601f016020900482015b82811115613ba1578254825591600101919060010190613c85565b508054613cac906144aa565b6000825580601f10613cbc575050565b601f016020900490600052602060002090810190613cda9190613cdd565b50565b5b80821115613bad5760008155600101613cde565b6001600160e01b031981168114613cda57600080fd5b600060208284031215613d1a57600080fd5b8135613d2581613cf2565b9392505050565b60005b83811015613d47578181015183820152602001613d2f565b838111156116725750506000910152565b60008151808452613d70816020860160208601613d2c565b601f01601f19169290920160200192915050565b602081526000613d256020830184613d58565b600060208284031215613da957600080fd5b5035919050565b6001600160a01b0381168114613cda57600080fd5b60008060408385031215613dd857600080fd5b8235613de381613db0565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115613e2157613e21613df1565b604051601f8501601f19908116603f01168101908282118183101715613e4957613e49613df1565b81604052809350858152868686011115613e6257600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613e8d57600080fd5b613d2583833560208501613e07565b60008060408385031215613eaf57600080fd5b8235915060208301356001600160401b03811115613ecc57600080fd5b613ed885828601613e7c565b9150509250929050565b600080600060608486031215613ef757600080fd5b8335613f0281613db0565b9250602084013591506040840135613f1981613db0565b809150509250925092565b600060208284031215613f3657600080fd5b8135613d2581613db0565b60008083601f840112613f5357600080fd5b5081356001600160401b03811115613f6a57600080fd5b602083019150836020828501011115613f8257600080fd5b9250929050565b803560028110613f9857600080fd5b919050565b600080600080600060808688031215613fb557600080fd5b853594506020860135935060408601356001600160401b03811115613fd957600080fd5b613fe588828901613f41565b9094509250613ff8905060608701613f89565b90509295509295909350565b60008060006060848603121561401957600080fd5b833561402481613db0565b9250602084013561403481613db0565b929592945050506040919091013590565b6000806040838503121561405857600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6002811061409b57634e487b7160e01b600052602160045260246000fd5b9052565b6020815260008251604060208401526140bb6060840182613d58565b905060208401516140cf604085018261407d565b509392505050565b60a0815260006140ea60a0830188613d58565b86602084015282810360408401526141028187613d58565b941515606084015250509015156080909101529392505050565b6000806020838503121561412f57600080fd5b82356001600160401b0381111561414557600080fd5b61415185828601613f41565b90969095509350505050565b6000806000806060858703121561417357600080fd5b8435935060208501356001600160401b0381111561419057600080fd5b61419c87828801613f41565b90945092506141af905060408601613f89565b905092959194509250565b600080604083850312156141cd57600080fd5b8235915060208301356141df81613db0565b809150509250929050565b6000806000606084860312156141ff57600080fd5b83356001600160401b0381111561421557600080fd5b61422186828701613e7c565b935050602084013561403481613db0565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e085015261427d82850187613d58565b925080851661010085015250509a9950505050505050505050565b60a0815260006142ab60a0830188613d58565b82810360208401526142bd8188613d58565b905082810360408401526142d18187613d58565b905082810360608401526142e58186613d58565b905082810360808401526142f98185613d58565b98975050505050505050565b6000806040838503121561431857600080fd5b823561432381613db0565b9150602083013580151581146141df57600080fd5b60008060006060848603121561434d57600080fd5b833592506020840135915060408401356001600160401b0381111561437157600080fd5b61437d86828701613e7c565b9150509250925092565b6000806000806080858703121561439d57600080fd5b84356143a881613db0565b935060208501356143b881613db0565b92506040850135915060608501356001600160401b038111156143da57600080fd5b8501601f810187136143eb57600080fd5b6143fa87823560208401613e07565b91505092959194509250565b60008060006060848603121561441b57600080fd5b8335925060208401356001600160401b0381111561443857600080fd5b61444486828701613e7c565b9250506040840135613f1981613db0565b60008060006060848603121561446a57600080fd5b83359250602084013561403481613db0565b6000806040838503121561448f57600080fd5b823561449a81613db0565b915060208301356141df81613db0565b600181811c908216806144be57607f821691505b60208210811415612ec557634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156145665761456661453d565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b6020808252602e908201527f50726f6a6563742065787465726e616c20617373657420646570656e64656e6360408201526d1a595cc8185c99481b1bd8dad95960921b606082015260800190565b602080825260189082015277417373657420696e646578206f7574206f662072616e676560401b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60608152600061464c60608301868861460f565b905061465b602083018561407d565b62ffffff8316604083015295945050505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b60208152600061354f60208301848661460f565b600062ffffff8083168185168083038211156147415761474161453d565b01949350505050565b600062ffffff838116908316818110156147665761476661453d565b039392505050565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b600081516147a5818560208601613d2c565b9290920192915050565b600080845481600182811c9150808316806147cb57607f831692505b60208084108214156147eb57634e487b7160e01b86526022600452602486fd5b8180156147ff57600181146148105761483d565b60ff1986168952848901965061483d565b60008b81526020902060005b868110156148355781548b82015290850190830161481c565b505084890196505b5050505050506110688185614793565b60008282101561485f5761485f61453d565b500390565b600081600019048311821515161561487e5761487e61453d565b500290565b60006020828403121561489557600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156149025761490261453d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261492e5761492e614909565b500490565b60008261494257614942614909565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061499090830184613d58565b9695505050505050565b6000602082840312156149ac57600080fd5b8151613d2581613cf256fea26469706673582212200aac780752e614e6b3a0523afed014b60eafe7d02eaa0e013583cbe6f2f45bc864736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc40000000000000000000000000000000000000000000000000000000000000013427269676874204d6f6d656e747320466c657800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4d454e542d464c4558000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103aa5760003560e01c80638c2c3622116101ec578063ba3c234511610116578063ba3c23451461098a578063c34a03b51461099d578063c6d73231146109b0578063c87b56dd146109c3578063cc74234b146109d6578063cfbf4d97146109f6578063d03c390c14610a09578063d195b36514610a1c578063d50f513814610a2f578063d7b044b614610a42578063db2ff86114610a6b578063e13208b414610a7e578063e2f273bd14610a91578063e935b7b114610aa4578063e985e9c514610aad578063ed8abfda14610ac0578063f51f74a914610ae0578063f6cd39e314610b00578063f70c0f0414610b08578063f851a44014610b2857600080fd5b80638c2c3622146107395780638c3c9cdd146107615780638dd91a561461077457806395d89b411461079857806397dc86cf146107a0578063a11ec70a146107b3578063a22cb465146107c6578063a3b2cca6146107d9578063a47d29cb146107ec578063a65ff74c14610815578063acad012414610897578063ad0305ce146108aa578063ad283290146108cd578063ad576c45146108fc578063ae45ad981461090f578063b1656ba314610949578063b7b04fae1461095c578063b7ba527d1461096f578063b88d4fde1461097757600080fd5b80633af32abf116102d85780633af32abf146105675780633e48e8481461058a5780633fef6c2a1461059d57806342842e0e146105b0578063498dd0c1146105c35780634aa6d417146105ec5780634e1d64af146106105780635464c30914610635578063621a1f74146106485780636352211e1461066857806366e462371461067b57806369d14faf1461068e5780636b6ec8a6146106a15780636c907b7f146106b457806370a08231146106c7578063826fc391146106da578063867f1a3b146106ed5780638763ad1e146107005780638ba8f14d146107135780638bddb0a61461072657600080fd5b806301ffc9a7146103af57806306fdde03146103d7578063081812fc146103ec578063095ea7b3146104175780630d1706731461042c5780630d4d15131461043f57806310154bad1461046057806310a9ef181461047357806311f5fdf1146104865780631b689c0b1461049957806320927ec9146104b957806323b872dd146104cc57806325b75d68146104df5780632642c6b6146104f2578063291d9549146105125780632d9c0205146105255780632e9eb74f1461053857806336c7c12c146105415780633785996314610554575b600080fd5b6103c26103bd366004613d08565b610b3b565b60405190151581526020015b60405180910390f35b6103df610b8d565b6040516103ce9190613d84565b6103ff6103fa366004613d97565b610c1f565b6040516001600160a01b0390911681526020016103ce565b61042a610425366004613dc5565b610cac565b005b61042a61043a366004613e9c565b610dbd565b61045261044d366004613ee2565b610e6e565b6040519081526020016103ce565b61042a61046e366004613f24565b611071565b61042a610481366004613f9d565b6110bf565b61042a610494366004613d97565b61123c565b6104526104a7366004613d97565b60136020526000908152604090205481565b6103df6104c7366004613d97565b6112a9565b61042a6104da366004614004565b611343565b61042a6104ed366004613e9c565b611374565b610505610500366004614045565b611424565b6040516103ce919061409f565b61042a610520366004613f24565b611525565b6103df610533366004613d97565b611570565b61045260125481565b6006546103ff906001600160a01b031681565b61042a610562366004613e9c565b611615565b6103c2610575366004613f24565b60176020526000908152604090205460ff1681565b61042a610598366004613e9c565b611678565b61042a6105ab366004613e9c565b6116d5565b61042a6105be366004614004565b611785565b6103ff6105d1366004613d97565b600c602052600090815260409020546001600160a01b031681565b6105ff6105fa366004613d97565b6117a0565b6040516103ce9594939291906140d7565b6103df60405180604001604052806006815260200165076322e302e360d41b81525081565b61042a61064336600461411c565b611922565b610452610656366004613d97565b60146020526000908152604090205481565b6103ff610676366004613d97565b61199e565b61042a61068936600461415d565b611a15565b61042a61069c3660046141ba565b611bfd565b61042a6106af366004613f24565b611c7e565b61042a6106c2366004613f24565b611cca565b6104526106d5366004613f24565b611d1b565b61042a6106e8366004614045565b611da2565b61042a6106fb366004613f24565b611f13565b61042a61070e3660046141ea565b611f5e565b61042a610721366004613d97565b612056565b61042a610734366004613f24565b6120df565b61074c610747366004613d97565b61212d565b6040516103ce99989796959493929190614232565b6103df61076f366004614045565b612250565b610787610782366004613d97565b612300565b6040516103ce959493929190614298565b6103df61262e565b61042a6107ae366004614045565b61263d565b61042a6107c1366004613d97565b612688565b61042a6107d4366004614305565b6126ef565b61042a6107e7366004613e9c565b6126fe565b6103ff6107fa366004613d97565b600a602052600090815260409020546001600160a01b031681565b61086c610823366004613d97565b6000908152601360209081526040808320548352600a825280832054600e835281842054600f845282852054601090945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103ce565b61042a6108a5366004613e9c565b61275b565b6103c26108b8366004613f24565b60186020526000908152604090205460ff1681565b6104526108db366004613d97565b6000908152600960205260409020600c0154600160201b900462ffffff1690565b61042a61090a366004614045565b61284c565b6103df6040518060400160405280601b81526020017a08ecadc82e4e86e646286dee4caac64be8a9c8e929c8abe8c988ab602b1b81525081565b61042a610957366004614338565b612a2f565b61042a61096a366004613e9c565b612b43565b6103df612bf3565b61042a610985366004614387565b612c00565b61042a610998366004613d97565b612c32565b61042a6109ab366004614045565b612d0d565b61042a6109be366004613e9c565b612d79565b6103df6109d1366004613d97565b612e29565b6104526109e4366004613d97565b600f6020526000908152604090205481565b6011546103ff906001600160a01b031681565b61042a610a17366004613d97565b612ecb565b61042a610a2a366004614406565b612f1d565b61042a610a3d36600461411c565b612fa6565b6103ff610a50366004613d97565b600e602052600090815260409020546001600160a01b031681565b61042a610a79366004613d97565b612fe9565b61042a610a8c366004614455565b613149565b61042a610a9f366004613f24565b6131dc565b61045260195481565b6103c2610abb36600461447c565b613228565b610452610ace366004613d97565b60106020526000908152604090205481565b610452610aee366004613d97565b60156020526000908152604090205481565b6103df613256565b610452610b16366004613d97565b600d6020526000908152604090205481565b6016546103ff906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b6c57506001600160e01b03198216635b5e139f60e01b145b80610b8757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610b9c906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc8906144aa565b8015610c155780601f10610bea57610100808354040283529160200191610c15565b820191906000526020600020905b815481529060010190602001808311610bf857829003601f168201915b5050505050905090565b6000610c2a82613263565b610c905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cb78261199e565b9050806001600160a01b0316836001600160a01b03161415610d255760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c87565b336001600160a01b0382161480610d415750610d418133613228565b610dae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610c87565b610db88383613280565b505050565b6000828152600960205260409020600c01548290610100900460ff1615610df65760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680610e2c57506000818152600a60205260409020546001600160a01b031633145b610e485760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792860190613b2d565b5050505050565b3360009081526018602052604081205460ff16610ee15760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610c87565b60008381526009602052604090206007810154600690910154610f05906001614553565b1115610f535760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610c87565b6000838152600960205260409020600c015460ff1680610f8c57506000838152600a60205260409020546001600160a01b038381169116145b610fd85760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610c87565b6000838152600960205260409020600c015462010000900460ff16158061101857506000838152600a60205260409020546001600160a01b038381169116145b61105c5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610c87565b600061106885856132ee565b95945050505050565b6016546001600160a01b0316331461109b5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b6000858152600960205260409020600c015485906301000000900460ff16156110fa5760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054869060ff168061113057506000818152600a60205260409020546001600160a01b031633145b61114c5760405162461bcd60e51b8152600401610c8790614509565b6000878152600960205260409020600c0154600160201b900462ffffff168087106111895760405162461bcd60e51b8152600401610c87906145dd565b60008881526009602090815260408083208a8452600d0190915290206111b0908787613bb1565b5060008881526009602090815260408083208a8452600d01909152902060019081018054869260ff199091169083818111156111ee576111ee614067565b021790555086887f1628bf0d5f04426de03959d1da1357d8210b3b99e35281256ab7e9bd55dae9498888888660405161122a9493929190614638565b60405180910390a35050505050505050565b6016546001600160a01b031633146112665760405162461bcd60e51b8152600401610c879061456b565b60198111156112a45760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610c87565b601255565b600b60205260009081526040902080546112c2906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546112ee906144aa565b801561133b5780601f106113105761010080835404028352916020019161133b565b820191906000526020600020905b81548152906001019060200180831161131e57829003601f168201915b505050505081565b61134d338261348d565b6113695760405162461bcd60e51b8152600401610c879061466f565b610db8838383613557565b6000828152600960205260409020600c01548290610100900460ff16156113ad5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff16806113e357506000818152600a60205260409020546001600160a01b031633145b6113ff5760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600490920191860190613b2d565b604080518082018252606081526000602080830182905285825260098152838220858352600d019052829020825180840190935280549192918290829061146a906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054611496906144aa565b80156114e35780601f106114b8576101008083540402835291602001916114e3565b820191906000526020600020905b8154815290600101906020018083116114c657829003601f168201915b505050918352505060018281015460209092019160ff169081111561150a5761150a614067565b600181111561151b5761151b614067565b9052509392505050565b6016546001600160a01b0316331461154f5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6000818152600960205260409020600501805460609190611590906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546115bc906144aa565b80156116095780601f106115de57610100808354040283529160200191611609565b820191906000526020600020905b8154815290600101906020018083116115ec57829003601f168201915b50505050509050919050565b6000828152600a602052604090205482906001600160a01b0316331461164d5760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600390920191850190613b2d565b50505050565b6000828152600a602052604090205482906001600160a01b031633146116b05760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600590920191850190613b2d565b6000828152600960205260409020600c01548290610100900460ff161561170e5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff168061174457506000818152600a60205260409020546001600160a01b031633145b6117605760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600b90920191860190613b2d565b610db883838360405180602001604052806000815250612c00565b6060600060606000806009600087815260200190815260200160002060080180546117ca906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546117f6906144aa565b80156118435780601f1061181857610100808354040283529160200191611843565b820191906000526020600020905b81548152906001019060200180831161182657829003601f168201915b5050506000898152600960205260409020600a810154600b909101805494995090975092611873925090506144aa565b80601f016020809104026020016040519081016040528092919081815260200182805461189f906144aa565b80156118ec5780601f106118c1576101008083540402835291602001916118ec565b820191906000526020600020905b8154815290600101906020018083116118cf57829003601f168201915b5050506000988952505060096020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b3360009081526017602052604090205460ff166119515760405162461bcd60e51b8152600401610c87906146e5565b61195d60088383613bb1565b5060015b7f897675a9bb2e78c7082f6dd757f2db5e1d07724c1f2d46fea1da4e17e5061afd838360405161199292919061470f565b60405180910390a25050565b6000818152600260205260408120546001600160a01b031680610b875760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c87565b6000848152600960205260409020600c015484906301000000900460ff1615611a505760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054859060ff1680611a8657506000818152600a60205260409020546001600160a01b031633145b611aa25760405162461bcd60e51b8152600401610c8790614509565b6000868152600960209081526040808320600c01548151601f8901849004909302830160609081018352918301888152600160201b90910462ffffff169392918291908a908a9081908501838280828437600092019190915250505090825250602001866001811115611b1757611b17614067565b9052600089815260096020908152604080832062ffffff87168452600d0182529091208251805193945084939192611b5492849290910190613b2d565b50602082015160018083018054909160ff19909116908381811115611b7b57611b7b614067565b0217905550611b8f91508390506001614723565b6000898152600960205260409020600c01805462ffffff60201b1916600160201b62ffffff938416021790558216887f1628bf0d5f04426de03959d1da1357d8210b3b99e35281256ab7e9bd55dae949898989611bed886001614723565b60405161122a9493929190614638565b33600090815260176020526040902054829060ff1680611c3357506000818152600a60205260409020546001600160a01b031633145b611c4f5760405162461bcd60e51b8152600401610c8790614509565b506000918252600a602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6016546001600160a01b03163314611ca85760405162461bcd60e51b8152600401610c879061456b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526017602052604090205460ff16611cf95760405162461bcd60e51b8152600401610c87906146e5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611d865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c87565b506001600160a01b031660009081526003602052604090205490565b6000828152600a602052604090205482906001600160a01b03163314611dda5760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960205260409020600c0154610100900460ff161580611e10575060008381526009602052604090206007015482105b611e2c5760405162461bcd60e51b8152600401610c87906144df565b6000838152600960205260409020600601548211611eb25760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c87565b620f4240821115611efd5760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610c87565b5060009182526009602052604090912060070155565b6016546001600160a01b03163314611f3d5760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601860205260409020805460ff19169055565b3360009081526017602052604090205460ff16611f8d5760405162461bcd60e51b8152600401610c87906146e5565b6019546000818152600a6020908152604080832080546001600160a01b0319166001600160a01b038816179055600982529091208551611fcf92870190613b2d565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600b9091529290922090516120069290613b2d565b506000818152600d6020908152604080832085905560099091529020600c8101805462ff0000191662010000179055620f424060079091015560195461204d906001614553565b60195550505050565b3360009081526017602052604090205460ff166120855760405162461bcd60e51b8152600401610c87906146e5565b6000818152600960205260409020600c01548190610100900460ff16156120be5760405162461bcd60e51b8152600401610c87906144df565b506000908152600960205260409020600c01805461ff001916610100179055565b6016546001600160a01b031633146121095760405162461bcd60e51b8152600401610c879061456b565b6001600160a01b03166000908152601860205260409020805460ff19166001179055565b6000818152600a6020908152604080832054600d8352818420546009845282852060068101546007820154600c90920154600e875285882054600f885286892054600b90985295882080546001600160a01b039687169995989397949660ff90931695929094169360609291906121a3906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546121cf906144aa565b801561221c5780601f106121f15761010080835404028352916020019161221c565b820191906000526020600020905b8154815290600101906020018083116121ff57829003601f168201915b50505060009c8d525050600c6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b60008281526009602081815260408084208585529092019052902080546060919061227a906144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546122a6906144aa565b80156122f35780601f106122c8576101008083540402835291602001916122f3565b820191906000526020600020905b8154815290600101906020018083116122d657829003601f168201915b5050505050905092915050565b6060806060806060600960008781526020019081526020016000206000018054612329906144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612355906144aa565b80156123a25780601f10612377576101008083540402835291602001916123a2565b820191906000526020600020905b81548152906001019060200180831161238557829003601f168201915b50505060008981526009602052604090206001018054939850926123c8925090506144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546123f4906144aa565b80156124415780601f1061241657610100808354040283529160200191612441565b820191906000526020600020905b81548152906001019060200180831161242457829003601f168201915b5050506000898152600960205260409020600201805493975092612467925090506144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612493906144aa565b80156124e05780601f106124b5576101008083540402835291602001916124e0565b820191906000526020600020905b8154815290600101906020018083116124c357829003601f168201915b5050506000898152600960205260409020600301805493965092612506925090506144aa565b80601f0160208091040260200160405190810160405280929190818152602001828054612532906144aa565b801561257f5780601f106125545761010080835404028352916020019161257f565b820191906000526020600020905b81548152906001019060200180831161256257829003601f168201915b50505060008981526009602052604090206004018054939550926125a5925090506144aa565b80601f01602080910402602001604051908101604052809291908181526020018280546125d1906144aa565b801561261e5780601f106125f35761010080835404028352916020019161261e565b820191906000526020600020905b81548152906001019060200180831161260157829003601f168201915b5050505050905091939590929450565b606060018054610b9c906144aa565b6000828152600a602052604090205482906001600160a01b031633146126755760405162461bcd60e51b8152600401610c87906146c0565b506000918252600d602052604090912055565b6000818152600a602052604090205481906001600160a01b031633146126c05760405162461bcd60e51b8152600401610c87906146c0565b506000908152600960205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b6126fa3383836136f3565b5050565b6000828152600a602052604090205482906001600160a01b031633146127365760405162461bcd60e51b8152600401610c87906146c0565b6000838152600960209081526040909120835161167292600290920191850190613b2d565b6000828152600960205260409020600c01548290610100900460ff16156127945760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff16806127ca57506000818152600a60205260409020546001600160a01b031633145b6127e65760405162461bcd60e51b8152600401610c8790614509565b6000848152600960208181526040808420600a810154855290920181529120845161281392860190613b2d565b506000848152600960205260409020600a0154612831906001614553565b600094855260096020526040909420600a0193909355505050565b6000828152600960205260409020600c015482906301000000900460ff16156128875760405162461bcd60e51b8152600401610c879061458f565b33600090815260176020526040902054839060ff16806128bd57506000818152600a60205260409020546001600160a01b031633145b6128d95760405162461bcd60e51b8152600401610c8790614509565b6000848152600960205260409020600c0154600160201b900462ffffff168084106129165760405162461bcd60e51b8152600401610c87906145dd565b600061292360018361474a565b600087815260096020908152604080832062ffffff85168452600d019091528082208883529120815492935090918190839061295e906144aa565b612969929190613c25565b50600182810154828201805460ff90921692909160ff191690838181111561299357612993614067565b02179055505050600086815260096020908152604080832062ffffff85168452600d019091528120906129c68282613ca0565b50600101805460ff19169055600086815260096020526040808220600c01805462ffffff60201b1916600160201b62ffffff86160217905551869188917fa2290757ebb75dea327ace340daae74c1ac76aca04f6fd163fbf5b87e6d707599190a3505050505050565b6000838152600960205260409020600c01548390610100900460ff1615612a685760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054849060ff1680612a9e57506000818152600a60205260409020546001600160a01b031633145b612aba5760405162461bcd60e51b8152600401610c8790614509565b6000858152600960205260409020600a01548410612b125760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c87565b6000858152600960208181526040808420888552909201815291208451612b3b92860190613b2d565b505050505050565b6000828152600960205260409020600c01548290610100900460ff1615612b7c5760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680612bb257506000818152600a60205260409020546001600160a01b031633145b612bce5760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600190920191860190613b2d565b600880546112c2906144aa565b612c0a338361348d565b612c265760405162461bcd60e51b8152600401610c879061466f565b611672848484846137be565b33600090815260176020526040902054819060ff1680612c6857506000818152600a60205260409020546001600160a01b031633145b612c845760405162461bcd60e51b8152600401610c8790614509565b6000828152600960205260409020600c015482906301000000900460ff1615612cbf5760405162461bcd60e51b8152600401610c879061458f565b600083815260096020526040808220600c01805463ff000000191663010000001790555184917fcbd4f9053ca1f820efad7731ae6c938613bfef183ee6f03f61cc8d4ab583f5dc91a2505050565b6000828152600a602052604090205482906001600160a01b03163314612d455760405162461bcd60e51b8152600401610c87906146c0565b6064821115612d665760405162461bcd60e51b8152600401610c879061476e565b5060009182526010602052604090912055565b6000828152600960205260409020600c01548290610100900460ff1615612db25760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054839060ff1680612de857506000818152600a60205260409020546001600160a01b031633145b612e045760405162461bcd60e51b8152600401610c8790614509565b60008481526009602090815260409091208451610e6792600890920191860190613b2d565b606081612e3581613263565b612e7b5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610c87565b600083815260136020908152604080832054835260099091529020600501612ea2846137f1565b604051602001612eb39291906147af565b60405160208183030381529060405291505b50919050565b3360009081526017602052604090205460ff16612efa5760405162461bcd60e51b8152600401610c87906146e5565b6000908152600960205260409020600c01805460ff19811660ff90911615179055565b6000838152600a602052604090205483906001600160a01b03163314612f555760405162461bcd60e51b8152600401610c87906146c0565b6000848152600b602090815260409091208451612f7492860190613b2d565b50506000928352600c602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b3360009081526017602052604090205460ff16612fd55760405162461bcd60e51b8152600401610c87906146e5565b612fe160078383613bb1565b506000611961565b6000818152600960205260409020600c01548190610100900460ff16156130225760405162461bcd60e51b8152600401610c87906144df565b33600090815260176020526040902054829060ff168061305857506000818152600a60205260409020546001600160a01b031633145b6130745760405162461bcd60e51b8152600401610c8790614509565b6000838152600960205260409020600a01546130d25760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c87565b60008381526009602081905260408220600a810154910191906130f79060019061484d565b815260200190815260200160002060006131119190613ca0565b6000838152600960205260409020600a015461312f9060019061484d565b600093845260096020526040909320600a01929092555050565b6000838152600a602052604090205483906001600160a01b031633146131815760405162461bcd60e51b8152600401610c87906146c0565b60648211156131a25760405162461bcd60e51b8152600401610c879061476e565b506000928352600e6020908152604080852080546001600160a01b0319166001600160a01b039590951694909417909355600f9052912055565b6016546001600160a01b031633146132065760405162461bcd60e51b8152600401610c879061456b565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600780546112c2906144aa565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132b58261199e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260096020526040812060060154819061330f620f424085614864565b6133199190614553565b600084815260096020526040902060060154909150613339906001614553565b6000848152600960205260408120600601829055904361335a60018261484d565b40600660009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b1580156133a957600080fd5b505afa1580156133bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133e19190614883565b6040805160208101959095528401929092526060830152608082015260a00160408051601f19818403018152918152815160209283012060008581526014845282812082905581815260159093529120839055905061344085836138ee565b60008281526013602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061349882613263565b6134f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c87565b60006135048361199e565b9050806001600160a01b0316846001600160a01b0316148061353f5750836001600160a01b031661353484610c1f565b6001600160a01b0316145b8061354f575061354f8185613228565b949350505050565b826001600160a01b031661356a8261199e565b6001600160a01b0316146135ce5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c87565b6001600160a01b0382166136305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c87565b61363b600082613280565b6001600160a01b038316600090815260036020526040812080546001929061366490849061484d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613692908490614553565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156137515760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610c87565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6137c9848484613557565b6137d584848484613a20565b6116725760405162461bcd60e51b8152600401610c879061489c565b6060816138155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561383f5780613829816148ee565b91506138389050600a8361491f565b9150613819565b6000816001600160401b0381111561385957613859613df1565b6040519080825280601f01601f191660200182016040528015613883576020820181803683370190505b5090505b841561354f5761389860018361484d565b91506138a5600a86614933565b6138b0906030614553565b60f81b8183815181106138c5576138c5614947565b60200101906001600160f81b031916908160001a9053506138e7600a8661491f565b9450613887565b6001600160a01b0382166139445760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c87565b61394d81613263565b156139995760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610c87565b6001600160a01b03821660009081526003602052604081208054600192906139c2908490614553565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613b2257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613a6490339089908890889060040161495d565b602060405180830381600087803b158015613a7e57600080fd5b505af1925050508015613aae575060408051601f3d908101601f19168201909252613aab9181019061499a565b60015b613b08573d808015613adc576040519150601f19603f3d011682016040523d82523d6000602084013e613ae1565b606091505b508051613b005760405162461bcd60e51b8152600401610c879061489c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061354f565b506001949350505050565b828054613b39906144aa565b90600052602060002090601f016020900481019282613b5b5760008555613ba1565b82601f10613b7457805160ff1916838001178555613ba1565b82800160010185558215613ba1579182015b82811115613ba1578251825591602001919060010190613b86565b50613bad929150613cdd565b5090565b828054613bbd906144aa565b90600052602060002090601f016020900481019282613bdf5760008555613ba1565b82601f10613bf85782800160ff19823516178555613ba1565b82800160010185558215613ba1579182015b82811115613ba1578235825591602001919060010190613c0a565b828054613c31906144aa565b90600052602060002090601f016020900481019282613c535760008555613ba1565b82601f10613c645780548555613ba1565b82800160010185558215613ba157600052602060002091601f016020900482015b82811115613ba1578254825591600101919060010190613c85565b508054613cac906144aa565b6000825580601f10613cbc575050565b601f016020900490600052602060002090810190613cda9190613cdd565b50565b5b80821115613bad5760008155600101613cde565b6001600160e01b031981168114613cda57600080fd5b600060208284031215613d1a57600080fd5b8135613d2581613cf2565b9392505050565b60005b83811015613d47578181015183820152602001613d2f565b838111156116725750506000910152565b60008151808452613d70816020860160208601613d2c565b601f01601f19169290920160200192915050565b602081526000613d256020830184613d58565b600060208284031215613da957600080fd5b5035919050565b6001600160a01b0381168114613cda57600080fd5b60008060408385031215613dd857600080fd5b8235613de381613db0565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115613e2157613e21613df1565b604051601f8501601f19908116603f01168101908282118183101715613e4957613e49613df1565b81604052809350858152868686011115613e6257600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613e8d57600080fd5b613d2583833560208501613e07565b60008060408385031215613eaf57600080fd5b8235915060208301356001600160401b03811115613ecc57600080fd5b613ed885828601613e7c565b9150509250929050565b600080600060608486031215613ef757600080fd5b8335613f0281613db0565b9250602084013591506040840135613f1981613db0565b809150509250925092565b600060208284031215613f3657600080fd5b8135613d2581613db0565b60008083601f840112613f5357600080fd5b5081356001600160401b03811115613f6a57600080fd5b602083019150836020828501011115613f8257600080fd5b9250929050565b803560028110613f9857600080fd5b919050565b600080600080600060808688031215613fb557600080fd5b853594506020860135935060408601356001600160401b03811115613fd957600080fd5b613fe588828901613f41565b9094509250613ff8905060608701613f89565b90509295509295909350565b60008060006060848603121561401957600080fd5b833561402481613db0565b9250602084013561403481613db0565b929592945050506040919091013590565b6000806040838503121561405857600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6002811061409b57634e487b7160e01b600052602160045260246000fd5b9052565b6020815260008251604060208401526140bb6060840182613d58565b905060208401516140cf604085018261407d565b509392505050565b60a0815260006140ea60a0830188613d58565b86602084015282810360408401526141028187613d58565b941515606084015250509015156080909101529392505050565b6000806020838503121561412f57600080fd5b82356001600160401b0381111561414557600080fd5b61415185828601613f41565b90969095509350505050565b6000806000806060858703121561417357600080fd5b8435935060208501356001600160401b0381111561419057600080fd5b61419c87828801613f41565b90945092506141af905060408601613f89565b905092959194509250565b600080604083850312156141cd57600080fd5b8235915060208301356141df81613db0565b809150509250929050565b6000806000606084860312156141ff57600080fd5b83356001600160401b0381111561421557600080fd5b61422186828701613e7c565b935050602084013561403481613db0565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e085015261427d82850187613d58565b925080851661010085015250509a9950505050505050505050565b60a0815260006142ab60a0830188613d58565b82810360208401526142bd8188613d58565b905082810360408401526142d18187613d58565b905082810360608401526142e58186613d58565b905082810360808401526142f98185613d58565b98975050505050505050565b6000806040838503121561431857600080fd5b823561432381613db0565b9150602083013580151581146141df57600080fd5b60008060006060848603121561434d57600080fd5b833592506020840135915060408401356001600160401b0381111561437157600080fd5b61437d86828701613e7c565b9150509250925092565b6000806000806080858703121561439d57600080fd5b84356143a881613db0565b935060208501356143b881613db0565b92506040850135915060608501356001600160401b038111156143da57600080fd5b8501601f810187136143eb57600080fd5b6143fa87823560208401613e07565b91505092959194509250565b60008060006060848603121561441b57600080fd5b8335925060208401356001600160401b0381111561443857600080fd5b61444486828701613e7c565b9250506040840135613f1981613db0565b60008060006060848603121561446a57600080fd5b83359250602084013561403481613db0565b6000806040838503121561448f57600080fd5b823561449a81613db0565b915060208301356141df81613db0565b600181811c908216806144be57607f821691505b60208210811415612ec557634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527913db9b1e48185c9d1a5cdd081bdc881dda1a5d195b1a5cdd195960321b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156145665761456661453d565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b6020808252602e908201527f50726f6a6563742065787465726e616c20617373657420646570656e64656e6360408201526d1a595cc8185c99481b1bd8dad95960921b606082015260800190565b602080825260189082015277417373657420696e646578206f7574206f662072616e676560401b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60608152600061464c60608301868861460f565b905061465b602083018561407d565b62ffffff8316604083015295945050505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b60208152600061354f60208301848661460f565b600062ffffff8083168185168083038211156147415761474161453d565b01949350505050565b600062ffffff838116908316818110156147665761476661453d565b039392505050565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b600081516147a5818560208601613d2c565b9290920192915050565b600080845481600182811c9150808316806147cb57607f831692505b60208084108214156147eb57634e487b7160e01b86526022600452602486fd5b8180156147ff57600181146148105761483d565b60ff1986168952848901965061483d565b60008b81526020902060005b868110156148355781548b82015290850190830161481c565b505084890196505b5050505050506110688185614793565b60008282101561485f5761485f61453d565b500390565b600081600019048311821515161561487e5761487e61453d565b500290565b60006020828403121561489557600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156149025761490261453d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261492e5761492e614909565b500490565b60008261494257614942614909565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061499090830184613d58565b9695505050505050565b6000602082840312156149ac57600080fd5b8151613d2581613cf256fea26469706673582212200aac780752e614e6b3a0523afed014b60eafe7d02eaa0e013583cbe6f2f45bc864736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc40000000000000000000000000000000000000000000000000000000000000013427269676874204d6f6d656e747320466c657800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4d454e542d464c4558000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Bright Moments Flex
Arg [1] : _tokenSymbol (string): MOMENT-FLEX
Arg [2] : _randomizerContract (address): 0x088098F7438773182b703625C4128aFf85fcFfC4
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000088098f7438773182b703625c4128aff85fcffc4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [4] : 427269676874204d6f6d656e747320466c657800000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 4d4f4d454e542d464c4558000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.