ETH Price: $3,251.93 (+6.41%)
Gas: 39 Gwei

Bright Moments (MOMENT)
 

Overview

TokenID

57000000

Total Transfers

-

Market

Fully Diluted Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Stellaraum by Alida Sun

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GenArt721CoreV2_BrightMoments

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 14 : GenArt721CoreV2_BrightMoments.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Creatd By: Art Blocks Inc.

pragma solidity ^0.5.0;

import "../../libs/0.5.x/CustomERC721Metadata.sol";
import "../../libs/0.5.x/Strings.sol";

interface IRandomizer {
    function returnValue() external view returns (bytes32);
}

contract GenArt721CoreV2_BrightMoments is CustomERC721Metadata {
    using SafeMath for uint256;

    event Mint(
        address indexed _to,
        uint256 indexed _tokenId,
        uint256 indexed _projectId
    );

    IRandomizer public randomizerContract;

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

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

    //All financial functions are stripped from struct for visibility
    mapping(uint256 => address) public projectIdToArtistAddress;
    mapping(uint256 => string) public projectIdToCurrencySymbol;
    mapping(uint256 => address) public projectIdToCurrencyAddress;
    mapping(uint256 => uint256) public projectIdToPricePerTokenInWei;
    mapping(uint256 => address) public projectIdToAdditionalPayee;
    mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage;
    mapping(uint256 => uint256)
        public projectIdToSecondaryMarketRoyaltyPercentage;

    address public renderProviderAddress;
    uint256 public renderProviderPercentage = 10;

    mapping(uint256 => uint256) public tokenIdToProjectId;
    mapping(uint256 => bytes32) public tokenIdToHash;
    mapping(bytes32 => uint256) public hashToTokenId;

    address public admin;
    mapping(address => bool) public isWhitelisted;
    mapping(address => bool) public isMintWhitelisted;

    uint256 public nextProjectId = 0;

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

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

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

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

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

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

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        address _randomizerContract
    ) public CustomERC721Metadata(_tokenName, _tokenSymbol) {
        admin = msg.sender;
        isWhitelisted[msg.sender] = true;
        renderProviderAddress = msg.sender;
        randomizerContract = IRandomizer(_randomizerContract);
    }

    function mint(
        address _to,
        uint256 _projectId,
        address _by
    ) external returns (uint256 _tokenId) {
        require(
            isMintWhitelisted[msg.sender],
            "Must mint from whitelisted minter contract."
        );
        require(
            projects[_projectId].invocations.add(1) <=
                projects[_projectId].maxInvocations,
            "Must not exceed max invocations"
        );
        require(
            projects[_projectId].active ||
                _by == projectIdToArtistAddress[_projectId],
            "Project must exist and be active"
        );
        require(
            !projects[_projectId].paused ||
                _by == projectIdToArtistAddress[_projectId],
            "Purchases are paused."
        );

        uint256 tokenId = _mintToken(_to, _projectId);

        return tokenId;
    }

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

        projects[_projectId].invocations = projects[_projectId].invocations.add(
            1
        );

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

        _mint(_to, tokenIdToBe);

        tokenIdToProjectId[tokenIdToBe] = _projectId;

        emit Mint(_to, tokenIdToBe, _projectId);

        return tokenIdToBe;
    }

    function updateAdmin(address _adminAddress) public onlyAdmin {
        admin = _adminAddress;
    }

    function updateRenderProviderAddress(address _renderProviderAddress)
        public
        onlyAdmin
    {
        renderProviderAddress = _renderProviderAddress;
    }

    function updateRenderProviderPercentage(uint256 _renderProviderPercentage)
        public
        onlyAdmin
    {
        require(_renderProviderPercentage <= 25, "Max of 25%");
        renderProviderPercentage = _renderProviderPercentage;
    }

    function addWhitelisted(address _address) public onlyAdmin {
        isWhitelisted[_address] = true;
    }

    function removeWhitelisted(address _address) public onlyAdmin {
        isWhitelisted[_address] = false;
    }

    function addMintWhitelisted(address _address) public onlyAdmin {
        isMintWhitelisted[_address] = true;
    }

    function removeMintWhitelisted(address _address) public onlyAdmin {
        isMintWhitelisted[_address] = false;
    }

    function updateRandomizerAddress(address _randomizerAddress)
        public
        onlyWhitelisted
    {
        randomizerContract = IRandomizer(_randomizerAddress);
    }

    function toggleProjectIsLocked(uint256 _projectId)
        public
        onlyWhitelisted
        onlyUnlocked(_projectId)
    {
        projects[_projectId].locked = true;
    }

    function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted {
        projects[_projectId].active = !projects[_projectId].active;
    }

    function updateProjectArtistAddress(
        uint256 _projectId,
        address _artistAddress
    ) public onlyArtistOrWhitelisted(_projectId) {
        projectIdToArtistAddress[_projectId] = _artistAddress;
    }

    function toggleProjectIsPaused(uint256 _projectId)
        public
        onlyArtist(_projectId)
    {
        projects[_projectId].paused = !projects[_projectId].paused;
    }

    function addProject(
        string memory _projectName,
        address _artistAddress,
        uint256 _pricePerTokenInWei
    ) public onlyWhitelisted {
        uint256 projectId = nextProjectId;
        projectIdToArtistAddress[projectId] = _artistAddress;
        projects[projectId].name = _projectName;
        projectIdToCurrencySymbol[projectId] = "ETH";
        projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei;
        projects[projectId].paused = true;
        projects[projectId].maxInvocations = ONE_MILLION;
        nextProjectId = nextProjectId.add(1);
    }

    function updateProjectCurrencyInfo(
        uint256 _projectId,
        string memory _currencySymbol,
        address _currencyAddress
    ) public onlyArtist(_projectId) {
        projectIdToCurrencySymbol[_projectId] = _currencySymbol;
        projectIdToCurrencyAddress[_projectId] = _currencyAddress;
    }

    function updateProjectPricePerTokenInWei(
        uint256 _projectId,
        uint256 _pricePerTokenInWei
    ) public onlyArtist(_projectId) {
        projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei;
    }

    function updateProjectName(uint256 _projectId, string memory _projectName)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].name = _projectName;
    }

    function updateProjectArtistName(
        uint256 _projectId,
        string memory _projectArtistName
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].artist = _projectArtistName;
    }

    function updateProjectAdditionalPayeeInfo(
        uint256 _projectId,
        address _additionalPayee,
        uint256 _additionalPayeePercentage
    ) public onlyArtist(_projectId) {
        require(_additionalPayeePercentage <= 100, "Max of 100%");
        projectIdToAdditionalPayee[_projectId] = _additionalPayee;
        projectIdToAdditionalPayeePercentage[
            _projectId
        ] = _additionalPayeePercentage;
    }

    function updateProjectSecondaryMarketRoyaltyPercentage(
        uint256 _projectId,
        uint256 _secondMarketRoyalty
    ) public onlyArtist(_projectId) {
        require(_secondMarketRoyalty <= 100, "Max of 100%");
        projectIdToSecondaryMarketRoyaltyPercentage[
            _projectId
        ] = _secondMarketRoyalty;
    }

    function updateProjectDescription(
        uint256 _projectId,
        string memory _projectDescription
    ) public onlyArtist(_projectId) {
        projects[_projectId].description = _projectDescription;
    }

    function updateProjectWebsite(
        uint256 _projectId,
        string memory _projectWebsite
    ) public onlyArtist(_projectId) {
        projects[_projectId].website = _projectWebsite;
    }

    function updateProjectLicense(
        uint256 _projectId,
        string memory _projectLicense
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].license = _projectLicense;
    }

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

    function addProjectScript(uint256 _projectId, string memory _script)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].scripts[
            projects[_projectId].scriptCount
        ] = _script;
        projects[_projectId].scriptCount = projects[_projectId].scriptCount.add(
            1
        );
    }

    function updateProjectScript(
        uint256 _projectId,
        uint256 _scriptId,
        string memory _script
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        require(
            _scriptId < projects[_projectId].scriptCount,
            "scriptId out of range"
        );
        projects[_projectId].scripts[_scriptId] = _script;
    }

    function removeProjectLastScript(uint256 _projectId)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        require(
            projects[_projectId].scriptCount > 0,
            "there are no scripts to remove"
        );
        delete projects[_projectId].scripts[
            projects[_projectId].scriptCount - 1
        ];
        projects[_projectId].scriptCount = projects[_projectId].scriptCount.sub(
            1
        );
    }

    function updateProjectScriptJSON(
        uint256 _projectId,
        string memory _projectScriptJSON
    ) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) {
        projects[_projectId].scriptJSON = _projectScriptJSON;
    }

    function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash)
        public
        onlyUnlocked(_projectId)
        onlyArtistOrWhitelisted(_projectId)
    {
        projects[_projectId].ipfsHash = _ipfsHash;
    }

    function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI)
        public
        onlyArtist(_projectId)
    {
        projects[_projectId].projectBaseURI = _newBaseURI;
    }

    function projectDetails(uint256 _projectId)
        public
        view
        returns (
            string memory projectName,
            string memory artist,
            string memory description,
            string memory website,
            string memory license
        )
    {
        projectName = projects[_projectId].name;
        artist = projects[_projectId].artist;
        description = projects[_projectId].description;
        website = projects[_projectId].website;
        license = projects[_projectId].license;
    }

    function projectTokenInfo(uint256 _projectId)
        public
        view
        returns (
            address artistAddress,
            uint256 pricePerTokenInWei,
            uint256 invocations,
            uint256 maxInvocations,
            bool active,
            address additionalPayee,
            uint256 additionalPayeePercentage,
            string memory currency,
            address currencyAddress
        )
    {
        artistAddress = projectIdToArtistAddress[_projectId];
        pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId];
        invocations = projects[_projectId].invocations;
        maxInvocations = projects[_projectId].maxInvocations;
        active = projects[_projectId].active;
        additionalPayee = projectIdToAdditionalPayee[_projectId];
        additionalPayeePercentage = projectIdToAdditionalPayeePercentage[
            _projectId
        ];
        currency = projectIdToCurrencySymbol[_projectId];
        currencyAddress = projectIdToCurrencyAddress[_projectId];
    }

    function projectScriptInfo(uint256 _projectId)
        public
        view
        returns (
            string memory scriptJSON,
            uint256 scriptCount,
            string memory ipfsHash,
            bool locked,
            bool paused
        )
    {
        scriptJSON = projects[_projectId].scriptJSON;
        scriptCount = projects[_projectId].scriptCount;
        ipfsHash = projects[_projectId].ipfsHash;
        locked = projects[_projectId].locked;
        paused = projects[_projectId].paused;
    }

    function projectScriptByIndex(uint256 _projectId, uint256 _index)
        public
        view
        returns (string memory)
    {
        return projects[_projectId].scripts[_index];
    }

    function projectURIInfo(uint256 _projectId)
        public
        view
        returns (string memory projectBaseURI)
    {
        projectBaseURI = projects[_projectId].projectBaseURI;
    }

    function tokensOfOwner(address owner)
        external
        view
        returns (uint256[] memory)
    {
        return _tokensOfOwner(owner);
    }

    function getRoyaltyData(uint256 _tokenId)
        public
        view
        returns (
            address artistAddress,
            address additionalPayee,
            uint256 additionalPayeePercentage,
            uint256 royaltyFeeByID
        )
    {
        artistAddress = projectIdToArtistAddress[tokenIdToProjectId[_tokenId]];
        additionalPayee = projectIdToAdditionalPayee[
            tokenIdToProjectId[_tokenId]
        ];
        additionalPayeePercentage = projectIdToAdditionalPayeePercentage[
            tokenIdToProjectId[_tokenId]
        ];
        royaltyFeeByID = projectIdToSecondaryMarketRoyaltyPercentage[
            tokenIdToProjectId[_tokenId]
        ];
    }

    function tokenURI(uint256 _tokenId)
        external
        view
        onlyValidTokenId(_tokenId)
        returns (string memory)
    {
        return
            Strings.strConcat(
                projects[tokenIdToProjectId[_tokenId]].projectBaseURI,
                Strings.uint2str(_tokenId)
            );
    }
}

