ETH Price: $3,344.52 (-1.47%)

Contract

0x64780CE53f6e966E18a22Af13a2F97369580Ec11
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...212226662024-11-19 15:26:353 days ago1732029995IN
0x64780CE5...69580Ec11
0 ETH0.0009415520.40869997
Set Approval For...212225242024-11-19 14:57:593 days ago1732028279IN
0x64780CE5...69580Ec11
0 ETH0.0020362444.13656721
Set Approval For...212152302024-11-18 14:34:234 days ago1731940463IN
0x64780CE5...69580Ec11
0 ETH0.0007465316.15208091
Safe Transfer Fr...212091402024-11-17 18:12:355 days ago1731867155IN
0x64780CE5...69580Ec11
0 ETH0.0011519413.27794371
Set Approval For...212033302024-11-16 22:44:476 days ago1731797087IN
0x64780CE5...69580Ec11
0 ETH0.000451589.77060974
Set Approval For...211855652024-11-14 11:13:478 days ago1731582827IN
0x64780CE5...69580Ec11
0 ETH0.0015979834.57416423
Set Approval For...211744382024-11-12 21:57:4710 days ago1731448667IN
0x64780CE5...69580Ec11
0 ETH0.0013138728.47885494
Set Approval For...211392212024-11-08 0:02:2315 days ago1731024143IN
0x64780CE5...69580Ec11
0 ETH0.0009399420.37382533
Set Approval For...211350452024-11-07 10:01:2315 days ago1730973683IN
0x64780CE5...69580Ec11
0 ETH0.000990421.46756697
Set Approval For...211213502024-11-05 12:08:4717 days ago1730808527IN
0x64780CE5...69580Ec11
0 ETH0.000346637.49980765
Set Approval For...211038762024-11-03 1:37:1120 days ago1730597831IN
0x64780CE5...69580Ec11
0 ETH0.000082433.4
Set Approval For...211035932024-11-03 0:40:2320 days ago1730594423IN
0x64780CE5...69580Ec11
0 ETH0.000176333.822083
Set Approval For...211021122024-11-02 19:41:5920 days ago1730576519IN
0x64780CE5...69580Ec11
0 ETH0.000160416.61576997
Safe Transfer Fr...210973742024-11-02 3:48:2321 days ago1730519303IN
0x64780CE5...69580Ec11
0 ETH0.000429524.24885067
Safe Transfer Fr...210965812024-11-02 1:08:5921 days ago1730509739IN
0x64780CE5...69580Ec11
0 ETH0.000366423.37373822
Set Approval For...210883932024-10-31 21:44:3522 days ago1730411075IN
0x64780CE5...69580Ec11
0 ETH0.000351737.62408582
Safe Transfer Fr...210534082024-10-27 0:34:3527 days ago1729989275IN
0x64780CE5...69580Ec11
0 ETH0.00050265.8
Set Approval For...209666872024-10-14 22:08:1139 days ago1728943691IN
0x64780CE5...69580Ec11
0 ETH0.0006983915.1380957
Set Approval For...209570502024-10-13 13:48:3540 days ago1728827315IN
0x64780CE5...69580Ec11
0 ETH0.0003008812.42148178
Set Approval For...209468532024-10-12 3:30:3542 days ago1728703835IN
0x64780CE5...69580Ec11
0 ETH0.000387478.39876055
Set Approval For...209454142024-10-11 22:39:5942 days ago1728686399IN
0x64780CE5...69580Ec11
0 ETH0.0005058210.96405782
Transfer From209231142024-10-08 20:00:5945 days ago1728417659IN
0x64780CE5...69580Ec11
0 ETH0.0046031654.95268866
Set Approval For...209017942024-10-05 20:41:4748 days ago1728160907IN
0x64780CE5...69580Ec11
0 ETH0.000201594.36965321
Set Approval For...207999812024-09-21 15:55:2362 days ago1726934123IN
0x64780CE5...69580Ec11
0 ETH0.0008725718.91358453
Set Approval For...207766272024-09-18 9:36:5965 days ago1726652219IN
0x64780CE5...69580Ec11
0 ETH0.000432359.37155323
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenArt721CoreV2_ArtBlocksXPace

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 15 : GenArt721CoreV2_ArtBlocksXPace.sol
// 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 "../../interfaces/0.8.x/IGenArt721CoreContractV1.sol";

import "@openzeppelin/contracts/utils/Strings.sol";

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

pragma solidity 0.8.9;

/**
 * @title Art Blocks Partnership ERC-721 core contract.
 * @author Art Blocks Inc.
 * @dev conforms to V1 and V2_PBAB interfaces
 */
