ETH Price: $3,319.82 (-4.34%)

MojoHeads (MJH)
 

Overview

TokenID

101

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

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

OVERVIEW

✨ A simple mission, help artists be seen. ✨ Massive Roadmap & Utility: https://mojoheads.medium.com/ We believe in artists. They’re humble, kind, gifted individuals. If you’ve never purchased NFT art from an independent creator, you‘re missing out on an experience you won’t ...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MojoHeads

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1500 runs

Other Settings:
default evmVersion
File 1 of 20 : MojoHeads.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;


import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./interface/IAccessPass.sol";


contract MojoHeads is ERC721, AccessControl, IERC2981, Ownable {

    using Counters for Counters.Counter;
    Counters.Counter private campaignCounter;

    Counters.Counter private artistTokensCounter;

    enum CampaignState {PENDING, READY, PRESALE, ONGOING, PAUSED, FINISH}

    struct Campaign {
        CampaignState state;
        address accessPassAddress;
        uint256 preSalePassId;
        uint256 vipSalePassId;
        uint256 maxPresaleTokens;
        uint256 maxOngoingTokens;
        uint256 totalSupply;
    }

    struct CampaignPrice {
        uint256 unitPricePresale;
        uint256 unitPriceVipSale;
        uint256 unitPriceStartPublicSale;
        uint256 unitPriceEndPublicSale;
        uint256 totalBlockUntilUnitPriceEnd;
        uint256 publicSaleStartBlock;
    }

    struct CampaignPriceInput {
        uint256 unitPricePresale;
        uint256 unitPriceVipSale;
        uint256 unitPriceStartPublicSale;
        uint256 unitPriceEndPublicSale;
        uint256 totalBlockUntilUnitPriceEnd;
    }

    mapping(uint256 => uint256[]) availableHashList;

    event CampaignRegisteredEvent(
        uint256 indexed campaignId
    );

    event CampaignUpdatedEvent(
        uint256 indexed campaignId
    );

    event CampaignStateChangedEvent(
        uint256 indexed campaignId,
        CampaignState state
    );

    event CampaignNewHashAddedEvent(
        uint256 indexed campaignId
    );

    event WithdrawEth(
        uint256 indexed amount,
        address indexed receiver
    );

    event WithdrawERC20(
        address indexed token,
        uint256 indexed amount,
        address indexed receiver
    );

    mapping(uint256 => Campaign) public campaignList;
    mapping(uint256 => CampaignPrice) public campaignPriceList;
    mapping(uint256 => bytes32) public tokenHashMapping;
    mapping(bytes32 => uint256) public hashTokenMapping;
    mapping(uint256 => uint256) public tokenToArtistMapping;
    mapping(uint256 => address) public tokenRoyaltyMapping;

    address public defaultRoyaltyAddress;
    uint256 public royaltyPercentage;
    uint256 public artistTokenReserve;
    uint256 public maxSupply;
    uint256 public totalSupply;
    bytes32 public constant CAMPAIGN_ADMIN_ROLE = keccak256("CAMPAIGN_ADMIN");
    bytes32 public constant WITHDRAW_ROLE = keccak256("WITHDRAW");

    string private _baseURIextended = "https://artist.mojoheads.com/meta/";

    constructor(string memory name_, string memory symbol_, uint256 artistTokenReserve_, uint256 royaltyPercentage_, address defaultRoyaltyAddress_, uint256 maxSupply_) ERC721(name_, symbol_) {
        require(royaltyPercentage_ <= 10000, "royaltyPercentage_ must be lte 10000.");
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(CAMPAIGN_ADMIN_ROLE, _msgSender());
        _setupRole(WITHDRAW_ROLE, _msgSender());
        _setRoleAdmin(WITHDRAW_ROLE, DEFAULT_ADMIN_ROLE);
        artistTokenReserve = artistTokenReserve_;
        royaltyPercentage = royaltyPercentage_;
        defaultRoyaltyAddress = defaultRoyaltyAddress_;
        maxSupply = maxSupply_;
    }

    function register(address accessPassAddress,
        uint256 preSalePassId,
        uint256 vipSalePassId,
        CampaignPriceInput memory campaignPriceInput,
        uint256 maxPresaleTokens,
        uint256 maxOngoingTokens) public onlyRole(CAMPAIGN_ADMIN_ROLE) returns (uint256) {

        campaignCounter.increment();
        uint256 campaignId = campaignCounter.current();
        campaignList[campaignId].state = CampaignState.PENDING;
        campaignList[campaignId].accessPassAddress = accessPassAddress;
        campaignList[campaignId].preSalePassId = preSalePassId;
        campaignList[campaignId].vipSalePassId = vipSalePassId;

        campaignList[campaignId].maxPresaleTokens = maxPresaleTokens;
        campaignList[campaignId].maxOngoingTokens = maxOngoingTokens;

        campaignPriceList[campaignId].unitPricePresale = campaignPriceInput.unitPricePresale;
        campaignPriceList[campaignId].unitPriceVipSale = campaignPriceInput.unitPriceVipSale;
        campaignPriceList[campaignId].unitPriceStartPublicSale = campaignPriceInput.unitPriceStartPublicSale;
        campaignPriceList[campaignId].unitPriceEndPublicSale = campaignPriceInput.unitPriceEndPublicSale;
        campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd = campaignPriceInput.totalBlockUntilUnitPriceEnd;

        emit CampaignRegisteredEvent(
            campaignId
        );

        return campaignId;
    }

    function finishCampaign(uint256 campaignId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.PAUSED || campaignList[campaignId].state == CampaignState.ONGOING, "Campaign should be started.");
        campaignList[campaignId].state = CampaignState.FINISH;

        emit CampaignStateChangedEvent(
            campaignId,
            CampaignState.FINISH
        );
    }

    function setCampaignReady(uint256 campaignId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.PENDING, "Campaign should be pending.");
        campaignList[campaignId].state = CampaignState.READY;

        emit CampaignStateChangedEvent(
            campaignId,
            CampaignState.READY
        );
    }


    function startPresale(uint256 campaignId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.READY
        || campaignList[campaignId].state == CampaignState.ONGOING
            || campaignList[campaignId].state == CampaignState.PAUSED, "Campaign should be READY, PAUSED or ONGOING.");

        campaignList[campaignId].state = CampaignState.PRESALE;

        emit CampaignStateChangedEvent(
            campaignId,
            CampaignState.PRESALE
        );
    }

    function startCampaign(uint256 campaignId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.READY
        || campaignList[campaignId].state == CampaignState.PAUSED
            || campaignList[campaignId].state == CampaignState.PRESALE, "Campaign should be READY or PAUSED.");

        campaignList[campaignId].state = CampaignState.ONGOING;
        campaignPriceList[campaignId].publicSaleStartBlock = block.number;

        emit CampaignStateChangedEvent(
            campaignId,
            CampaignState.ONGOING
        );
    }


    function pauseCampaign(uint256 campaignId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.ONGOING
            || campaignList[campaignId].state == CampaignState.PRESALE, "Campaign should be ONGOING.");

        campaignList[campaignId].state = CampaignState.PAUSED;

        emit CampaignStateChangedEvent(
            campaignId,
            CampaignState.PAUSED
        );
    }

    function update(uint256 campaignId, address accessPassAddress,
        uint256 preSalePassId,
        uint256 vipSalePassId,
        CampaignPriceInput memory campaignPriceInput,
        uint256 maxPresaleTokens,
        uint256 maxOngoingTokens) public onlyRole(CAMPAIGN_ADMIN_ROLE) returns (uint256) {

        campaignList[campaignId].accessPassAddress = accessPassAddress;
        campaignList[campaignId].preSalePassId = preSalePassId;
        campaignList[campaignId].vipSalePassId = vipSalePassId;
        campaignList[campaignId].maxPresaleTokens = maxPresaleTokens;
        campaignList[campaignId].maxOngoingTokens = maxOngoingTokens;

        campaignPriceList[campaignId].unitPricePresale = campaignPriceInput.unitPricePresale;
        campaignPriceList[campaignId].unitPriceVipSale = campaignPriceInput.unitPriceVipSale;
        campaignPriceList[campaignId].unitPriceStartPublicSale = campaignPriceInput.unitPriceStartPublicSale;
        campaignPriceList[campaignId].unitPriceEndPublicSale = campaignPriceInput.unitPriceEndPublicSale;
        campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd = campaignPriceInput.totalBlockUntilUnitPriceEnd;

        emit CampaignUpdatedEvent(
            campaignId
        );

        return campaignId;
    }

    function mapTokenToArtistBatch(uint256 campaignId, uint256 [] calldata tokenIdList, uint256 [] calldata artistTokenList) public onlyRole (CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.PENDING, "Cannot add hash to Started campaign");
        require(tokenIdList.length == artistTokenList.length, "tokenIdList and artistTokenList must be in same length");
        campaignList[campaignId].totalSupply += tokenIdList.length;
        for (uint i = 0; i < tokenIdList.length; i++) {
            tokenToArtistMapping[tokenIdList[i]] = artistTokenList[i];
            availableHashList[campaignId].push(tokenIdList[i]);
        }
    }

    function mint(uint256 campaignId, uint256 amount, address receiver) public payable {
        if (campaignList[campaignId].state == CampaignState.PRESALE) {
            require(amount <= campaignList[campaignId].maxPresaleTokens, "Cannot mint more than allowed in presale.");
        } else {
            require(amount <= campaignList[campaignId].maxOngoingTokens, "Cannot mint more than allowed.");
        }

        uint256 totalCost = 0;

        for (uint i; i < amount; i++) {
            uint256 price = _checkCampaignStateForMinting(campaignId);
            totalCost = totalCost + price;
            _randomMint(campaignId, receiver);
        }

        require(msg.value >= totalCost, "Insufficient funds.");

        if (msg.value > totalCost) {
            payable(msg.sender).transfer(msg.value - totalCost);
        }
    }

    function getOngoingPrice(uint256 campaignId) public view returns (uint256) {
        require(campaignList[campaignId].state == CampaignState.ONGOING, "Campaign is not started yet.");
        uint256 blockPasted = block.number - campaignPriceList[campaignId].publicSaleStartBlock;

        if (blockPasted > campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd) {
            blockPasted = campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd;
        }
        if (campaignPriceList[campaignId].unitPriceEndPublicSale > campaignPriceList[campaignId].unitPriceStartPublicSale) {
            return campaignPriceList[campaignId].unitPriceStartPublicSale + (campaignPriceList[campaignId].unitPriceEndPublicSale - campaignPriceList[campaignId].unitPriceStartPublicSale) / campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd * blockPasted;
        } else {
            return campaignPriceList[campaignId].unitPriceStartPublicSale - (campaignPriceList[campaignId].unitPriceStartPublicSale - campaignPriceList[campaignId].unitPriceEndPublicSale) / campaignPriceList[campaignId].totalBlockUntilUnitPriceEnd * blockPasted;
        }
    }
    
    function _checkCampaignStateForMinting(uint256 campaignId) internal returns (uint256) {
        if (campaignList[campaignId].state == CampaignState.PRESALE) {
            IAccessPass accessPass = IAccessPass(campaignList[campaignId].accessPassAddress);
            if (accessPass.balanceOf(msg.sender, campaignList[campaignId].vipSalePassId) > 0) {
                accessPass.burn(msg.sender, campaignList[campaignId].vipSalePassId, 1);
                return campaignPriceList[campaignId].unitPriceVipSale;
            } else if (accessPass.balanceOf(msg.sender, campaignList[campaignId].preSalePassId) > 0) {
                accessPass.burn(msg.sender, campaignList[campaignId].preSalePassId, 1);
                return campaignPriceList[campaignId].unitPricePresale;
            } else {
                revert("No Access token.");
            }

        } else {
            return getOngoingPrice(campaignId);
        }
    }

    function adminMint(uint256 campaignId, uint256 amount, address receiver) public payable onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.READY, "Must be in ready state.");
        require(amount <= campaignList[campaignId].maxPresaleTokens, "Cannot mint more than allowed in presale.");

        uint256 totalCost = 0;

        for (uint i; i < amount; i++) {
            uint256 price = _checkCampaignStateForAdminMinting(campaignId);
            totalCost = totalCost + price;
            _randomMint(campaignId, receiver);
        }

        require(msg.value >= totalCost, "Insufficient funds.");

        if (msg.value > totalCost) {
            payable(msg.sender).transfer(msg.value - totalCost);
        }
    }

    function _checkCampaignStateForAdminMinting(uint256 campaignId) internal returns (uint256) {
        IAccessPass accessPass = IAccessPass(campaignList[campaignId].accessPassAddress);
        if (accessPass.balanceOf(msg.sender, campaignList[campaignId].vipSalePassId) > 0) {
            accessPass.burn(msg.sender, campaignList[campaignId].vipSalePassId, 1);
            return campaignPriceList[campaignId].unitPriceVipSale;
        } else if (accessPass.balanceOf(msg.sender, campaignList[campaignId].preSalePassId) > 0) {
            accessPass.burn(msg.sender, campaignList[campaignId].preSalePassId, 1);
            return campaignPriceList[campaignId].unitPricePresale;
        } else {
            revert("No Access token.");
        }
    }

    function preMintWithTokenId(uint256 campaignId, address receiver, uint256 tokenId, uint256 artistTokenId) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state == CampaignState.PENDING, "Campaign is not PENDING.");
        tokenToArtistMapping[tokenId] = artistTokenId;
        _mintToken(tokenId, receiver);
    }

    function preMint(uint256 campaignId, address receiver) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state != CampaignState.PENDING, "Campaign is not ready yet.");
        _randomMint(campaignId, receiver);
    }

    function preMintBatch(uint256 campaignId, address[] memory receiverList) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(campaignList[campaignId].state != CampaignState.PENDING, "Campaign is not ready yet.");
        require(receiverList.length <= availableHashList[campaignId].length, "Campaign does not have enough hashes.");
        for (uint i = 0; i < receiverList.length; i++) {
            _randomMint(campaignId, receiverList[i]);
        }
    }

    function _randomMint(uint256 campaignId, address receiver) private {
        require(availableHashList[campaignId].length > 0, "All NFTs are sold.");
        uint256 random;
        if (availableHashList[campaignId].length > 1) {
            random = uint256(keccak256(abi.encodePacked(availableHashList[campaignId].length, blockhash(block.number), block.difficulty))) % availableHashList[campaignId].length;
        } else {
            random = 0;
        }

        uint256 tokenId = availableHashList[campaignId][random];
        availableHashList[campaignId][random] = availableHashList[campaignId][availableHashList[campaignId].length - 1];
        availableHashList[campaignId].pop();

        _mintToken(tokenId, receiver);
    }

    function _mintToken(uint256 tokenId, address receiver) private {
        totalSupply += 1;
        require(totalSupply <= maxSupply, "Cannot mint more than maxSupply.");
        _mint(receiver, tokenId);
    }

    function mintArtistToken(address to) public onlyRole(CAMPAIGN_ADMIN_ROLE) {
        artistTokensCounter.increment();
        uint256 tokenId = artistTokensCounter.current();
        require(tokenId <= artistTokenReserve, "Artist token id reserves finished.");
        _mint(to, tokenId);
        tokenRoyaltyMapping[tokenId] = defaultRoyaltyAddress;
    }

    function withdrawERC20(address token, uint256 amount, address payable receiver) external onlyRole(WITHDRAW_ROLE) {
        IERC20(token).transfer(receiver, amount);
        emit WithdrawERC20(token, amount, receiver);
    }

    function withdrawEth(uint256 amount, address payable receiver) external onlyRole(WITHDRAW_ROLE) {
        receiver.transfer(amount);
        emit WithdrawEth(amount, receiver);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl, IERC165) returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId
        || interfaceId == type(IERC721).interfaceId
        || interfaceId == type(IERC2981).interfaceId
        || interfaceId == type(ERC721URIStorage).interfaceId;
    }

    function campaignCount() public view returns (uint256) {
        return campaignCounter.current();
    }

    function getCampaign(uint256 id) public view returns (Campaign memory) {
        return campaignList[id];
    }

    function getCampaignPrice(uint256 id) public view returns (CampaignPrice memory) {
        return campaignPriceList[id];
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address, uint256) {
        uint256 artistTokenId = tokenToArtistMapping[tokenId];
        address royaltyAddress = tokenRoyaltyMapping[artistTokenId];
        uint256 royaltyAmount = salePrice * royaltyPercentage / 10000;
        if (royaltyAddress == address(0)) {
            return (defaultRoyaltyAddress, royaltyAmount);
        }

        return (royaltyAddress, royaltyAmount);
    }

    function setTokenRoyaltyAddress(uint256 tokenId, address royaltyAddress) external onlyRole(CAMPAIGN_ADMIN_ROLE) {
        require(_exists(tokenId), "Token must be existing to set royalty info.");
        tokenRoyaltyMapping[tokenId] = royaltyAddress;
    }

    function getCampaignHash(uint256 campaignId, uint256 hashIndex) external view returns (bytes32) {
        return tokenHashMapping[availableHashList[campaignId][hashIndex]];
    }

    function getCampaignAvailableHashCount(uint256 campaignId) external view returns (uint256) {
        return availableHashList[campaignId].length;
    }

    function setRoyaltyPercentage(uint256 _royaltyPercentage) external onlyRole(CAMPAIGN_ADMIN_ROLE) {
        royaltyPercentage = _royaltyPercentage;
    }

    function setBaseURI(string memory baseURI_) external onlyRole(CAMPAIGN_ADMIN_ROLE) {
        _baseURIextended = baseURI_;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId),"URI query for nonexistent token");
        return string(abi.encodePacked(_baseURIextended, Strings.toString(tokenId)));
    }
}