File 2 of 14 : CustomERC721Metadata.sol
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.

// **Please Note**: This library is not necessary for ^0.8.0 contracts and thus
//                  only exists for posterity reasons for compatibility with
//                  existing already-deployed ^0.5.0 PBAB contracts.

pragma solidity ^0.5.0;

import "@openzeppelin-0.5/contracts/introspection/ERC165.sol";
import "@openzeppelin-0.5/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin-0.5/contracts/token/ERC721/ERC721Enumerable.sol";

/**
 * ERC721 base contract without the concept of tokenUri as this is managed by the parent
 */
contract CustomERC721Metadata is ERC165, ERC721, ERC721Enumerable {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /**
     * @dev Constructor function
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    /**
     * @dev Gets the token name
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }
}

File 3 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// File: contracts/Strings.sol
// Source: https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol

// **Please Note**: This library is not necessary for ^0.8.0 contracts and thus
//                  only exists for posterity reasons for compatibility with
//                  existing already-deployed ^0.5.0 PBAB contracts.

pragma solidity ^0.5.0;

library Strings {
    function strConcat(string memory _a, string memory _b)
        internal
        pure
        returns (string memory _concatenatedString)
    {
        return strConcat(_a, _b, "", "", "");
    }

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c
    ) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c,
        string memory _d
    ) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(
        string memory _a,
        string memory _b,
        string memory _c,
        string memory _d,
        string memory _e
    ) internal pure returns (string memory _concatenatedString) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(
            _ba.length + _bb.length + _bc.length + _bd.length + _be.length
        );
        bytes memory babcde = bytes(abcde);
        uint256 k = 0;
        uint256 i = 0;
        for (i = 0; i < _ba.length; i++) {
            babcde[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            babcde[k++] = _bb[i];
        }
        for (i = 0; i < _bc.length; i++) {
            babcde[k++] = _bc[i];
        }
        for (i = 0; i < _bd.length; i++) {
            babcde[k++] = _bd[i];
        }
        for (i = 0; i < _be.length; i++) {
            babcde[k++] = _be[i];
        }
        return string(babcde);
    }

    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return "0";
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len - 1;
        while (_i != 0) {
            bstr[k--] = bytes1(uint8(48 + (_i % 10)));
            _i /= 10;
        }
        return string(bstr);
    }
}

File 4 of 14 : ERC165.sol
pragma solidity ^0.5.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 5 of 14 : ERC721.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";
import "../../drafts/Counters.sol";
import "../../introspection/ERC165.sol";

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;
    using Counters for Counters.Counter;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from token ID to owner
    mapping (uint256 => address) private _tokenOwner;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to number of owned token
    mapping (address => Counters.Counter) private _ownedTokensCount;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    constructor () public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _ownedTokensCount[owner].current();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");

        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = 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"
        );

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf.
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][to] = approved;
        emit ApprovalForAll(_msgSender(), to, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner.
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address.
     * Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     * Requires the msg.sender to be the owner, approved, or operator.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function transferFrom(address from, address to, uint256 tokenId) public {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransferFrom(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal {
        _transferFrom(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to].increment();

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own");

        _clearApproval(tokenId);

        _ownedTokensCount[owner].decrement();
        _tokenOwner[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _clearApproval(tokenId);

        _ownedTokensCount[from].decrement();
        _ownedTokensCount[to].increment();

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * This is an internal detail of the `ERC721` contract and its use is deprecated.
     * @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)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ));
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == _ERC721_RECEIVED);
        }
    }

    /**
     * @dev Private function to clear current approval of a given token ID.
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

File 6 of 14 : ERC721Enumerable.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "./IERC721Enumerable.sol";
import "./ERC721.sol";
import "../../introspection/ERC165.sol";

/**
 * @title ERC-721 Non-Fungible Token with optional enumeration extension logic
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

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

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

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

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Constructor function.
     */
    constructor () public {
        // register the supported interface to conform to ERC721Enumerable via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens.
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {ERC721-_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner.
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
        return _ownedTokens[owner];
    }

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

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

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

        uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by
        // lastTokenId, or just over the end of the array if the token was the last one).
    }

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

        uint256 lastTokenIndex = _allTokens.length.sub(1);
        uint256 tokenIndex = _allTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

File 7 of 14 : IERC165.sol
pragma solidity ^0.5.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);
}

File 8 of 14 : Context.sol
pragma solidity ^0.5.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 9 of 14 : IERC721.sol
pragma solidity ^0.5.0;

import "../../introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of NFTs in `owner`'s account.
     */
    function balanceOf(address owner) public view returns (uint256 balance);

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

File 10 of 14 : IERC721Receiver.sol
pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

File 11 of 14 : SafeMath.sol
pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 12 of 14 : Address.sol
pragma solidity ^0.5.5;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 13 of 14 : Counters.sol
pragma solidity ^0.5.0;

import "../math/SafeMath.sol";

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 14 of 14 : IERC721Enumerable.sol
pragma solidity ^0.5.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

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