contract GenArt721CoreV2_ArtBlocksXPace is
    ERC721Enumerable,
    IGenArt721CoreV2_PBAB,
    IGenArt721CoreContractV1
{
    /// randomizer contract
    IRandomizer public randomizerContract;

    struct Project {
        string name;
        string artist;
        string description;
        string website;
        string license;
        string projectBaseURI;
        uint256 invocations;
        uint256 maxInvocations;
        string scriptJSON;
        mapping(uint256 => string) scripts;
        uint256 scriptCount;
        string ipfsHash;
        bool active;
        bool locked;
        bool paused;
    }

    uint256 constant ONE_MILLION = 1_000_000;
    mapping(uint256 => Project) projects;

    //All financial functions are stripped from struct for visibility
    mapping(uint256 => address payable)
        public
        override(
            IGenArt721CoreContractV1,
            IGenArt721CoreV2_PBAB
        ) projectIdToArtistAddress;
    mapping(uint256 => string) public projectIdToCurrencySymbol;
    mapping(uint256 => address) public projectIdToCurrencyAddress;
    mapping(uint256 => uint256) public projectIdToPricePerTokenInWei;
    mapping(uint256 => address payable)
        public
        override(
            IGenArt721CoreContractV1,
            IGenArt721CoreV2_PBAB
        ) projectIdToAdditionalPayee;
    mapping(uint256 => uint256)
        public
        override(
            IGenArt721CoreContractV1,
            IGenArt721CoreV2_PBAB
        ) 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
        override(
            IGenArt721CoreContractV1,
            IGenArt721CoreV2_PBAB
        ) tokenIdToProjectId;
    mapping(uint256 => bytes32) public tokenIdToHash;
    mapping(bytes32 => uint256) public hashToTokenId;

    /// admin for contract
    address
        public
        override(IGenArt721CoreContractV1, IGenArt721CoreV2_PBAB) admin;
    /// true if address is whitelisted
    mapping(address => bool)
        public
        override(IGenArt721CoreContractV1, IGenArt721CoreV2_PBAB) isWhitelisted;
    /// true if minter is whitelisted
    mapping(address => bool) public isMintWhitelisted;

    /// next project ID to be created
    uint256
        public
        override(
            IGenArt721CoreContractV1,
            IGenArt721CoreV2_PBAB
        ) nextProjectId = 0;

    modifier onlyValidTokenId(uint256 _tokenId) {
        require(_exists(_tokenId), "Token ID does not exist");
        _;
    }

    modifier onlyUnlocked(uint256 _projectId) {
        require(!projects[_projectId].locked, "Only if unlocked");
        _;
    }

    modifier onlyArtist(uint256 _projectId) {
        require(
            msg.sender == projectIdToArtistAddress[_projectId],
            "Only artist"
        );
        _;
    }

    modifier onlyAdmin() {
        require(msg.sender == admin, "Only admin");
        _;
    }

    modifier onlyWhitelisted() {
        require(isWhitelisted[msg.sender], "Only whitelisted");
        _;
    }

    modifier onlyArtistOrWhitelisted(uint256 _projectId) {
        require(
            isWhitelisted[msg.sender] ||
                msg.sender == projectIdToArtistAddress[_projectId],
            "Only artist or whitelisted"
        );
        _;
    }

    /**
     * @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
        override(IGenArt721CoreContractV1, IGenArt721CoreV2_PBAB)
        returns (uint256 _tokenId)
    {
        require(
            isMintWhitelisted[msg.sender],
            "Must mint from whitelisted minter contract."
        );
        require(
            projects[_projectId].invocations + 1 <=
                projects[_projectId].maxInvocations,
            "Must not exceed max invocations"
        );
        require(
            projects[_projectId].active ||
                _by == projectIdToArtistAddress[_projectId],
            "Project must exist and be active"
        );
        require(
            !projects[_projectId].paused ||
                _by == projectIdToArtistAddress[_projectId],
            "Purchases are paused."
        );

        uint256 tokenId = _mintToken(_to, _projectId);

        return tokenId;
    }

    function _mintToken(address _to, uint256 _projectId)
        internal
        returns (uint256 _tokenId)
    {
        uint256 tokenIdToBe = (_projectId * ONE_MILLION) +
            projects[_projectId].invocations;

        projects[_projectId].invocations = projects[_projectId].invocations + 1;

        bytes32 hash = keccak256(
            abi.encodePacked(
                projects[_projectId].invocations,
                block.number,
                blockhash(block.number - 1),
                randomizerContract.returnValue()
            )
        );
        tokenIdToHash[tokenIdToBe] = hash;
        hashToTokenId[hash] = tokenIdToBe;

        _mint(_to, tokenIdToBe);

        tokenIdToProjectId[tokenIdToBe] = _projectId;

        emit Mint(_to, tokenIdToBe, _projectId);

        return tokenIdToBe;
    }

    /**
     * @notice Updates contract admin to `_adminAddress`.
     */
    function updateAdmin(address _adminAddress) public onlyAdmin {
        admin = _adminAddress;
    }

    /**
     * @notice Updates render provider address to `_renderProviderAddress`.
     */
    function updateRenderProviderAddress(address payable _renderProviderAddress)
        public
        onlyAdmin
    {
        renderProviderAddress = _renderProviderAddress;
    }

    /**
     * @notice Updates render provider mint revenue percentage to
     * `_renderProviderPercentage`.
     */
    function updateRenderProviderPercentage(uint256 _renderProviderPercentage)
        public
        onlyAdmin
    {
        require(_renderProviderPercentage <= 25, "Max of 25%");
        renderProviderPercentage = _renderProviderPercentage;
    }

    /**
     * @notice Whitelists `_address`.
     */
    function addWhitelisted(address _address) public onlyAdmin {
        isWhitelisted[_address] = true;
    }

    /**
     * @notice Revokes whitelisting of `_address`.
     */
    function removeWhitelisted(address _address) public onlyAdmin {
        isWhitelisted[_address] = false;
    }

    /**
     * @notice Whitelists minter `_address`.
     */
    function addMintWhitelisted(address _address) public onlyAdmin {
        isMintWhitelisted[_address] = true;
    }

    /**
     * @notice Revokes whitelisting of minter `_address`.
     */
    function removeMintWhitelisted(address _address) public onlyAdmin {
        isMintWhitelisted[_address] = false;
    }

    /**
     * @notice Updates randomizer to `_randomizerAddress`.
     */
    function updateRandomizerAddress(address _randomizerAddress)
        public
        onlyWhitelisted
    {
        randomizerContract = IRandomizer(_randomizerAddress);
    }

    /**
     * @notice Locks project `_projectId`.
     */
    function toggleProjectIsLocked(uint256 _projectId)
        public
        onlyWhitelisted
        onlyUnlocked(_projectId)
    {
        projects[_projectId].locked = true;
    }

    /**
     * @notice Toggles project `_projectId` as active/inactive.
     */
    function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted {
        projects[_projectId].active = !projects[_projectId].active;
    }

    /**
     * @notice Updates artist of project `_projectId` to `_artistAddress`.
     */
    function updateProjectArtistAddress(
        uint256 _projectId,
        address payable _artistAddress
    ) public onlyArtistOrWhitelisted(_projectId) {
        projectIdToArtistAddress[_projectId] = _artistAddress;
    }

    /**
     * @notice Toggles paused state of project `_projectId`.
     */
    function toggleProjectIsPaused(uint256 _projectId)
        public
        onlyArtist(_projectId)
    {
        projects[_projectId].paused = !projects[_projectId].paused;
    }

    /**
     * @notice Adds new project `_projectName` by `_artistAddress`.
     * @param _projectName Project name.
     * @param _artistAddress Artist's address.
     * @param _pricePerTokenInWei Price to mint a token, in Wei.
     */
    function addProject(
        string memory _projectName,
        address payable _artistAddress,
        uint256 _pricePerTokenInWei
    ) public onlyWhitelisted {
        uint256 projectId = nextProjectId;
        projectIdToArtistAddress[projectId] = _artistAddress;
        projects[projectId].name = _projectName;
        projectIdToCurrencySymbol[projectId] = "ETH";
        projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei;
        projects[projectId].paused = true;
        projects[projectId].maxInvocations = ONE_MILLION;
        nextProjectId = nextProjectId + 1;
    }

    /**
     * @notice Updates payment currency of project `_projectId` to be
     * `_currencySymbol`.
     * @param _projectId Project ID to update.
     * @param _currencySymbol Currency symbol.
     * @param _currencyAddress Currency address.
     */
    function updateProjectCurrencyInfo(
        uint256 _projectId,
        string memory _currencySymbol,
        address _currencyAddress
    ) public onlyArtist(_projectId) {
        projectIdToCurrencySymbol[_projectId] = _currencySymbol;
        projectIdToCurrencyAddress[_projectId] = _currencyAddress;
    }

    /**
     * @notice Updates price per token of project `_projectId` to be
     * '_pricePerTokenInWei`, in Wei.
     */
    function updateProjectPricePerTokenInWei(
        uint256 _projectId,
        uint256 _pricePerTokenInWei
    ) public onlyArtist(_projectId) {
        projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei;
    }

    /**
     * @notice Updates name of project `_projectId` to be `_projectName`.
     */
    function updateProjectName(uint256 _projectId, string memory _projectName)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].name = _projectName;
    }

    /**
     * @notice Updates artist name for project `_projectId` to be
     * `_projectArtistName`.
     */
    function updateProjectArtistName(
        uint256 _projectId,
        string memory _projectArtistName
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].artist = _projectArtistName;
    }

    /**
     * @notice Updates additional payee for project `_projectId` to be
     * `_additionalPayee`, receiving `_additionalPayeePercentage` percent
     * of artist mint and royalty revenues.
     */
    function updateProjectAdditionalPayeeInfo(
        uint256 _projectId,
        address payable _additionalPayee,
        uint256 _additionalPayeePercentage
    ) public onlyArtist(_projectId) {
        require(_additionalPayeePercentage <= 100, "Max of 100%");
        projectIdToAdditionalPayee[_projectId] = _additionalPayee;
        projectIdToAdditionalPayeePercentage[
            _projectId
        ] = _additionalPayeePercentage;
    }

    /**
     * @notice Updates artist secondary market royalties for project
     * `_projectId` to be `_secondMarketRoyalty` percent.
     */
    function updateProjectSecondaryMarketRoyaltyPercentage(
        uint256 _projectId,
        uint256 _secondMarketRoyalty
    ) public onlyArtist(_projectId) {
        require(_secondMarketRoyalty <= 100, "Max of 100%");
        projectIdToSecondaryMarketRoyaltyPercentage[
            _projectId
        ] = _secondMarketRoyalty;
    }

    /**
     * @notice Updates description of project `_projectId`.
     */
    function updateProjectDescription(
        uint256 _projectId,
        string memory _projectDescription
    ) public onlyArtist(_projectId) {
        projects[_projectId].description = _projectDescription;
    }

    /**
     * @notice Updates website of project `_projectId` to be `_projectWebsite`.
     */
    function updateProjectWebsite(
        uint256 _projectId,
        string memory _projectWebsite
    ) public onlyArtist(_projectId) {
        projects[_projectId].website = _projectWebsite;
    }

    /**
     * @notice Updates license for project `_projectId`.
     */
    function updateProjectLicense(
        uint256 _projectId,
        string memory _projectLicense
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].license = _projectLicense;
    }

    /**
     * @notice Updates maximum invocations for project `_projectId` to
     * `_maxInvocations`.
     */
    function updateProjectMaxInvocations(
        uint256 _projectId,
        uint256 _maxInvocations
    ) public onlyArtist(_projectId) {
        require(
            (!projects[_projectId].locked ||
                _maxInvocations < projects[_projectId].maxInvocations),
            "Only if unlocked"
        );
        require(
            _maxInvocations > projects[_projectId].invocations,
            "You must set max invocations greater than current invocations"
        );
        require(_maxInvocations <= ONE_MILLION, "Cannot exceed 1000000");
        projects[_projectId].maxInvocations = _maxInvocations;
    }

    /**
     * @notice Adds a script to project `_projectId`.
     * @param _projectId Project to be updated.
     * @param _script Script to be added.
     */
    function addProjectScript(uint256 _projectId, string memory _script)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].scripts[
            projects[_projectId].scriptCount
        ] = _script;
        projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1;
    }

    /**
     * @notice Updates script for project `_projectId` at script ID `_scriptId`.
     * @param _projectId Project to be updated.
     * @param _scriptId Script ID to be updated.
     * @param _script Script to be added.
     */
    function updateProjectScript(
        uint256 _projectId,
        uint256 _scriptId,
        string memory _script
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        require(
            _scriptId < projects[_projectId].scriptCount,
            "scriptId out of range"
        );
        projects[_projectId].scripts[_scriptId] = _script;
    }

    /**
     * @notice Removes last script from project `_projectId`.
     */
    function removeProjectLastScript(uint256 _projectId)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        require(
            projects[_projectId].scriptCount > 0,
            "there are no scripts to remove"
        );
        delete projects[_projectId].scripts[
            projects[_projectId].scriptCount - 1
        ];
        projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1;
    }

    /**
     * @notice Updates script json for project `_projectId`.
     */
    function updateProjectScriptJSON(
        uint256 _projectId,
        string memory _projectScriptJSON
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].scriptJSON = _projectScriptJSON;
    }

    /**
     * @notice Updates ipfs hash for project `_projectId`.
     */
    function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].ipfsHash = _ipfsHash;
    }

    /**
     * @notice Updates base URI for project `_projectId` to `_newBaseURI`.
     */
    function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI)
        public
        onlyArtist(_projectId)
    {
        projects[_projectId].projectBaseURI = _newBaseURI;
    }

    /**
     * @notice Returns project details for project `_projectId`.
     * @param _projectId Project to be queried.
     * @return projectName Name of project
     * @return artist Artist of project
     * @return description Project description
     * @return website Project website
     * @return license Project license
     */
    function projectDetails(uint256 _projectId)
        public
        view
        returns (
            string memory projectName,
            string memory artist,
            string memory description,
            string memory website,
            string memory license
        )
    {
        projectName = projects[_projectId].name;
        artist = projects[_projectId].artist;
        description = projects[_projectId].description;
        website = projects[_projectId].website;
        license = projects[_projectId].license;
    }

    /**
     * @notice Returns project token information for project `_projectId`.
     * @param _projectId Project to be queried.
     * @return artistAddress Project Artist's address
     * @return pricePerTokenInWei Price to mint a token, in Wei
     * @return invocations Current number of invocations
     * @return maxInvocations Maximum allowed invocations
     * @return active Boolean representing if project is currently active
     * @return additionalPayee Additional payee address
     * @return additionalPayeePercentage Percentage of artist revenue
     * to be sent to the additional payee's address
     * @return currency Symbol of project's currency
     * @return currencyAddress Address of project's currency
     */
    function projectTokenInfo(uint256 _projectId)
        public
        view
        override(IGenArt721CoreContractV1, IGenArt721CoreV2_PBAB)
        returns (
            address artistAddress,
            uint256 pricePerTokenInWei,
            uint256 invocations,
            uint256 maxInvocations,
            bool active,
            address additionalPayee,
            uint256 additionalPayeePercentage,
            string memory currency,
            address currencyAddress
        )
    {
        artistAddress = projectIdToArtistAddress[_projectId];
        pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId];
        invocations = projects[_projectId].invocations;
        maxInvocations = projects[_projectId].maxInvocations;
        active = projects[_projectId].active;
        additionalPayee = projectIdToAdditionalPayee[_projectId];
        additionalPayeePercentage = projectIdToAdditionalPayeePercentage[
            _projectId
        ];
        currency = projectIdToCurrencySymbol[_projectId];
        currencyAddress = projectIdToCurrencyAddress[_projectId];
    }

    /**
     * @notice Returns script information for project `_projectId`.
     * @param _projectId Project to be queried.
     * @return scriptJSON Project's script json
     * @return scriptCount Count of scripts for project
     * @return ipfsHash IPFS hash for project
     * @return locked Boolean representing if project is locked
     * @return paused Boolean representing if project is paused
     */
    function projectScriptInfo(uint256 _projectId)
        public
        view
        returns (
            string memory scriptJSON,
            uint256 scriptCount,
            string memory ipfsHash,
            bool locked,
            bool paused
        )
    {
        scriptJSON = projects[_projectId].scriptJSON;
        scriptCount = projects[_projectId].scriptCount;
        ipfsHash = projects[_projectId].ipfsHash;
        locked = projects[_projectId].locked;
        paused = projects[_projectId].paused;
    }

    /**
     * @notice Returns script for project `_projectId` at script index `_index`.
     */
    function projectScriptByIndex(uint256 _projectId, uint256 _index)
        public
        view
        returns (string memory)
    {
        return projects[_projectId].scripts[_index];
    }

    /**
     * @notice Returns base URI for project `_projectId`.
     */
    function projectURIInfo(uint256 _projectId)
        public
        view
        returns (string memory projectBaseURI)
    {
        projectBaseURI = projects[_projectId].projectBaseURI;
    }

    /**
     * @notice Returns Art Blocks payment address.
     * @dev shim to conform to `IGenArt721CoreContractV1`
     */
    function artblocksAddress() external view returns (address payable) {
        return renderProviderAddress;
    }

    /**
     * @notice Returns percentage of mint revenue allocated to Art Blocks.
     * @dev shim to conform to `IGenArt721CoreContractV1`
     */
    function artblocksPercentage() external view returns (uint256) {
        return renderProviderPercentage;
    }

    /**
     * @notice Gets royalty data for token ID `_tokenId`.
     * @param _tokenId Token ID to be queried.
     * @return artistAddress Artist's payment address
     * @return additionalPayee Additional payee's payment address
     * @return additionalPayeePercentage Percentage of artist revenue
     * to be sent to the additional payee's address
     * @return royaltyFeeByID Total royalty percentage to be sent to
     * combination of artist and additional payee
     */
    function getRoyaltyData(uint256 _tokenId)
        public
        view
        override(IGenArt721CoreContractV1, IGenArt721CoreV2_PBAB)
        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)
                )
            );
    }
}