File 2 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 3 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 20 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 5 of 20 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. 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;`
 */
library Counters {
    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 {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 20 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 20 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 20 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 10 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 12 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 13 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 14 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 15 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 17 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 18 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 19 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 20 of 20 : IAccessPass.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/access/IAccessControl.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";


interface IAccessPass is IERC1155, IERC2981 {


    function burn(
        address account,
        uint256 id,
        uint256 amount
    ) external;

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) external;

    function mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external;

    function mintBatch(
        address[] memory tos,
        uint256[] memory ids,
        uint256 amount,
        bytes memory data
    ) external;

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"artistTokenReserve_","type":"uint256"},{"internalType":"uint256","name":"royaltyPercentage_","type":"uint256"},{"internalType":"address","name":"defaultRoyaltyAddress_","type":"address"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"CampaignNewHashAddedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"CampaignRegisteredEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"},{"indexed":false,"internalType":"enum MojoHeads.CampaignState","name":"state","type":"uint8"}],"name":"CampaignStateChangedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"CampaignUpdatedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"WithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"WithdrawEth","type":"event"},{"inputs":[],"name":"CAMPAIGN_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistTokenReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"campaignCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"campaignList","outputs":[{"internalType":"enum MojoHeads.CampaignState","name":"state","type":"uint8"},{"internalType":"address","name":"accessPassAddress","type":"address"},{"internalType":"uint256","name":"preSalePassId","type":"uint256"},{"internalType":"uint256","name":"vipSalePassId","type":"uint256"},{"internalType":"uint256","name":"maxPresaleTokens","type":"uint256"},{"internalType":"uint256","name":"maxOngoingTokens","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"campaignPriceList","outputs":[{"internalType":"uint256","name":"unitPricePresale","type":"uint256"},{"internalType":"uint256","name":"unitPriceVipSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceStartPublicSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceEndPublicSale","type":"uint256"},{"internalType":"uint256","name":"totalBlockUntilUnitPriceEnd","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"finishCampaign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getCampaign","outputs":[{"components":[{"internalType":"enum MojoHeads.CampaignState","name":"state","type":"uint8"},{"internalType":"address","name":"accessPassAddress","type":"address"},{"internalType":"uint256","name":"preSalePassId","type":"uint256"},{"internalType":"uint256","name":"vipSalePassId","type":"uint256"},{"internalType":"uint256","name":"maxPresaleTokens","type":"uint256"},{"internalType":"uint256","name":"maxOngoingTokens","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"internalType":"struct MojoHeads.Campaign","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"getCampaignAvailableHashCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"hashIndex","type":"uint256"}],"name":"getCampaignHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getCampaignPrice","outputs":[{"components":[{"internalType":"uint256","name":"unitPricePresale","type":"uint256"},{"internalType":"uint256","name":"unitPriceVipSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceStartPublicSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceEndPublicSale","type":"uint256"},{"internalType":"uint256","name":"totalBlockUntilUnitPriceEnd","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartBlock","type":"uint256"}],"internalType":"struct MojoHeads.CampaignPrice","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"getOngoingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hashTokenMapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"},{"internalType":"uint256[]","name":"artistTokenList","type":"uint256[]"}],"name":"mapTokenToArtistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintArtistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"pauseCampaign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"preMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"address[]","name":"receiverList","type":"address[]"}],"name":"preMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"artistTokenId","type":"uint256"}],"name":"preMintWithTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"accessPassAddress","type":"address"},{"internalType":"uint256","name":"preSalePassId","type":"uint256"},{"internalType":"uint256","name":"vipSalePassId","type":"uint256"},{"components":[{"internalType":"uint256","name":"unitPricePresale","type":"uint256"},{"internalType":"uint256","name":"unitPriceVipSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceStartPublicSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceEndPublicSale","type":"uint256"},{"internalType":"uint256","name":"totalBlockUntilUnitPriceEnd","type":"uint256"}],"internalType":"struct MojoHeads.CampaignPriceInput","name":"campaignPriceInput","type":"tuple"},{"internalType":"uint256","name":"maxPresaleTokens","type":"uint256"},{"internalType":"uint256","name":"maxOngoingTokens","type":"uint256"}],"name":"register","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"setCampaignReady","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyPercentage","type":"uint256"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"royaltyAddress","type":"address"}],"name":"setTokenRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"startCampaign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenHashMapping","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenRoyaltyMapping","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToArtistMapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"address","name":"accessPassAddress","type":"address"},{"internalType":"uint256","name":"preSalePassId","type":"uint256"},{"internalType":"uint256","name":"vipSalePassId","type":"uint256"},{"components":[{"internalType":"uint256","name":"unitPricePresale","type":"uint256"},{"internalType":"uint256","name":"unitPriceVipSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceStartPublicSale","type":"uint256"},{"internalType":"uint256","name":"unitPriceEndPublicSale","type":"uint256"},{"internalType":"uint256","name":"totalBlockUntilUnitPriceEnd","type":"uint256"}],"internalType":"struct MojoHeads.CampaignPriceInput","name":"campaignPriceInput","type":"tuple"},{"internalType":"uint256","name":"maxPresaleTokens","type":"uint256"},{"internalType":"uint256","name":"maxOngoingTokens","type":"uint256"}],"name":"update","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602260808181529062004f8460a0398051620000299160169160209091019062000307565b503480156200003757600080fd5b5060405162004fa638038062004fa68339810160408190526200005a916200047a565b8551869086906200007390600090602085019062000307565b5080516200008990600190602084019062000307565b505050620000a6620000a0620001b260201b60201c565b620001b6565b6127108311156200010b5760405162461bcd60e51b815260206004820152602560248201527f726f79616c747950657263656e746167655f206d757374206265206c74652031604482015264181818181760d91b606482015260840160405180910390fd5b6200011860003362000208565b620001447f1defd8ef915dc8ec87e9048048c7076484c6d2162021b65fd4a8c056057d93633362000208565b6200015f60008051602062004f648339815191523362000208565b6200017b60008051602062004f64833981519152600062000218565b601393909355601291909155601180546001600160a01b0319166001600160a01b0390921691909117905560145550620005619050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000214828262000263565b5050565b600082815260066020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620002145760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002c33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620003159062000524565b90600052602060002090601f01602090048101928262000339576000855562000384565b82601f106200035457805160ff191683800117855562000384565b8280016001018555821562000384579182015b828111156200038457825182559160200191906001019062000367565b506200039292915062000396565b5090565b5b8082111562000392576000815560010162000397565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003d557600080fd5b81516001600160401b0380821115620003f257620003f2620003ad565b604051601f8301601f19908116603f011681019082821181831017156200041d576200041d620003ad565b816040528381526020925086838588010111156200043a57600080fd5b600091505b838210156200045e57858201830151818301840152908201906200043f565b83821115620004705760008385830101525b9695505050505050565b60008060008060008060c087890312156200049457600080fd5b86516001600160401b0380821115620004ac57600080fd5b620004ba8a838b01620003c3565b97506020890151915080821115620004d157600080fd5b50620004e089828a01620003c3565b604089015160608a015160808b0151929850909650945090506001600160a01b03811681146200050f57600080fd5b8092505060a087015190509295509295509295565b600181811c908216806200053957607f821691505b602082108114156200055b57634e487b7160e01b600052602260045260246000fd5b50919050565b6149f380620005716000396000f3fe6080604052600436106103a25760003560e01c8063715018a6116101e7578063c46d6d431161010d578063de99347a116100a0578063f06b86ba1161006f578063f06b86ba14610c6e578063f163108514610c8e578063f2fde38b14610cbb578063f593027214610cdb57600080fd5b8063de99347a14610bbe578063e02023a114610bde578063e7d3fe6b14610c12578063e985e9c514610c2557600080fd5b8063d547741f116100dc578063d547741f14610b52578063d5abeb0114610b72578063d6b364b114610b88578063d87be9d114610b9e57600080fd5b8063c46d6d4314610a77578063c5e5554b14610a99578063c87b56dd14610b05578063d0f4669114610b2557600080fd5b806395d89b4111610185578063a217fddf11610154578063a217fddf14610a02578063a22cb46514610a17578063b88d4fde14610a37578063c0509a8f14610a5757600080fd5b806395d89b411461098d57806397a61b1f146109a2578063a132aad1146109c2578063a158657c146109e257600080fd5b80638a71bb2d116101c15780638a71bb2d146108e65780638da5cb5b146108fc57806391d148541461091a57806391d401c51461096057600080fd5b8063715018a61461089c5780637274e30d146108b1578063870c4140146108c657600080fd5b80633cd24bfd116102cc578063559b24ba1161026a57806361ba27da1161023957806361ba27da1461081c5780636352211e1461083c5780636da16afe1461085c57806370a082311461087c57600080fd5b8063559b24ba1461073f57806355f804b31461075f5780635653bb291461077f5780635fc3ea0b146107fc57600080fd5b80634cf9aec9116102a65780634cf9aec9146106b25780634efbf6b2146106d25780635545db0d146106f25780635598f8cc1461071257600080fd5b80633cd24bfd146105eb57806342842e0e146106215780634912c6581461064157600080fd5b8063248a9ca3116103445780632f2ff15d116103135780632f2ff15d1461056b578063345e73911461058b57806335dda05a146105ab57806336568abe146105cb57600080fd5b8063248a9ca3146104bc5780632a55205a146104ec5780632c270b751461052b5780632da636081461055857600080fd5b8063095ea7b311610380578063095ea7b31461043657806318160ddd1461045857806320bdf9aa1461047c57806323b872dd1461049c57600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613ee5565b610cfb565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610dcc565b6040516103d39190613f5a565b34801561040a57600080fd5b5061041e610419366004613f6d565b610e5e565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b50610456610451366004613f9b565b610f09565b005b34801561046457600080fd5b5061046e60155481565b6040519081526020016103d3565b34801561048857600080fd5b50610456610497366004613f6d565b61103b565b3480156104a857600080fd5b506104566104b7366004613fc7565b611120565b3480156104c857600080fd5b5061046e6104d7366004613f6d565b60009081526006602052604090206001015490565b3480156104f857600080fd5b5061050c610507366004614008565b6111a7565b604080516001600160a01b0390931683526020830191909152016103d3565b34801561053757600080fd5b5061046e610546366004613f6d565b600d6020526000908152604090205481565b61045661056636600461402a565b611224565b34801561057757600080fd5b50610456610586366004614063565b611410565b34801561059757600080fd5b506104566105a6366004614093565b611436565b3480156105b757600080fd5b506104566105c6366004613f6d565b61152c565b3480156105d757600080fd5b506104566105e6366004614063565b611696565b3480156105f757600080fd5b5061041e610606366004613f6d565b6010602052600090815260409020546001600160a01b031681565b34801561062d57600080fd5b5061045661063c366004613fc7565b611722565b34801561064d57600080fd5b5061069f61065c366004613f6d565b600b6020526000908152604090208054600182015460028301546003840154600485015460059095015460ff8516956101009095046001600160a01b0316949087565b6040516103d397969594939291906140e8565b3480156106be57600080fd5b506104566106cd36600461412f565b61173d565b3480156106de57600080fd5b5061046e6106ed366004614008565b6117e1565b3480156106fe57600080fd5b5061045661070d366004613f6d565b611828565b34801561071e57600080fd5b5061073261072d366004613f6d565b611931565b6040516103d3919061416c565b34801561074b57600080fd5b5061045661075a366004614211565b611a0e565b34801561076b57600080fd5b5061045661077a366004614327565b611b64565b34801561078b57600080fd5b506107cf61079a366004613f6d565b600c60205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103d3565b34801561080857600080fd5b50610456610817366004614370565b611b90565b34801561082857600080fd5b50610456610837366004613f6d565b611c8f565b34801561084857600080fd5b5061041e610857366004613f6d565b611cae565b34801561086857600080fd5b5061046e610877366004613f6d565b611d39565b34801561088857600080fd5b5061046e610897366004614093565b611ed7565b3480156108a857600080fd5b50610456611f71565b3480156108bd57600080fd5b5061046e611fd7565b3480156108d257600080fd5b506104566108e1366004614063565b611fe7565b3480156108f257600080fd5b5061046e60125481565b34801561090857600080fd5b506007546001600160a01b031661041e565b34801561092657600080fd5b506103c7610935366004614063565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561096c57600080fd5b5061046e61097b366004613f6d565b600e6020526000908152604090205481565b34801561099957600080fd5b506103f16120c6565b3480156109ae57600080fd5b506104566109bd366004614063565b6120d5565b3480156109ce57600080fd5b506104566109dd366004613f6d565b612169565b3480156109ee57600080fd5b506104566109fd366004614063565b6122c5565b348015610a0e57600080fd5b5061046e600081565b348015610a2357600080fd5b50610456610a323660046143b5565b612362565b348015610a4357600080fd5b50610456610a523660046143e3565b612427565b348015610a6357600080fd5b50610456610a723660046144a8565b6124af565b348015610a8357600080fd5b5061046e60008051602061499e83398151915281565b348015610aa557600080fd5b50610ab9610ab4366004613f6d565b6126af565b6040516103d39190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b348015610b1157600080fd5b506103f1610b20366004613f6d565b612741565b348015610b3157600080fd5b5061046e610b40366004613f6d565b6000908152600a602052604090205490565b348015610b5e57600080fd5b50610456610b6d366004614063565b6127da565b348015610b7e57600080fd5b5061046e60145481565b348015610b9457600080fd5b5061046e60135481565b348015610baa57600080fd5b5061046e610bb9366004614592565b612800565b348015610bca57600080fd5b50610456610bd9366004613f6d565b612905565b348015610bea57600080fd5b5061046e7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e98286981565b610456610c2036600461402a565b612a0e565b348015610c3157600080fd5b506103c7610c403660046145f0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c7a57600080fd5b5061046e610c8936600461461e565b612bf7565b348015610c9a57600080fd5b5061046e610ca9366004613f6d565b600f6020526000908152604090205481565b348015610cc757600080fd5b50610456610cd6366004614093565b612cde565b348015610ce757600080fd5b5060115461041e906001600160a01b031681565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610d5e57506001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610d9257506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610dc657506001600160e01b031982167fc87b56dd00000000000000000000000000000000000000000000000000000000145b92915050565b606060008054610ddb90614687565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790614687565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610eed5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610f1482611cae565b9050806001600160a01b0316836001600160a01b03161415610f9e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b336001600160a01b0382161480610fba5750610fba8133610c40565b61102c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ee4565b6110368383612dc0565b505050565b60008051602061499e8339815191526110548133612e3b565b6000828152600b602052604081205460ff166005811115611077576110776140b0565b146110c45760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c642062652070656e64696e672e00000000006044820152606401610ee4565b6000828152600b6020526040902080546001919060ff191682800217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600160405161111491906146bc565b60405180910390a25050565b61112a3382612ebb565b61119c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ee4565b611036838383612fc3565b6000828152600f602090815260408083205480845260109092528220546012548392916001600160a01b0316908390612710906111e490886146e0565b6111ee9190614715565b90506001600160a01b038216611216576011546001600160a01b03169450925061121d915050565b9093509150505b9250929050565b60008051602061499e83398151915261123d8133612e3b565b60016000858152600b602052604090205460ff166005811115611262576112626140b0565b146112af5760405162461bcd60e51b815260206004820152601760248201527f4d75737420626520696e2072656164792073746174652e0000000000000000006044820152606401610ee4565b6000848152600b60205260409020600301548311156113365760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f77656420696e60448201527f2070726573616c652e00000000000000000000000000000000000000000000006064820152608401610ee4565b6000805b8481101561137857600061134d8761319d565b90506113598184614729565b9250611365878661341f565b508061137081614741565b91505061133a565b50803410156113c95760405162461bcd60e51b815260206004820152601360248201527f496e73756666696369656e742066756e64732e000000000000000000000000006044820152606401610ee4565b8034111561140957336108fc6113df833461475c565b6040518115909202916000818181858888f19350505050158015611407573d6000803e3d6000fd5b505b5050505050565b60008281526006602052604090206001015461142c8133612e3b565b61103683836135c8565b60008051602061499e83398151915261144f8133612e3b565b61145d600980546001019055565b600061146860095490565b90506013548111156114e25760405162461bcd60e51b815260206004820152602260248201527f41727469737420746f6b656e2069642072657365727665732066696e6973686560448201527f642e0000000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6114ec838261366a565b601154600091825260106020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790555050565b60008051602061499e8339815191526115458133612e3b565b60016000838152600b602052604090205460ff16600581111561156a5761156a6140b0565b1480611598575060046000838152600b602052604090205460ff166005811115611596576115966140b0565b145b806115c5575060026000838152600b602052604090205460ff1660058111156115c3576115c36140b0565b145b6116375760405162461bcd60e51b815260206004820152602360248201527f43616d706169676e2073686f756c64206265205245414459206f72205041555360448201527f45442e00000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6000828152600b60209081526040808320805460ff19166003908117909155600c9092529182902043600590910155905183917f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d9161111491906146bc565b6001600160a01b03811633146117145760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ee4565b61171e82826137b9565b5050565b61103683838360405180602001604052806000815250612427565b60008051602061499e8339815191526117568133612e3b565b6000858152600b602052604081205460ff166005811115611779576117796140b0565b146117c65760405162461bcd60e51b815260206004820152601860248201527f43616d706169676e206973206e6f742050454e44494e472e00000000000000006044820152606401610ee4565b6000838152600f60205260409020829055611409838561383c565b6000828152600a602052604081208054600d9183918590811061180657611806614773565b9060005260206000200154815260200190815260200160002054905092915050565b60008051602061499e8339815191526118418133612e3b565b60046000838152600b602052604090205460ff166005811115611866576118666140b0565b1480611894575060036000838152600b602052604090205460ff166005811115611892576118926140b0565b145b6118e05760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c6420626520737461727465642e00000000006044820152606401610ee4565b6000828152600b6020526040902080546005919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600560405161111491906146bc565b61197b6040805160e08101909152806000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000828152600b602052604090819020815160e081019092528054829060ff1660058111156119ac576119ac6140b0565b60058111156119bd576119bd6140b0565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260038201546080820152600482015460a082015260059091015460c09091015292915050565b60008051602061499e833981519152611a278133612e3b565b6000838152600b602052604081205460ff166005811115611a4a57611a4a6140b0565b1415611a985760405162461bcd60e51b815260206004820152601a60248201527f43616d706169676e206973206e6f74207265616479207965742e0000000000006044820152606401610ee4565b6000838152600a602052604090205482511115611b1d5760405162461bcd60e51b815260206004820152602560248201527f43616d706169676e20646f6573206e6f74206861766520656e6f75676820686160448201527f736865732e0000000000000000000000000000000000000000000000000000006064820152608401610ee4565b60005b8251811015611b5e57611b4c84848381518110611b3f57611b3f614773565b602002602001015161341f565b80611b5681614741565b915050611b20565b50505050565b60008051602061499e833981519152611b7d8133612e3b565b8151611036906016906020850190613e36565b7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e982869611bbb8133612e3b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820185905285169063a9059cbb906044016020604051808303816000875af1158015611c23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c479190614789565b50816001600160a01b031683856001600160a01b03167f15e848750ab66cd66f07bebaf8dab757d6d4af0895afc4ff867f35baf163ee2d60405160405180910390a450505050565b60008051602061499e833981519152611ca88133612e3b565b50601255565b6000818152600260205260408120546001600160a01b031680610dc65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ee4565b600060036000838152600b602052604090205460ff166005811115611d6057611d606140b0565b14611dad5760405162461bcd60e51b815260206004820152601c60248201527f43616d706169676e206973206e6f742073746172746564207965742e000000006044820152606401610ee4565b6000828152600c6020526040812060050154611dc9904361475c565b6000848152600c6020526040902060040154909150811115611df957506000828152600c60205260409020600401545b6000838152600c6020526040902060028101546003909101541115611e78576000838152600c60205260409020600481015460028201546003909201548392611e419161475c565b611e4b9190614715565b611e5591906146e0565b6000848152600c6020526040902060020154611e719190614729565b9392505050565b6000838152600c60205260409020600481015460038201546002909201548392611ea19161475c565b611eab9190614715565b611eb591906146e0565b6000848152600c6020526040902060020154611e71919061475c565b50919050565b60006001600160a01b038216611f555760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ee4565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314611fcb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ee4565b611fd560006138b2565b565b6000611fe260085490565b905090565b60008051602061499e8339815191526120008133612e3b565b6000838152600260205260409020546001600160a01b031661208a5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e206d757374206265206578697374696e6720746f2073657420726f60448201527f79616c747920696e666f2e0000000000000000000000000000000000000000006064820152608401610ee4565b50600091825260106020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055565b606060018054610ddb90614687565b60008051602061499e8339815191526120ee8133612e3b565b6000838152600b602052604081205460ff166005811115612111576121116140b0565b141561215f5760405162461bcd60e51b815260206004820152601a60248201527f43616d706169676e206973206e6f74207265616479207965742e0000000000006044820152606401610ee4565b611036838361341f565b60008051602061499e8339815191526121828133612e3b565b60016000838152600b602052604090205460ff1660058111156121a7576121a76140b0565b14806121d5575060036000838152600b602052604090205460ff1660058111156121d3576121d36140b0565b145b80612202575060046000838152600b602052604090205460ff166005811115612200576122006140b0565b145b6122745760405162461bcd60e51b815260206004820152602c60248201527f43616d706169676e2073686f756c642062652052454144592c2050415553454460448201527f206f72204f4e474f494e472e00000000000000000000000000000000000000006064820152608401610ee4565b6000828152600b6020526040902080546002919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600260405161111491906146bc565b7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e9828696122f08133612e3b565b6040516001600160a01b0383169084156108fc029085906000818181858888f19350505050158015612326573d6000803e3d6000fd5b506040516001600160a01b0383169084907fdb987c1c65c75a9e9046a3ca9bdc236b547e784f7077581105a193d618c2e3a590600090a3505050565b6001600160a01b0382163314156123bb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ee4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6124313383612ebb565b6124a35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ee4565b611b5e84848484613911565b60008051602061499e8339815191526124c88133612e3b565b6000868152600b602052604081205460ff1660058111156124eb576124eb6140b0565b1461255e5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420616464206861736820746f20537461727465642063616d706160448201527f69676e00000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b8382146125d35760405162461bcd60e51b815260206004820152603660248201527f746f6b656e49644c69737420616e6420617274697374546f6b656e4c6973742060448201527f6d75737420626520696e2073616d65206c656e677468000000000000000000006064820152608401610ee4565b6000868152600b6020526040812060050180548692906125f4908490614729565b90915550600090505b848110156126a65783838281811061261757612617614773565b90506020020135600f600088888581811061263457612634614773565b90506020020135815260200190815260200160002081905550600a600088815260200190815260200160002086868381811061267257612672614773565b835460018101855560009485526020948590209190940292909201359190920155508061269e81614741565b9150506125fd565b50505050505050565b6126e86040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b506000908152600c6020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6000818152600260205260409020546060906001600160a01b03166127a85760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610ee4565b60166127b38361399a565b6040516020016127c49291906147c2565b6040516020818303038152906040529050919050565b6000828152600660205260409020600101546127f68133612e3b565b61103683836137b9565b600060008051602061499e83398151915261281b8133612e3b565b612829600880546001019055565b600061283460085490565b6000818152600b6020908152604080832080546001600160a01b038f16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911617815560018082018e905560028083018e905560038084018d905560049384018c90558d51600c8752858820908155958e0151928601929092558c8401519085015560608c01519084015560808b01519201919091555191925082917f950dc2e92cc001bc383f3740928916b519fe331a4f4fae5b5d891d5978baf7449190a298975050505050505050565b60008051602061499e83398151915261291e8133612e3b565b60036000838152600b602052604090205460ff166005811115612943576129436140b0565b1480612971575060026000838152600b602052604090205460ff16600581111561296f5761296f6140b0565b145b6129bd5760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c64206265204f4e474f494e472e00000000006044820152606401610ee4565b6000828152600b6020526040902080546004919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600460405161111491906146bc565b60026000848152600b602052604090205460ff166005811115612a3357612a336140b0565b1415612ac5576000838152600b6020526040902060030154821115612ac05760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f77656420696e60448201527f2070726573616c652e00000000000000000000000000000000000000000000006064820152608401610ee4565b612b26565b6000838152600b6020526040902060040154821115612b265760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f7765642e00006044820152606401610ee4565b6000805b83811015612b68576000612b3d86613a98565b9050612b498184614729565b9250612b55868561341f565b5080612b6081614741565b915050612b2a565b5080341015612bb95760405162461bcd60e51b815260206004820152601360248201527f496e73756666696369656e742066756e64732e000000000000000000000000006044820152606401610ee4565b80341115611b5e57336108fc612bcf833461475c565b6040518115909202916000818181858888f19350505050158015611409573d6000803e3d6000fd5b600060008051602061499e833981519152612c128133612e3b565b6000898152600b6020908152604080832080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b038e160217815560018082018c905560028083018c905560038084018b905560049384018a90558b51600c8752858820908155958c0151928601929092558a8401519085015560608a0151908401556080890151920191909155518a917fe30019a01e730812cd78b6d53cdb88ffb225194ec56017a5dd0cc62e0411efc391a25096979650505050505050565b6007546001600160a01b03163314612d385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ee4565b6001600160a01b038116612db45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ee4565b612dbd816138b2565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612e0282611cae565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661171e57612e79816001600160a01b03166014613b1d565b612e84836020613b1d565b604051602001612e95929190614869565b60408051601f198184030181529082905262461bcd60e51b8252610ee491600401613f5a565b6000818152600260205260408120546001600160a01b0316612f455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ee4565b6000612f5083611cae565b9050806001600160a01b0316846001600160a01b03161480612f8b5750836001600160a01b0316612f8084610e5e565b6001600160a01b0316145b80612fbb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612fd682611cae565b6001600160a01b0316146130525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ee4565b6001600160a01b0382166130cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6130d8600082612dc0565b6001600160a01b038316600090815260036020526040812080546001929061310190849061475c565b90915550506001600160a01b038216600090815260036020526040812080546001929061312f908490614729565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600b602052604080822080546002909101549151627eeac760e11b8152336004820152602481019290925261010090046001600160a01b0316908290829062fdd58e906044015b602060405180830381865afa158015613206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322a91906148ea565b11156132c2576000838152600b602052604090819020600201549051637a94c56560e11b81523360048201526024810191909152600160448201526001600160a01b0382169063f5298aca90606401600060405180830381600087803b15801561329357600080fd5b505af11580156132a7573d6000803e3d6000fd5b50505060009384525050600c60205250604090206001015490565b6000838152600b6020526040808220600101549051627eeac760e11b815233600482015260248101919091526001600160a01b0383169062fdd58e90604401602060405180830381865afa15801561331e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334291906148ea565b11156133d7576000838152600b6020526040908190206001908101549151637a94c56560e11b8152336004820152602481019290925260448201526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156133ab57600080fd5b505af11580156133bf573d6000803e3d6000fd5b50505060009384525050600c60205250604090205490565b60405162461bcd60e51b815260206004820152601060248201527f4e6f2041636365737320746f6b656e2e000000000000000000000000000000006044820152606401610ee4565b6000828152600a602052604090205461347a5760405162461bcd60e51b815260206004820152601260248201527f416c6c204e4654732061726520736f6c642e00000000000000000000000000006044820152606401610ee4565b6000828152600a6020526040812054600110156134e8576000838152600a60209081526040918290205482519182018190524340928201929092524460608201526080016040516020818303038152906040528051906020012060001c6134e19190614903565b90506134ec565b5060005b6000838152600a6020526040812080548390811061350c5761350c614773565b6000918252602080832090910154868352600a90915260409091208054919250906135399060019061475c565b8154811061354957613549614773565b9060005260206000200154600a6000868152602001908152602001600020838154811061357857613578614773565b9060005260206000200181905550600a60008581526020019081526020016000208054806135a8576135a8614917565b60019003818190600052602060002001600090559055611b5e818461383c565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661171e5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556136263390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b0382166136c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ee4565b6000818152600260205260409020546001600160a01b0316156137255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ee4565b6001600160a01b038216600090815260036020526040812080546001929061374e908490614729565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff161561171e5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60016015600082825461384f9190614729565b909155505060145460155411156138a85760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d6178537570706c792e6044820152606401610ee4565b61171e818361366a565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61391c848484612fc3565b61392884848484613ce2565b611b5e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ee4565b6060816139be5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156139e857806139d281614741565b91506139e19050600a83614715565b91506139c2565b60008167ffffffffffffffff811115613a0357613a036141ca565b6040519080825280601f01601f191660200182016040528015613a2d576020820181803683370190505b5090505b8415612fbb57613a4260018361475c565b9150613a4f600a86614903565b613a5a906030614729565b60f81b818381518110613a6f57613a6f614773565b60200101906001600160f81b031916908160001a905350613a91600a86614715565b9450613a31565b600060026000838152600b602052604090205460ff166005811115613abf57613abf6140b0565b1415613b14576000828152600b602052604080822080546002909101549151627eeac760e11b8152336004820152602481019290925261010090046001600160a01b03169190829062fdd58e906044016131e9565b610dc682611d39565b60606000613b2c8360026146e0565b613b37906002614729565b67ffffffffffffffff811115613b4f57613b4f6141ca565b6040519080825280601f01601f191660200182016040528015613b79576020820181803683370190505b509050600360fc1b81600081518110613b9457613b94614773565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613bdf57613bdf614773565b60200101906001600160f81b031916908160001a9053506000613c038460026146e0565b613c0e906001614729565b90505b6001811115613c93577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613c4f57613c4f614773565b1a60f81b828281518110613c6557613c65614773565b60200101906001600160f81b031916908160001a90535060049490941c93613c8c8161492d565b9050613c11565b508315611e715760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ee4565b60006001600160a01b0384163b15613e2b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d26903390899088908890600401614944565b6020604051808303816000875af1925050508015613d61575060408051601f3d908101601f19168201909252613d5e91810190614980565b60015b613e11573d808015613d8f576040519150601f19603f3d011682016040523d82523d6000602084013e613d94565b606091505b508051613e095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ee4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fbb565b506001949350505050565b828054613e4290614687565b90600052602060002090601f016020900481019282613e645760008555613eaa565b82601f10613e7d57805160ff1916838001178555613eaa565b82800160010185558215613eaa579182015b82811115613eaa578251825591602001919060010190613e8f565b50613eb6929150613eba565b5090565b5b80821115613eb65760008155600101613ebb565b6001600160e01b031981168114612dbd57600080fd5b600060208284031215613ef757600080fd5b8135611e7181613ecf565b60005b83811015613f1d578181015183820152602001613f05565b83811115611b5e5750506000910152565b60008151808452613f46816020860160208601613f02565b601f01601f19169290920160200192915050565b602081526000611e716020830184613f2e565b600060208284031215613f7f57600080fd5b5035919050565b6001600160a01b0381168114612dbd57600080fd5b60008060408385031215613fae57600080fd5b8235613fb981613f86565b946020939093013593505050565b600080600060608486031215613fdc57600080fd5b8335613fe781613f86565b92506020840135613ff781613f86565b929592945050506040919091013590565b6000806040838503121561401b57600080fd5b50508035926020909101359150565b60008060006060848603121561403f57600080fd5b8335925060208401359150604084013561405881613f86565b809150509250925092565b6000806040838503121561407657600080fd5b82359150602083013561408881613f86565b809150509250929050565b6000602082840312156140a557600080fd5b8135611e7181613f86565b634e487b7160e01b600052602160045260246000fd5b600681106140e457634e487b7160e01b600052602160045260246000fd5b9052565b60e081016140f6828a6140c6565b6001600160a01b03881660208301528660408301528560608301528460808301528360a08301528260c083015298975050505050505050565b6000806000806080858703121561414557600080fd5b84359350602085013561415781613f86565b93969395505050506040820135916060013590565b600060e08201905061417f8284516140c6565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015292915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614209576142096141ca565b604052919050565b6000806040838503121561422457600080fd5b8235915060208084013567ffffffffffffffff8082111561424457600080fd5b818601915086601f83011261425857600080fd5b81358181111561426a5761426a6141ca565b8060051b915061427b8483016141e0565b818152918301840191848101908984111561429557600080fd5b938501935b838510156142bf57843592506142af83613f86565b828252938501939085019061429a565b8096505050505050509250929050565b600067ffffffffffffffff8311156142e9576142e96141ca565b6142fc601f8401601f19166020016141e0565b905082815283838301111561431057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561433957600080fd5b813567ffffffffffffffff81111561435057600080fd5b8201601f8101841361436157600080fd5b612fbb848235602084016142cf565b60008060006060848603121561438557600080fd5b833561439081613f86565b925060208401359150604084013561405881613f86565b8015158114612dbd57600080fd5b600080604083850312156143c857600080fd5b82356143d381613f86565b91506020830135614088816143a7565b600080600080608085870312156143f957600080fd5b843561440481613f86565b9350602085013561441481613f86565b925060408501359150606085013567ffffffffffffffff81111561443757600080fd5b8501601f8101871361444857600080fd5b614457878235602084016142cf565b91505092959194509250565b60008083601f84011261447557600080fd5b50813567ffffffffffffffff81111561448d57600080fd5b6020830191508360208260051b850101111561121d57600080fd5b6000806000806000606086880312156144c057600080fd5b85359450602086013567ffffffffffffffff808211156144df57600080fd5b6144eb89838a01614463565b9096509450604088013591508082111561450457600080fd5b5061451188828901614463565b969995985093965092949392505050565b600060a0828403121561453457600080fd5b60405160a0810181811067ffffffffffffffff82111715614557576145576141ca565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60008060008060008061014087890312156145ac57600080fd5b86356145b781613f86565b955060208701359450604087013593506145d48860608901614522565b9250610100870135915061012087013590509295509295509295565b6000806040838503121561460357600080fd5b823561460e81613f86565b9150602083013561408881613f86565b6000806000806000806000610160888a03121561463a57600080fd5b87359650602088013561464c81613f86565b955060408801359450606088013593506146698960808a01614522565b92506101208801359150610140880135905092959891949750929550565b600181811c9082168061469b57607f821691505b60208210811415611ed157634e487b7160e01b600052602260045260246000fd5b60208101610dc682846140c6565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156146fa576146fa6146ca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614724576147246146ff565b500490565b6000821982111561473c5761473c6146ca565b500190565b6000600019821415614755576147556146ca565b5060010190565b60008282101561476e5761476e6146ca565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561479b57600080fd5b8151611e71816143a7565b600081516147b8818560208601613f02565b9290920192915050565b600080845481600182811c9150808316806147de57607f831692505b60208084108214156147fe57634e487b7160e01b86526022600452602486fd5b818015614812576001811461482357614850565b60ff19861689528489019650614850565b60008b81526020902060005b868110156148485781548b82015290850190830161482f565b505084890196505b50505050505061486081856147a6565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148a1816017850160208801613f02565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516148de816028840160208801613f02565b01602801949350505050565b6000602082840312156148fc57600080fd5b5051919050565b600082614912576149126146ff565b500690565b634e487b7160e01b600052603160045260246000fd5b60008161493c5761493c6146ca565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526149766080830184613f2e565b9695505050505050565b60006020828403121561499257600080fd5b8151611e7181613ecf56fe1defd8ef915dc8ec87e9048048c7076484c6d2162021b65fd4a8c056057d9363a264697066735822122084db6e57f295d40c731bfe86a5d1d9cf9dd4f3dbfce79f93e2f622f65940c7ba64736f6c634300080a00337a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e98286968747470733a2f2f6172746973742e6d6f6a6f68656164732e636f6d2f6d6574612f00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000790937be495a0fd8f6c1ef79c55c1cf40aaf66c3000000000000000000000000000000000000000000000000000000000000290400000000000000000000000000000000000000000000000000000000000000094d6f6a6f4865616473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d4a480000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103a25760003560e01c8063715018a6116101e7578063c46d6d431161010d578063de99347a116100a0578063f06b86ba1161006f578063f06b86ba14610c6e578063f163108514610c8e578063f2fde38b14610cbb578063f593027214610cdb57600080fd5b8063de99347a14610bbe578063e02023a114610bde578063e7d3fe6b14610c12578063e985e9c514610c2557600080fd5b8063d547741f116100dc578063d547741f14610b52578063d5abeb0114610b72578063d6b364b114610b88578063d87be9d114610b9e57600080fd5b8063c46d6d4314610a77578063c5e5554b14610a99578063c87b56dd14610b05578063d0f4669114610b2557600080fd5b806395d89b4111610185578063a217fddf11610154578063a217fddf14610a02578063a22cb46514610a17578063b88d4fde14610a37578063c0509a8f14610a5757600080fd5b806395d89b411461098d57806397a61b1f146109a2578063a132aad1146109c2578063a158657c146109e257600080fd5b80638a71bb2d116101c15780638a71bb2d146108e65780638da5cb5b146108fc57806391d148541461091a57806391d401c51461096057600080fd5b8063715018a61461089c5780637274e30d146108b1578063870c4140146108c657600080fd5b80633cd24bfd116102cc578063559b24ba1161026a57806361ba27da1161023957806361ba27da1461081c5780636352211e1461083c5780636da16afe1461085c57806370a082311461087c57600080fd5b8063559b24ba1461073f57806355f804b31461075f5780635653bb291461077f5780635fc3ea0b146107fc57600080fd5b80634cf9aec9116102a65780634cf9aec9146106b25780634efbf6b2146106d25780635545db0d146106f25780635598f8cc1461071257600080fd5b80633cd24bfd146105eb57806342842e0e146106215780634912c6581461064157600080fd5b8063248a9ca3116103445780632f2ff15d116103135780632f2ff15d1461056b578063345e73911461058b57806335dda05a146105ab57806336568abe146105cb57600080fd5b8063248a9ca3146104bc5780632a55205a146104ec5780632c270b751461052b5780632da636081461055857600080fd5b8063095ea7b311610380578063095ea7b31461043657806318160ddd1461045857806320bdf9aa1461047c57806323b872dd1461049c57600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613ee5565b610cfb565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610dcc565b6040516103d39190613f5a565b34801561040a57600080fd5b5061041e610419366004613f6d565b610e5e565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b50610456610451366004613f9b565b610f09565b005b34801561046457600080fd5b5061046e60155481565b6040519081526020016103d3565b34801561048857600080fd5b50610456610497366004613f6d565b61103b565b3480156104a857600080fd5b506104566104b7366004613fc7565b611120565b3480156104c857600080fd5b5061046e6104d7366004613f6d565b60009081526006602052604090206001015490565b3480156104f857600080fd5b5061050c610507366004614008565b6111a7565b604080516001600160a01b0390931683526020830191909152016103d3565b34801561053757600080fd5b5061046e610546366004613f6d565b600d6020526000908152604090205481565b61045661056636600461402a565b611224565b34801561057757600080fd5b50610456610586366004614063565b611410565b34801561059757600080fd5b506104566105a6366004614093565b611436565b3480156105b757600080fd5b506104566105c6366004613f6d565b61152c565b3480156105d757600080fd5b506104566105e6366004614063565b611696565b3480156105f757600080fd5b5061041e610606366004613f6d565b6010602052600090815260409020546001600160a01b031681565b34801561062d57600080fd5b5061045661063c366004613fc7565b611722565b34801561064d57600080fd5b5061069f61065c366004613f6d565b600b6020526000908152604090208054600182015460028301546003840154600485015460059095015460ff8516956101009095046001600160a01b0316949087565b6040516103d397969594939291906140e8565b3480156106be57600080fd5b506104566106cd36600461412f565b61173d565b3480156106de57600080fd5b5061046e6106ed366004614008565b6117e1565b3480156106fe57600080fd5b5061045661070d366004613f6d565b611828565b34801561071e57600080fd5b5061073261072d366004613f6d565b611931565b6040516103d3919061416c565b34801561074b57600080fd5b5061045661075a366004614211565b611a0e565b34801561076b57600080fd5b5061045661077a366004614327565b611b64565b34801561078b57600080fd5b506107cf61079a366004613f6d565b600c60205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103d3565b34801561080857600080fd5b50610456610817366004614370565b611b90565b34801561082857600080fd5b50610456610837366004613f6d565b611c8f565b34801561084857600080fd5b5061041e610857366004613f6d565b611cae565b34801561086857600080fd5b5061046e610877366004613f6d565b611d39565b34801561088857600080fd5b5061046e610897366004614093565b611ed7565b3480156108a857600080fd5b50610456611f71565b3480156108bd57600080fd5b5061046e611fd7565b3480156108d257600080fd5b506104566108e1366004614063565b611fe7565b3480156108f257600080fd5b5061046e60125481565b34801561090857600080fd5b506007546001600160a01b031661041e565b34801561092657600080fd5b506103c7610935366004614063565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561096c57600080fd5b5061046e61097b366004613f6d565b600e6020526000908152604090205481565b34801561099957600080fd5b506103f16120c6565b3480156109ae57600080fd5b506104566109bd366004614063565b6120d5565b3480156109ce57600080fd5b506104566109dd366004613f6d565b612169565b3480156109ee57600080fd5b506104566109fd366004614063565b6122c5565b348015610a0e57600080fd5b5061046e600081565b348015610a2357600080fd5b50610456610a323660046143b5565b612362565b348015610a4357600080fd5b50610456610a523660046143e3565b612427565b348015610a6357600080fd5b50610456610a723660046144a8565b6124af565b348015610a8357600080fd5b5061046e60008051602061499e83398151915281565b348015610aa557600080fd5b50610ab9610ab4366004613f6d565b6126af565b6040516103d39190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b348015610b1157600080fd5b506103f1610b20366004613f6d565b612741565b348015610b3157600080fd5b5061046e610b40366004613f6d565b6000908152600a602052604090205490565b348015610b5e57600080fd5b50610456610b6d366004614063565b6127da565b348015610b7e57600080fd5b5061046e60145481565b348015610b9457600080fd5b5061046e60135481565b348015610baa57600080fd5b5061046e610bb9366004614592565b612800565b348015610bca57600080fd5b50610456610bd9366004613f6d565b612905565b348015610bea57600080fd5b5061046e7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e98286981565b610456610c2036600461402a565b612a0e565b348015610c3157600080fd5b506103c7610c403660046145f0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c7a57600080fd5b5061046e610c8936600461461e565b612bf7565b348015610c9a57600080fd5b5061046e610ca9366004613f6d565b600f6020526000908152604090205481565b348015610cc757600080fd5b50610456610cd6366004614093565b612cde565b348015610ce757600080fd5b5060115461041e906001600160a01b031681565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610d5e57506001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610d9257506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610dc657506001600160e01b031982167fc87b56dd00000000000000000000000000000000000000000000000000000000145b92915050565b606060008054610ddb90614687565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790614687565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610eed5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610f1482611cae565b9050806001600160a01b0316836001600160a01b03161415610f9e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b336001600160a01b0382161480610fba5750610fba8133610c40565b61102c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ee4565b6110368383612dc0565b505050565b60008051602061499e8339815191526110548133612e3b565b6000828152600b602052604081205460ff166005811115611077576110776140b0565b146110c45760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c642062652070656e64696e672e00000000006044820152606401610ee4565b6000828152600b6020526040902080546001919060ff191682800217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600160405161111491906146bc565b60405180910390a25050565b61112a3382612ebb565b61119c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ee4565b611036838383612fc3565b6000828152600f602090815260408083205480845260109092528220546012548392916001600160a01b0316908390612710906111e490886146e0565b6111ee9190614715565b90506001600160a01b038216611216576011546001600160a01b03169450925061121d915050565b9093509150505b9250929050565b60008051602061499e83398151915261123d8133612e3b565b60016000858152600b602052604090205460ff166005811115611262576112626140b0565b146112af5760405162461bcd60e51b815260206004820152601760248201527f4d75737420626520696e2072656164792073746174652e0000000000000000006044820152606401610ee4565b6000848152600b60205260409020600301548311156113365760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f77656420696e60448201527f2070726573616c652e00000000000000000000000000000000000000000000006064820152608401610ee4565b6000805b8481101561137857600061134d8761319d565b90506113598184614729565b9250611365878661341f565b508061137081614741565b91505061133a565b50803410156113c95760405162461bcd60e51b815260206004820152601360248201527f496e73756666696369656e742066756e64732e000000000000000000000000006044820152606401610ee4565b8034111561140957336108fc6113df833461475c565b6040518115909202916000818181858888f19350505050158015611407573d6000803e3d6000fd5b505b5050505050565b60008281526006602052604090206001015461142c8133612e3b565b61103683836135c8565b60008051602061499e83398151915261144f8133612e3b565b61145d600980546001019055565b600061146860095490565b90506013548111156114e25760405162461bcd60e51b815260206004820152602260248201527f41727469737420746f6b656e2069642072657365727665732066696e6973686560448201527f642e0000000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6114ec838261366a565b601154600091825260106020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790555050565b60008051602061499e8339815191526115458133612e3b565b60016000838152600b602052604090205460ff16600581111561156a5761156a6140b0565b1480611598575060046000838152600b602052604090205460ff166005811115611596576115966140b0565b145b806115c5575060026000838152600b602052604090205460ff1660058111156115c3576115c36140b0565b145b6116375760405162461bcd60e51b815260206004820152602360248201527f43616d706169676e2073686f756c64206265205245414459206f72205041555360448201527f45442e00000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6000828152600b60209081526040808320805460ff19166003908117909155600c9092529182902043600590910155905183917f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d9161111491906146bc565b6001600160a01b03811633146117145760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ee4565b61171e82826137b9565b5050565b61103683838360405180602001604052806000815250612427565b60008051602061499e8339815191526117568133612e3b565b6000858152600b602052604081205460ff166005811115611779576117796140b0565b146117c65760405162461bcd60e51b815260206004820152601860248201527f43616d706169676e206973206e6f742050454e44494e472e00000000000000006044820152606401610ee4565b6000838152600f60205260409020829055611409838561383c565b6000828152600a602052604081208054600d9183918590811061180657611806614773565b9060005260206000200154815260200190815260200160002054905092915050565b60008051602061499e8339815191526118418133612e3b565b60046000838152600b602052604090205460ff166005811115611866576118666140b0565b1480611894575060036000838152600b602052604090205460ff166005811115611892576118926140b0565b145b6118e05760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c6420626520737461727465642e00000000006044820152606401610ee4565b6000828152600b6020526040902080546005919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600560405161111491906146bc565b61197b6040805160e08101909152806000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000828152600b602052604090819020815160e081019092528054829060ff1660058111156119ac576119ac6140b0565b60058111156119bd576119bd6140b0565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260038201546080820152600482015460a082015260059091015460c09091015292915050565b60008051602061499e833981519152611a278133612e3b565b6000838152600b602052604081205460ff166005811115611a4a57611a4a6140b0565b1415611a985760405162461bcd60e51b815260206004820152601a60248201527f43616d706169676e206973206e6f74207265616479207965742e0000000000006044820152606401610ee4565b6000838152600a602052604090205482511115611b1d5760405162461bcd60e51b815260206004820152602560248201527f43616d706169676e20646f6573206e6f74206861766520656e6f75676820686160448201527f736865732e0000000000000000000000000000000000000000000000000000006064820152608401610ee4565b60005b8251811015611b5e57611b4c84848381518110611b3f57611b3f614773565b602002602001015161341f565b80611b5681614741565b915050611b20565b50505050565b60008051602061499e833981519152611b7d8133612e3b565b8151611036906016906020850190613e36565b7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e982869611bbb8133612e3b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820185905285169063a9059cbb906044016020604051808303816000875af1158015611c23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c479190614789565b50816001600160a01b031683856001600160a01b03167f15e848750ab66cd66f07bebaf8dab757d6d4af0895afc4ff867f35baf163ee2d60405160405180910390a450505050565b60008051602061499e833981519152611ca88133612e3b565b50601255565b6000818152600260205260408120546001600160a01b031680610dc65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ee4565b600060036000838152600b602052604090205460ff166005811115611d6057611d606140b0565b14611dad5760405162461bcd60e51b815260206004820152601c60248201527f43616d706169676e206973206e6f742073746172746564207965742e000000006044820152606401610ee4565b6000828152600c6020526040812060050154611dc9904361475c565b6000848152600c6020526040902060040154909150811115611df957506000828152600c60205260409020600401545b6000838152600c6020526040902060028101546003909101541115611e78576000838152600c60205260409020600481015460028201546003909201548392611e419161475c565b611e4b9190614715565b611e5591906146e0565b6000848152600c6020526040902060020154611e719190614729565b9392505050565b6000838152600c60205260409020600481015460038201546002909201548392611ea19161475c565b611eab9190614715565b611eb591906146e0565b6000848152600c6020526040902060020154611e71919061475c565b50919050565b60006001600160a01b038216611f555760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ee4565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314611fcb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ee4565b611fd560006138b2565b565b6000611fe260085490565b905090565b60008051602061499e8339815191526120008133612e3b565b6000838152600260205260409020546001600160a01b031661208a5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e206d757374206265206578697374696e6720746f2073657420726f60448201527f79616c747920696e666f2e0000000000000000000000000000000000000000006064820152608401610ee4565b50600091825260106020526040909120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055565b606060018054610ddb90614687565b60008051602061499e8339815191526120ee8133612e3b565b6000838152600b602052604081205460ff166005811115612111576121116140b0565b141561215f5760405162461bcd60e51b815260206004820152601a60248201527f43616d706169676e206973206e6f74207265616479207965742e0000000000006044820152606401610ee4565b611036838361341f565b60008051602061499e8339815191526121828133612e3b565b60016000838152600b602052604090205460ff1660058111156121a7576121a76140b0565b14806121d5575060036000838152600b602052604090205460ff1660058111156121d3576121d36140b0565b145b80612202575060046000838152600b602052604090205460ff166005811115612200576122006140b0565b145b6122745760405162461bcd60e51b815260206004820152602c60248201527f43616d706169676e2073686f756c642062652052454144592c2050415553454460448201527f206f72204f4e474f494e472e00000000000000000000000000000000000000006064820152608401610ee4565b6000828152600b6020526040902080546002919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600260405161111491906146bc565b7f7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e9828696122f08133612e3b565b6040516001600160a01b0383169084156108fc029085906000818181858888f19350505050158015612326573d6000803e3d6000fd5b506040516001600160a01b0383169084907fdb987c1c65c75a9e9046a3ca9bdc236b547e784f7077581105a193d618c2e3a590600090a3505050565b6001600160a01b0382163314156123bb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ee4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6124313383612ebb565b6124a35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ee4565b611b5e84848484613911565b60008051602061499e8339815191526124c88133612e3b565b6000868152600b602052604081205460ff1660058111156124eb576124eb6140b0565b1461255e5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420616464206861736820746f20537461727465642063616d706160448201527f69676e00000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b8382146125d35760405162461bcd60e51b815260206004820152603660248201527f746f6b656e49644c69737420616e6420617274697374546f6b656e4c6973742060448201527f6d75737420626520696e2073616d65206c656e677468000000000000000000006064820152608401610ee4565b6000868152600b6020526040812060050180548692906125f4908490614729565b90915550600090505b848110156126a65783838281811061261757612617614773565b90506020020135600f600088888581811061263457612634614773565b90506020020135815260200190815260200160002081905550600a600088815260200190815260200160002086868381811061267257612672614773565b835460018101855560009485526020948590209190940292909201359190920155508061269e81614741565b9150506125fd565b50505050505050565b6126e86040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b506000908152600c6020908152604091829020825160c08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015260059091015460a082015290565b6000818152600260205260409020546060906001600160a01b03166127a85760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610ee4565b60166127b38361399a565b6040516020016127c49291906147c2565b6040516020818303038152906040529050919050565b6000828152600660205260409020600101546127f68133612e3b565b61103683836137b9565b600060008051602061499e83398151915261281b8133612e3b565b612829600880546001019055565b600061283460085490565b6000818152600b6020908152604080832080546001600160a01b038f16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911617815560018082018e905560028083018e905560038084018d905560049384018c90558d51600c8752858820908155958e0151928601929092558c8401519085015560608c01519084015560808b01519201919091555191925082917f950dc2e92cc001bc383f3740928916b519fe331a4f4fae5b5d891d5978baf7449190a298975050505050505050565b60008051602061499e83398151915261291e8133612e3b565b60036000838152600b602052604090205460ff166005811115612943576129436140b0565b1480612971575060026000838152600b602052604090205460ff16600581111561296f5761296f6140b0565b145b6129bd5760405162461bcd60e51b815260206004820152601b60248201527f43616d706169676e2073686f756c64206265204f4e474f494e472e00000000006044820152606401610ee4565b6000828152600b6020526040902080546004919060ff19166001830217905550817f85e51113d22045a974d683fcad05ec3f38ff416366e93c8156a135f09946554d600460405161111491906146bc565b60026000848152600b602052604090205460ff166005811115612a3357612a336140b0565b1415612ac5576000838152600b6020526040902060030154821115612ac05760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f77656420696e60448201527f2070726573616c652e00000000000000000000000000000000000000000000006064820152608401610ee4565b612b26565b6000838152600b6020526040902060040154821115612b265760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f7765642e00006044820152606401610ee4565b6000805b83811015612b68576000612b3d86613a98565b9050612b498184614729565b9250612b55868561341f565b5080612b6081614741565b915050612b2a565b5080341015612bb95760405162461bcd60e51b815260206004820152601360248201527f496e73756666696369656e742066756e64732e000000000000000000000000006044820152606401610ee4565b80341115611b5e57336108fc612bcf833461475c565b6040518115909202916000818181858888f19350505050158015611409573d6000803e3d6000fd5b600060008051602061499e833981519152612c128133612e3b565b6000898152600b6020908152604080832080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b038e160217815560018082018c905560028083018c905560038084018b905560049384018a90558b51600c8752858820908155958c0151928601929092558a8401519085015560608a0151908401556080890151920191909155518a917fe30019a01e730812cd78b6d53cdb88ffb225194ec56017a5dd0cc62e0411efc391a25096979650505050505050565b6007546001600160a01b03163314612d385760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ee4565b6001600160a01b038116612db45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ee4565b612dbd816138b2565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612e0282611cae565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661171e57612e79816001600160a01b03166014613b1d565b612e84836020613b1d565b604051602001612e95929190614869565b60408051601f198184030181529082905262461bcd60e51b8252610ee491600401613f5a565b6000818152600260205260408120546001600160a01b0316612f455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ee4565b6000612f5083611cae565b9050806001600160a01b0316846001600160a01b03161480612f8b5750836001600160a01b0316612f8084610e5e565b6001600160a01b0316145b80612fbb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612fd682611cae565b6001600160a01b0316146130525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ee4565b6001600160a01b0382166130cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ee4565b6130d8600082612dc0565b6001600160a01b038316600090815260036020526040812080546001929061310190849061475c565b90915550506001600160a01b038216600090815260036020526040812080546001929061312f908490614729565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600b602052604080822080546002909101549151627eeac760e11b8152336004820152602481019290925261010090046001600160a01b0316908290829062fdd58e906044015b602060405180830381865afa158015613206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322a91906148ea565b11156132c2576000838152600b602052604090819020600201549051637a94c56560e11b81523360048201526024810191909152600160448201526001600160a01b0382169063f5298aca90606401600060405180830381600087803b15801561329357600080fd5b505af11580156132a7573d6000803e3d6000fd5b50505060009384525050600c60205250604090206001015490565b6000838152600b6020526040808220600101549051627eeac760e11b815233600482015260248101919091526001600160a01b0383169062fdd58e90604401602060405180830381865afa15801561331e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334291906148ea565b11156133d7576000838152600b6020526040908190206001908101549151637a94c56560e11b8152336004820152602481019290925260448201526001600160a01b0382169063f5298aca90606401600060405180830381600087803b1580156133ab57600080fd5b505af11580156133bf573d6000803e3d6000fd5b50505060009384525050600c60205250604090205490565b60405162461bcd60e51b815260206004820152601060248201527f4e6f2041636365737320746f6b656e2e000000000000000000000000000000006044820152606401610ee4565b6000828152600a602052604090205461347a5760405162461bcd60e51b815260206004820152601260248201527f416c6c204e4654732061726520736f6c642e00000000000000000000000000006044820152606401610ee4565b6000828152600a6020526040812054600110156134e8576000838152600a60209081526040918290205482519182018190524340928201929092524460608201526080016040516020818303038152906040528051906020012060001c6134e19190614903565b90506134ec565b5060005b6000838152600a6020526040812080548390811061350c5761350c614773565b6000918252602080832090910154868352600a90915260409091208054919250906135399060019061475c565b8154811061354957613549614773565b9060005260206000200154600a6000868152602001908152602001600020838154811061357857613578614773565b9060005260206000200181905550600a60008581526020019081526020016000208054806135a8576135a8614917565b60019003818190600052602060002001600090559055611b5e818461383c565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661171e5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556136263390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b0382166136c05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ee4565b6000818152600260205260409020546001600160a01b0316156137255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ee4565b6001600160a01b038216600090815260036020526040812080546001929061374e908490614729565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff161561171e5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60016015600082825461384f9190614729565b909155505060145460155411156138a85760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d6178537570706c792e6044820152606401610ee4565b61171e818361366a565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61391c848484612fc3565b61392884848484613ce2565b611b5e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ee4565b6060816139be5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156139e857806139d281614741565b91506139e19050600a83614715565b91506139c2565b60008167ffffffffffffffff811115613a0357613a036141ca565b6040519080825280601f01601f191660200182016040528015613a2d576020820181803683370190505b5090505b8415612fbb57613a4260018361475c565b9150613a4f600a86614903565b613a5a906030614729565b60f81b818381518110613a6f57613a6f614773565b60200101906001600160f81b031916908160001a905350613a91600a86614715565b9450613a31565b600060026000838152600b602052604090205460ff166005811115613abf57613abf6140b0565b1415613b14576000828152600b602052604080822080546002909101549151627eeac760e11b8152336004820152602481019290925261010090046001600160a01b03169190829062fdd58e906044016131e9565b610dc682611d39565b60606000613b2c8360026146e0565b613b37906002614729565b67ffffffffffffffff811115613b4f57613b4f6141ca565b6040519080825280601f01601f191660200182016040528015613b79576020820181803683370190505b509050600360fc1b81600081518110613b9457613b94614773565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613bdf57613bdf614773565b60200101906001600160f81b031916908160001a9053506000613c038460026146e0565b613c0e906001614729565b90505b6001811115613c93577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613c4f57613c4f614773565b1a60f81b828281518110613c6557613c65614773565b60200101906001600160f81b031916908160001a90535060049490941c93613c8c8161492d565b9050613c11565b508315611e715760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ee4565b60006001600160a01b0384163b15613e2b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d26903390899088908890600401614944565b6020604051808303816000875af1925050508015613d61575060408051601f3d908101601f19168201909252613d5e91810190614980565b60015b613e11573d808015613d8f576040519150601f19603f3d011682016040523d82523d6000602084013e613d94565b606091505b508051613e095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ee4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fbb565b506001949350505050565b828054613e4290614687565b90600052602060002090601f016020900481019282613e645760008555613eaa565b82601f10613e7d57805160ff1916838001178555613eaa565b82800160010185558215613eaa579182015b82811115613eaa578251825591602001919060010190613e8f565b50613eb6929150613eba565b5090565b5b80821115613eb65760008155600101613ebb565b6001600160e01b031981168114612dbd57600080fd5b600060208284031215613ef757600080fd5b8135611e7181613ecf565b60005b83811015613f1d578181015183820152602001613f05565b83811115611b5e5750506000910152565b60008151808452613f46816020860160208601613f02565b601f01601f19169290920160200192915050565b602081526000611e716020830184613f2e565b600060208284031215613f7f57600080fd5b5035919050565b6001600160a01b0381168114612dbd57600080fd5b60008060408385031215613fae57600080fd5b8235613fb981613f86565b946020939093013593505050565b600080600060608486031215613fdc57600080fd5b8335613fe781613f86565b92506020840135613ff781613f86565b929592945050506040919091013590565b6000806040838503121561401b57600080fd5b50508035926020909101359150565b60008060006060848603121561403f57600080fd5b8335925060208401359150604084013561405881613f86565b809150509250925092565b6000806040838503121561407657600080fd5b82359150602083013561408881613f86565b809150509250929050565b6000602082840312156140a557600080fd5b8135611e7181613f86565b634e487b7160e01b600052602160045260246000fd5b600681106140e457634e487b7160e01b600052602160045260246000fd5b9052565b60e081016140f6828a6140c6565b6001600160a01b03881660208301528660408301528560608301528460808301528360a08301528260c083015298975050505050505050565b6000806000806080858703121561414557600080fd5b84359350602085013561415781613f86565b93969395505050506040820135916060013590565b600060e08201905061417f8284516140c6565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015292915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614209576142096141ca565b604052919050565b6000806040838503121561422457600080fd5b8235915060208084013567ffffffffffffffff8082111561424457600080fd5b818601915086601f83011261425857600080fd5b81358181111561426a5761426a6141ca565b8060051b915061427b8483016141e0565b818152918301840191848101908984111561429557600080fd5b938501935b838510156142bf57843592506142af83613f86565b828252938501939085019061429a565b8096505050505050509250929050565b600067ffffffffffffffff8311156142e9576142e96141ca565b6142fc601f8401601f19166020016141e0565b905082815283838301111561431057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561433957600080fd5b813567ffffffffffffffff81111561435057600080fd5b8201601f8101841361436157600080fd5b612fbb848235602084016142cf565b60008060006060848603121561438557600080fd5b833561439081613f86565b925060208401359150604084013561405881613f86565b8015158114612dbd57600080fd5b600080604083850312156143c857600080fd5b82356143d381613f86565b91506020830135614088816143a7565b600080600080608085870312156143f957600080fd5b843561440481613f86565b9350602085013561441481613f86565b925060408501359150606085013567ffffffffffffffff81111561443757600080fd5b8501601f8101871361444857600080fd5b614457878235602084016142cf565b91505092959194509250565b60008083601f84011261447557600080fd5b50813567ffffffffffffffff81111561448d57600080fd5b6020830191508360208260051b850101111561121d57600080fd5b6000806000806000606086880312156144c057600080fd5b85359450602086013567ffffffffffffffff808211156144df57600080fd5b6144eb89838a01614463565b9096509450604088013591508082111561450457600080fd5b5061451188828901614463565b969995985093965092949392505050565b600060a0828403121561453457600080fd5b60405160a0810181811067ffffffffffffffff82111715614557576145576141ca565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60008060008060008061014087890312156145ac57600080fd5b86356145b781613f86565b955060208701359450604087013593506145d48860608901614522565b9250610100870135915061012087013590509295509295509295565b6000806040838503121561460357600080fd5b823561460e81613f86565b9150602083013561408881613f86565b6000806000806000806000610160888a03121561463a57600080fd5b87359650602088013561464c81613f86565b955060408801359450606088013593506146698960808a01614522565b92506101208801359150610140880135905092959891949750929550565b600181811c9082168061469b57607f821691505b60208210811415611ed157634e487b7160e01b600052602260045260246000fd5b60208101610dc682846140c6565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156146fa576146fa6146ca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614724576147246146ff565b500490565b6000821982111561473c5761473c6146ca565b500190565b6000600019821415614755576147556146ca565b5060010190565b60008282101561476e5761476e6146ca565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561479b57600080fd5b8151611e71816143a7565b600081516147b8818560208601613f02565b9290920192915050565b600080845481600182811c9150808316806147de57607f831692505b60208084108214156147fe57634e487b7160e01b86526022600452602486fd5b818015614812576001811461482357614850565b60ff19861689528489019650614850565b60008b81526020902060005b868110156148485781548b82015290850190830161482f565b505084890196505b50505050505061486081856147a6565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148a1816017850160208801613f02565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516148de816028840160208801613f02565b01602801949350505050565b6000602082840312156148fc57600080fd5b5051919050565b600082614912576149126146ff565b500690565b634e487b7160e01b600052603160045260246000fd5b60008161493c5761493c6146ca565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526149766080830184613f2e565b9695505050505050565b60006020828403121561499257600080fd5b8151611e7181613ecf56fe1defd8ef915dc8ec87e9048048c7076484c6d2162021b65fd4a8c056057d9363a264697066735822122084db6e57f295d40c731bfe86a5d1d9cf9dd4f3dbfce79f93e2f622f65940c7ba64736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000790937be495a0fd8f6c1ef79c55c1cf40aaf66c3000000000000000000000000000000000000000000000000000000000000290400000000000000000000000000000000000000000000000000000000000000094d6f6a6f4865616473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d4a480000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): MojoHeads
Arg [1] : symbol_ (string): MJH
Arg [2] : artistTokenReserve_ (uint256): 500
Arg [3] : royaltyPercentage_ (uint256): 1000
Arg [4] : defaultRoyaltyAddress_ (address): 0x790937BE495a0FD8f6C1ef79c55C1cF40aAF66c3
Arg [5] : maxSupply_ (uint256): 10500

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 000000000000000000000000790937be495a0fd8f6c1ef79c55c1cf40aaf66c3
Arg [5] : 0000000000000000000000000000000000000000000000000000000000002904
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 4d6f6a6f48656164730000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4d4a480000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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