6080604052600a6015556000601c553480156200001b57600080fd5b506040516200570438038062005704833981810160405260608110156200004157600080fd5b81019080805160405193929190846401000000008211156200006257600080fd5b9083019060208201858111156200007857600080fd5b82516401000000008111828201881017156200009357600080fd5b82525081516020918201929091019080838360005b83811015620000c2578181015183820152602001620000a8565b50505050905090810190601f168015620000f05780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011457600080fd5b9083019060208201858111156200012a57600080fd5b82516401000000008111828201881017156200014557600080fd5b82525081516020918201929091019080838360005b83811015620001745781810151838201526020016200015a565b50505050905090810190601f168015620001a25780820380516001836020036101000a031916815260200191505b5060405260200151915083905082620001cb6301ffc9a760e01b6001600160e01b03620002a716565b620001e66380ac58cd60e01b6001600160e01b03620002a716565b6200020163780e9d6360e01b6001600160e01b03620002a716565b8151620002169060099060208501906200032c565b5080516200022c90600a9060208401906200032c565b5062000248635b5e139f60e01b6001600160e01b03620002a716565b505060198054336001600160a01b031991821681179092556000828152601a60205260409020805460ff19166001179055601480548216909217909155600b80549091166001600160a01b039290921691909117905550620003d19050565b6001600160e01b0319808216141562000307576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200036f57805160ff19168380011785556200039f565b828001600101855582156200039f579182015b828111156200039f57825182559160200191906001019062000382565b50620003ad929150620003b1565b5090565b620003ce91905b80821115620003ad5760008155600101620003b8565b90565b61532380620003e16000396000f3fe608060405234801561001057600080fd5b50600436106103925760003560e01c80638763ad1e116101e0578063b88d4fde11610110578063db2ff861116100a8578063db2ff86114611754578063e13208b414611771578063e2f273bd146117a3578063e935b7b1146117c9578063e985e9c5146117d1578063ed8abfda146117ff578063f51f74a91461181c578063f70c0f0414611839578063f851a4401461185657610392565b8063b88d4fde14611490578063c34a03b514611554578063c6d7323114611577578063c87b56dd14611622578063cc74234b1461163f578063cfbf4d971461165c578063d03c390c14611664578063d195b36514611681578063d7b044b61461173757610392565b8063a11ec70a11610183578063a11ec70a14611102578063a22cb4651461111f578063a3b2cca61461114d578063a47d29cb146111f8578063a65ff74c14611215578063acad012414611264578063ad0305ce1461130f578063b1656ba314611335578063b7b04fae146113e557610392565b80638763ad1e14610cd15780638ba8f14d14610d835780638bddb0a614610da05780638c2c362214610dc65780638c3c9cdd14610ecd5780638dd91a5614610ef057806395d89b41146110d757806397dc86cf146110df57610392565b806336c7c12c116102c6578063621a1f741161025e578063621a1f7414610b3a5780636352211e14610b5757806369d14faf14610b745780636b6ec8a614610ba05780636c907b7f14610bc657806370a0823114610bec578063826fc39114610c125780638462151c14610c35578063867f1a3b14610cab57610392565b806336c7c12c14610786578063378599631461078e5780633af32abf146108395780633e48e8481461085f5780633fef6c2a1461090a57806342842e0e146109b5578063498dd0c1146109eb5780634aa6d41714610a085780634f6ccce714610b1d57610392565b806318160ddd1161033957806318160ddd146105ec5780631b689c0b146105f457806320927ec91461061157806323b872dd1461062e57806325b75d6814610664578063291d95491461070f5780632d9c0205146107355780632e9eb74f146107525780632f745c591461075a57610392565b806301ffc9a71461039757806306fdde03146103d2578063081812fc1461044f578063095ea7b3146104885780630d170673146104b65780630d4d15131461056157806310154bad146105a957806311f5fdf1146105cf575b600080fd5b6103be600480360360208110156103ad57600080fd5b50356001600160e01b03191661185e565b604080519115158252519081900360200190f35b6103da611881565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104145781810151838201526020016103fc565b50505050905090810190601f1680156104415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046c6004803603602081101561046557600080fd5b5035611918565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603604081101561049e57600080fd5b506001600160a01b03813516906020013561197a565b005b6104b4600480360360408110156104cc57600080fd5b81359190810190604081016020820135600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460018302840111600160201b8311171561052057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611aa2945050505050565b6105976004803603606081101561057757600080fd5b506001600160a01b03813581169160208101359160409091013516611b9f565b60408051918252519081900360200190f35b6104b4600480360360208110156105bf57600080fd5b50356001600160a01b0316611d94565b6104b4600480360360208110156105e557600080fd5b5035611e04565b610597611e98565b6105976004803603602081101561060a57600080fd5b5035611e9e565b6103da6004803603602081101561062757600080fd5b5035611eb0565b6104b46004803603606081101561064457600080fd5b506001600160a01b03813581169160208101359091169060400135611f4b565b6104b46004803603604081101561067a57600080fd5b81359190810190604081016020820135600160201b81111561069b57600080fd5b8201836020820111156106ad57600080fd5b803590602001918460018302840111600160201b831117156106ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611fa7945050505050565b6104b46004803603602081101561072557600080fd5b50356001600160a01b03166120a3565b6103da6004803603602081101561074b57600080fd5b5035612110565b6105976121b4565b6105976004803603604081101561077057600080fd5b506001600160a01b0381351690602001356121ba565b61046c612239565b6104b4600480360360408110156107a457600080fd5b81359190810190604081016020820135600160201b8111156107c557600080fd5b8201836020820111156107d757600080fd5b803590602001918460018302840111600160201b831117156107f857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612248945050505050565b6103be6004803603602081101561084f57600080fd5b50356001600160a01b03166122ce565b6104b46004803603604081101561087557600080fd5b81359190810190604081016020820135600160201b81111561089657600080fd5b8201836020820111156108a857600080fd5b803590602001918460018302840111600160201b831117156108c957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122e3945050505050565b6104b46004803603604081101561092057600080fd5b81359190810190604081016020820135600160201b81111561094157600080fd5b82018360208201111561095357600080fd5b803590602001918460018302840111600160201b8311171561097457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612363945050505050565b6104b4600480360360608110156109cb57600080fd5b506001600160a01b0381358116916020810135909116906040013561245f565b61046c60048036036020811015610a0157600080fd5b503561247a565b610a2560048036036020811015610a1e57600080fd5b5035612495565b6040805160208082018790528415156060830152831515608083015260a08083528851908301528751919283929083019160c0840191908a019080838360005b83811015610a7d578181015183820152602001610a65565b50505050905090810190601f168015610aaa5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b83811015610add578181015183820152602001610ac5565b50505050905090810190601f168015610b0a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b61059760048036036020811015610b3357600080fd5b5035612615565b61059760048036036020811015610b5057600080fd5b503561267b565b61046c60048036036020811015610b6d57600080fd5b503561268d565b6104b460048036036040811015610b8a57600080fd5b50803590602001356001600160a01b03166126e7565b6104b460048036036020811015610bb657600080fd5b50356001600160a01b031661278b565b6104b460048036036020811015610bdc57600080fd5b50356001600160a01b03166127f9565b61059760048036036020811015610c0257600080fd5b50356001600160a01b0316612872565b6104b460048036036040811015610c2857600080fd5b50803590602001356128da565b610c5b60048036036020811015610c4b57600080fd5b50356001600160a01b0316612a65565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610c97578181015183820152602001610c7f565b505050509050019250505060405180910390f35b6104b460048036036020811015610cc157600080fd5b50356001600160a01b0316612ac5565b6104b460048036036060811015610ce757600080fd5b810190602081018135600160201b811115610d0157600080fd5b820183602082011115610d1357600080fd5b803590602001918460018302840111600160201b83111715610d3457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135612b32565b6104b460048036036020811015610d9957600080fd5b5035612c59565b6104b460048036036020811015610db657600080fd5b50356001600160a01b0316612d34565b610de360048036036020811015610ddc57600080fd5b5035612da4565b604051808a6001600160a01b03166001600160a01b0316815260200189815260200188815260200187815260200186151515158152602001856001600160a01b03166001600160a01b0316815260200184815260200180602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b83811015610e8a578181015183820152602001610e72565b50505050905090810190601f168015610eb75780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b6103da60048036036040811015610ee357600080fd5b5080359060200135612ec2565b610f0d60048036036020811015610f0657600080fd5b5035612f6f565b60405180806020018060200180602001806020018060200186810386528b818151815260200191508051906020019080838360005b83811015610f5a578181015183820152602001610f42565b50505050905090810190601f168015610f875780820380516001836020036101000a031916815260200191505b5086810385528a5181528a516020918201918c019080838360005b83811015610fba578181015183820152602001610fa2565b50505050905090810190601f168015610fe75780820380516001836020036101000a031916815260200191505b5086810384528951815289516020918201918b019080838360005b8381101561101a578181015183820152602001611002565b50505050905090810190601f1680156110475780820380516001836020036101000a031916815260200191505b5086810383528851815288516020918201918a019080838360005b8381101561107a578181015183820152602001611062565b50505050905090810190601f1680156110a75780820380516001836020036101000a031916815260200191505b50868103825287518152875160209182019189019080838360008315610e8a578181015183820152602001610e72565b6103da6132a8565b6104b4600480360360408110156110f557600080fd5b5080359060200135613309565b6104b46004803603602081101561111857600080fd5b5035613377565b6104b46004803603604081101561113557600080fd5b506001600160a01b0381351690602001351515613402565b6104b46004803603604081101561116357600080fd5b81359190810190604081016020820135600160201b81111561118457600080fd5b82018360208201111561119657600080fd5b803590602001918460018302840111600160201b831117156111b757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613503945050505050565b61046c6004803603602081101561120e57600080fd5b5035613583565b6112326004803603602081101561122b57600080fd5b503561359e565b604080516001600160a01b03958616815293909416602084015282840191909152606082015290519081900360800190f35b6104b46004803603604081101561127a57600080fd5b81359190810190604081016020820135600160201b81111561129b57600080fd5b8201836020820111156112ad57600080fd5b803590602001918460018302840111600160201b831117156112ce57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506135e7945050505050565b6103be6004803603602081101561132557600080fd5b50356001600160a01b031661372b565b6104b46004803603606081101561134b57600080fd5b813591602081013591810190606081016040820135600160201b81111561137157600080fd5b82018360208201111561138357600080fd5b803590602001918460018302840111600160201b831117156113a457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613740945050505050565b6104b4600480360360408110156113fb57600080fd5b81359190810190604081016020820135600160201b81111561141c57600080fd5b82018360208201111561142e57600080fd5b803590602001918460018302840111600160201b8311171561144f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506138a6945050505050565b6104b4600480360360808110156114a657600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156114e057600080fd5b8201836020820111156114f257600080fd5b803590602001918460018302840111600160201b8311171561151357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506139a2945050505050565b6104b46004803603604081101561156a57600080fd5b50803590602001356139fa565b6104b46004803603604081101561158d57600080fd5b81359190810190604081016020820135600160201b8111156115ae57600080fd5b8201836020820111156115c057600080fd5b803590602001918460018302840111600160201b831117156115e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613aac945050505050565b6103da6004803603602081101561163857600080fd5b5035613ba8565b6105976004803603602081101561165557600080fd5b5035613cbc565b61046c613cce565b6104b46004803603602081101561167a57600080fd5b5035613cdd565b6104b46004803603606081101561169757600080fd5b81359190810190604081016020820135600160201b8111156116b857600080fd5b8201836020820111156116ca57600080fd5b803590602001918460018302840111600160201b831117156116eb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b03169150613d589050565b61046c6004803603602081101561174d57600080fd5b5035613e04565b6104b46004803603602081101561176a57600080fd5b5035613e1f565b6104b46004803603606081101561178757600080fd5b508035906001600160a01b036020820135169060400135613fc3565b6104b4600480360360208110156117b957600080fd5b50356001600160a01b031661409c565b61059761410a565b6103be600480360360408110156117e757600080fd5b506001600160a01b0381358116916020013516614110565b6105976004803603602081101561181557600080fd5b503561413e565b6105976004803603602081101561183257600080fd5b5035614150565b6105976004803603602081101561184f57600080fd5b5035614162565b61046c614174565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b505050505090505b90565b600061192382614183565b61195e5760405162461bcd60e51b815260040180806020018281038252602c8152602001806151f1602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006119858261268d565b9050806001600160a01b0316836001600160a01b031614156119d85760405162461bcd60e51b81526004018080602001828103825260218152602001806152466021913960400191505060405180910390fd5b806001600160a01b03166119ea6141a0565b6001600160a01b03161480611a0b5750611a0b81611a066141a0565b614110565b611a465760405162461bcd60e51b81526004018080602001828103825260388152602001806151296038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000828152600c6020819052604090912001548290610100900460ff1615611b04576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680611b3a57506000818152600d60205260409020546001600160a01b031633145b611b79576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892860190614f5f565b5050505050565b336000908152601b602052604081205460ff16611bed5760405162461bcd60e51b815260040180806020018281038252602b8152602001806152c4602b913960400191505060405180910390fd5b6000838152600c602052604090206007810154600690910154611c1790600163ffffffff6141a416565b1115611c6a576040805162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e7300604482015290519081900360640190fd5b6000838152600c60208190526040909120015460ff1680611ca457506000838152600d60205260409020546001600160a01b038381169116145b611cf5576040805162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e6420626520616374697665604482015290519081900360640190fd5b6000838152600c60208190526040909120015462010000900460ff161580611d3657506000838152600d60205260409020546001600160a01b038381169116145b611d7f576040805162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b604482015290519081900360640190fd5b6000611d8b85856141fe565b95945050505050565b6019546001600160a01b03163314611de0576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6019546001600160a01b03163314611e50576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6019811115611e93576040805162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b604482015290519081900360640190fd5b601555565b60075490565b60166020526000908152604090205481565b600e6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b611f5c611f566141a0565b8261436b565b611f975760405162461bcd60e51b81526004018080602001828103825260318152602001806152676031913960400191505060405180910390fd5b611fa283838361440f565b505050565b6000828152600c6020819052604090912001548290610100900460ff1615612009576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061203f57506000818152600d60205260409020546001600160a01b031633145b61207e576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600490920191860190614f5f565b6019546001600160a01b031633146120ef576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19169055565b6000818152600c602090815260409182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156121a85780601f1061217d576101008083540402835291602001916121a8565b820191906000526020600020905b81548152906001019060200180831161218b57829003601f168201915b50505050509050919050565b60155481565b60006121c583612872565b82106122025760405162461bcd60e51b815260040180806020018281038252602b81526020018061505c602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061222657fe5b9060005260206000200154905092915050565b600b546001600160a01b031681565b6000828152600d602052604090205482906001600160a01b031633146122a3576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600390920191850190614f5f565b50505050565b601a6020526000908152604090205460ff1681565b6000828152600d602052604090205482906001600160a01b0316331461233e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600590920191850190614f5f565b6000828152600c6020819052604090912001548290610100900460ff16156123c5576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806123fb57506000818152600d60205260409020546001600160a01b031633145b61243a576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600b90920191860190614f5f565b611fa2838383604051806020016040528060008152506139a2565b600f602052600090815260409020546001600160a01b031681565b6000818152600c602090815260408083206008018054825160026001831615610100026000190190921691909104601f810185900485028201850190935282815260609493859385938493929091908301828280156125355780601f1061250a57610100808354040283529160200191612535565b820191906000526020600020905b81548152906001019060200180831161251857829003601f168201915b5050506000898152600c6020908152604091829020600a810154600b9091018054845160026001831615610100026000190190921691909104601f8101859004850282018501909552848152969b5090995093509091508301828280156125dd5780601f106125b2576101008083540402835291602001916125dd565b820191906000526020600020905b8154815290600101906020018083116125c057829003601f168201915b50505060009889525050600c6020819052604090972090960154949693959460ff610100820481169562010000909204169350915050565b600061261f611e98565b821061265c5760405162461bcd60e51b815260040180806020018281038252602c815260200180615298602c913960400191505060405180910390fd5b6007828154811061266957fe5b90600052602060002001549050919050565b60176020526000908152604090205481565b6000818152600160205260408120546001600160a01b0316806126e15760405162461bcd60e51b815260040180806020018281038252602981526020018061518b6029913960400191505060405180910390fd5b92915050565b336000908152601a6020526040902054829060ff168061271d57506000818152600d60205260409020546001600160a01b031633145b61275c576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b506000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6019546001600160a01b031633146127d7576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16612850576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166128b95760405162461bcd60e51b815260040180806020018281038252602a815260200180615161602a913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090206126e19061442e565b6000828152600d602052604090205482906001600160a01b03163314612935576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c602081905260409091200154610100900460ff16158061296c57506000838152600c602052604090206007015482105b6129b0576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b6000838152600c602052604090206006015482116129ff5760405162461bcd60e51b815260040180806020018281038252603d8152602001806151b4603d913960400191505060405180910390fd5b620f4240821115612a4f576040805162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b604482015290519081900360640190fd5b506000918252600c602052604090912060070155565b6060612a7082614432565b8054806020026020016040519081016040528092919081815260200182805480156121a857602002820191906000526020600020905b815481526020019060010190808311612aa65750505050509050919050565b6019546001600160a01b03163314612b11576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19169055565b336000908152601a602052604090205460ff16612b89576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b601c546000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038816179055600c82529091208551612bcb92870190614f5f565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600e909152929092209051612c029290614f5f565b506000818152601060209081526040808320859055600c91829052909120908101805462ff0000191662010000179055620f4240600790910155601c54612c5090600163ffffffff6141a416565b601c5550505050565b336000908152601a602052604090205460ff16612cb0576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000818152600c6020819052604090912001548190610100900460ff1615612d12576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805461ff001916610100179055565b6019546001600160a01b03163314612d80576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b6000818152600d60209081526040808320546010835281842054600c80855283862060068101546007820154919092015460118752858820546012885286892054600e8952878a208054895160026101006001841615026000190190921691909104601f81018c90048c0282018c01909a528981526001600160a01b039889169b979a9699959860ff90951697949093169591946060949392830182828015612e8e5780601f10612e6357610100808354040283529160200191612e8e565b820191906000526020600020905b815481529060010190602001808311612e7157829003601f168201915b50505060009c8d525050600f6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600c6020908152604080832084845260090182529182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015612f625780601f10612f3757610100808354040283529160200191612f62565b820191906000526020600020905b815481529060010190602001808311612f4557829003601f168201915b5050505050905092915050565b6000818152600c602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609384938493849384939283018282801561300c5780601f10612fe15761010080835404028352916020019161300c565b820191906000526020600020905b815481529060010190602001808311612fef57829003601f168201915b50505050509450600c60008781526020019081526020016000206001018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156130bd5780601f10613092576101008083540402835291602001916130bd565b820191906000526020600020905b8154815290600101906020018083116130a057829003601f168201915b5050506000898152600c60209081526040918290206002908101805484516001821615610100026000190190911692909204601f810184900484028301840190945283825295995094935090915083018282801561315c5780601f106131315761010080835404028352916020019161315c565b820191906000526020600020905b81548152906001019060200180831161313f57829003601f168201915b5050506000898152600c60209081526040918290206003018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295985093509091508301828280156131fa5780601f106131cf576101008083540402835291602001916131fa565b820191906000526020600020905b8154815290600101906020018083116131dd57829003601f168201915b5050506000898152600c60209081526040918290206004018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295975093509091508301828280156132985780601f1061326d57610100808354040283529160200191613298565b820191906000526020600020905b81548152906001019060200180831161327b57829003601f168201915b5050505050905091939590929450565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b6000828152600d602052604090205482906001600160a01b03163314613364576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b5060009182526010602052604090912055565b6000818152600d602052604090205481906001600160a01b031633146133d2576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805462ff0000198116620100009182900460ff1615909102179055565b61340a6141a0565b6001600160a01b0316826001600160a01b0316141561346c576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b80600460006134796141a0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556134bd6141a0565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b6000828152600d602052604090205482906001600160a01b0316331461355e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600290920191850190614f5f565b600d602052600090815260409020546001600160a01b031681565b6000908152601660209081526040808320548352600d82528083205460118352818420546012845282852054601390945291909320546001600160a01b03938416949390911692565b6000828152600c6020819052604090912001548290610100900460ff1615613649576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061367f57506000818152600d60205260409020546001600160a01b031633145b6136be576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c60209081526040808320600a8101548452600901825290912084516136ec92860190614f5f565b506000848152600c60205260409020600a015461371090600163ffffffff6141a416565b6000948552600c6020526040909420600a0193909355505050565b601b6020526000908152604090205460ff1681565b6000838152600c6020819052604090912001548390610100900460ff16156137a2576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054849060ff16806137d857506000818152600d60205260409020546001600160a01b031633145b613817576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000858152600c60205260409020600a01548410613874576040805162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b604482015290519081900360640190fd5b6000858152600c602090815260408083208784526009018252909120845161389e92860190614f5f565b505050505050565b6000828152600c6020819052604090912001548290610100900460ff1615613908576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061393e57506000818152600d60205260409020546001600160a01b031633145b61397d576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600190920191860190614f5f565b6139b36139ad6141a0565b8361436b565b6139ee5760405162461bcd60e51b81526004018080602001828103825260318152602001806152676031913960400191505060405180910390fd5b6122c88484848461444c565b6000828152600d602052604090205482906001600160a01b03163314613a55576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115613a99576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b5060009182526013602052604090912055565b6000828152600c6020819052604090912001548290610100900460ff1615613b0e576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680613b4457506000818152600d60205260409020546001600160a01b031633145b613b83576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600890920191860190614f5f565b606081613bb481614183565b613bff576040805162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b604482015290519081900360640190fd5b6000838152601660209081526040808320548352600c82529182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452613cb59392830182828015613ca25780601f10613c7757610100808354040283529160200191613ca2565b820191906000526020600020905b815481529060010190602001808311613c8557829003601f168201915b5050505050613cb08561449e565b61455f565b9392505050565b60126020526000908152604090205481565b6014546001600160a01b031681565b336000908152601a602052604090205460ff16613d34576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000908152600c6020819052604090912001805460ff19811660ff90911615179055565b6000838152600d602052604090205483906001600160a01b03163314613db3576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000848152600e602090815260409091208451613dd292860190614f5f565b50506000928352600f602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6011602052600090815260409020546001600160a01b031681565b6000818152600c6020819052604090912001548190610100900460ff1615613e81576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054829060ff1680613eb757506000818152600d60205260409020546001600160a01b031633145b613ef6576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000838152600c60205260409020600a0154613f59576040805162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f76650000604482015290519081900360640190fd5b6000838152600c60209081526040808320600a8101546000190184526009019091528120613f8691614fdd565b6000838152600c60205260409020600a0154613fa990600163ffffffff61459b16565b6000938452600c6020526040909320600a01929092555050565b6000838152600d602052604090205483906001600160a01b0316331461401e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115614062576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b50600092835260116020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560129052912055565b6019546001600160a01b031633146140e8576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b601c5481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b60136020526000908152604090205481565b60186020526000908152604090205481565b60106020526000908152604090205481565b6019546001600160a01b031681565b6000908152600160205260409020546001600160a01b0316151590565b3390565b600082820183811015613cb5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600c6020526040812060060154620f4240830281019061422a90600163ffffffff6141a416565b6000848152600c60209081526040808320600601849055600b54815163990c8f7960e01b815291519394934393600019850140936001600160a01b039093169263990c8f799260048083019392829003018186803b15801561428b57600080fd5b505afa15801561429f573d6000803e3d6000fd5b505050506040513d60208110156142b557600080fd5b5051604080516020818101969096528082019490945260608401929092526080808401919091528151808403909101815260a0909201815281519183019190912060008581526017845282812082905581815260189093529120839055905061431e85836145dd565b60008281526016602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061437682614183565b6143b15760405162461bcd60e51b815260040180806020018281038252602c8152602001806150dd602c913960400191505060405180910390fd5b60006143bc8361268d565b9050806001600160a01b0316846001600160a01b031614806143f75750836001600160a01b03166143ec84611918565b6001600160a01b0316145b8061440757506144078185614110565b949350505050565b61441a8383836145fe565b6144248382614742565b611fa28282614830565b5490565b6001600160a01b0316600090815260056020526040902090565b61445784848461440f565b6144638484848461486e565b6122c85760405162461bcd60e51b81526004018080602001828103825260328152602001806150876032913960400191505060405180910390fd5b6060816144c357506040805180820190915260018152600360fc1b602082015261187c565b8160005b81156144db57600101600a820491506144c7565b6060816040519080825280601f01601f191660200182016040528015614508576020820181803883390190505b50905060001982015b851561455657600a860660300160f81b8282806001900393508151811061453457fe5b60200101906001600160f81b031916908160001a905350600a86049550614511565b50949350505050565b6060613cb58383604051806020016040528060008152506040518060200160405280600081525060405180602001604052806000815250614aa9565b6000613cb583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614cbd565b6145e78282614d54565b6145f18282614830565b6145fa81614e85565b5050565b826001600160a01b03166146118261268d565b6001600160a01b0316146146565760405162461bcd60e51b815260040180806020018281038252602981526020018061521d6029913960400191505060405180910390fd5b6001600160a01b03821661469b5760405162461bcd60e51b81526004018080602001828103825260248152602001806150b96024913960400191505060405180910390fd5b6146a481614ec9565b6001600160a01b03831660009081526003602052604090206146c590614f06565b6001600160a01b03821660009081526003602052604090206146e690614f1d565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461476c90600163ffffffff61459b16565b600083815260066020526040902054909150808214614807576001600160a01b03841660009081526005602052604081208054849081106147a957fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106147e757fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b98906000198301615021565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6000614882846001600160a01b0316614f26565b61488e57506001614407565b600060606001600160a01b038616630a85bd0160e11b6148ac6141a0565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561492557818101518382015260200161490d565b50505050905090810190601f1680156149525780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106149ba5780518252601f19909201916020918201910161499b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614a1c576040519150601f19603f3d011682016040523d82523d6000602084013e614a21565b606091505b509150915081614a7257805115614a3b5780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806150876032913960400191505060405180910390fd5b6000818060200190516020811015614a8957600080fd5b50516001600160e01b031916630a85bd0160e11b14935061440792505050565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015614afd576020820181803883390190505b509050806000805b8851811015614b5657888181518110614b1a57fe5b602001015160f81c60f81b838380600101945081518110614b3757fe5b60200101906001600160f81b031916908160001a905350600101614b05565b5060005b8751811015614bab57878181518110614b6f57fe5b602001015160f81c60f81b838380600101945081518110614b8c57fe5b60200101906001600160f81b031916908160001a905350600101614b5a565b5060005b8651811015614c0057868181518110614bc457fe5b602001015160f81c60f81b838380600101945081518110614be157fe5b60200101906001600160f81b031916908160001a905350600101614baf565b5060005b8551811015614c5557858181518110614c1957fe5b602001015160f81c60f81b838380600101945081518110614c3657fe5b60200101906001600160f81b031916908160001a905350600101614c04565b5060005b8451811015614caa57848181518110614c6e57fe5b602001015160f81c60f81b838380600101945081518110614c8b57fe5b60200101906001600160f81b031916908160001a905350600101614c59565b50909d9c50505050505050505050505050565b60008184841115614d4c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614d11578181015183820152602001614cf9565b50505050905090810190601f168015614d3e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216614daf576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b614db881614183565b15614e0a576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020614e4990614f1d565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b031615614f0357600081815260026020526040902080546001600160a01b03191690555b50565b8054614f1990600163ffffffff61459b16565b9055565b80546001019055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590614407575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614fa057805160ff1916838001178555614fcd565b82800160010185558215614fcd579182015b82811115614fcd578251825591602001919060010190614fb2565b50614fd9929150615041565b5090565b50805460018160011615610100020316600290046000825580601f106150035750614f03565b601f016020900490600052602060002090810190614f039190615041565b815481835581811115611fa257600083815260209020611fa29181019083015b61191591905b80821115614fd9576000815560010161504756fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4f6e6c7920617274697374206f722077686974656c69737465640000000000004552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e596f75206d75737420736574206d617820696e766f636174696f6e732067726561746572207468616e2063757272656e7420696e766f636174696f6e734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734d757374206d696e742066726f6d2077686974656c6973746564206d696e74657220636f6e74726163742ea265627a7a72315820a36db605a7ee8ec56b9c7767597b33d3b001d15edaaed5dc655f4adacd049da564736f6c63430005110032000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc4000000000000000000000000000000000000000000000000000000000000000e427269676874204d6f6d656e747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d4f4d454e540000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103925760003560e01c80638763ad1e116101e0578063b88d4fde11610110578063db2ff861116100a8578063db2ff86114611754578063e13208b414611771578063e2f273bd146117a3578063e935b7b1146117c9578063e985e9c5146117d1578063ed8abfda146117ff578063f51f74a91461181c578063f70c0f0414611839578063f851a4401461185657610392565b8063b88d4fde14611490578063c34a03b514611554578063c6d7323114611577578063c87b56dd14611622578063cc74234b1461163f578063cfbf4d971461165c578063d03c390c14611664578063d195b36514611681578063d7b044b61461173757610392565b8063a11ec70a11610183578063a11ec70a14611102578063a22cb4651461111f578063a3b2cca61461114d578063a47d29cb146111f8578063a65ff74c14611215578063acad012414611264578063ad0305ce1461130f578063b1656ba314611335578063b7b04fae146113e557610392565b80638763ad1e14610cd15780638ba8f14d14610d835780638bddb0a614610da05780638c2c362214610dc65780638c3c9cdd14610ecd5780638dd91a5614610ef057806395d89b41146110d757806397dc86cf146110df57610392565b806336c7c12c116102c6578063621a1f741161025e578063621a1f7414610b3a5780636352211e14610b5757806369d14faf14610b745780636b6ec8a614610ba05780636c907b7f14610bc657806370a0823114610bec578063826fc39114610c125780638462151c14610c35578063867f1a3b14610cab57610392565b806336c7c12c14610786578063378599631461078e5780633af32abf146108395780633e48e8481461085f5780633fef6c2a1461090a57806342842e0e146109b5578063498dd0c1146109eb5780634aa6d41714610a085780634f6ccce714610b1d57610392565b806318160ddd1161033957806318160ddd146105ec5780631b689c0b146105f457806320927ec91461061157806323b872dd1461062e57806325b75d6814610664578063291d95491461070f5780632d9c0205146107355780632e9eb74f146107525780632f745c591461075a57610392565b806301ffc9a71461039757806306fdde03146103d2578063081812fc1461044f578063095ea7b3146104885780630d170673146104b65780630d4d15131461056157806310154bad146105a957806311f5fdf1146105cf575b600080fd5b6103be600480360360208110156103ad57600080fd5b50356001600160e01b03191661185e565b604080519115158252519081900360200190f35b6103da611881565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104145781810151838201526020016103fc565b50505050905090810190601f1680156104415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61046c6004803603602081101561046557600080fd5b5035611918565b604080516001600160a01b039092168252519081900360200190f35b6104b46004803603604081101561049e57600080fd5b506001600160a01b03813516906020013561197a565b005b6104b4600480360360408110156104cc57600080fd5b81359190810190604081016020820135600160201b8111156104ed57600080fd5b8201836020820111156104ff57600080fd5b803590602001918460018302840111600160201b8311171561052057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611aa2945050505050565b6105976004803603606081101561057757600080fd5b506001600160a01b03813581169160208101359160409091013516611b9f565b60408051918252519081900360200190f35b6104b4600480360360208110156105bf57600080fd5b50356001600160a01b0316611d94565b6104b4600480360360208110156105e557600080fd5b5035611e04565b610597611e98565b6105976004803603602081101561060a57600080fd5b5035611e9e565b6103da6004803603602081101561062757600080fd5b5035611eb0565b6104b46004803603606081101561064457600080fd5b506001600160a01b03813581169160208101359091169060400135611f4b565b6104b46004803603604081101561067a57600080fd5b81359190810190604081016020820135600160201b81111561069b57600080fd5b8201836020820111156106ad57600080fd5b803590602001918460018302840111600160201b831117156106ce57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611fa7945050505050565b6104b46004803603602081101561072557600080fd5b50356001600160a01b03166120a3565b6103da6004803603602081101561074b57600080fd5b5035612110565b6105976121b4565b6105976004803603604081101561077057600080fd5b506001600160a01b0381351690602001356121ba565b61046c612239565b6104b4600480360360408110156107a457600080fd5b81359190810190604081016020820135600160201b8111156107c557600080fd5b8201836020820111156107d757600080fd5b803590602001918460018302840111600160201b831117156107f857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612248945050505050565b6103be6004803603602081101561084f57600080fd5b50356001600160a01b03166122ce565b6104b46004803603604081101561087557600080fd5b81359190810190604081016020820135600160201b81111561089657600080fd5b8201836020820111156108a857600080fd5b803590602001918460018302840111600160201b831117156108c957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122e3945050505050565b6104b46004803603604081101561092057600080fd5b81359190810190604081016020820135600160201b81111561094157600080fd5b82018360208201111561095357600080fd5b803590602001918460018302840111600160201b8311171561097457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612363945050505050565b6104b4600480360360608110156109cb57600080fd5b506001600160a01b0381358116916020810135909116906040013561245f565b61046c60048036036020811015610a0157600080fd5b503561247a565b610a2560048036036020811015610a1e57600080fd5b5035612495565b6040805160208082018790528415156060830152831515608083015260a08083528851908301528751919283929083019160c0840191908a019080838360005b83811015610a7d578181015183820152602001610a65565b50505050905090810190601f168015610aaa5780820380516001836020036101000a031916815260200191505b50838103825286518152865160209182019188019080838360005b83811015610add578181015183820152602001610ac5565b50505050905090810190601f168015610b0a5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b61059760048036036020811015610b3357600080fd5b5035612615565b61059760048036036020811015610b5057600080fd5b503561267b565b61046c60048036036020811015610b6d57600080fd5b503561268d565b6104b460048036036040811015610b8a57600080fd5b50803590602001356001600160a01b03166126e7565b6104b460048036036020811015610bb657600080fd5b50356001600160a01b031661278b565b6104b460048036036020811015610bdc57600080fd5b50356001600160a01b03166127f9565b61059760048036036020811015610c0257600080fd5b50356001600160a01b0316612872565b6104b460048036036040811015610c2857600080fd5b50803590602001356128da565b610c5b60048036036020811015610c4b57600080fd5b50356001600160a01b0316612a65565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610c97578181015183820152602001610c7f565b505050509050019250505060405180910390f35b6104b460048036036020811015610cc157600080fd5b50356001600160a01b0316612ac5565b6104b460048036036060811015610ce757600080fd5b810190602081018135600160201b811115610d0157600080fd5b820183602082011115610d1357600080fd5b803590602001918460018302840111600160201b83111715610d3457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135612b32565b6104b460048036036020811015610d9957600080fd5b5035612c59565b6104b460048036036020811015610db657600080fd5b50356001600160a01b0316612d34565b610de360048036036020811015610ddc57600080fd5b5035612da4565b604051808a6001600160a01b03166001600160a01b0316815260200189815260200188815260200187815260200186151515158152602001856001600160a01b03166001600160a01b0316815260200184815260200180602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b83811015610e8a578181015183820152602001610e72565b50505050905090810190601f168015610eb75780820380516001836020036101000a031916815260200191505b509a505050505050505050505060405180910390f35b6103da60048036036040811015610ee357600080fd5b5080359060200135612ec2565b610f0d60048036036020811015610f0657600080fd5b5035612f6f565b60405180806020018060200180602001806020018060200186810386528b818151815260200191508051906020019080838360005b83811015610f5a578181015183820152602001610f42565b50505050905090810190601f168015610f875780820380516001836020036101000a031916815260200191505b5086810385528a5181528a516020918201918c019080838360005b83811015610fba578181015183820152602001610fa2565b50505050905090810190601f168015610fe75780820380516001836020036101000a031916815260200191505b5086810384528951815289516020918201918b019080838360005b8381101561101a578181015183820152602001611002565b50505050905090810190601f1680156110475780820380516001836020036101000a031916815260200191505b5086810383528851815288516020918201918a019080838360005b8381101561107a578181015183820152602001611062565b50505050905090810190601f1680156110a75780820380516001836020036101000a031916815260200191505b50868103825287518152875160209182019189019080838360008315610e8a578181015183820152602001610e72565b6103da6132a8565b6104b4600480360360408110156110f557600080fd5b5080359060200135613309565b6104b46004803603602081101561111857600080fd5b5035613377565b6104b46004803603604081101561113557600080fd5b506001600160a01b0381351690602001351515613402565b6104b46004803603604081101561116357600080fd5b81359190810190604081016020820135600160201b81111561118457600080fd5b82018360208201111561119657600080fd5b803590602001918460018302840111600160201b831117156111b757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613503945050505050565b61046c6004803603602081101561120e57600080fd5b5035613583565b6112326004803603602081101561122b57600080fd5b503561359e565b604080516001600160a01b03958616815293909416602084015282840191909152606082015290519081900360800190f35b6104b46004803603604081101561127a57600080fd5b81359190810190604081016020820135600160201b81111561129b57600080fd5b8201836020820111156112ad57600080fd5b803590602001918460018302840111600160201b831117156112ce57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506135e7945050505050565b6103be6004803603602081101561132557600080fd5b50356001600160a01b031661372b565b6104b46004803603606081101561134b57600080fd5b813591602081013591810190606081016040820135600160201b81111561137157600080fd5b82018360208201111561138357600080fd5b803590602001918460018302840111600160201b831117156113a457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613740945050505050565b6104b4600480360360408110156113fb57600080fd5b81359190810190604081016020820135600160201b81111561141c57600080fd5b82018360208201111561142e57600080fd5b803590602001918460018302840111600160201b8311171561144f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506138a6945050505050565b6104b4600480360360808110156114a657600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156114e057600080fd5b8201836020820111156114f257600080fd5b803590602001918460018302840111600160201b8311171561151357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506139a2945050505050565b6104b46004803603604081101561156a57600080fd5b50803590602001356139fa565b6104b46004803603604081101561158d57600080fd5b81359190810190604081016020820135600160201b8111156115ae57600080fd5b8201836020820111156115c057600080fd5b803590602001918460018302840111600160201b831117156115e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613aac945050505050565b6103da6004803603602081101561163857600080fd5b5035613ba8565b6105976004803603602081101561165557600080fd5b5035613cbc565b61046c613cce565b6104b46004803603602081101561167a57600080fd5b5035613cdd565b6104b46004803603606081101561169757600080fd5b81359190810190604081016020820135600160201b8111156116b857600080fd5b8201836020820111156116ca57600080fd5b803590602001918460018302840111600160201b831117156116eb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b03169150613d589050565b61046c6004803603602081101561174d57600080fd5b5035613e04565b6104b46004803603602081101561176a57600080fd5b5035613e1f565b6104b46004803603606081101561178757600080fd5b508035906001600160a01b036020820135169060400135613fc3565b6104b4600480360360208110156117b957600080fd5b50356001600160a01b031661409c565b61059761410a565b6103be600480360360408110156117e757600080fd5b506001600160a01b0381358116916020013516614110565b6105976004803603602081101561181557600080fd5b503561413e565b6105976004803603602081101561183257600080fd5b5035614150565b6105976004803603602081101561184f57600080fd5b5035614162565b61046c614174565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b505050505090505b90565b600061192382614183565b61195e5760405162461bcd60e51b815260040180806020018281038252602c8152602001806151f1602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006119858261268d565b9050806001600160a01b0316836001600160a01b031614156119d85760405162461bcd60e51b81526004018080602001828103825260218152602001806152466021913960400191505060405180910390fd5b806001600160a01b03166119ea6141a0565b6001600160a01b03161480611a0b5750611a0b81611a066141a0565b614110565b611a465760405162461bcd60e51b81526004018080602001828103825260388152602001806151296038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000828152600c6020819052604090912001548290610100900460ff1615611b04576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680611b3a57506000818152600d60205260409020546001600160a01b031633145b611b79576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892860190614f5f565b5050505050565b336000908152601b602052604081205460ff16611bed5760405162461bcd60e51b815260040180806020018281038252602b8152602001806152c4602b913960400191505060405180910390fd5b6000838152600c602052604090206007810154600690910154611c1790600163ffffffff6141a416565b1115611c6a576040805162461bcd60e51b815260206004820152601f60248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e7300604482015290519081900360640190fd5b6000838152600c60208190526040909120015460ff1680611ca457506000838152600d60205260409020546001600160a01b038381169116145b611cf5576040805162461bcd60e51b815260206004820181905260248201527f50726f6a656374206d75737420657869737420616e6420626520616374697665604482015290519081900360640190fd5b6000838152600c60208190526040909120015462010000900460ff161580611d3657506000838152600d60205260409020546001600160a01b038381169116145b611d7f576040805162461bcd60e51b8152602060048201526015602482015274283ab931b430b9b2b99030b932903830bab9b2b21760591b604482015290519081900360640190fd5b6000611d8b85856141fe565b95945050505050565b6019546001600160a01b03163314611de0576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b6019546001600160a01b03163314611e50576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6019811115611e93576040805162461bcd60e51b815260206004820152600a6024820152694d6178206f662032352560b01b604482015290519081900360640190fd5b601555565b60075490565b60166020526000908152604090205481565b600e6020908152600091825260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015611f435780601f10611f1857610100808354040283529160200191611f43565b820191906000526020600020905b815481529060010190602001808311611f2657829003601f168201915b505050505081565b611f5c611f566141a0565b8261436b565b611f975760405162461bcd60e51b81526004018080602001828103825260318152602001806152676031913960400191505060405180910390fd5b611fa283838361440f565b505050565b6000828152600c6020819052604090912001548290610100900460ff1615612009576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061203f57506000818152600d60205260409020546001600160a01b031633145b61207e576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600490920191860190614f5f565b6019546001600160a01b031633146120ef576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601a60205260409020805460ff19169055565b6000818152600c602090815260409182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156121a85780601f1061217d576101008083540402835291602001916121a8565b820191906000526020600020905b81548152906001019060200180831161218b57829003601f168201915b50505050509050919050565b60155481565b60006121c583612872565b82106122025760405162461bcd60e51b815260040180806020018281038252602b81526020018061505c602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061222657fe5b9060005260206000200154905092915050565b600b546001600160a01b031681565b6000828152600d602052604090205482906001600160a01b031633146122a3576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600390920191850190614f5f565b50505050565b601a6020526000908152604090205460ff1681565b6000828152600d602052604090205482906001600160a01b0316331461233e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600590920191850190614f5f565b6000828152600c6020819052604090912001548290610100900460ff16156123c5576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff16806123fb57506000818152600d60205260409020546001600160a01b031633145b61243a576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600b90920191860190614f5f565b611fa2838383604051806020016040528060008152506139a2565b600f602052600090815260409020546001600160a01b031681565b6000818152600c602090815260408083206008018054825160026001831615610100026000190190921691909104601f810185900485028201850190935282815260609493859385938493929091908301828280156125355780601f1061250a57610100808354040283529160200191612535565b820191906000526020600020905b81548152906001019060200180831161251857829003601f168201915b5050506000898152600c6020908152604091829020600a810154600b9091018054845160026001831615610100026000190190921691909104601f8101859004850282018501909552848152969b5090995093509091508301828280156125dd5780601f106125b2576101008083540402835291602001916125dd565b820191906000526020600020905b8154815290600101906020018083116125c057829003601f168201915b50505060009889525050600c6020819052604090972090960154949693959460ff610100820481169562010000909204169350915050565b600061261f611e98565b821061265c5760405162461bcd60e51b815260040180806020018281038252602c815260200180615298602c913960400191505060405180910390fd5b6007828154811061266957fe5b90600052602060002001549050919050565b60176020526000908152604090205481565b6000818152600160205260408120546001600160a01b0316806126e15760405162461bcd60e51b815260040180806020018281038252602981526020018061518b6029913960400191505060405180910390fd5b92915050565b336000908152601a6020526040902054829060ff168061271d57506000818152600d60205260409020546001600160a01b031633145b61275c576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b506000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6019546001600160a01b031633146127d7576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152601a602052604090205460ff16612850576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166128b95760405162461bcd60e51b815260040180806020018281038252602a815260200180615161602a913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090206126e19061442e565b6000828152600d602052604090205482906001600160a01b03163314612935576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c602081905260409091200154610100900460ff16158061296c57506000838152600c602052604090206007015482105b6129b0576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b6000838152600c602052604090206006015482116129ff5760405162461bcd60e51b815260040180806020018281038252603d8152602001806151b4603d913960400191505060405180910390fd5b620f4240821115612a4f576040805162461bcd60e51b8152602060048201526015602482015274043616e6e6f7420657863656564203130303030303605c1b604482015290519081900360640190fd5b506000918252600c602052604090912060070155565b6060612a7082614432565b8054806020026020016040519081016040528092919081815260200182805480156121a857602002820191906000526020600020905b815481526020019060010190808311612aa65750505050509050919050565b6019546001600160a01b03163314612b11576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19169055565b336000908152601a602052604090205460ff16612b89576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b601c546000818152600d6020908152604080832080546001600160a01b0319166001600160a01b038816179055600c82529091208551612bcb92870190614f5f565b50604080518082018252600381526208aa8960eb1b60208083019182526000858152600e909152929092209051612c029290614f5f565b506000818152601060209081526040808320859055600c91829052909120908101805462ff0000191662010000179055620f4240600790910155601c54612c5090600163ffffffff6141a416565b601c5550505050565b336000908152601a602052604090205460ff16612cb0576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000818152600c6020819052604090912001548190610100900460ff1615612d12576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805461ff001916610100179055565b6019546001600160a01b03163314612d80576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b6000818152600d60209081526040808320546010835281842054600c80855283862060068101546007820154919092015460118752858820546012885286892054600e8952878a208054895160026101006001841615026000190190921691909104601f81018c90048c0282018c01909a528981526001600160a01b039889169b979a9699959860ff90951697949093169591946060949392830182828015612e8e5780601f10612e6357610100808354040283529160200191612e8e565b820191906000526020600020905b815481529060010190602001808311612e7157829003601f168201915b50505060009c8d525050600f6020526040909a2054989a9799969895979496939592946001600160a01b0390931692915050565b6000828152600c6020908152604080832084845260090182529182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015612f625780601f10612f3757610100808354040283529160200191612f62565b820191906000526020600020905b815481529060010190602001808311612f4557829003601f168201915b5050505050905092915050565b6000818152600c602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609384938493849384939283018282801561300c5780601f10612fe15761010080835404028352916020019161300c565b820191906000526020600020905b815481529060010190602001808311612fef57829003601f168201915b50505050509450600c60008781526020019081526020016000206001018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156130bd5780601f10613092576101008083540402835291602001916130bd565b820191906000526020600020905b8154815290600101906020018083116130a057829003601f168201915b5050506000898152600c60209081526040918290206002908101805484516001821615610100026000190190911692909204601f810184900484028301840190945283825295995094935090915083018282801561315c5780601f106131315761010080835404028352916020019161315c565b820191906000526020600020905b81548152906001019060200180831161313f57829003601f168201915b5050506000898152600c60209081526040918290206003018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295985093509091508301828280156131fa5780601f106131cf576101008083540402835291602001916131fa565b820191906000526020600020905b8154815290600101906020018083116131dd57829003601f168201915b5050506000898152600c60209081526040918290206004018054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815295975093509091508301828280156132985780601f1061326d57610100808354040283529160200191613298565b820191906000526020600020905b81548152906001019060200180831161327b57829003601f168201915b5050505050905091939590929450565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561190d5780601f106118e25761010080835404028352916020019161190d565b6000828152600d602052604090205482906001600160a01b03163314613364576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b5060009182526010602052604090912055565b6000818152600d602052604090205481906001600160a01b031633146133d2576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b506000908152600c6020819052604090912001805462ff0000198116620100009182900460ff1615909102179055565b61340a6141a0565b6001600160a01b0316826001600160a01b0316141561346c576040805162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015290519081900360640190fd5b80600460006134796141a0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556134bd6141a0565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b6000828152600d602052604090205482906001600160a01b0316331461355e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000838152600c6020908152604090912083516122c892600290920191850190614f5f565b600d602052600090815260409020546001600160a01b031681565b6000908152601660209081526040808320548352600d82528083205460118352818420546012845282852054601390945291909320546001600160a01b03938416949390911692565b6000828152600c6020819052604090912001548290610100900460ff1615613649576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061367f57506000818152600d60205260409020546001600160a01b031633145b6136be576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c60209081526040808320600a8101548452600901825290912084516136ec92860190614f5f565b506000848152600c60205260409020600a015461371090600163ffffffff6141a416565b6000948552600c6020526040909420600a0193909355505050565b601b6020526000908152604090205460ff1681565b6000838152600c6020819052604090912001548390610100900460ff16156137a2576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054849060ff16806137d857506000818152600d60205260409020546001600160a01b031633145b613817576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000858152600c60205260409020600a01548410613874576040805162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b604482015290519081900360640190fd5b6000858152600c602090815260408083208784526009018252909120845161389e92860190614f5f565b505050505050565b6000828152600c6020819052604090912001548290610100900460ff1615613908576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff168061393e57506000818152600d60205260409020546001600160a01b031633145b61397d576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600190920191860190614f5f565b6139b36139ad6141a0565b8361436b565b6139ee5760405162461bcd60e51b81526004018080602001828103825260318152602001806152676031913960400191505060405180910390fd5b6122c88484848461444c565b6000828152600d602052604090205482906001600160a01b03163314613a55576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115613a99576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b5060009182526013602052604090912055565b6000828152600c6020819052604090912001548290610100900460ff1615613b0e576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054839060ff1680613b4457506000818152600d60205260409020546001600160a01b031633145b613b83576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000848152600c602090815260409091208451611b9892600890920191860190614f5f565b606081613bb481614183565b613bff576040805162461bcd60e51b8152602060048201526017602482015276151bdad95b88125108191bd95cc81b9bdd08195e1a5cdd604a1b604482015290519081900360640190fd5b6000838152601660209081526040808320548352600c82529182902060050180548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452613cb59392830182828015613ca25780601f10613c7757610100808354040283529160200191613ca2565b820191906000526020600020905b815481529060010190602001808311613c8557829003601f168201915b5050505050613cb08561449e565b61455f565b9392505050565b60126020526000908152604090205481565b6014546001600160a01b031681565b336000908152601a602052604090205460ff16613d34576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481dda1a5d195b1a5cdd195960821b604482015290519081900360640190fd5b6000908152600c6020819052604090912001805460ff19811660ff90911615179055565b6000838152600d602052604090205483906001600160a01b03163314613db3576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6000848152600e602090815260409091208451613dd292860190614f5f565b50506000928352600f602052604090922080546001600160a01b0319166001600160a01b039093169290921790915550565b6011602052600090815260409020546001600160a01b031681565b6000818152600c6020819052604090912001548190610100900460ff1615613e81576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881d5b9b1bd8dad95960821b604482015290519081900360640190fd5b336000908152601a6020526040902054829060ff1680613eb757506000818152600d60205260409020546001600160a01b031633145b613ef6576040805162461bcd60e51b815260206004820152601a6024820152600080516020615109833981519152604482015290519081900360640190fd5b6000838152600c60205260409020600a0154613f59576040805162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f76650000604482015290519081900360640190fd5b6000838152600c60209081526040808320600a8101546000190184526009019091528120613f8691614fdd565b6000838152600c60205260409020600a0154613fa990600163ffffffff61459b16565b6000938452600c6020526040909320600a01929092555050565b6000838152600d602052604090205483906001600160a01b0316331461401e576040805162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185c9d1a5cdd60aa1b604482015290519081900360640190fd5b6064821115614062576040805162461bcd60e51b815260206004820152600b60248201526a4d6178206f66203130302560a81b604482015290519081900360640190fd5b50600092835260116020908152604080852080546001600160a01b0319166001600160a01b03959095169490941790935560129052912055565b6019546001600160a01b031633146140e8576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b601c5481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b60136020526000908152604090205481565b60186020526000908152604090205481565b60106020526000908152604090205481565b6019546001600160a01b031681565b6000908152600160205260409020546001600160a01b0316151590565b3390565b600082820183811015613cb5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600c6020526040812060060154620f4240830281019061422a90600163ffffffff6141a416565b6000848152600c60209081526040808320600601849055600b54815163990c8f7960e01b815291519394934393600019850140936001600160a01b039093169263990c8f799260048083019392829003018186803b15801561428b57600080fd5b505afa15801561429f573d6000803e3d6000fd5b505050506040513d60208110156142b557600080fd5b5051604080516020818101969096528082019490945260608401929092526080808401919091528151808403909101815260a0909201815281519183019190912060008581526017845282812082905581815260189093529120839055905061431e85836145dd565b60008281526016602052604080822086905551859184916001600160a01b038916917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f91a4509392505050565b600061437682614183565b6143b15760405162461bcd60e51b815260040180806020018281038252602c8152602001806150dd602c913960400191505060405180910390fd5b60006143bc8361268d565b9050806001600160a01b0316846001600160a01b031614806143f75750836001600160a01b03166143ec84611918565b6001600160a01b0316145b8061440757506144078185614110565b949350505050565b61441a8383836145fe565b6144248382614742565b611fa28282614830565b5490565b6001600160a01b0316600090815260056020526040902090565b61445784848461440f565b6144638484848461486e565b6122c85760405162461bcd60e51b81526004018080602001828103825260328152602001806150876032913960400191505060405180910390fd5b6060816144c357506040805180820190915260018152600360fc1b602082015261187c565b8160005b81156144db57600101600a820491506144c7565b6060816040519080825280601f01601f191660200182016040528015614508576020820181803883390190505b50905060001982015b851561455657600a860660300160f81b8282806001900393508151811061453457fe5b60200101906001600160f81b031916908160001a905350600a86049550614511565b50949350505050565b6060613cb58383604051806020016040528060008152506040518060200160405280600081525060405180602001604052806000815250614aa9565b6000613cb583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614cbd565b6145e78282614d54565b6145f18282614830565b6145fa81614e85565b5050565b826001600160a01b03166146118261268d565b6001600160a01b0316146146565760405162461bcd60e51b815260040180806020018281038252602981526020018061521d6029913960400191505060405180910390fd5b6001600160a01b03821661469b5760405162461bcd60e51b81526004018080602001828103825260248152602001806150b96024913960400191505060405180910390fd5b6146a481614ec9565b6001600160a01b03831660009081526003602052604090206146c590614f06565b6001600160a01b03821660009081526003602052604090206146e690614f1d565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461476c90600163ffffffff61459b16565b600083815260066020526040902054909150808214614807576001600160a01b03841660009081526005602052604081208054849081106147a957fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106147e757fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b98906000198301615021565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6000614882846001600160a01b0316614f26565b61488e57506001614407565b600060606001600160a01b038616630a85bd0160e11b6148ac6141a0565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561492557818101518382015260200161490d565b50505050905090810190601f1680156149525780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106149ba5780518252601f19909201916020918201910161499b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614a1c576040519150601f19603f3d011682016040523d82523d6000602084013e614a21565b606091505b509150915081614a7257805115614a3b5780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806150876032913960400191505060405180910390fd5b6000818060200190516020811015614a8957600080fd5b50516001600160e01b031916630a85bd0160e11b14935061440792505050565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015614afd576020820181803883390190505b509050806000805b8851811015614b5657888181518110614b1a57fe5b602001015160f81c60f81b838380600101945081518110614b3757fe5b60200101906001600160f81b031916908160001a905350600101614b05565b5060005b8751811015614bab57878181518110614b6f57fe5b602001015160f81c60f81b838380600101945081518110614b8c57fe5b60200101906001600160f81b031916908160001a905350600101614b5a565b5060005b8651811015614c0057868181518110614bc457fe5b602001015160f81c60f81b838380600101945081518110614be157fe5b60200101906001600160f81b031916908160001a905350600101614baf565b5060005b8551811015614c5557858181518110614c1957fe5b602001015160f81c60f81b838380600101945081518110614c3657fe5b60200101906001600160f81b031916908160001a905350600101614c04565b5060005b8451811015614caa57848181518110614c6e57fe5b602001015160f81c60f81b838380600101945081518110614c8b57fe5b60200101906001600160f81b031916908160001a905350600101614c59565b50909d9c50505050505050505050505050565b60008184841115614d4c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614d11578181015183820152602001614cf9565b50505050905090810190601f168015614d3e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216614daf576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b614db881614183565b15614e0a576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020614e4990614f1d565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b031615614f0357600081815260026020526040902080546001600160a01b03191690555b50565b8054614f1990600163ffffffff61459b16565b9055565b80546001019055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590614407575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614fa057805160ff1916838001178555614fcd565b82800160010185558215614fcd579182015b82811115614fcd578251825591602001919060010190614fb2565b50614fd9929150615041565b5090565b50805460018160011615610100020316600290046000825580601f106150035750614f03565b601f016020900490600052602060002090810190614f039190615041565b815481835581811115611fa257600083815260209020611fa29181019083015b61191591905b80821115614fd9576000815560010161504756fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4f6e6c7920617274697374206f722077686974656c69737465640000000000004552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e596f75206d75737420736574206d617820696e766f636174696f6e732067726561746572207468616e2063757272656e7420696e766f636174696f6e734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734d757374206d696e742066726f6d2077686974656c6973746564206d696e74657220636f6e74726163742ea265627a7a72315820a36db605a7ee8ec56b9c7767597b33d3b001d15edaaed5dc655f4adacd049da564736f6c63430005110032

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000088098f7438773182b703625c4128aff85fcffc4000000000000000000000000000000000000000000000000000000000000000e427269676874204d6f6d656e747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d4f4d454e540000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Bright Moments
Arg [1] : _tokenSymbol (string): MOMENT
Arg [2] : _randomizerContract (address): 0x088098F7438773182b703625C4128aFf85fcFfC4

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000088098f7438773182b703625c4128aff85fcffc4
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [4] : 427269676874204d6f6d656e7473000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 4d4f4d454e540000000000000000000000000000000000000000000000000000


Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.