File 2 of 15 : IRandomizer.sol
// 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);
}

File 3 of 15 : IGenArt721CoreV2_PBAB.sol
// 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
        );
}

File 4 of 15 : IGenArt721CoreContractV1.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

interface IGenArt721CoreContractV1 {
    // 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);

    // @dev this is not available in V0
    function isMintWhitelisted(address minter) external view returns (bool);

    function projectIdToArtistAddress(uint256 _projectId)
        external
        view
        returns (address payable);

    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 artblocksAddress() external view returns (address payable);

    function artblocksPercentage() 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
        );
}

File 5 of 15 : Strings.sol
// 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);
    }
}

File 6 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 15 : ERC721.sol
// 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 {}
}

File 8 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 9 of 15 : IERC721.sol
// 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;
}

File 10 of 15 : IERC721Receiver.sol
// 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);
}

File 11 of 15 : IERC721Metadata.sol
// 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);
}

File 12 of 15 : Address.sol
// 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);
            }
        }
    }
}

File 13 of 15 : Context.sol
// 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;
    }
}

File 14 of 15 : ERC165.sol
// 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;
    }
}

File 15 of 15 : IERC165.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_projectName","type":"string"},{"internalType":"address payable","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artblocksAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artblocksPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyData","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"uint256","name":"royaltyFeeByID","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"_by","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectDetails","outputs":[{"internalType":"string","name":"projectName","type":"string"},{"internalType":"string","name":"artist","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"license","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToAdditionalPayeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToArtistAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToCurrencySymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToPricePerTokenInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectIdToSecondaryMarketRoyaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectScriptInfo","outputs":[{"internalType":"string","name":"scriptJSON","type":"string"},{"internalType":"uint256","name":"scriptCount","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectTokenInfo","outputs":[{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"invocations","type":"uint256"},{"internalType":"uint256","name":"maxInvocations","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"additionalPayee","type":"address"},{"internalType":"uint256","name":"additionalPayeePercentage","type":"uint256"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectURIInfo","outputs":[{"internalType":"string","name":"projectBaseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizerContract","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMintWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderProviderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderProviderPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"toggleProjectIsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_additionalPayee","type":"address"},{"internalType":"uint256","name":"_additionalPayeePercentage","type":"uint256"}],"name":"updateProjectAdditionalPayeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address payable","name":"_artistAddress","type":"address"}],"name":"updateProjectArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectArtistName","type":"string"}],"name":"updateProjectArtistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateProjectBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectDescription","type":"string"}],"name":"updateProjectDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateProjectIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectLicense","type":"string"}],"name":"updateProjectLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"updateProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"updateProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updateProjectPricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectScriptJSON","type":"string"}],"name":"updateProjectScriptJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_secondMarketRoyalty","type":"uint256"}],"name":"updateProjectSecondaryMarketRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"updateProjectWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_randomizerAddress","type":"address"}],"name":"updateRandomizerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_renderProviderAddress","type":"address"}],"name":"updateRenderProviderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_renderProviderPercentage","type":"uint256"}],"name":"updateRenderProviderPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a6014556000601b553480156200001b57600080fd5b50604051620043e3380380620043e38339810160408190526200003e9162000241565b82518390839062000057906000906020850190620000ce565b5080516200006d906001906020840190620000ce565b505060188054336001600160a01b031991821681179092556000828152601960205260409020805460ff19166001179055601380548216909217909155600a80549091166001600160a01b039390931692909217909155506200030b915050565b828054620000dc90620002ce565b90600052602060002090601f0160209004810192826200010057600085556200014b565b82601f106200011b57805160ff19168380011785556200014b565b828001600101855582156200014b579182015b828111156200014b5782518255916020019190600101906200012e565b50620001599291506200015d565b5090565b5b808211156200015957600081556001016200015e565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019c57600080fd5b81516001600160401b0380821115620001b957620001b962000174565b604051601f8301601f19908116603f01168101908282118183101715620001e457620001e462000174565b816040528381526020925086838588010111156200020157600080fd5b600091505b8382101562000225578582018301518183018401529082019062000206565b83821115620002375760008385830101525b9695505050505050565b6000806000606084860312156200025757600080fd5b83516001600160401b03808211156200026f57600080fd5b6200027d878388016200018a565b945060208601519150808211156200029457600080fd5b50620002a3868287016200018a565b604086015190935090506001600160a01b0381168114620002c357600080fd5b809150509250925092565b600181811c90821680620002e357607f821691505b602082108114156200030557634e487b7160e01b600052602260045260246000fd5b50919050565b6140c8806200031b6000396000f3fe608060405234801561001057600080fd5b506004361061039d5760003560e01c8063867f1a3b116101eb578063b88d4fde11610110578063db2ff861116100a8578063db2ff8611461097d578063e13208b414610990578063e2f273bd146109a3578063e935b7b1146109b6578063e985e9c5146109bf578063ed8abfda146109d2578063f51f74a9146109f2578063f70c0f0414610a12578063f851a44014610a3257600080fd5b8063b88d4fde146108af578063c34a03b5146108c2578063c6d73231146108d5578063c87b56dd146108e8578063cc74234b146108fb578063cfbf4d971461091b578063d03c390c1461092e578063d195b36514610941578063d7b044b61461095457600080fd5b8063a11ec70a11610183578063a11ec70a1461076f578063a22cb46514610782578063a3b2cca614610795578063a47d29cb146107a8578063a65ff74c146107d1578063acad012414610853578063ad0305ce14610866578063b1656ba314610889578063b7b04fae1461089c57600080fd5b8063867f1a3b146106a95780638763ad1e146106bc5780638ba8f14d146106cf5780638bddb0a6146106e25780638c2c3622146106f55780638c3c9cdd1461071d5780638dd91a561461073057806395d89b411461075457806397dc86cf1461075c57600080fd5b806336c7c12c116102d15780634f029c39116102695780634f029c39146105fc5780634f6ccce714610604578063621a1f74146106175780636352211e1461063757806369d14faf1461064a5780636b6ec8a61461065d5780636c907b7f1461067057806370a0823114610683578063826fc3911461069657600080fd5b806336c7c12c1461051c578063378599631461052f5780633949f906146105425780633af32abf146105535780633e48e848146105765780633fef6c2a1461058957806342842e0e1461059c578063498dd0c1146105af5780634aa6d417146105d857600080fd5b806318160ddd1161034457806318160ddd146104795780631b689c0b1461048157806320927ec9146104a157806323b872dd146104b457806325b75d68146104c7578063291d9549146104da5780632d9c0205146104ed5780632e9eb74f146105005780632f745c591461050957600080fd5b806301ffc9a7146103a257806306fdde03146103ca578063081812fc146103df578063095ea7b31461040a5780630d1706731461041f5780630d4d15131461043257806310154bad1461045357806311f5fdf114610466575b600080fd5b6103b56103b03660046136da565b610a45565b60405190151581526020015b60405180910390f35b6103d2610a70565b6040516103c19190613756565b6103f26103ed366004613769565b610b02565b6040516001600160a01b0390911681526020016103c1565b61041d610418366004613797565b610b8f565b005b61041d61042d36600461386e565b610ca0565b6104456104403660046138b4565b610d51565b6040519081526020016103c1565b61041d6104613660046138f6565b610f54565b61041d610474366004613769565b610fa2565b600854610445565b61044561048f366004613769565b60156020526000908152604090205481565b6103d26104af366004613769565b61100f565b61041d6104c2366004613913565b6110a9565b61041d6104d536600461386e565b6110da565b61041d6104e83660046138f6565b61118a565b6103d26104fb366004613769565b6111d5565b61044560145481565b610445610517366004613797565b61127a565b600a546103f2906001600160a01b031681565b61041d61053d36600461386e565b611310565b6013546001600160a01b03166103f2565b6103b56105613660046138f6565b60196020526000908152604090205460ff1681565b61041d61058436600461386e565b611373565b61041d61059736600461386e565b6113d0565b61041d6105aa366004613913565b611480565b6103f26105bd366004613769565b600e602052600090815260409020546001600160a01b031681565b6105eb6105e6366004613769565b61149b565b6040516103c1959493929190613954565b601454610445565b610445610612366004613769565b61161d565b610445610625366004613769565b60166020526000908152604090205481565b6103f2610645366004613769565b6116b0565b61041d610658366004613999565b611727565b61041d61066b3660046138f6565b6117a8565b61041d61067e3660046138f6565b6117f4565b6104456106913660046138f6565b611845565b61041d6106a43660046139c9565b6118cc565b61041d6106b73660046138f6565b611a3d565b61041d6106ca3660046139eb565b611a88565b61041d6106dd366004613769565b611b80565b61041d6106f03660046138f6565b611c09565b610708610703366004613769565b611c57565b6040516103c199989796959493929190613a33565b6103d261072b3660046139c9565b611d78565b61074361073e366004613769565b611e29565b6040516103c1959493929190613a99565b6103d2612157565b61041d61076a3660046139c9565b612166565b61041d61077d366004613769565b6121b1565b61041d610790366004613b06565b612218565b61041d6107a336600461386e565b612227565b6103f26107b6366004613769565b600c602052600090815260409020546001600160a01b031681565b6108286107df366004613769565b6000908152601560209081526040808320548352600c82528083205460108352818420546011845282852054601290945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103c1565b61041d61086136600461386e565b612284565b6103b56108743660046138f6565b601a6020526000908152604090205460ff1681565b61041d610897366004613b39565b612376565b61041d6108aa36600461386e565b61248b565b61041d6108bd366004613b88565b61253b565b61041d6108d03660046139c9565b61256d565b61041d6108e336600461386e565b6125d9565b6103d26108f6366004613769565b612689565b610445610909366004613769565b60116020526000908152604090205481565b6013546103f2906001600160a01b031681565b61041d61093c366004613769565b61272b565b61041d61094f366004613c07565b61277d565b6103f2610962366004613769565b6010602052600090815260409020546001600160a01b031681565b61041d61098b366004613769565b612806565b61041d61099e366004613c56565b612967565b61041d6109b13660046138f6565b6129fa565b610445601b5481565b6103b56109cd366004613c7d565b612a46565b6104456109e0366004613769565b60126020526000908152604090205481565b610445610a00366004613769565b60176020526000908152604090205481565b610445610a20366004613769565b600f6020526000908152604090205481565b6018546103f2906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b1480610a6a5750610a6a82612a74565b92915050565b606060008054610a7f90613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054610aab90613cab565b8015610af85780601f10610acd57610100808354040283529160200191610af8565b820191906000526020600020905b815481529060010190602001808311610adb57829003601f168201915b5050505050905090565b6000610b0d82612ac4565b610b735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b9a826116b0565b9050806001600160a01b0316836001600160a01b03161415610c085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b6a565b336001600160a01b0382161480610c245750610c248133612a46565b610c915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610b6a565b610c9b8383612ae1565b505050565b6000828152600b60205260409020600c01548290610100900460ff1615610cd95760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff1680610d0f57506000818152600c60205260409020546001600160a01b031633145b610d2b5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a928601906135ee565b5050505050565b336000908152601a602052604081205460ff16610dc45760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610b6a565b6000838152600b602052604090206007810154600690910154610de8906001613d57565b1115610e365760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610b6a565b6000838152600b60205260409020600c015460ff1680610e6f57506000838152600c60205260409020546001600160a01b038381169116145b610ebb5760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610b6a565b6000838152600b60205260409020600c015462010000900460ff161580610efb57506000838152600c60205260409020546001600160a01b038381169116145b610f3f5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610b6a565b6000610f4b8585612b4f565b95945050505050565b6018546001600160a01b03163314610f7e5760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601960205260409020805460ff19166001179055565b6018546001600160a01b03163314610fcc5760405162461bcd60e51b8152600401610b6a90613d6f565b601981111561100a5760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610b6a565b601455565b600d602052600090815260409020805461102890613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461105490613cab565b80156110a15780601f10611076576101008083540402835291602001916110a1565b820191906000526020600020905b81548152906001019060200180831161108457829003601f168201915b505050505081565b6110b33382612cee565b6110cf5760405162461bcd60e51b8152600401610b6a90613d93565b610c9b838383612db8565b6000828152600b60205260409020600c01548290610100900460ff16156111135760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061114957506000818152600c60205260409020546001600160a01b031633145b6111655760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926004909201918601906135ee565b6018546001600160a01b031633146111b45760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601960205260409020805460ff19169055565b6000818152600b602052604090206005018054606091906111f590613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461122190613cab565b801561126e5780601f106112435761010080835404028352916020019161126e565b820191906000526020600020905b81548152906001019060200180831161125157829003601f168201915b50505050509050919050565b600061128583611845565b82106112e75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b6a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000828152600c602052604090205482906001600160a01b031633146113485760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926003909201918501906135ee565b50505050565b6000828152600c602052604090205482906001600160a01b031633146113ab5760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926005909201918501906135ee565b6000828152600b60205260409020600c01548290610100900460ff16156114095760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061143f57506000818152600c60205260409020546001600160a01b031633145b61145b5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602081815260409092208551610d4a939190920191908601906135ee565b610c9b8383836040518060200160405280600081525061253b565b606060006060600080600b600087815260200190815260200160002060080180546114c590613cab565b80601f01602080910402602001604051908101604052809291908181526020018280546114f190613cab565b801561153e5780601f106115135761010080835404028352916020019161153e565b820191906000526020600020905b81548152906001019060200180831161152157829003601f168201915b5050506000898152600b60208190526040909120600a810154910180549499509097509261156e92509050613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461159a90613cab565b80156115e75780601f106115bc576101008083540402835291602001916115e7565b820191906000526020600020905b8154815290600101906020018083116115ca57829003601f168201915b50505060009889525050600b6020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b600061162860085490565b821061168b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b6a565b6008828154811061169e5761169e613e09565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610a6a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b6a565b33600090815260196020526040902054829060ff168061175d57506000818152600c60205260409020546001600160a01b031633145b6117795760405162461bcd60e51b8152600401610b6a90613d0a565b506000918252600c602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6018546001600160a01b031633146117d25760405162461bcd60e51b8152600401610b6a90613d6f565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526019602052604090205460ff166118235760405162461bcd60e51b8152600401610b6a90613e1f565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b6a565b506001600160a01b031660009081526003602052604090205490565b6000828152600c602052604090205482906001600160a01b031633146119045760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60205260409020600c0154610100900460ff16158061193a57506000838152600b602052604090206007015482105b6119565760405162461bcd60e51b8152600401610b6a90613ce0565b6000838152600b602052604090206006015482116119dc5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610b6a565b620f4240821115611a275760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610b6a565b506000918252600b602052604090912060070155565b6018546001600160a01b03163314611a675760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601a60205260409020805460ff19169055565b3360009081526019602052604090205460ff16611ab75760405162461bcd60e51b8152600401610b6a90613e1f565b601b546000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038816179055600b82529091208551611af9928701906135ee565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600d909152929092209051611b3092906135ee565b506000818152600f60209081526040808320859055600b9091529020600c8101805462ff0000191662010000179055620f4240600790910155601b54611b77906001613d57565b601b5550505050565b3360009081526019602052604090205460ff16611baf5760405162461bcd60e51b8152600401610b6a90613e1f565b6000818152600b60205260409020600c01548190610100900460ff1615611be85760405162461bcd60e51b8152600401610b6a90613ce0565b506000908152600b60205260409020600c01805461ff001916610100179055565b6018546001600160a01b03163314611c335760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6000818152600c6020818152604080842054600f835281852054600b845282862060068101546007820154919096015460108652848820546011875285892054600d90975294882080546001600160a01b0395861699949897939660ff9093169590921693606092909190611ccb90613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf790613cab565b8015611d445780601f10611d1957610100808354040283529160200191611d44565b820191906000526020600020905b815481529060010190602001808311611d2757829003601f168201915b50505060009c8d525050600e6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600b602090815260408083208484526009019091529020805460609190611da390613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcf90613cab565b8015611e1c5780601f10611df157610100808354040283529160200191611e1c565b820191906000526020600020905b815481529060010190602001808311611dff57829003601f168201915b5050505050905092915050565b6060806060806060600b60008781526020019081526020016000206000018054611e5290613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7e90613cab565b8015611ecb5780601f10611ea057610100808354040283529160200191611ecb565b820191906000526020600020905b815481529060010190602001808311611eae57829003601f168201915b5050506000898152600b60205260409020600101805493985092611ef192509050613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1d90613cab565b8015611f6a5780601f10611f3f57610100808354040283529160200191611f6a565b820191906000526020600020905b815481529060010190602001808311611f4d57829003601f168201915b5050506000898152600b60205260409020600201805493975092611f9092509050613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbc90613cab565b80156120095780601f10611fde57610100808354040283529160200191612009565b820191906000526020600020905b815481529060010190602001808311611fec57829003601f168201915b5050506000898152600b6020526040902060030180549396509261202f92509050613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461205b90613cab565b80156120a85780601f1061207d576101008083540402835291602001916120a8565b820191906000526020600020905b81548152906001019060200180831161208b57829003601f168201915b5050506000898152600b602052604090206004018054939550926120ce92509050613cab565b80601f01602080910402602001604051908101604052809291908181526020018280546120fa90613cab565b80156121475780601f1061211c57610100808354040283529160200191612147565b820191906000526020600020905b81548152906001019060200180831161212a57829003601f168201915b5050505050905091939590929450565b606060018054610a7f90613cab565b6000828152600c602052604090205482906001600160a01b0316331461219e5760405162461bcd60e51b8152600401610b6a90613de4565b506000918252600f602052604090912055565b6000818152600c602052604090205481906001600160a01b031633146121e95760405162461bcd60e51b8152600401610b6a90613de4565b506000908152600b60205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612223338383612f5f565b5050565b6000828152600c602052604090205482906001600160a01b0316331461225f5760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926002909201918501906135ee565b6000828152600b60205260409020600c01548290610100900460ff16156122bd5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff16806122f357506000818152600c60205260409020546001600160a01b031633145b61230f5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b60209081526040808320600a81015484526009018252909120845161233d928601906135ee565b506000848152600b60205260409020600a015461235b906001613d57565b6000948552600b6020526040909420600a0193909355505050565b6000838152600b60205260409020600c01548390610100900460ff16156123af5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054849060ff16806123e557506000818152600c60205260409020546001600160a01b031633145b6124015760405162461bcd60e51b8152600401610b6a90613d0a565b6000858152600b60205260409020600a015484106124595760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610b6a565b6000858152600b6020908152604080832087845260090182529091208451612483928601906135ee565b505050505050565b6000828152600b60205260409020600c01548290610100900460ff16156124c45760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff16806124fa57506000818152600c60205260409020546001600160a01b031633145b6125165760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926001909201918601906135ee565b6125453383612cee565b6125615760405162461bcd60e51b8152600401610b6a90613d93565b61136d8484848461302a565b6000828152600c602052604090205482906001600160a01b031633146125a55760405162461bcd60e51b8152600401610b6a90613de4565b60648211156125c65760405162461bcd60e51b8152600401610b6a90613e49565b5060009182526012602052604090912055565b6000828152600b60205260409020600c01548290610100900460ff16156126125760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061264857506000818152600c60205260409020546001600160a01b031633145b6126645760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926008909201918601906135ee565b60608161269581612ac4565b6126db5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610b6a565b6000838152601560209081526040808320548352600b90915290206005016127028461305d565b604051602001612713929190613e8a565b60405160208183030381529060405291505b50919050565b3360009081526019602052604090205460ff1661275a5760405162461bcd60e51b8152600401610b6a90613e1f565b6000908152600b60205260409020600c01805460ff19811660ff90911615179055565b6000838152600c602052604090205483906001600160a01b031633146127b55760405162461bcd60e51b8152600401610b6a90613de4565b6000848152600d6020908152604090912084516127d4928601906135ee565b50506000928352600e602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600b60205260409020600c01548190610100900460ff161561283f5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054829060ff168061287557506000818152600c60205260409020546001600160a01b031633145b6128915760405162461bcd60e51b8152600401610b6a90613d0a565b6000838152600b60205260409020600a01546128ef5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610b6a565b6000838152600b60205260408120600a8101546009909101919061291590600190613f28565b8152602001908152602001600020600061292f9190613672565b6000838152600b60205260409020600a015461294d90600190613f28565b6000938452600b6020526040909320600a01929092555050565b6000838152600c602052604090205483906001600160a01b0316331461299f5760405162461bcd60e51b8152600401610b6a90613de4565b60648211156129c05760405162461bcd60e51b8152600401610b6a90613e49565b50600092835260106020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560119052912055565b6018546001600160a01b03163314612a245760405162461bcd60e51b8152600401610b6a90613d6f565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b1480612aa557506001600160e01b03198216635b5e139f60e01b145b80610a6a57506301ffc9a760e01b6001600160e01b0319831614610a6a565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b16826116b0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600b60205260408120600601548190612b70620f424085613f3f565b612b7a9190613d57565b6000848152600b6020526040902060060154909150612b9a906001613d57565b6000848152600b602052604081206006018290559043612bbb600182613f28565b40600a60009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b158015612c0a57600080fd5b505afa158015612c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c429190613f5e565b6040805160208101959095528401929092526060830152608082015260a00160408051601f198184030181529181528151602092830120600085815260168452828120829055818152601790935291208390559050612ca1858361315a565b60008281526015602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b6000612cf982612ac4565b612d5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b6a565b6000612d65836116b0565b9050806001600160a01b0316846001600160a01b03161480612da05750836001600160a01b0316612d9584610b02565b6001600160a01b0316145b80612db05750612db08185612a46565b949350505050565b826001600160a01b0316612dcb826116b0565b6001600160a01b031614612e2f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b6a565b6001600160a01b038216612e915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b6a565b612e9c838383613299565b612ea7600082612ae1565b6001600160a01b0383166000908152600360205260408120805460019290612ed0908490613f28565b90915550506001600160a01b0382166000908152600360205260408120805460019290612efe908490613d57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612fbd5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610b6a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613035848484612db8565b61304184848484613351565b61136d5760405162461bcd60e51b8152600401610b6a90613f77565b6060816130815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130ab578061309581613fc9565b91506130a49050600a83613ffa565b9150613085565b6000816001600160401b038111156130c5576130c56137c3565b6040519080825280601f01601f1916602001820160405280156130ef576020820181803683370190505b5090505b8415612db057613104600183613f28565b9150613111600a8661400e565b61311c906030613d57565b60f81b81838151811061313157613131613e09565b60200101906001600160f81b031916908160001a905350613153600a86613ffa565b94506130f3565b6001600160a01b0382166131b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b6a565b6131b981612ac4565b156132065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b6a565b61321260008383613299565b6001600160a01b038216600090815260036020526040812080546001929061323b908490613d57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166132f4576132ef81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613317565b816001600160a01b0316836001600160a01b03161461331757613317838261345e565b6001600160a01b03821661332e57610c9b816134fb565b826001600160a01b0316826001600160a01b031614610c9b57610c9b82826135aa565b60006001600160a01b0384163b1561345357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613395903390899088908890600401614022565b602060405180830381600087803b1580156133af57600080fd5b505af19250505080156133df575060408051601f3d908101601f191682019092526133dc9181019061405f565b60015b613439573d80801561340d576040519150601f19603f3d011682016040523d82523d6000602084013e613412565b606091505b5080516134315760405162461bcd60e51b8152600401610b6a90613f77565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612db0565b506001949350505050565b6000600161346b84611845565b6134759190613f28565b6000838152600760205260409020549091508082146134c8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061350d90600190613f28565b6000838152600960205260408120546008805493945090928490811061353557613535613e09565b90600052602060002001549050806008838154811061355657613556613e09565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061358e5761358e61407c565b6001900381819060005260206000200160009055905550505050565b60006135b583611845565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546135fa90613cab565b90600052602060002090601f01602090048101928261361c5760008555613662565b82601f1061363557805160ff1916838001178555613662565b82800160010185558215613662579182015b82811115613662578251825591602001919060010190613647565b5061366e9291506136af565b5090565b50805461367e90613cab565b6000825580601f1061368e575050565b601f0160209004906000526020600020908101906136ac91906136af565b50565b5b8082111561366e57600081556001016136b0565b6001600160e01b0319811681146136ac57600080fd5b6000602082840312156136ec57600080fd5b81356136f7816136c4565b9392505050565b60005b83811015613719578181015183820152602001613701565b8381111561136d5750506000910152565b600081518084526137428160208601602086016136fe565b601f01601f19169290920160200192915050565b6020815260006136f7602083018461372a565b60006020828403121561377b57600080fd5b5035919050565b6001600160a01b03811681146136ac57600080fd5b600080604083850312156137aa57600080fd5b82356137b581613782565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156137f3576137f36137c3565b604051601f8501601f19908116603f0116810190828211818310171561381b5761381b6137c3565b8160405280935085815286868601111561383457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261385f57600080fd5b6136f7838335602085016137d9565b6000806040838503121561388157600080fd5b8235915060208301356001600160401b0381111561389e57600080fd5b6138aa8582860161384e565b9150509250929050565b6000806000606084860312156138c957600080fd5b83356138d481613782565b92506020840135915060408401356138eb81613782565b809150509250925092565b60006020828403121561390857600080fd5b81356136f781613782565b60008060006060848603121561392857600080fd5b833561393381613782565b9250602084013561394381613782565b929592945050506040919091013590565b60a08152600061396760a083018861372a565b866020840152828103604084015261397f818761372a565b941515606084015250509015156080909101529392505050565b600080604083850312156139ac57600080fd5b8235915060208301356139be81613782565b809150509250929050565b600080604083850312156139dc57600080fd5b50508035926020909101359150565b600080600060608486031215613a0057600080fd5b83356001600160401b03811115613a1657600080fd5b613a228682870161384e565b935050602084013561394381613782565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613a7e8285018761372a565b925080851661010085015250509a9950505050505050505050565b60a081526000613aac60a083018861372a565b8281036020840152613abe818861372a565b90508281036040840152613ad2818761372a565b90508281036060840152613ae6818661372a565b90508281036080840152613afa818561372a565b98975050505050505050565b60008060408385031215613b1957600080fd5b8235613b2481613782565b9150602083013580151581146139be57600080fd5b600080600060608486031215613b4e57600080fd5b833592506020840135915060408401356001600160401b03811115613b7257600080fd5b613b7e8682870161384e565b9150509250925092565b60008060008060808587031215613b9e57600080fd5b8435613ba981613782565b93506020850135613bb981613782565b92506040850135915060608501356001600160401b03811115613bdb57600080fd5b8501601f81018713613bec57600080fd5b613bfb878235602084016137d9565b91505092959194509250565b600080600060608486031215613c1c57600080fd5b8335925060208401356001600160401b03811115613c3957600080fd5b613c458682870161384e565b92505060408401356138eb81613782565b600080600060608486031215613c6b57600080fd5b83359250602084013561394381613782565b60008060408385031215613c9057600080fd5b8235613c9b81613782565b915060208301356139be81613782565b600181811c90821680613cbf57607f821691505b6020821081141561272557634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527f4f6e6c7920617274697374206f722077686974656c6973746564000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d6a57613d6a613d41565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b60008151613e808185602086016136fe565b9290920192915050565b600080845481600182811c915080831680613ea657607f831692505b6020808410821415613ec657634e487b7160e01b86526022600452602486fd5b818015613eda5760018114613eeb57613f18565b60ff19861689528489019650613f18565b60008b81526020902060005b86811015613f105781548b820152908501908301613ef7565b505084890196505b505050505050610f4b8185613e6e565b600082821015613f3a57613f3a613d41565b500390565b6000816000190483118215151615613f5957613f59613d41565b500290565b600060208284031215613f7057600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613fdd57613fdd613d41565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261400957614009613fe4565b500490565b60008261401d5761401d613fe4565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140559083018461372a565b9695505050505050565b60006020828403121561407157600080fd5b81516136f7816136c4565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203569aa0ddbff30e5de1ef1577a00ccdac6358785655e82b13b587d6bfce8a21d64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc4000000000000000000000000000000000000000000000000000000000000001141727420426c6f636b732078205061636500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074142585041434500000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061039d5760003560e01c8063867f1a3b116101eb578063b88d4fde11610110578063db2ff861116100a8578063db2ff8611461097d578063e13208b414610990578063e2f273bd146109a3578063e935b7b1146109b6578063e985e9c5146109bf578063ed8abfda146109d2578063f51f74a9146109f2578063f70c0f0414610a12578063f851a44014610a3257600080fd5b8063b88d4fde146108af578063c34a03b5146108c2578063c6d73231146108d5578063c87b56dd146108e8578063cc74234b146108fb578063cfbf4d971461091b578063d03c390c1461092e578063d195b36514610941578063d7b044b61461095457600080fd5b8063a11ec70a11610183578063a11ec70a1461076f578063a22cb46514610782578063a3b2cca614610795578063a47d29cb146107a8578063a65ff74c146107d1578063acad012414610853578063ad0305ce14610866578063b1656ba314610889578063b7b04fae1461089c57600080fd5b8063867f1a3b146106a95780638763ad1e146106bc5780638ba8f14d146106cf5780638bddb0a6146106e25780638c2c3622146106f55780638c3c9cdd1461071d5780638dd91a561461073057806395d89b411461075457806397dc86cf1461075c57600080fd5b806336c7c12c116102d15780634f029c39116102695780634f029c39146105fc5780634f6ccce714610604578063621a1f74146106175780636352211e1461063757806369d14faf1461064a5780636b6ec8a61461065d5780636c907b7f1461067057806370a0823114610683578063826fc3911461069657600080fd5b806336c7c12c1461051c578063378599631461052f5780633949f906146105425780633af32abf146105535780633e48e848146105765780633fef6c2a1461058957806342842e0e1461059c578063498dd0c1146105af5780634aa6d417146105d857600080fd5b806318160ddd1161034457806318160ddd146104795780631b689c0b1461048157806320927ec9146104a157806323b872dd146104b457806325b75d68146104c7578063291d9549146104da5780632d9c0205146104ed5780632e9eb74f146105005780632f745c591461050957600080fd5b806301ffc9a7146103a257806306fdde03146103ca578063081812fc146103df578063095ea7b31461040a5780630d1706731461041f5780630d4d15131461043257806310154bad1461045357806311f5fdf114610466575b600080fd5b6103b56103b03660046136da565b610a45565b60405190151581526020015b60405180910390f35b6103d2610a70565b6040516103c19190613756565b6103f26103ed366004613769565b610b02565b6040516001600160a01b0390911681526020016103c1565b61041d610418366004613797565b610b8f565b005b61041d61042d36600461386e565b610ca0565b6104456104403660046138b4565b610d51565b6040519081526020016103c1565b61041d6104613660046138f6565b610f54565b61041d610474366004613769565b610fa2565b600854610445565b61044561048f366004613769565b60156020526000908152604090205481565b6103d26104af366004613769565b61100f565b61041d6104c2366004613913565b6110a9565b61041d6104d536600461386e565b6110da565b61041d6104e83660046138f6565b61118a565b6103d26104fb366004613769565b6111d5565b61044560145481565b610445610517366004613797565b61127a565b600a546103f2906001600160a01b031681565b61041d61053d36600461386e565b611310565b6013546001600160a01b03166103f2565b6103b56105613660046138f6565b60196020526000908152604090205460ff1681565b61041d61058436600461386e565b611373565b61041d61059736600461386e565b6113d0565b61041d6105aa366004613913565b611480565b6103f26105bd366004613769565b600e602052600090815260409020546001600160a01b031681565b6105eb6105e6366004613769565b61149b565b6040516103c1959493929190613954565b601454610445565b610445610612366004613769565b61161d565b610445610625366004613769565b60166020526000908152604090205481565b6103f2610645366004613769565b6116b0565b61041d610658366004613999565b611727565b61041d61066b3660046138f6565b6117a8565b61041d61067e3660046138f6565b6117f4565b6104456106913660046138f6565b611845565b61041d6106a43660046139c9565b6118cc565b61041d6106b73660046138f6565b611a3d565b61041d6106ca3660046139eb565b611a88565b61041d6106dd366004613769565b611b80565b61041d6106f03660046138f6565b611c09565b610708610703366004613769565b611c57565b6040516103c199989796959493929190613a33565b6103d261072b3660046139c9565b611d78565b61074361073e366004613769565b611e29565b6040516103c1959493929190613a99565b6103d2612157565b61041d61076a3660046139c9565b612166565b61041d61077d366004613769565b6121b1565b61041d610790366004613b06565b612218565b61041d6107a336600461386e565b612227565b6103f26107b6366004613769565b600c602052600090815260409020546001600160a01b031681565b6108286107df366004613769565b6000908152601560209081526040808320548352600c82528083205460108352818420546011845282852054601290945291909320546001600160a01b03938416949390911692565b604080516001600160a01b0395861681529490931660208501529183015260608201526080016103c1565b61041d61086136600461386e565b612284565b6103b56108743660046138f6565b601a6020526000908152604090205460ff1681565b61041d610897366004613b39565b612376565b61041d6108aa36600461386e565b61248b565b61041d6108bd366004613b88565b61253b565b61041d6108d03660046139c9565b61256d565b61041d6108e336600461386e565b6125d9565b6103d26108f6366004613769565b612689565b610445610909366004613769565b60116020526000908152604090205481565b6013546103f2906001600160a01b031681565b61041d61093c366004613769565b61272b565b61041d61094f366004613c07565b61277d565b6103f2610962366004613769565b6010602052600090815260409020546001600160a01b031681565b61041d61098b366004613769565b612806565b61041d61099e366004613c56565b612967565b61041d6109b13660046138f6565b6129fa565b610445601b5481565b6103b56109cd366004613c7d565b612a46565b6104456109e0366004613769565b60126020526000908152604090205481565b610445610a00366004613769565b60176020526000908152604090205481565b610445610a20366004613769565b600f6020526000908152604090205481565b6018546103f2906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b1480610a6a5750610a6a82612a74565b92915050565b606060008054610a7f90613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054610aab90613cab565b8015610af85780601f10610acd57610100808354040283529160200191610af8565b820191906000526020600020905b815481529060010190602001808311610adb57829003601f168201915b5050505050905090565b6000610b0d82612ac4565b610b735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b9a826116b0565b9050806001600160a01b0316836001600160a01b03161415610c085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b6a565b336001600160a01b0382161480610c245750610c248133612a46565b610c915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610b6a565b610c9b8383612ae1565b505050565b6000828152600b60205260409020600c01548290610100900460ff1615610cd95760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff1680610d0f57506000818152600c60205260409020546001600160a01b031633145b610d2b5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a928601906135ee565b5050505050565b336000908152601a602052604081205460ff16610dc45760405162461bcd60e51b815260206004820152602b60248201527f4d757374206d696e742066726f6d2077686974656c6973746564206d696e746560448201526a391031b7b73a3930b1ba1760a91b6064820152608401610b6a565b6000838152600b602052604090206007810154600690910154610de8906001613d57565b1115610e365760405162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e73006044820152606401610b6a565b6000838152600b60205260409020600c015460ff1680610e6f57506000838152600c60205260409020546001600160a01b038381169116145b610ebb5760405162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e64206265206163746976656044820152606401610b6a565b6000838152600b60205260409020600c015462010000900460ff161580610efb57506000838152600c60205260409020546001600160a01b038381169116145b610f3f5760405162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b6044820152606401610b6a565b6000610f4b8585612b4f565b95945050505050565b6018546001600160a01b03163314610f7e5760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601960205260409020805460ff19166001179055565b6018546001600160a01b03163314610fcc5760405162461bcd60e51b8152600401610b6a90613d6f565b601981111561100a5760405162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b6044820152606401610b6a565b601455565b600d602052600090815260409020805461102890613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461105490613cab565b80156110a15780601f10611076576101008083540402835291602001916110a1565b820191906000526020600020905b81548152906001019060200180831161108457829003601f168201915b505050505081565b6110b33382612cee565b6110cf5760405162461bcd60e51b8152600401610b6a90613d93565b610c9b838383612db8565b6000828152600b60205260409020600c01548290610100900460ff16156111135760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061114957506000818152600c60205260409020546001600160a01b031633145b6111655760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926004909201918601906135ee565b6018546001600160a01b031633146111b45760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601960205260409020805460ff19169055565b6000818152600b602052604090206005018054606091906111f590613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461122190613cab565b801561126e5780601f106112435761010080835404028352916020019161126e565b820191906000526020600020905b81548152906001019060200180831161125157829003601f168201915b50505050509050919050565b600061128583611845565b82106112e75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b6a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000828152600c602052604090205482906001600160a01b031633146113485760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926003909201918501906135ee565b50505050565b6000828152600c602052604090205482906001600160a01b031633146113ab5760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926005909201918501906135ee565b6000828152600b60205260409020600c01548290610100900460ff16156114095760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061143f57506000818152600c60205260409020546001600160a01b031633145b61145b5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602081815260409092208551610d4a939190920191908601906135ee565b610c9b8383836040518060200160405280600081525061253b565b606060006060600080600b600087815260200190815260200160002060080180546114c590613cab565b80601f01602080910402602001604051908101604052809291908181526020018280546114f190613cab565b801561153e5780601f106115135761010080835404028352916020019161153e565b820191906000526020600020905b81548152906001019060200180831161152157829003601f168201915b5050506000898152600b60208190526040909120600a810154910180549499509097509261156e92509050613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461159a90613cab565b80156115e75780601f106115bc576101008083540402835291602001916115e7565b820191906000526020600020905b8154815290600101906020018083116115ca57829003601f168201915b50505060009889525050600b6020526040909620600c0154949693959460ff610100820481169562010000909204169350915050565b600061162860085490565b821061168b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b6a565b6008828154811061169e5761169e613e09565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610a6a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b6a565b33600090815260196020526040902054829060ff168061175d57506000818152600c60205260409020546001600160a01b031633145b6117795760405162461bcd60e51b8152600401610b6a90613d0a565b506000918252600c602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6018546001600160a01b031633146117d25760405162461bcd60e51b8152600401610b6a90613d6f565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526019602052604090205460ff166118235760405162461bcd60e51b8152600401610b6a90613e1f565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b6a565b506001600160a01b031660009081526003602052604090205490565b6000828152600c602052604090205482906001600160a01b031633146119045760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60205260409020600c0154610100900460ff16158061193a57506000838152600b602052604090206007015482105b6119565760405162461bcd60e51b8152600401610b6a90613ce0565b6000838152600b602052604090206006015482116119dc5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610b6a565b620f4240821115611a275760405162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b6044820152606401610b6a565b506000918252600b602052604090912060070155565b6018546001600160a01b03163314611a675760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601a60205260409020805460ff19169055565b3360009081526019602052604090205460ff16611ab75760405162461bcd60e51b8152600401610b6a90613e1f565b601b546000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038816179055600b82529091208551611af9928701906135ee565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600d909152929092209051611b3092906135ee565b506000818152600f60209081526040808320859055600b9091529020600c8101805462ff0000191662010000179055620f4240600790910155601b54611b77906001613d57565b601b5550505050565b3360009081526019602052604090205460ff16611baf5760405162461bcd60e51b8152600401610b6a90613e1f565b6000818152600b60205260409020600c01548190610100900460ff1615611be85760405162461bcd60e51b8152600401610b6a90613ce0565b506000908152600b60205260409020600c01805461ff001916610100179055565b6018546001600160a01b03163314611c335760405162461bcd60e51b8152600401610b6a90613d6f565b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6000818152600c6020818152604080842054600f835281852054600b845282862060068101546007820154919096015460108652848820546011875285892054600d90975294882080546001600160a01b0395861699949897939660ff9093169590921693606092909190611ccb90613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf790613cab565b8015611d445780601f10611d1957610100808354040283529160200191611d44565b820191906000526020600020905b815481529060010190602001808311611d2757829003601f168201915b50505060009c8d525050600e6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600b602090815260408083208484526009019091529020805460609190611da390613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcf90613cab565b8015611e1c5780601f10611df157610100808354040283529160200191611e1c565b820191906000526020600020905b815481529060010190602001808311611dff57829003601f168201915b5050505050905092915050565b6060806060806060600b60008781526020019081526020016000206000018054611e5290613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7e90613cab565b8015611ecb5780601f10611ea057610100808354040283529160200191611ecb565b820191906000526020600020905b815481529060010190602001808311611eae57829003601f168201915b5050506000898152600b60205260409020600101805493985092611ef192509050613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1d90613cab565b8015611f6a5780601f10611f3f57610100808354040283529160200191611f6a565b820191906000526020600020905b815481529060010190602001808311611f4d57829003601f168201915b5050506000898152600b60205260409020600201805493975092611f9092509050613cab565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbc90613cab565b80156120095780601f10611fde57610100808354040283529160200191612009565b820191906000526020600020905b815481529060010190602001808311611fec57829003601f168201915b5050506000898152600b6020526040902060030180549396509261202f92509050613cab565b80601f016020809104026020016040519081016040528092919081815260200182805461205b90613cab565b80156120a85780601f1061207d576101008083540402835291602001916120a8565b820191906000526020600020905b81548152906001019060200180831161208b57829003601f168201915b5050506000898152600b602052604090206004018054939550926120ce92509050613cab565b80601f01602080910402602001604051908101604052809291908181526020018280546120fa90613cab565b80156121475780601f1061211c57610100808354040283529160200191612147565b820191906000526020600020905b81548152906001019060200180831161212a57829003601f168201915b5050505050905091939590929450565b606060018054610a7f90613cab565b6000828152600c602052604090205482906001600160a01b0316331461219e5760405162461bcd60e51b8152600401610b6a90613de4565b506000918252600f602052604090912055565b6000818152600c602052604090205481906001600160a01b031633146121e95760405162461bcd60e51b8152600401610b6a90613de4565b506000908152600b60205260409020600c01805462ff0000198116620100009182900460ff1615909102179055565b612223338383612f5f565b5050565b6000828152600c602052604090205482906001600160a01b0316331461225f5760405162461bcd60e51b8152600401610b6a90613de4565b6000838152600b60209081526040909120835161136d926002909201918501906135ee565b6000828152600b60205260409020600c01548290610100900460ff16156122bd5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff16806122f357506000818152600c60205260409020546001600160a01b031633145b61230f5760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b60209081526040808320600a81015484526009018252909120845161233d928601906135ee565b506000848152600b60205260409020600a015461235b906001613d57565b6000948552600b6020526040909420600a0193909355505050565b6000838152600b60205260409020600c01548390610100900460ff16156123af5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054849060ff16806123e557506000818152600c60205260409020546001600160a01b031633145b6124015760405162461bcd60e51b8152600401610b6a90613d0a565b6000858152600b60205260409020600a015484106124595760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610b6a565b6000858152600b6020908152604080832087845260090182529091208451612483928601906135ee565b505050505050565b6000828152600b60205260409020600c01548290610100900460ff16156124c45760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff16806124fa57506000818152600c60205260409020546001600160a01b031633145b6125165760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926001909201918601906135ee565b6125453383612cee565b6125615760405162461bcd60e51b8152600401610b6a90613d93565b61136d8484848461302a565b6000828152600c602052604090205482906001600160a01b031633146125a55760405162461bcd60e51b8152600401610b6a90613de4565b60648211156125c65760405162461bcd60e51b8152600401610b6a90613e49565b5060009182526012602052604090912055565b6000828152600b60205260409020600c01548290610100900460ff16156126125760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054839060ff168061264857506000818152600c60205260409020546001600160a01b031633145b6126645760405162461bcd60e51b8152600401610b6a90613d0a565b6000848152600b602090815260409091208451610d4a926008909201918601906135ee565b60608161269581612ac4565b6126db5760405162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b6044820152606401610b6a565b6000838152601560209081526040808320548352600b90915290206005016127028461305d565b604051602001612713929190613e8a565b60405160208183030381529060405291505b50919050565b3360009081526019602052604090205460ff1661275a5760405162461bcd60e51b8152600401610b6a90613e1f565b6000908152600b60205260409020600c01805460ff19811660ff90911615179055565b6000838152600c602052604090205483906001600160a01b031633146127b55760405162461bcd60e51b8152600401610b6a90613de4565b6000848152600d6020908152604090912084516127d4928601906135ee565b50506000928352600e602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6000818152600b60205260409020600c01548190610100900460ff161561283f5760405162461bcd60e51b8152600401610b6a90613ce0565b33600090815260196020526040902054829060ff168061287557506000818152600c60205260409020546001600160a01b031633145b6128915760405162461bcd60e51b8152600401610b6a90613d0a565b6000838152600b60205260409020600a01546128ef5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610b6a565b6000838152600b60205260408120600a8101546009909101919061291590600190613f28565b8152602001908152602001600020600061292f9190613672565b6000838152600b60205260409020600a015461294d90600190613f28565b6000938452600b6020526040909320600a01929092555050565b6000838152600c602052604090205483906001600160a01b0316331461299f5760405162461bcd60e51b8152600401610b6a90613de4565b60648211156129c05760405162461bcd60e51b8152600401610b6a90613e49565b50600092835260106020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560119052912055565b6018546001600160a01b03163314612a245760405162461bcd60e51b8152600401610b6a90613d6f565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b1480612aa557506001600160e01b03198216635b5e139f60e01b145b80610a6a57506301ffc9a760e01b6001600160e01b0319831614610a6a565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b16826116b0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600b60205260408120600601548190612b70620f424085613f3f565b612b7a9190613d57565b6000848152600b6020526040902060060154909150612b9a906001613d57565b6000848152600b602052604081206006018290559043612bbb600182613f28565b40600a60009054906101000a90046001600160a01b03166001600160a01b031663990c8f796040518163ffffffff1660e01b815260040160206040518083038186803b158015612c0a57600080fd5b505afa158015612c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c429190613f5e565b6040805160208101959095528401929092526060830152608082015260a00160408051601f198184030181529181528151602092830120600085815260168452828120829055818152601790935291208390559050612ca1858361315a565b60008281526015602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b6000612cf982612ac4565b612d5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b6a565b6000612d65836116b0565b9050806001600160a01b0316846001600160a01b03161480612da05750836001600160a01b0316612d9584610b02565b6001600160a01b0316145b80612db05750612db08185612a46565b949350505050565b826001600160a01b0316612dcb826116b0565b6001600160a01b031614612e2f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b6a565b6001600160a01b038216612e915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b6a565b612e9c838383613299565b612ea7600082612ae1565b6001600160a01b0383166000908152600360205260408120805460019290612ed0908490613f28565b90915550506001600160a01b0382166000908152600360205260408120805460019290612efe908490613d57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415612fbd5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610b6a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613035848484612db8565b61304184848484613351565b61136d5760405162461bcd60e51b8152600401610b6a90613f77565b6060816130815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130ab578061309581613fc9565b91506130a49050600a83613ffa565b9150613085565b6000816001600160401b038111156130c5576130c56137c3565b6040519080825280601f01601f1916602001820160405280156130ef576020820181803683370190505b5090505b8415612db057613104600183613f28565b9150613111600a8661400e565b61311c906030613d57565b60f81b81838151811061313157613131613e09565b60200101906001600160f81b031916908160001a905350613153600a86613ffa565b94506130f3565b6001600160a01b0382166131b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b6a565b6131b981612ac4565b156132065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b6a565b61321260008383613299565b6001600160a01b038216600090815260036020526040812080546001929061323b908490613d57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166132f4576132ef81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613317565b816001600160a01b0316836001600160a01b03161461331757613317838261345e565b6001600160a01b03821661332e57610c9b816134fb565b826001600160a01b0316826001600160a01b031614610c9b57610c9b82826135aa565b60006001600160a01b0384163b1561345357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613395903390899088908890600401614022565b602060405180830381600087803b1580156133af57600080fd5b505af19250505080156133df575060408051601f3d908101601f191682019092526133dc9181019061405f565b60015b613439573d80801561340d576040519150601f19603f3d011682016040523d82523d6000602084013e613412565b606091505b5080516134315760405162461bcd60e51b8152600401610b6a90613f77565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612db0565b506001949350505050565b6000600161346b84611845565b6134759190613f28565b6000838152600760205260409020549091508082146134c8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061350d90600190613f28565b6000838152600960205260408120546008805493945090928490811061353557613535613e09565b90600052602060002001549050806008838154811061355657613556613e09565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061358e5761358e61407c565b6001900381819060005260206000200160009055905550505050565b60006135b583611845565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546135fa90613cab565b90600052602060002090601f01602090048101928261361c5760008555613662565b82601f1061363557805160ff1916838001178555613662565b82800160010185558215613662579182015b82811115613662578251825591602001919060010190613647565b5061366e9291506136af565b5090565b50805461367e90613cab565b6000825580601f1061368e575050565b601f0160209004906000526020600020908101906136ac91906136af565b50565b5b8082111561366e57600081556001016136b0565b6001600160e01b0319811681146136ac57600080fd5b6000602082840312156136ec57600080fd5b81356136f7816136c4565b9392505050565b60005b83811015613719578181015183820152602001613701565b8381111561136d5750506000910152565b600081518084526137428160208601602086016136fe565b601f01601f19169290920160200192915050565b6020815260006136f7602083018461372a565b60006020828403121561377b57600080fd5b5035919050565b6001600160a01b03811681146136ac57600080fd5b600080604083850312156137aa57600080fd5b82356137b581613782565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156137f3576137f36137c3565b604051601f8501601f19908116603f0116810190828211818310171561381b5761381b6137c3565b8160405280935085815286868601111561383457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261385f57600080fd5b6136f7838335602085016137d9565b6000806040838503121561388157600080fd5b8235915060208301356001600160401b0381111561389e57600080fd5b6138aa8582860161384e565b9150509250929050565b6000806000606084860312156138c957600080fd5b83356138d481613782565b92506020840135915060408401356138eb81613782565b809150509250925092565b60006020828403121561390857600080fd5b81356136f781613782565b60008060006060848603121561392857600080fd5b833561393381613782565b9250602084013561394381613782565b929592945050506040919091013590565b60a08152600061396760a083018861372a565b866020840152828103604084015261397f818761372a565b941515606084015250509015156080909101529392505050565b600080604083850312156139ac57600080fd5b8235915060208301356139be81613782565b809150509250929050565b600080604083850312156139dc57600080fd5b50508035926020909101359150565b600080600060608486031215613a0057600080fd5b83356001600160401b03811115613a1657600080fd5b613a228682870161384e565b935050602084013561394381613782565b600061012060018060a01b03808d1684528b60208501528a6040850152896060850152881515608085015280881660a08501528660c08501528160e0850152613a7e8285018761372a565b925080851661010085015250509a9950505050505050505050565b60a081526000613aac60a083018861372a565b8281036020840152613abe818861372a565b90508281036040840152613ad2818761372a565b90508281036060840152613ae6818661372a565b90508281036080840152613afa818561372a565b98975050505050505050565b60008060408385031215613b1957600080fd5b8235613b2481613782565b9150602083013580151581146139be57600080fd5b600080600060608486031215613b4e57600080fd5b833592506020840135915060408401356001600160401b03811115613b7257600080fd5b613b7e8682870161384e565b9150509250925092565b60008060008060808587031215613b9e57600080fd5b8435613ba981613782565b93506020850135613bb981613782565b92506040850135915060608501356001600160401b03811115613bdb57600080fd5b8501601f81018713613bec57600080fd5b613bfb878235602084016137d9565b91505092959194509250565b600080600060608486031215613c1c57600080fd5b8335925060208401356001600160401b03811115613c3957600080fd5b613c458682870161384e565b92505060408401356138eb81613782565b600080600060608486031215613c6b57600080fd5b83359250602084013561394381613782565b60008060408385031215613c9057600080fd5b8235613c9b81613782565b915060208301356139be81613782565b600181811c90821680613cbf57607f821691505b6020821081141561272557634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e481a59881d5b9b1bd8dad95960821b604082015260600190565b6020808252601a908201527f4f6e6c7920617274697374206f722077686974656c6973746564000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d6a57613d6a613d41565b500190565b6020808252600a908201526927b7363c9030b236b4b760b11b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a13db9b1e48185c9d1a5cdd60aa1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526010908201526f13db9b1e481dda1a5d195b1a5cdd195960821b604082015260600190565b6020808252600b908201526a4d6178206f66203130302560a81b604082015260600190565b60008151613e808185602086016136fe565b9290920192915050565b600080845481600182811c915080831680613ea657607f831692505b6020808410821415613ec657634e487b7160e01b86526022600452602486fd5b818015613eda5760018114613eeb57613f18565b60ff19861689528489019650613f18565b60008b81526020902060005b86811015613f105781548b820152908501908301613ef7565b505084890196505b505050505050610f4b8185613e6e565b600082821015613f3a57613f3a613d41565b500390565b6000816000190483118215151615613f5957613f59613d41565b500290565b600060208284031215613f7057600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613fdd57613fdd613d41565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261400957614009613fe4565b500490565b60008261401d5761401d613fe4565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140559083018461372a565b9695505050505050565b60006020828403121561407157600080fd5b81516136f7816136c4565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203569aa0ddbff30e5de1ef1577a00ccdac6358785655e82b13b587d6bfce8a21d64736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc4000000000000000000000000000000000000000000000000000000000000001141727420426c6f636b732078205061636500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074142585041434500000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Art Blocks x Pace
Arg [1] : _tokenSymbol (string): ABXPACE
Arg [2] : _randomizerContract (address): 0x088098F7438773182b703625C4128aFf85fcFfC4

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000088098f7438773182b703625c4128aff85fcffc4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [4] : 41727420426c6f636b7320782050616365000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 4142585041434500000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.