ETH Price: $2,903.67 (-3.88%)
Gas: 5 Gwei

Token

Boss Beauties Collabs (BOSSBEAUTIESSCOLLABS)
 

Overview

Max Total Supply

11,501 BOSSBEAUTIESSCOLLABS

Holders

4,386

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xc30782464f06a98d9d1389bb87aa4f5f8801b60f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Commerce

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : Commerce.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import './Abstract1155Factory.sol';
import './Utils.sol';
contract Commerce is Abstract1155Factory, ReentrancyGuard  {
    using SafeMath for uint256;

    mapping(uint256 => Token) public tokens;
    event Purchased(uint[] index, address indexed account, uint[] amount);
    struct Token {
        string ipfsMetadataHash;
        string extraDataUri;
        mapping(address => uint256) claimedTokens;
        mapping(uint => address) redeemableContracts;
        uint256 numRedeemableContracts;
        mapping(uint => Whitelist) whitelistData;
        uint256 numTokenWhitelists;
        MintingConfig mintingConfig;
        WhiteListConfig whiteListConfig;
        bool isTokenPack;
        TokenPackConfig tokenPackConfig;
    }
    struct MintingConfig {
        bool saleIsOpen;
        uint256 windowOpens;
        uint256 windowCloses;
        uint256 mintPrice;
        uint256 maxSupply;
        uint256 maxPerWallet;
        uint256 maxMintPerTxn;
        uint256 numMinted;
    }
    struct WhiteListConfig {
        bool maxQuantityMappedByWhitelistHoldings;
        bool requireAllWhiteLists;
        bool hasMerkleRoot;
        bytes32 merkleRoot;
    }
    struct TokenPackConfig {
        uint256[] packTokens;
        bool isRandomPack;
        uint numRandom;
        uint numWhiteListBonus;
        bool allotOwnedTokenQuantity;
        bool isWhiteListBonusAggregatedAcrossAllWhiteLists;
    }
    struct Whitelist {
        string tokenType;
        address tokenAddress;
        uint mustOwnQuantity;
        uint256 tokenId;
        bool active;
    }

    string public _contractURI;
   
    constructor(
        string memory _name, 
        string memory _symbol,
        address[] memory _admins,
        string memory _contract_URI
    ) ERC1155("ipfs://") {
        name_ = _name;
        symbol_ = _symbol;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        for (uint i=0; i< _admins.length; i++) {
            _setupRole(DEFAULT_ADMIN_ROLE, _admins[i]);
        }
        _contractURI = _contract_URI;
    }

     function getOpenSaleTokens() public view returns (string memory){
        string memory open = "";
        uint256 numTokens = 0;
        while(!Utils.compareStrings(tokens[numTokens].ipfsMetadataHash, "")) {
           if(isSaleOpen(numTokens)){
                open = string(abi.encodePacked(open, Strings.toString(numTokens), ","));
            }
            numTokens++;
        }
        return open;
    }

     function editToken(
        uint256 _tokenIndex,
        string memory _ipfsMetadataHash,
        string memory _extraDataUri,
        uint256 _windowOpens, 
        uint256 _windowCloses, 
        uint256 _mintPrice, 
        uint256 _maxSupply,
        uint256 _maxMintPerTxn,
        uint256 _maxPerWallet,
        bool _maxQuantityMappedByWhitelistHoldings,
        bool _requireAllWhiteLists,
        address[] memory _redeemableContracts
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        Token storage token = tokens[_tokenIndex];
        token.mintingConfig.windowOpens = _windowOpens;
        token.mintingConfig.windowCloses = _windowCloses;
        token.mintingConfig.mintPrice = _mintPrice;
        token.mintingConfig.maxSupply = _maxSupply;
        token.mintingConfig.maxMintPerTxn = _maxMintPerTxn;
        token.mintingConfig.maxPerWallet = _maxPerWallet;
        token.ipfsMetadataHash = _ipfsMetadataHash;
        token.extraDataUri = _extraDataUri;
        for (uint i=0; i<_redeemableContracts.length; i++) {
            token.redeemableContracts[i] = _redeemableContracts[i];
        }
        token.numRedeemableContracts = _redeemableContracts.length;
        token.whiteListConfig.maxQuantityMappedByWhitelistHoldings = _maxQuantityMappedByWhitelistHoldings;
        token.whiteListConfig.requireAllWhiteLists = _requireAllWhiteLists;
    }   


    function configTokenPack(
        uint256 _tokenIndex,
        bool _isTokenPack,
        uint256[] memory _packTokens,
        bool _isRandomPack,
        uint _numRandom,
        uint _numWhiteListBonus,
        bool _allotOwnedTokenQuantity,
        bool _isWhiteListBonusAggregatedAcrossAllWhiteLists
    )external onlyRole(DEFAULT_ADMIN_ROLE) {
        TokenPackConfig storage tokenPackConfig = tokens[_tokenIndex].tokenPackConfig;
        tokens[_tokenIndex].isTokenPack = _isTokenPack;
        tokenPackConfig.packTokens = _packTokens;
        tokenPackConfig.isRandomPack = _isRandomPack;
        tokenPackConfig.numRandom = _numRandom;
        tokenPackConfig.numWhiteListBonus = _numWhiteListBonus;
        tokenPackConfig.allotOwnedTokenQuantity = _allotOwnedTokenQuantity;
        tokenPackConfig.isWhiteListBonusAggregatedAcrossAllWhiteLists = _isWhiteListBonusAggregatedAcrossAllWhiteLists;
        
    }

    function addWhiteList(
         uint256 _tokenIndex,
         string memory _tokenType,
         address _tokenAddress,
         uint _tokenId,
         uint _mustOwnQuantity
    )external onlyRole(DEFAULT_ADMIN_ROLE) {
        Whitelist storage whitelist = tokens[_tokenIndex].whitelistData[tokens[_tokenIndex].numTokenWhitelists];
        whitelist.tokenType = _tokenType;
        whitelist.tokenId = _tokenId;
        whitelist.active = true;
        whitelist.tokenAddress = _tokenAddress;
        whitelist.mustOwnQuantity = _mustOwnQuantity;
        tokens[_tokenIndex].numTokenWhitelists = tokens[_tokenIndex].numTokenWhitelists + 1;
    }

     function disableWhiteList(
       uint256 _tokenIndex,
       uint _whiteListIndexToRemove
    )external onlyRole(DEFAULT_ADMIN_ROLE) {
        tokens[_tokenIndex].whitelistData[_whiteListIndexToRemove].active = false;
    }

   function editTokenWhiteListMerkleRoot(
       uint256 _tokenIndex,
        bytes32 _merkleRoot,
        bool enabled
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        tokens[_tokenIndex].whiteListConfig.merkleRoot = _merkleRoot;
        tokens[_tokenIndex].whiteListConfig.hasMerkleRoot = enabled;
    } 

   
     function burnFromRedeem(
        address account, 
        uint256 tokenIndex, 
        uint256 amount
    ) external {
        Token storage token = tokens[tokenIndex];
        bool hasValidRedemptionContract = false;
         if(token.numRedeemableContracts > 0){
            for (uint i=0; i < token.numRedeemableContracts; i++) {
                if(token.redeemableContracts[i] == msg.sender){
                    hasValidRedemptionContract = true;
                }
            }
        }
        require(hasValidRedemptionContract, "1");
        _burn(account, tokenIndex, amount);
    }  

    function purchase(
        uint256[] calldata _quantities,
        uint256[] calldata _tokenIndexes,
        uint256[] calldata _merkleAmounts,
        bytes32[][] calldata _merkleProofs
    ) external payable nonReentrant {
        uint256 totalPrice = 0;
        for (uint i=0; i< _tokenIndexes.length; i++) {
            require(isSaleOpen(_tokenIndexes[i]), "5");
            require(tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]) <= _merkleAmounts[i], "8");
            require(tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]) <= tokens[_tokenIndexes[i]].mintingConfig.maxPerWallet, "9");
            require(_quantities[i] <= tokens[_tokenIndexes[i]].mintingConfig.maxMintPerTxn, "10");
            require(getTokenSupply(_tokenIndexes[i]) + _quantities[i] <= tokens[_tokenIndexes[i]].mintingConfig.maxSupply, "11");
            totalPrice = totalPrice.add(_quantities[i].mul(tokens[_tokenIndexes[i]].mintingConfig.mintPrice));
        }
        require(!paused() && msg.value >= totalPrice, "3");
        for (uint i=0; i< _tokenIndexes.length; i++) {
            
            uint256 quantityToMint = getQualifiedAllocation(msg.sender,_tokenIndexes[i], _quantities[i],_merkleAmounts[i],_merkleProofs[i], true); 
            require(quantityToMint > 0 && quantityToMint >= _quantities[i], "4");
        
            uint256[] memory idsToMint;
            uint256[] memory quantitiesToMint;
            if(tokens[_tokenIndexes[i]].isTokenPack){
                quantityToMint = getQualifiedAllocation(msg.sender,_tokenIndexes[i], _quantities[i],_merkleAmounts[i],_merkleProofs[i], false); 
                for (uint j=0; j < _quantities[i]; j++) {
                    uint256[] memory inStockTokens = filterInStockTokensFromPack(tokens[_tokenIndexes[i]].tokenPackConfig, j);
                    if(tokens[_tokenIndexes[i]].tokenPackConfig.isRandomPack){
                        idsToMint = new uint256[](quantityToMint);
                        quantitiesToMint = new uint256[](quantityToMint);
                        uint startingIndex = 0;
                        uint q = 0;
                        while(q < quantityToMint) {
                            idsToMint[q] = inStockTokens[startingIndex];
                            quantitiesToMint[q] = 1;
                            
                            if(startingIndex < inStockTokens.length - 1){
                                startingIndex = startingIndex + 1;
                            }
                            else{
                                startingIndex = 0;
                            }
                            q = q + 1;
                        }     

                    
                    }
                    else{
                        idsToMint = new uint256[](inStockTokens.length);
                        for (uint q=0; q < inStockTokens.length; q++) {
                            idsToMint[q] = inStockTokens[q];
                            quantitiesToMint[q] = 1;
                        }  
                    }
                    _mintBatch(msg.sender, idsToMint, quantitiesToMint, "");
                    emit Purchased(idsToMint, msg.sender, quantitiesToMint);
                    tokens[_tokenIndexes[i]].mintingConfig.numMinted = tokens[_tokenIndexes[i]].mintingConfig.numMinted + 1;

                    
                }
            }
            else{
                idsToMint = new uint256[](1);
                idsToMint[0] =  _tokenIndexes[i];
                quantitiesToMint = new uint256[](1);
                quantitiesToMint[0] = _quantities[i];
                _mintBatch(msg.sender, idsToMint, quantitiesToMint, "");
                emit Purchased(idsToMint, msg.sender, quantitiesToMint);
            }
            tokens[_tokenIndexes[i]].claimedTokens[msg.sender] = tokens[_tokenIndexes[i]].claimedTokens[msg.sender].add(_quantities[i]);
            
        }
    }
     function filterInStockTokensFromPack(TokenPackConfig memory tokenPackConfig, uint seed) internal view returns(uint256[] memory){
        tokenPackConfig.packTokens = Utils.shuffle(tokenPackConfig.packTokens, false, seed);
        uint256[] memory inStockTokens;
        uint totalInStock = 0;
        for (uint i=0; i < tokenPackConfig.packTokens.length; i++) {
              if(getTokenSupply(tokenPackConfig.packTokens[i]) < tokens[tokenPackConfig.packTokens[i]].mintingConfig.maxSupply){
                 totalInStock++;
             }
         }
        inStockTokens = new uint256[](totalInStock);
        uint startingIndex = 0;
        for (uint i=0; i < tokenPackConfig.packTokens.length; i++) {
            if(getTokenSupply(tokenPackConfig.packTokens[i]) < tokens[tokenPackConfig.packTokens[i]].mintingConfig.maxSupply){
                inStockTokens[startingIndex] = tokenPackConfig.packTokens[i];
                startingIndex++;
            }
         }
        return inStockTokens;
    }

    
    function mintBatch(
        address to,
        uint256[] calldata qty,
        uint256[] calldata _tokens) public onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _mintBatch(to, _tokens, qty, "");
    }

     function getQualifiedAllocation(address sender, 
        uint256 tokenIndex,
        uint256 quantity,
        uint256 amount,
        bytes32[] calldata merkleProof,
        bool returnAllocationOnly) public view returns (uint256) {
        
        Token storage token = tokens[tokenIndex];

        uint256 totalAllowed = token.mintingConfig.maxPerWallet;
        if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){
            totalAllowed = 0;
        }

        uint256 whiteListsValidAmounts = 0;
        if(token.numTokenWhitelists > 0){
            uint256 balance = 0;
            uint256 _wl_amount = 0;
            for (uint i=0; i < token.numTokenWhitelists; i++) {
                if(token.whitelistData[i].active){
                
                    _wl_amount = verifyWhitelist(sender, tokenIndex, i, returnAllocationOnly);
                    
                    if(token.whiteListConfig.requireAllWhiteLists){
                        require( verifyWhitelist(sender, tokenIndex, i, returnAllocationOnly) > 0, "12");
                    }
                    
                    if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){
                        Whitelist memory balanceRequest;
                        balanceRequest.tokenType = token.whitelistData[i].tokenType;
                        balanceRequest.tokenAddress = token.whitelistData[i].tokenAddress;
                        balanceRequest.tokenId = token.whitelistData[i].tokenId;
                        balance = getExternalTokenBalance(sender, balanceRequest);
                        totalAllowed += balance;
                        whiteListsValidAmounts += balance;
                        
                    }
                    else{
                        whiteListsValidAmounts = _wl_amount;
                    }
                }
               
            }
        }
        else{
            whiteListsValidAmounts = token.mintingConfig.maxMintPerTxn;
        }

        if(!returnAllocationOnly){
            require(whiteListsValidAmounts > 0, "13");

            if(token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){
            require(token.claimedTokens[sender].add(quantity) <= totalAllowed, "14");
            }
        }
       

        if(token.whiteListConfig.hasMerkleRoot){
             require(
                verifyMerkleProof(merkleProof, tokenIndex, amount),
                "15" 
            ); 
            //whiteListsValidAmounts += quantity;
        }
        
        if(returnAllocationOnly){
            return whiteListsValidAmounts < quantity ? whiteListsValidAmounts : quantity;
        }
        else{
            return whiteListsValidAmounts;
        }
       
         

    }

    function verifyWhitelist(address sender, uint256 tokenIndex, uint whitelistIndex, bool returnAllocationOnly) internal view returns (uint256) {
       
       uint256 isValid = 0;
       uint256 balanceOf = 0;
       Token storage token = tokens[tokenIndex];
       Whitelist memory balanceRequest;
       balanceRequest.tokenType = token.whitelistData[whitelistIndex].tokenType;
       balanceRequest.tokenAddress = token.whitelistData[whitelistIndex].tokenAddress;
       balanceRequest.tokenId = token.whitelistData[whitelistIndex].tokenId;
       balanceOf = getExternalTokenBalance(sender, balanceRequest);
       bool meetsWhiteListReqs = (balanceOf >= token.whitelistData[whitelistIndex].mustOwnQuantity);
        if(token.isTokenPack && !returnAllocationOnly){
            if(token.tokenPackConfig.isRandomPack){
                isValid = isValid + token.tokenPackConfig.numRandom;
            }
            else{
                isValid = isValid + token.tokenPackConfig.packTokens.length;
            }

            if(token.tokenPackConfig.numWhiteListBonus > 0 && meetsWhiteListReqs){
                isValid = isValid + token.tokenPackConfig.numWhiteListBonus;
            }
            
        }
        else if(token.isTokenPack && token.tokenPackConfig.allotOwnedTokenQuantity && meetsWhiteListReqs){
            isValid = balanceOf;
            
        }
        else if(!token.isTokenPack && token.whiteListConfig.maxQuantityMappedByWhitelistHoldings){
            isValid = balanceOf;
        
        }
        else if( meetsWhiteListReqs){
            isValid = token.mintingConfig.maxMintPerTxn;
        }

        if(isValid == 0 && !token.whiteListConfig.requireAllWhiteLists){
            isValid = token.mintingConfig.maxMintPerTxn;
        }
        return isValid;
    }


    function getExternalTokenBalance (address sender, Whitelist memory balanceRequest) public view returns (uint256) {
        if(Utils.compareStrings(balanceRequest.tokenType, "ERC721")){
            WhitelistContract721 _contract = WhitelistContract721(balanceRequest.tokenAddress);
            return _contract.balanceOf(sender);
        }
        else if(Utils.compareStrings(balanceRequest.tokenType, "ERC1155")){
            WhitelistContract1155 _contract = WhitelistContract1155(balanceRequest.tokenAddress);
            return _contract.balanceOf(sender, balanceRequest.tokenId);
        }
    }

    function isSaleOpen(uint256 tokenIndex) public view returns (bool) {
        Token storage token = tokens[tokenIndex];
        if(paused()){
            return false;
        }
        if(block.timestamp > token.mintingConfig.windowOpens && block.timestamp < token.mintingConfig.windowCloses){
            return token.mintingConfig.saleIsOpen;
        }
        return false;
        
    }

    function toggleSale(uint256 mpIndex, bool on) public onlyRole(DEFAULT_ADMIN_ROLE) {
        tokens[mpIndex].mintingConfig.saleIsOpen = on;
    }


    function verifyMerkleProof(bytes32[] calldata merkleProof, uint256 mpIndex, uint amount) internal view returns (bool) {
        if(!tokens[mpIndex].whiteListConfig.hasMerkleRoot){
            return true;
        }
        string memory leaf = Utils.makeLeaf(msg.sender, amount);
        bytes32 node = keccak256(abi.encode(leaf));
        return MerkleProof.verify(merkleProof, tokens[mpIndex].whiteListConfig.merkleRoot, node);
    }


    function char(bytes1 b) internal view returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
    
    function withdrawEther(address payable _to, uint256 _amount) public onlyOwner
    {
        _to.transfer(_amount);
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(getTokenSupply(_id) > 0, "16");
        if(Utils.compareStrings(tokens[_id].ipfsMetadataHash, "")){
            return string(abi.encodePacked(super.uri(_id), Strings.toString(_id)));
        }
        else{
            return string(abi.encodePacked(tokens[_id].ipfsMetadataHash));
        }   
    } 

    

     function getTokenSupply(uint256 tokenIndex) public view returns (uint256) {
         Token storage token = tokens[tokenIndex];
        return token.isTokenPack ? token.mintingConfig.numMinted : totalSupply(tokenIndex);
    }
}
contract WhitelistContract1155 {
    function balanceOf(address account, uint256 id) external view returns (uint256) {}
}
contract WhitelistContract721 {
    function balanceOf(address account) external view returns (uint256) {}
 }

File 2 of 22 : 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 3 of 22 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `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 memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - 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[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 4 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 5 of 22 : 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 6 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 22 : Abstract1155Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/AccessControl.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';


abstract contract Abstract1155Factory is AccessControl, ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public name_;
    string public symbol_;

    
    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }    

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    }  

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Pausable, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  

    function setOwner(address _addr) public onlyOwner {
        transferOwnership(_addr);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
   function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

}

File 9 of 22 : Utils.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @author: @props

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


/**
 * @title Library of utility functions.
 */
library Utils {

  /**
  * @notice isUnique iterates over all elements in an array to determine whether or 
  * not it contains repeated values. Returns false if a repeated value is found.
  * @param items the array of items to evaluate
  * @return true if the array does not contain repeated items, false if not
  * @dev We use for loops instead of storage based constructs because doing so
  * allows comparison to be run entirely in memory and therefore saves gas.
  */
  function isUnique(uint256[] memory items) internal pure returns (bool) {
      for (uint i = 0; i < items.length; i++) {
          for (uint k = i + 1; k < items.length; k++) {
              if (items[i] == items[k]) {
                  return false;
              }
          }
      }
      return true;
  }


    function compareStrings(string memory a, string memory b) internal view returns (bool) {
        return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));
    }

  function makeLeaf(address _addr, uint amount) internal pure returns (string memory) {
      return string(abi.encodePacked(toAsciiString(_addr), "_", Strings.toString(amount)));
  }

  function toAsciiString(address x) internal pure returns (string memory) {
      bytes memory s = new bytes(40);
      for (uint i = 0; i < 20; i++) {
          bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
          bytes1 hi = bytes1(uint8(b) / 16);
          bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
          s[2*i] = toChar(hi);
          s[2*i+1] = toChar(lo);            
      }
      return string(s);
  }

  function shuffle(uint256[] memory numberArr, bool returnRandomIndex, uint seed) internal view returns(uint256[] memory){
        if(!returnRandomIndex){
             for (uint256 i = 0; i < numberArr.length; i++) {
                uint256 n = i + uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender, seed))) % (numberArr.length - i);
                uint256 temp = numberArr[n];
                numberArr[n] = numberArr[i];
                numberArr[i] = temp;
            }
        }
        else{
            uint randomHash = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, seed))) % numberArr.length;
            uint256[] memory retNumberArr = new uint256[](1);
            retNumberArr[0] = numberArr[randomHash];
            numberArr = retNumberArr;
        }
       
        return numberArr;
    }

  /**
  * @notice toChar converts a byte array to characters.
  * @param b bytes to convert characters
  * @return bytes character
  * @dev We use for loops instead of storage based constructs because doing so
  * allows comparison to be run entirely in memory and therefore saves gas.
  */
  function toChar(bytes1 b) internal pure returns (bytes1) {
      if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
      else return bytes1(uint8(b) + 0x57);
  }


}

File 10 of 22 : 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 11 of 22 : 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 12 of 22 : 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 13 of 22 : 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 14 of 22 : 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 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 16 of 22 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 17 of 22 : 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 18 of 22 : 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 19 of 22 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 20 of 22 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 21 of 22 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 22 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address[]","name":"_admins","type":"address[]"},{"internalType":"string","name":"_contract_URI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"index","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"Purchased","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"string","name":"_tokenType","type":"string"},{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mustOwnQuantity","type":"uint256"}],"name":"addWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFromRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"bool","name":"_isTokenPack","type":"bool"},{"internalType":"uint256[]","name":"_packTokens","type":"uint256[]"},{"internalType":"bool","name":"_isRandomPack","type":"bool"},{"internalType":"uint256","name":"_numRandom","type":"uint256"},{"internalType":"uint256","name":"_numWhiteListBonus","type":"uint256"},{"internalType":"bool","name":"_allotOwnedTokenQuantity","type":"bool"},{"internalType":"bool","name":"_isWhiteListBonusAggregatedAcrossAllWhiteLists","type":"bool"}],"name":"configTokenPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"uint256","name":"_whiteListIndexToRemove","type":"uint256"}],"name":"disableWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"string","name":"_extraDataUri","type":"string"},{"internalType":"uint256","name":"_windowOpens","type":"uint256"},{"internalType":"uint256","name":"_windowCloses","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerTxn","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"bool","name":"_maxQuantityMappedByWhitelistHoldings","type":"bool"},{"internalType":"bool","name":"_requireAllWhiteLists","type":"bool"},{"internalType":"address[]","name":"_redeemableContracts","type":"address[]"}],"name":"editToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"editTokenWhiteListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"components":[{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"mustOwnQuantity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct Commerce.Whitelist","name":"balanceRequest","type":"tuple"}],"name":"getExternalTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOpenSaleTokens","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"returnAllocationOnly","type":"bool"}],"name":"getQualifiedAllocation","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":"uint256","name":"tokenIndex","type":"uint256"}],"name":"getTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"isSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"qty","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_merkleAmounts","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_merkleProofs","type":"bytes32[][]"}],"name":"purchase","outputs":[],"stateMutability":"payable","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"address","name":"_addr","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","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":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mpIndex","type":"uint256"},{"internalType":"bool","name":"on","type":"bool"}],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"string","name":"ipfsMetadataHash","type":"string"},{"internalType":"string","name":"extraDataUri","type":"string"},{"internalType":"uint256","name":"numRedeemableContracts","type":"uint256"},{"internalType":"uint256","name":"numTokenWhitelists","type":"uint256"},{"components":[{"internalType":"bool","name":"saleIsOpen","type":"bool"},{"internalType":"uint256","name":"windowOpens","type":"uint256"},{"internalType":"uint256","name":"windowCloses","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTxn","type":"uint256"},{"internalType":"uint256","name":"numMinted","type":"uint256"}],"internalType":"struct Commerce.MintingConfig","name":"mintingConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"maxQuantityMappedByWhitelistHoldings","type":"bool"},{"internalType":"bool","name":"requireAllWhiteLists","type":"bool"},{"internalType":"bool","name":"hasMerkleRoot","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"internalType":"struct Commerce.WhiteListConfig","name":"whiteListConfig","type":"tuple"},{"internalType":"bool","name":"isTokenPack","type":"bool"},{"components":[{"internalType":"uint256[]","name":"packTokens","type":"uint256[]"},{"internalType":"bool","name":"isRandomPack","type":"bool"},{"internalType":"uint256","name":"numRandom","type":"uint256"},{"internalType":"uint256","name":"numWhiteListBonus","type":"uint256"},{"internalType":"bool","name":"allotOwnedTokenQuantity","type":"bool"},{"internalType":"bool","name":"isWhiteListBonusAggregatedAcrossAllWhiteLists","type":"bool"}],"internalType":"struct Commerce.TokenPackConfig","name":"tokenPackConfig","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620064ad380380620064ad83398101604081905262000034916200037c565b604080518082019091526007815266697066733a2f2f60c81b60208201526200005d8162000131565b506004805460ff1916905562000073336200014a565b600160095583516200008d90600790602087019062000245565b508251620000a390600890602086019062000245565b50620000b16000336200019c565b60005b82518110156200011057620000fb6000801b848381518110620000e757634e487b7160e01b600052603260045260246000fd5b60200260200101516200019c60201b60201c565b80620001078162000527565b915050620000b4565b5080516200012690600b90602084019062000245565b505050505062000565565b80516200014690600390602084019062000245565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152602081815260408083206001600160a01b038516845290915290205462000146908390839060ff1662000146576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002013390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200025390620004ea565b90600052602060002090601f016020900481019282620002775760008555620002c2565b82601f106200029257805160ff1916838001178555620002c2565b82800160010185558215620002c2579182015b82811115620002c2578251825591602001919060010190620002a5565b50620002d0929150620002d4565b5090565b5b80821115620002d05760008155600101620002d5565b600082601f830112620002fc578081fd5b81516001600160401b038111156200031857620003186200054f565b60206200032e601f8301601f19168201620004b7565b828152858284870101111562000342578384fd5b835b838110156200036157858101830151828201840152820162000344565b838111156200037257848385840101525b5095945050505050565b6000806000806080858703121562000392578384fd5b84516001600160401b0380821115620003a9578586fd5b620003b788838901620002eb565b9550602091508187015181811115620003ce578586fd5b620003dc89828a01620002eb565b955050604087015181811115620003f1578485fd5b8701601f8101891362000402578485fd5b8051828111156200041757620004176200054f565b8060051b62000428858201620004b7565b8281528581019084870183860188018e10156200044357898afd5b8995505b848610156200047f57805193506001600160a01b03841684146200046957898afd5b8383526001959095019491870191870162000447565b50809850505050505060608701519150808211156200049c578283fd5b50620004ab87828801620002eb565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620004e257620004e26200054f565b604052919050565b600181811c90821680620004ff57607f821691505b602082108114156200052157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200054857634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b615f3880620005756000396000f3fe6080604052600436106102875760003560e01c80636b20c4541161015a578063bd85b039116100c1578063dd66489e1161007a578063dd66489e146107bb578063e2b9e186146107db578063e985e9c5146107f0578063f242432a14610839578063f2fde38b14610859578063f5298aca1461087957600080fd5b8063bd85b039146106f9578063c0e7274014610726578063d547741f1461073b578063d5ebd7881461075b578063d6b15c4c1461077b578063d81d0a151461079b57600080fd5b806391d148541161011357806391d148541461065a57806395d89b411461067a578063a217fddf1461068f578063a22cb465146106a4578063a8afbca1146106c4578063af17dea6146106e457600080fd5b80636b20c454146105b557806370765746146105d5578063715018a6146105e85780637d737203146105fd5780638456cb591461061d5780638da5cb5b1461063257600080fd5b80632f2ff15d116101fe5780634e1273f4116101b75780634e1273f4146104d85780634f558e79146105055780634f64b2be14610534578063522f681514610568578063589b2162146105885780635c975abb1461059d57600080fd5b80632f2ff15d1461042357806336568abe146104435780633a4da729146104635780633aeca210146104835780633f4ba83a146104a35780634044556d146104b857600080fd5b80630e89341c116102505780630e89341c1461035357806313af40351461037357806319b88edb14610393578063227f951c146103b3578063248a9ca3146103d35780632eb2c2d61461040357600080fd5b8062fdd58e1461028c57806301ffc9a7146102bf57806302fe5305146102ef578063065eb1171461031157806306fdde0314610331575b600080fd5b34801561029857600080fd5b506102ac6102a7366004614f18565b610899565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004615139565b610935565b60405190151581526020016102b6565b3480156102fb57600080fd5b5061030f61030a366004615171565b610940565b005b34801561031d57600080fd5b5061030f61032c3660046151bb565b610976565b34801561033d57600080fd5b506103466109a6565b6040516102b6919061579a565b34801561035f57600080fd5b5061034661036e3660046150fd565b610a38565b34801561037f57600080fd5b5061030f61038e366004614ba9565b610b8a565b34801561039f57600080fd5b506102ac6103ae3660046150fd565b610bbd565b3480156103bf57600080fd5b506102ac6103ce366004614e5c565b610bf8565b3480156103df57600080fd5b506102ac6103ee3660046150fd565b60009081526020819052604090206001015490565b34801561040f57600080fd5b5061030f61041e366004614c28565b610d23565b34801561042f57600080fd5b5061030f61043e366004615115565b610dba565b34801561044f57600080fd5b5061030f61045e366004615115565b610de5565b34801561046f57600080fd5b5061030f61047e3660046151dd565b610e63565b34801561048f57600080fd5b5061030f61049e366004614f2a565b610ef6565b3480156104af57600080fd5b5061030f610f96565b3480156104c457600080fd5b506102df6104d33660046150fd565b610fca565b3480156104e457600080fd5b506104f86104f3366004614fdf565b61101d565b6040516102b69190615759565b34801561051157600080fd5b506102df6105203660046150fd565b600090815260056020526040902054151590565b34801561054057600080fd5b5061055461054f3660046150fd565b61117e565b6040516102b69897969594939291906157ad565b34801561057457600080fd5b5061030f610583366004614bc5565b611410565b34801561059457600080fd5b50610346611470565b3480156105a957600080fd5b5060045460ff166102df565b3480156105c157600080fd5b5061030f6105d0366004614db6565b6114fa565b61030f6105e336600461503f565b61153d565b3480156105f457600080fd5b5061030f6122bf565b34801561060957600080fd5b5061030f61061836600461540f565b6122f3565b34801561062957600080fd5b5061030f61232a565b34801561063e57600080fd5b506006546040516001600160a01b0390911681526020016102b6565b34801561066657600080fd5b506102df610675366004615115565b61235c565b34801561068657600080fd5b50610346612385565b34801561069b57600080fd5b506102ac600081565b3480156106b057600080fd5b5061030f6106bf366004614e28565b612394565b3480156106d057600080fd5b5061030f6106df366004615313565b61246b565b3480156106f057600080fd5b506103466125b4565b34801561070557600080fd5b506102ac6107143660046150fd565b60009081526005602052604090205490565b34801561073257600080fd5b50610346612642565b34801561074757600080fd5b5061030f610756366004615115565b61264f565b34801561076757600080fd5b5061030f610776366004615277565b612675565b34801561078757600080fd5b506102ac610796366004614f5e565b6126b6565b3480156107a757600080fd5b5061030f6107b6366004614d37565b6129bf565b3480156107c757600080fd5b5061030f6107d63660046152ab565b612a4f565b3480156107e757600080fd5b50610346612b04565b3480156107fc57600080fd5b506102df61080b366004614bf0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b34801561084557600080fd5b5061030f610854366004614cd1565b612b11565b34801561086557600080fd5b5061030f610874366004614ba9565b612b56565b34801561088557600080fd5b5061030f610894366004614f2a565b612bee565b60006001600160a01b03831661090a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b600061092f82612c31565b6006546001600160a01b0316331461096a5760405162461bcd60e51b815260040161090190615a3d565b61097381612c71565b50565b60006109828133612c84565b506000918252600a6020526040909120600701805460ff1916911515919091179055565b6060600780546109b590615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546109e190615d3f565b8015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b820191906000526020600020905b815481529060010190602001808311610a1157829003601f168201915b5050505050905090565b60606000610a4583610bbd565b11610a775760405162461bcd60e51b8152602060048201526002602482015261189b60f11b6044820152606401610901565b6000828152600a602052604090208054610b289190610a9590615d3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac190615d3f565b8015610b0e5780601f10610ae357610100808354040283529160200191610b0e565b820191906000526020600020905b815481529060010190602001808311610af157829003601f168201915b505050505060405180602001604052806000815250612ce8565b15610b6657610b3682612d41565b610b3f83612dd5565b604051602001610b5092919061550b565b6040516020818303038152906040529050919050565b6000828152600a60209081526040918290209151610b509291016155b1565b919050565b6006546001600160a01b03163314610bb45760405162461bcd60e51b815260040161090190615a3d565b61097381612b56565b6000818152600a60205260408120601181015460ff16610beb57600083815260056020526040902054610bf1565b600e8101545b9392505050565b6000610c2682600001516040518060400160405280600681526020016545524337323160d01b815250612ce8565b15610cb25760208201516040516370a0823160e01b81526001600160a01b0385811660048301528216906370a08231906024015b60206040518083038186803b158015610c7257600080fd5b505afa158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa91906151a3565b91505061092f565b610cdf8260000151604051806040016040528060078152602001664552433131353560c81b815250612ce8565b1561092f5760208201516060830151604051627eeac760e11b81526001600160a01b03868116600483015260248201929092529082169062fdd58e90604401610c5a565b6001600160a01b038516331480610d3f5750610d3f853361080b565b610da65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610901565b610db38585858585612ef6565b5050505050565b600082815260208190526040902060010154610dd68133612c84565b610de083836130b7565b505050565b6001600160a01b0381163314610e555760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610901565b610e5f828261313b565b5050565b6000610e6f8133612c84565b6000898152600a6020908152604090912060118101805460ff19168b15151790558851601290910191610ea69183918b01906148f1565b5060018101805460ff19169715159790971790965550600285019390935560038401919091556004909201805461ffff191692151561ff0019169290921761010091151591909102179055505050565b6000828152600a60205260408120600481015490919015610f5a5760005b8260040154811015610f585760008181526003840160205260409020546001600160a01b0316331415610f4657600191505b80610f5081615dc5565b915050610f14565b505b80610f8b5760405162461bcd60e51b81526020600482015260016024820152603160f81b6044820152606401610901565b610db38585856131a0565b6006546001600160a01b03163314610fc05760405162461bcd60e51b815260040161090190615a3d565b610fc86131ab565b565b6000818152600a6020526040812060045460ff1615610fec5750600092915050565b6008810154421180156110025750600981015442105b15611014576007015460ff1692915050565b50600092915050565b606081518351146110825760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610901565b600083516001600160401b038111156110ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110d4578160200160208202803683370190505b50905060005b84518110156111765761113b85828151811061110657634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061112e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610899565b82828151811061115b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015261116f81615dc5565b90506110da565b509392505050565b600a6020526000908152604090208054819061119990615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590615d3f565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b50505050509080600101805461122790615d3f565b80601f016020809104026020016040519081016040528092919081815260200182805461125390615d3f565b80156112a05780601f10611275576101008083540402835291602001916112a0565b820191906000526020600020905b81548152906001019060200180831161128357829003601f168201915b5050505060048301546006840154604080516101008082018352600788015460ff90811615158352600889015460208085019190915260098a015484860152600a8a0154606080860191909152600b8b0154608080870191909152600c8c015460a0870152600d8c015460c080880191909152600e8d015460e08089019190915288519283018952600f8e015480871615158452968704861615158386015262010000909604851615158289015260108d01549282019290925260118c0154875160128e018054958602820188019099529283018481529b9c999b989a5095989097959093169592949093849284918401828280156113be57602002820191906000526020600020905b8154815260200190600101908083116113aa575b5050509183525050600182015460ff908116151560208301526002830154604083015260038301546060830152600490920154808316151560808301526101009004909116151560a090910152905088565b6006546001600160a01b0316331461143a5760405162461bcd60e51b815260040161090190615a3d565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610de0573d6000803e3d6000fd5b60408051602081019091526000808252606091905b6000818152600a6020526040902080546114a39190610a9590615d3f565b6114f4576114b081610fca565b156114e257816114bf82612dd5565b6040516020016114d092919061553a565b60405160208183030381529060405291505b806114ec81615dc5565b915050611485565b50919050565b6001600160a01b0383163314806115165750611516833361080b565b6115325760405162461bcd60e51b815260040161090190615922565b610de083838361323e565b600260095414156115905760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610901565b60026009556000805b8681101561196f576115d08888838181106115c457634e487b7160e01b600052603260045260246000fd5b90506020020135610fca565b6116005760405162461bcd60e51b81526020600482015260016024820152603560f81b6044820152606401610901565b85858281811061162057634e487b7160e01b600052603260045260246000fd5b905060200201356116a58b8b8481811061164a57634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008c8c8781811061167557634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490613249565b11156116d75760405162461bcd60e51b81526020600482015260016024820152600760fb1b6044820152606401610901565b600a60008989848181106116fb57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206007016005015461173a8b8b8481811061164a57634e487b7160e01b600052603260045260246000fd5b111561176c5760405162461bcd60e51b81526020600482015260016024820152603960f81b6044820152606401610901565b600a600089898481811061179057634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600601548a8a838181106117cc57634e487b7160e01b600052603260045260246000fd5b9050602002013511156118065760405162461bcd60e51b8152602060048201526002602482015261031360f41b6044820152606401610901565b600a600089898481811061182a57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600401548a8a8381811061186657634e487b7160e01b600052603260045260246000fd5b9050602002013561189c8a8a8581811061189057634e487b7160e01b600052603260045260246000fd5b90506020020135610bbd565b6118a69190615b24565b11156118d95760405162461bcd60e51b8152602060048201526002602482015261313160f01b6044820152606401610901565b61195b611954600a60008b8b8681811061190357634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600301548c8c8581811061193f57634e487b7160e01b600052603260045260246000fd5b9050602002013561325590919063ffffffff16565b8390613249565b91508061196781615dc5565b915050611599565b5060045460ff161580156119835750803410155b6119b35760405162461bcd60e51b81526020600482015260016024820152603360f81b6044820152606401610901565b60005b868110156122ae576000611a72338a8a858181106119e457634e487b7160e01b600052603260045260246000fd5b905060200201358d8d86818110611a0b57634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110611a3257634e487b7160e01b600052603260045260246000fd5b90506020020135898988818110611a5957634e487b7160e01b600052603260045260246000fd5b9050602002810190611a6b9190615aba565b60016126b6565b9050600081118015611aaa57508a8a83818110611a9f57634e487b7160e01b600052603260045260246000fd5b905060200201358110155b611ada5760405162461bcd60e51b81526020600482015260016024820152600d60fa1b6044820152606401610901565b606080600a60008c8c87818110611b0157634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000206011015460ff16156120b357611bd8338c8c87818110611b4a57634e487b7160e01b600052603260045260246000fd5b905060200201358f8f88818110611b7157634e487b7160e01b600052603260045260246000fd5b905060200201358c8c89818110611b9857634e487b7160e01b600052603260045260246000fd5b905060200201358b8b8a818110611bbf57634e487b7160e01b600052603260045260246000fd5b9050602002810190611bd19190615aba565b60006126b6565b925060005b8d8d86818110611bfd57634e487b7160e01b600052603260045260246000fd5b905060200201358110156120ad576000611cf9600a60008f8f8a818110611c3457634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206012016040518060c001604052908160008201805480602002602001604051908101604052809291908181526020018280548015611ca657602002820191906000526020600020905b815481526020019060010190808311611c92575b5050509183525050600182015460ff908116151560208301526002830154604083015260038301546060830152600490920154808316151560808301526101009004909116151560a09091015283613261565b9050600a60008e8e89818110611d1f57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000206013015460ff1615611ebb57846001600160401b03811115611d6a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d93578160200160208202803683370190505b509350846001600160401b03811115611dbc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611de5578160200160208202803683370190505b5092506000805b86811015611eb457828281518110611e1457634e487b7160e01b600052603260045260246000fd5b6020026020010151868281518110611e3c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506001858281518110611e6a57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018351611e849190615cc2565b821015611e9d57611e96826001615b24565b9150611ea2565b600091505b611ead816001615b24565b9050611dec565b5050611faf565b80516001600160401b03811115611ee257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f0b578160200160208202803683370190505b50935060005b8151811015611fad57818181518110611f3a57634e487b7160e01b600052603260045260246000fd5b6020026020010151858281518110611f6257634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506001848281518110611f9057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611fa581615dc5565b915050611f11565b505b611fca33858560405180602001604052806000815250613477565b336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc5858560405161200592919061576c565b60405180910390a2600a60008e8e8981811061203157634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206007016007015460016120599190615b24565b600a60008f8f8a81811061207d57634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020600e015550806120a581615dc5565b915050611bdd565b506121fb565b60408051600180825281830190925290602080830190803683370190505091508a8a858181106120f357634e487b7160e01b600052603260045260246000fd5b905060200201358260008151811061211b57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604080516001808252818301909252908160200160208202803683370190505090508c8c8581811061216857634e487b7160e01b600052603260045260246000fd5b905060200201358160008151811061219057634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121b733838360405180602001604052806000815250613477565b336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc583836040516121f292919061576c565b60405180910390a25b6122498d8d8681811061221e57634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008e8e8981811061167557634e487b7160e01b600052603260045260246000fd5b600a60008d8d8881811061226d57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508181019290925260409081016000908120338252600201909252902055508291506122a6905081615dc5565b9150506119b6565b505060016009555050505050505050565b6006546001600160a01b031633146122e95760405162461bcd60e51b815260040161090190615a3d565b610fc86000613489565b60006122ff8133612c84565b506000918252600a60209081526040808420928452600590920190529020600401805460ff19169055565b6006546001600160a01b031633146123545760405162461bcd60e51b815260040161090190615a3d565b610fc86134db565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600880546109b590615d3f565b336001600160a01b03831614156123ff5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610901565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006124778133612c84565b6000600a60008f815260200190815260200160002090508a81600701600101819055508981600701600201819055508881600701600301819055508781600701600401819055508681600701600601819055508581600701600501819055508c8160000190805190602001906124ee92919061493c565b508b5161250490600183019060208f019061493c565b5060005b835181101561257d5783818151811061253157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600083815260038501909252604090912080546001600160a01b0319166001600160a01b039092169190911790558061257581615dc5565b915050612508565b509151600483015550600f01805461ffff191692151561ff0019169290921761010091151591909102179055505050505050505050565b600880546125c190615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546125ed90615d3f565b801561263a5780601f1061260f5761010080835404028352916020019161263a565b820191906000526020600020905b81548152906001019060200180831161261d57829003601f168201915b505050505081565b600b80546125c190615d3f565b60008281526020819052604090206001015461266b8133612c84565b610de0838361313b565b60006126818133612c84565b506000928352600a60205260409092206010810191909155600f018054911515620100000262ff000019909216919091179055565b6000868152600a60205260408120600c810154600f82015460ff16156126da575060005b6006820154600090156128a15760008060005b856006015481101561289957600081815260058701602052604090206004015460ff1615612887576127218e8e838b613556565b600f870154909250610100900460ff16156127765760006127448f8f848c613556565b116127765760405162461bcd60e51b8152602060048201526002602482015261189960f11b6044820152606401610901565b600f86015460ff16156128835761278b6149af565b6000828152600588016020526040902080546127a690615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546127d290615d3f565b801561281f5780601f106127f45761010080835404028352916020019161281f565b820191906000526020600020905b81548152906001019060200180831161280257829003601f168201915b505050918352505060008281526005880160208181526040832060018101546001600160a01b03168286015292859052526003015460608201526128638f82610bf8565b935061286f8487615b24565b955061287b8486615b24565b945050612887565b8193505b8061289181615dc5565b9150506126ed565b5050506128a8565b50600d8201545b8461294957600081116128e25760405162461bcd60e51b8152602060048201526002602482015261313360f01b6044820152606401610901565b600f83015460ff1615612949576001600160a01b038b1660009081526002840160205260409020548290612916908b613249565b11156129495760405162461bcd60e51b81526020600482015260026024820152610c4d60f21b6044820152606401610901565b600f83015462010000900460ff16156129995761296887878c8b613770565b6129995760405162461bcd60e51b8152602060048201526002602482015261313560f01b6044820152606401610901565b84156129ac578881106129ac57886129ae565b805b93505050505b979650505050505050565b60006129cb8133612c84565b612a478684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a918291850190849080828437600092018290525060408051602081019091529081529250613477915050565b505050505050565b6000612a5b8133612c84565b6000868152600a6020908152604080832060068101548452600501825290912086519091612a8d91839189019061493c565b5060038101849055600481018054600160ff19909116811790915580820180546001600160a01b0319166001600160a01b038816179055600282018490556000888152600a6020526040902060060154612ae691615b24565b6000978852600a602052604090972060060196909655505050505050565b600780546125c190615d3f565b6001600160a01b038516331480612b2d5750612b2d853361080b565b612b495760405162461bcd60e51b815260040161090190615922565b610db3858585858561381e565b6006546001600160a01b03163314612b805760405162461bcd60e51b815260040161090190615a3d565b6001600160a01b038116612be55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610901565b61097381613489565b6001600160a01b038316331480612c0a5750612c0a833361080b565b612c265760405162461bcd60e51b815260040161090190615922565b610de08383836131a0565b60006001600160e01b03198216636cdb3d1360e11b1480612c6257506001600160e01b031982166303a24d0760e21b145b8061092f575061092f8261394e565b8051610e5f90600390602084019061493c565b612c8e828261235c565b610e5f57612ca6816001600160a01b03166014613983565b612cb1836020613983565b604051602001612cc292919061564c565b60408051601f198184030181529082905262461bcd60e51b82526109019160040161579a565b600081604051602001612cfb91906154ef565b6040516020818303038152906040528051906020012083604051602001612d2291906154ef565b6040516020818303038152906040528051906020012014905092915050565b606060038054612d5090615d3f565b80601f0160208091040260200160405190810160405280929190818152602001828054612d7c90615d3f565b8015612dc95780601f10612d9e57610100808354040283529160200191612dc9565b820191906000526020600020905b815481529060010190602001808311612dac57829003601f168201915b50505050509050919050565b606081612df95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e235780612e0d81615dc5565b9150612e1c9050600a83615b61565b9150612dfd565b6000816001600160401b03811115612e4b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e75576020820181803683370190505b5090505b8415612eee57612e8a600183615cc2565b9150612e97600a86615de0565b612ea2906030615b24565b60f81b818381518110612ec557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ee7600a86615b61565b9450612e79565b949350505050565b8151835114612f175760405162461bcd60e51b815260040161090190615a72565b6001600160a01b038416612f3d5760405162461bcd60e51b81526004016109019061596b565b33612f4c818787878787613b64565b60005b8451811015613051576000858281518110612f7a57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110612fa657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612ff75760405162461bcd60e51b8152600401610901906159f3565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613036908490615b24565b925050819055505050508061304a90615dc5565b9050612f4f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130a192919061576c565b60405180910390a4612a47818787878787613b72565b6130c1828261235c565b610e5f576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556130f73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613145828261235c565b15610e5f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610de0838383613cdd565b60045460ff166131f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610901565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610de0838383613d10565b6000610bf18284615b24565b6000610bf18284615c82565b60606132738360000151600084613dae565b835260606000805b85515181101561332457600a6000876000015183815181106132ad57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600701600401546132fe876000015183815181106132f157634e487b7160e01b600052603260045260246000fd5b6020026020010151610bbd565b1015613312578161330e81615dc5565b9250505b8061331c81615dc5565b91505061327b565b50806001600160401b0381111561334b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015613374578160200160208202803683370190505b5091506000805b86515181101561346c57600a6000886000015183815181106133ad57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600701600401546133f1886000015183815181106132f157634e487b7160e01b600052603260045260246000fd5b101561345a57865180518290811061341957634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061344157634e487b7160e01b600052603260045260246000fd5b60209081029190910101528161345681615dc5565b9250505b8061346481615dc5565b91505061337b565b509195945050505050565b61348384848484613fd2565b50505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460ff16156135215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610901565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132213390565b6000838152600a60205260408120819081906135706149af565b60008781526005830160205260409020805461358b90615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546135b790615d3f565b80156136045780601f106135d957610100808354040283529160200191613604565b820191906000526020600020905b8154815290600101906020018083116135e757829003601f168201915b505050918352505060008781526005830160208181526040832060018101546001600160a01b031682860152928a9052526003015460608201526136488982610bf8565b600088815260058401602052604090206002015460118401549194508410159060ff168015613675575086155b156136db57601383015460ff161561369d5760148301546136969086615b24565b94506136af565b60128301546136ac9086615b24565b94505b6015830154158015906136bf5750805b156136d65760158301546136d39086615b24565b94505b61373d565b601183015460ff1680156136f35750601683015460ff165b80156136fc5750805b156137095783945061373d565b601183015460ff161580156137225750600f83015460ff165b1561372f5783945061373d565b801561373d57600d83015494505b841580156137555750600f830154610100900460ff16155b1561376257600d83015494505b509298975050505050505050565b6000828152600a60205260408120600f015462010000900460ff1661379757506001612eee565b60006137a33384614071565b90506000816040516020016137b8919061579a565b6040516020818303038152906040528051906020012090506129b487878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152600a602052604090206010015492508591506140ad9050565b6001600160a01b0384166138445760405162461bcd60e51b81526004016109019061596b565b336138638187876138548861416a565b61385d8861416a565b87613b64565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156138a65760405162461bcd60e51b8152600401610901906159f3565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906138e5908490615b24565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46139458288888888886141c3565b50505050505050565b60006001600160e01b03198216637965db0b60e01b148061092f57506301ffc9a760e01b6001600160e01b031983161461092f565b60606000613992836002615c82565b61399d906002615b24565b6001600160401b038111156139c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139ec576020820181803683370190505b509050600360fc1b81600081518110613a1557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a5257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613a76846002615c82565b613a81906001615b24565b90505b6001811115613b15576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613ac357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613ae757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613b0e81615d28565b9050613a84565b508315610bf15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610901565b612a4786868686868661428d565b6001600160a01b0384163b15612a475760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613bb690899089908890889088906004016156c1565b602060405180830381600087803b158015613bd057600080fd5b505af1925050508015613c00575060408051601f3d908101601f19168201909252613bfd91810190615155565b60015b613cad57613c0c615e36565b806308c379a01415613c465750613c21615e4e565b80613c2c5750613c48565b8060405162461bcd60e51b8152600401610901919061579a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610901565b6001600160e01b0319811663bc197c8160e01b146139455760405162461bcd60e51b815260040161090190615896565b613ce88383836142f5565b60008281526005602052604081208054839290613d06908490615cc2565b9091555050505050565b613d1b8383836143fa565b60005b825181101561348357818181518110613d4757634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110613d7357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613d989190615cc2565b90915550613da7905081615dc5565b9050613d1e565b606082613ef55760005b8451811015613eef576000818651613dd09190615cc2565b604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018690526074016040516020818303038152906040528051906020012060001c613e219190615de0565b613e2b9083615b24565b90506000868281518110613e4f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050868381518110613e7957634e487b7160e01b600052603260045260246000fd5b6020026020010151878381518110613ea157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505080878481518110613ece57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050508080613ee790615dc5565b915050613db8565b50613fca565b8351604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101849052600091906074016040516020818303038152906040528051906020012060001c613f4c9190615de0565b6040805160018082528183019092529192506000919060208083019080368337019050509050858281518110613f9257634e487b7160e01b600052603260045260246000fd5b602002602001015181600081518110613fbb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101529450505b509192915050565b613fde848484846145a7565b60005b8351811015610db35782818151811061400a57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061403657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461405b9190615b24565b9091555061406a905081615dc5565b9050613fe1565b606061407c83614758565b61408583612dd5565b604051602001614096929190615575565b604051602081830303815290604052905092915050565b600081815b855181101561415f5760008682815181106140dd57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161411f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061414c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061415781615dc5565b9150506140b2565b509092149392505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106141b257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15612a475760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614207908990899088908890889060040161571f565b602060405180830381600087803b15801561422157600080fd5b505af1925050508015614251575060408051601f3d908101601f1916820190925261424e91810190615155565b60015b61425d57613c0c615e36565b6001600160e01b0319811663f23a6e6160e01b146139455760405162461bcd60e51b815260040161090190615896565b60045460ff1615612a475760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610901565b6001600160a01b03831661431b5760405162461bcd60e51b8152600401610901906159b0565b3361434a8185600061432c8761416a565b6143358761416a565b60405180602001604052806000815250613b64565b60008381526001602090815260408083206001600160a01b03881684529091529020548281101561438d5760405162461bcd60e51b8152600401610901906158de565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0383166144205760405162461bcd60e51b8152600401610901906159b0565b80518251146144415760405162461bcd60e51b815260040161090190615a72565b600033905061446481856000868660405180602001604052806000815250613b64565b60005b835181101561454857600084828151811061449257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106144be57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561450f5760405162461bcd60e51b8152600401610901906158de565b60009283526001602090815260408085206001600160a01b038b168652909152909220910390558061454081615dc5565b915050614467565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161459992919061576c565b60405180910390a450505050565b6001600160a01b0384166146075760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610901565b81518351146146285760405162461bcd60e51b815260040161090190615a72565b3361463881600087878787613b64565b60005b84518110156146f05783818151811061466457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600087848151811061469057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546146d89190615b24565b909155508190506146e881615dc5565b91505061463b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161474192919061576c565b60405180910390a4610db381600087878787613b72565b60408051602880825260608281019093526000919060208201818036833701905050905060005b60148110156148b4576000614795826013615cc2565b6147a0906008615c82565b6147ab906002615bda565b6147be906001600160a01b038716615b61565b60f81b9050600060108260f81c6147d59190615b75565b60f81b905060008160f81c60106147ec9190615ca1565b8360f81c6147fa9190615cd9565b60f81b9050614808826148bb565b85614814866002615c82565b8151811061483257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350614852816148bb565b8561485e866002615c82565b614869906001615b24565b8151811061488757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806148ac90615dc5565b91505061477f565b5092915050565b6000600a60f883901c10156148e2576148d960f883901c6030615b3c565b60f81b92915050565b6148d960f883901c6057615b3c565b82805482825590600052602060002090810192821561492c579160200282015b8281111561492c578251825591602001919060010190614911565b506149389291506149e9565b5090565b82805461494890615d3f565b90600052602060002090601f01602090048101928261496a576000855561492c565b82601f1061498357805160ff191683800117855561492c565b8280016001018555821561492c579182018281111561492c578251825591602001919060010190614911565b6040518060a001604052806060815260200160006001600160a01b0316815260200160008152602001600081526020016000151581525090565b5b8082111561493857600081556001016149ea565b600082601f830112614a0e578081fd5b81356020614a1b82615b01565b604051614a288282615d99565b8381528281019150858301600585901b87018401881015614a47578586fd5b855b85811015614a6e578135614a5c81615ed7565b84529284019290840190600101614a49565b5090979650505050505050565b60008083601f840112614a8c578182fd5b5081356001600160401b03811115614aa2578182fd5b6020830191508360208260051b8501011115614abd57600080fd5b9250929050565b600082601f830112614ad4578081fd5b81356020614ae182615b01565b604051614aee8282615d99565b8381528281019150858301600585901b87018401881015614b0d578586fd5b855b85811015614a6e57813584529284019290840190600101614b0f565b80358015158114610b8557600080fd5b600082601f830112614b4b578081fd5b81356001600160401b03811115614b6457614b64615e20565b604051614b7b601f8301601f191660200182615d99565b818152846020838601011115614b8f578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614bba578081fd5b8135610bf181615ed7565b60008060408385031215614bd7578081fd5b8235614be281615ed7565b946020939093013593505050565b60008060408385031215614c02578182fd5b8235614c0d81615ed7565b91506020830135614c1d81615ed7565b809150509250929050565b600080600080600060a08688031215614c3f578081fd5b8535614c4a81615ed7565b94506020860135614c5a81615ed7565b935060408601356001600160401b0380821115614c75578283fd5b614c8189838a01614ac4565b94506060880135915080821115614c96578283fd5b614ca289838a01614ac4565b93506080880135915080821115614cb7578283fd5b50614cc488828901614b3b565b9150509295509295909350565b600080600080600060a08688031215614ce8578283fd5b8535614cf381615ed7565b94506020860135614d0381615ed7565b9350604086013592506060860135915060808601356001600160401b03811115614d2b578182fd5b614cc488828901614b3b565b600080600080600060608688031215614d4e578283fd5b8535614d5981615ed7565b945060208601356001600160401b0380821115614d74578485fd5b614d8089838a01614a7b565b90965094506040880135915080821115614d98578283fd5b50614da588828901614a7b565b969995985093965092949392505050565b600080600060608486031215614dca578081fd5b8335614dd581615ed7565b925060208401356001600160401b0380821115614df0578283fd5b614dfc87838801614ac4565b93506040860135915080821115614e11578283fd5b50614e1e86828701614ac4565b9150509250925092565b60008060408385031215614e3a578182fd5b8235614e4581615ed7565b9150614e5360208401614b2b565b90509250929050565b60008060408385031215614e6e578182fd5b8235614e7981615ed7565b915060208301356001600160401b0380821115614e94578283fd5b9084019060a08287031215614ea7578283fd5b604051614eb381615d74565b823582811115614ec1578485fd5b614ecd88828601614b3b565b82525060208301359150614ee082615ed7565b8160208201526040830135604082015260608301356060820152614f0660808401614b2b565b60808201528093505050509250929050565b60008060408385031215614bd7578182fd5b600080600060608486031215614f3e578081fd5b8335614f4981615ed7565b95602085013595506040909401359392505050565b600080600080600080600060c0888a031215614f78578485fd5b8735614f8381615ed7565b965060208801359550604088013594506060880135935060808801356001600160401b03811115614fb2578283fd5b614fbe8a828b01614a7b565b9094509250614fd1905060a08901614b2b565b905092959891949750929550565b60008060408385031215614ff1578182fd5b82356001600160401b0380821115615007578384fd5b615013868387016149fe565b93506020850135915080821115615028578283fd5b5061503585828601614ac4565b9150509250929050565b6000806000806000806000806080898b03121561505a578182fd5b88356001600160401b0380821115615070578384fd5b61507c8c838d01614a7b565b909a50985060208b0135915080821115615094578384fd5b6150a08c838d01614a7b565b909850965060408b01359150808211156150b8578384fd5b6150c48c838d01614a7b565b909650945060608b01359150808211156150dc578384fd5b506150e98b828c01614a7b565b999c989b5096995094979396929594505050565b60006020828403121561510e578081fd5b5035919050565b60008060408385031215615127578182fd5b823591506020830135614c1d81615ed7565b60006020828403121561514a578081fd5b8135610bf181615eec565b600060208284031215615166578081fd5b8151610bf181615eec565b600060208284031215615182578081fd5b81356001600160401b03811115615197578182fd5b612eee84828501614b3b565b6000602082840312156151b4578081fd5b5051919050565b600080604083850312156151cd578182fd5b82359150614e5360208401614b2b565b600080600080600080600080610100898b0312156151f9578182fd5b8835975061520960208a01614b2b565b965060408901356001600160401b03811115615223578283fd5b61522f8b828c01614ac4565b96505061523e60608a01614b2b565b94506080890135935060a0890135925061525a60c08a01614b2b565b915061526860e08a01614b2b565b90509295985092959890939650565b60008060006060848603121561528b578081fd5b83359250602084013591506152a260408501614b2b565b90509250925092565b600080600080600060a086880312156152c2578283fd5b8535945060208601356001600160401b038111156152de578384fd5b6152ea88828901614b3b565b94505060408601356152fb81615ed7565b94979396509394606081013594506080013592915050565b6000806000806000806000806000806000806101808d8f031215615335578586fd5b8c359b506001600160401b0360208e01351115615350578586fd5b6153608e60208f01358f01614b3b565b9a506001600160401b0360408e01351115615379578586fd5b6153898e60408f01358f01614b3b565b995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d013593506153c36101208e01614b2b565b92506153d26101408e01614b2b565b91506001600160401b036101608e013511156153ec578081fd5b6153fd8e6101608f01358f016149fe565b90509295989b509295989b509295989b565b60008060408385031215615421578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561545f57815187529582019590820190600101615443565b509495945050505050565b60008151808452615482816020860160208601615cfc565b601f01601f19169290920160200192915050565b6000815160c084526154ab60c0850182615430565b9050602083015115156020850152604083015160408501526060830151606085015260808301511515608085015260a0830151151560a08501528091505092915050565b60008251615501818460208701615cfc565b9190910192915050565b6000835161551d818460208801615cfc565b835190830190615531818360208801615cfc565b01949350505050565b6000835161554c818460208801615cfc565b835190830190615560818360208801615cfc565b600b60fa1b9101908152600101949350505050565b60008351615587818460208801615cfc565b605f60f81b90830190815283516155a5816001840160208801615cfc565b01600101949350505050565b600080835482600182811c9150808316806155cd57607f831692505b60208084108214156155ed57634e487b7160e01b87526022600452602487fd5b81801561560157600181146156125761563e565b60ff1986168952848901965061563e565b60008a815260209020885b868110156156365781548b82015290850190830161561d565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615684816017850160208801615cfc565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516156b5816028840160208801615cfc565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906156ed90830186615430565b82810360608401526156ff8186615430565b90508281036080840152615713818561546a565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906129b49083018461546a565b602081526000610bf16020830184615430565b60408152600061577f6040830185615430565b82810360208401526157918185615430565b95945050505050565b602081526000610bf1602083018461546a565b60006102408083526157c18184018c61546a565b905082810360208401526157d5818b61546a565b9050886040840152876060840152865115156080840152602087015160a0840152604087015160c0840152606087015160e0840152608087015161010084015260a087015161012084015260c087015161014084015260e087015161016084015261586b610180840187805115158252602081015115156020830152604081015115156040830152606081015160608301525050565b8415156102008401528281036102208401526158878185615496565b9b9a5050505050505050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6000808335601e19843603018112615ad0578283fd5b8301803591506001600160401b03821115615ae9578283fd5b6020019150600581901b3603821315614abd57600080fd5b60006001600160401b03821115615b1a57615b1a615e20565b5060051b60200190565b60008219821115615b3757615b37615df4565b500190565b600060ff821660ff84168060ff03821115615b5957615b59615df4565b019392505050565b600082615b7057615b70615e0a565b500490565b600060ff831680615b8857615b88615e0a565b8060ff84160491505092915050565b600181815b80851115615bd2578160001904821115615bb857615bb8615df4565b80851615615bc557918102915b93841c9390800290615b9c565b509250929050565b6000610bf18383600082615bf05750600161092f565b81615bfd5750600061092f565b8160018114615c135760028114615c1d57615c39565b600191505061092f565b60ff841115615c2e57615c2e615df4565b50506001821b61092f565b5060208310610133831016604e8410600b8410161715615c5c575081810a61092f565b615c668383615b97565b8060001904821115615c7a57615c7a615df4565b029392505050565b6000816000190483118215151615615c9c57615c9c615df4565b500290565b600060ff821660ff84168160ff0481118215151615615c7a57615c7a615df4565b600082821015615cd457615cd4615df4565b500390565b600060ff821660ff841680821015615cf357615cf3615df4565b90039392505050565b60005b83811015615d17578181015183820152602001615cff565b838111156134835750506000910152565b600081615d3757615d37615df4565b506000190190565b600181811c90821680615d5357607f821691505b602082108114156114f457634e487b7160e01b600052602260045260246000fd5b60a081018181106001600160401b0382111715615d9357615d93615e20565b60405250565b601f8201601f191681016001600160401b0381118282101715615dbe57615dbe615e20565b6040525050565b6000600019821415615dd957615dd9615df4565b5060010190565b600082615def57615def615e0a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615e4b57600481823e5160e01c5b90565b600060443d1015615e5c5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615e8b57505050505090565b8285019150815181811115615ea35750505050505090565b843d8701016020828501011115615ebd5750505050505090565b615ecc60208286010187615d99565b509095945050505050565b6001600160a01b038116811461097357600080fd5b6001600160e01b03198116811461097357600080fdfea2646970667358221220eb9fd03cb1839f5162b48c6d49428ad7760b781a2775b05762ba86b26eda101b64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000015426f737320426561757469657320436f6c6c61627300000000000000000000000000000000000000000000000000000000000000000000000000000000000014424f5353424541555449455353434f4c4c414253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3000000000000000000000000110d0c8b5a06c0367053938eedf10131ac9725930000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d656b426a5631485950714b7333557178674e714e6135563638483436564241504b5244556d467165724a364b0000000000000000000000

Deployed Bytecode

0x6080604052600436106102875760003560e01c80636b20c4541161015a578063bd85b039116100c1578063dd66489e1161007a578063dd66489e146107bb578063e2b9e186146107db578063e985e9c5146107f0578063f242432a14610839578063f2fde38b14610859578063f5298aca1461087957600080fd5b8063bd85b039146106f9578063c0e7274014610726578063d547741f1461073b578063d5ebd7881461075b578063d6b15c4c1461077b578063d81d0a151461079b57600080fd5b806391d148541161011357806391d148541461065a57806395d89b411461067a578063a217fddf1461068f578063a22cb465146106a4578063a8afbca1146106c4578063af17dea6146106e457600080fd5b80636b20c454146105b557806370765746146105d5578063715018a6146105e85780637d737203146105fd5780638456cb591461061d5780638da5cb5b1461063257600080fd5b80632f2ff15d116101fe5780634e1273f4116101b75780634e1273f4146104d85780634f558e79146105055780634f64b2be14610534578063522f681514610568578063589b2162146105885780635c975abb1461059d57600080fd5b80632f2ff15d1461042357806336568abe146104435780633a4da729146104635780633aeca210146104835780633f4ba83a146104a35780634044556d146104b857600080fd5b80630e89341c116102505780630e89341c1461035357806313af40351461037357806319b88edb14610393578063227f951c146103b3578063248a9ca3146103d35780632eb2c2d61461040357600080fd5b8062fdd58e1461028c57806301ffc9a7146102bf57806302fe5305146102ef578063065eb1171461031157806306fdde0314610331575b600080fd5b34801561029857600080fd5b506102ac6102a7366004614f18565b610899565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004615139565b610935565b60405190151581526020016102b6565b3480156102fb57600080fd5b5061030f61030a366004615171565b610940565b005b34801561031d57600080fd5b5061030f61032c3660046151bb565b610976565b34801561033d57600080fd5b506103466109a6565b6040516102b6919061579a565b34801561035f57600080fd5b5061034661036e3660046150fd565b610a38565b34801561037f57600080fd5b5061030f61038e366004614ba9565b610b8a565b34801561039f57600080fd5b506102ac6103ae3660046150fd565b610bbd565b3480156103bf57600080fd5b506102ac6103ce366004614e5c565b610bf8565b3480156103df57600080fd5b506102ac6103ee3660046150fd565b60009081526020819052604090206001015490565b34801561040f57600080fd5b5061030f61041e366004614c28565b610d23565b34801561042f57600080fd5b5061030f61043e366004615115565b610dba565b34801561044f57600080fd5b5061030f61045e366004615115565b610de5565b34801561046f57600080fd5b5061030f61047e3660046151dd565b610e63565b34801561048f57600080fd5b5061030f61049e366004614f2a565b610ef6565b3480156104af57600080fd5b5061030f610f96565b3480156104c457600080fd5b506102df6104d33660046150fd565b610fca565b3480156104e457600080fd5b506104f86104f3366004614fdf565b61101d565b6040516102b69190615759565b34801561051157600080fd5b506102df6105203660046150fd565b600090815260056020526040902054151590565b34801561054057600080fd5b5061055461054f3660046150fd565b61117e565b6040516102b69897969594939291906157ad565b34801561057457600080fd5b5061030f610583366004614bc5565b611410565b34801561059457600080fd5b50610346611470565b3480156105a957600080fd5b5060045460ff166102df565b3480156105c157600080fd5b5061030f6105d0366004614db6565b6114fa565b61030f6105e336600461503f565b61153d565b3480156105f457600080fd5b5061030f6122bf565b34801561060957600080fd5b5061030f61061836600461540f565b6122f3565b34801561062957600080fd5b5061030f61232a565b34801561063e57600080fd5b506006546040516001600160a01b0390911681526020016102b6565b34801561066657600080fd5b506102df610675366004615115565b61235c565b34801561068657600080fd5b50610346612385565b34801561069b57600080fd5b506102ac600081565b3480156106b057600080fd5b5061030f6106bf366004614e28565b612394565b3480156106d057600080fd5b5061030f6106df366004615313565b61246b565b3480156106f057600080fd5b506103466125b4565b34801561070557600080fd5b506102ac6107143660046150fd565b60009081526005602052604090205490565b34801561073257600080fd5b50610346612642565b34801561074757600080fd5b5061030f610756366004615115565b61264f565b34801561076757600080fd5b5061030f610776366004615277565b612675565b34801561078757600080fd5b506102ac610796366004614f5e565b6126b6565b3480156107a757600080fd5b5061030f6107b6366004614d37565b6129bf565b3480156107c757600080fd5b5061030f6107d63660046152ab565b612a4f565b3480156107e757600080fd5b50610346612b04565b3480156107fc57600080fd5b506102df61080b366004614bf0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b34801561084557600080fd5b5061030f610854366004614cd1565b612b11565b34801561086557600080fd5b5061030f610874366004614ba9565b612b56565b34801561088557600080fd5b5061030f610894366004614f2a565b612bee565b60006001600160a01b03831661090a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b600061092f82612c31565b6006546001600160a01b0316331461096a5760405162461bcd60e51b815260040161090190615a3d565b61097381612c71565b50565b60006109828133612c84565b506000918252600a6020526040909120600701805460ff1916911515919091179055565b6060600780546109b590615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546109e190615d3f565b8015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b820191906000526020600020905b815481529060010190602001808311610a1157829003601f168201915b5050505050905090565b60606000610a4583610bbd565b11610a775760405162461bcd60e51b8152602060048201526002602482015261189b60f11b6044820152606401610901565b6000828152600a602052604090208054610b289190610a9590615d3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac190615d3f565b8015610b0e5780601f10610ae357610100808354040283529160200191610b0e565b820191906000526020600020905b815481529060010190602001808311610af157829003601f168201915b505050505060405180602001604052806000815250612ce8565b15610b6657610b3682612d41565b610b3f83612dd5565b604051602001610b5092919061550b565b6040516020818303038152906040529050919050565b6000828152600a60209081526040918290209151610b509291016155b1565b919050565b6006546001600160a01b03163314610bb45760405162461bcd60e51b815260040161090190615a3d565b61097381612b56565b6000818152600a60205260408120601181015460ff16610beb57600083815260056020526040902054610bf1565b600e8101545b9392505050565b6000610c2682600001516040518060400160405280600681526020016545524337323160d01b815250612ce8565b15610cb25760208201516040516370a0823160e01b81526001600160a01b0385811660048301528216906370a08231906024015b60206040518083038186803b158015610c7257600080fd5b505afa158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa91906151a3565b91505061092f565b610cdf8260000151604051806040016040528060078152602001664552433131353560c81b815250612ce8565b1561092f5760208201516060830151604051627eeac760e11b81526001600160a01b03868116600483015260248201929092529082169062fdd58e90604401610c5a565b6001600160a01b038516331480610d3f5750610d3f853361080b565b610da65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610901565b610db38585858585612ef6565b5050505050565b600082815260208190526040902060010154610dd68133612c84565b610de083836130b7565b505050565b6001600160a01b0381163314610e555760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610901565b610e5f828261313b565b5050565b6000610e6f8133612c84565b6000898152600a6020908152604090912060118101805460ff19168b15151790558851601290910191610ea69183918b01906148f1565b5060018101805460ff19169715159790971790965550600285019390935560038401919091556004909201805461ffff191692151561ff0019169290921761010091151591909102179055505050565b6000828152600a60205260408120600481015490919015610f5a5760005b8260040154811015610f585760008181526003840160205260409020546001600160a01b0316331415610f4657600191505b80610f5081615dc5565b915050610f14565b505b80610f8b5760405162461bcd60e51b81526020600482015260016024820152603160f81b6044820152606401610901565b610db38585856131a0565b6006546001600160a01b03163314610fc05760405162461bcd60e51b815260040161090190615a3d565b610fc86131ab565b565b6000818152600a6020526040812060045460ff1615610fec5750600092915050565b6008810154421180156110025750600981015442105b15611014576007015460ff1692915050565b50600092915050565b606081518351146110825760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610901565b600083516001600160401b038111156110ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110d4578160200160208202803683370190505b50905060005b84518110156111765761113b85828151811061110657634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061112e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610899565b82828151811061115b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015261116f81615dc5565b90506110da565b509392505050565b600a6020526000908152604090208054819061119990615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590615d3f565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b50505050509080600101805461122790615d3f565b80601f016020809104026020016040519081016040528092919081815260200182805461125390615d3f565b80156112a05780601f10611275576101008083540402835291602001916112a0565b820191906000526020600020905b81548152906001019060200180831161128357829003601f168201915b5050505060048301546006840154604080516101008082018352600788015460ff90811615158352600889015460208085019190915260098a015484860152600a8a0154606080860191909152600b8b0154608080870191909152600c8c015460a0870152600d8c015460c080880191909152600e8d015460e08089019190915288519283018952600f8e015480871615158452968704861615158386015262010000909604851615158289015260108d01549282019290925260118c0154875160128e018054958602820188019099529283018481529b9c999b989a5095989097959093169592949093849284918401828280156113be57602002820191906000526020600020905b8154815260200190600101908083116113aa575b5050509183525050600182015460ff908116151560208301526002830154604083015260038301546060830152600490920154808316151560808301526101009004909116151560a090910152905088565b6006546001600160a01b0316331461143a5760405162461bcd60e51b815260040161090190615a3d565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610de0573d6000803e3d6000fd5b60408051602081019091526000808252606091905b6000818152600a6020526040902080546114a39190610a9590615d3f565b6114f4576114b081610fca565b156114e257816114bf82612dd5565b6040516020016114d092919061553a565b60405160208183030381529060405291505b806114ec81615dc5565b915050611485565b50919050565b6001600160a01b0383163314806115165750611516833361080b565b6115325760405162461bcd60e51b815260040161090190615922565b610de083838361323e565b600260095414156115905760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610901565b60026009556000805b8681101561196f576115d08888838181106115c457634e487b7160e01b600052603260045260246000fd5b90506020020135610fca565b6116005760405162461bcd60e51b81526020600482015260016024820152603560f81b6044820152606401610901565b85858281811061162057634e487b7160e01b600052603260045260246000fd5b905060200201356116a58b8b8481811061164a57634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008c8c8781811061167557634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490613249565b11156116d75760405162461bcd60e51b81526020600482015260016024820152600760fb1b6044820152606401610901565b600a60008989848181106116fb57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206007016005015461173a8b8b8481811061164a57634e487b7160e01b600052603260045260246000fd5b111561176c5760405162461bcd60e51b81526020600482015260016024820152603960f81b6044820152606401610901565b600a600089898481811061179057634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600601548a8a838181106117cc57634e487b7160e01b600052603260045260246000fd5b9050602002013511156118065760405162461bcd60e51b8152602060048201526002602482015261031360f41b6044820152606401610901565b600a600089898481811061182a57634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600401548a8a8381811061186657634e487b7160e01b600052603260045260246000fd5b9050602002013561189c8a8a8581811061189057634e487b7160e01b600052603260045260246000fd5b90506020020135610bbd565b6118a69190615b24565b11156118d95760405162461bcd60e51b8152602060048201526002602482015261313160f01b6044820152606401610901565b61195b611954600a60008b8b8681811061190357634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020600701600301548c8c8581811061193f57634e487b7160e01b600052603260045260246000fd5b9050602002013561325590919063ffffffff16565b8390613249565b91508061196781615dc5565b915050611599565b5060045460ff161580156119835750803410155b6119b35760405162461bcd60e51b81526020600482015260016024820152603360f81b6044820152606401610901565b60005b868110156122ae576000611a72338a8a858181106119e457634e487b7160e01b600052603260045260246000fd5b905060200201358d8d86818110611a0b57634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110611a3257634e487b7160e01b600052603260045260246000fd5b90506020020135898988818110611a5957634e487b7160e01b600052603260045260246000fd5b9050602002810190611a6b9190615aba565b60016126b6565b9050600081118015611aaa57508a8a83818110611a9f57634e487b7160e01b600052603260045260246000fd5b905060200201358110155b611ada5760405162461bcd60e51b81526020600482015260016024820152600d60fa1b6044820152606401610901565b606080600a60008c8c87818110611b0157634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000206011015460ff16156120b357611bd8338c8c87818110611b4a57634e487b7160e01b600052603260045260246000fd5b905060200201358f8f88818110611b7157634e487b7160e01b600052603260045260246000fd5b905060200201358c8c89818110611b9857634e487b7160e01b600052603260045260246000fd5b905060200201358b8b8a818110611bbf57634e487b7160e01b600052603260045260246000fd5b9050602002810190611bd19190615aba565b60006126b6565b925060005b8d8d86818110611bfd57634e487b7160e01b600052603260045260246000fd5b905060200201358110156120ad576000611cf9600a60008f8f8a818110611c3457634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206012016040518060c001604052908160008201805480602002602001604051908101604052809291908181526020018280548015611ca657602002820191906000526020600020905b815481526020019060010190808311611c92575b5050509183525050600182015460ff908116151560208301526002830154604083015260038301546060830152600490920154808316151560808301526101009004909116151560a09091015283613261565b9050600a60008e8e89818110611d1f57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000206013015460ff1615611ebb57846001600160401b03811115611d6a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611d93578160200160208202803683370190505b509350846001600160401b03811115611dbc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611de5578160200160208202803683370190505b5092506000805b86811015611eb457828281518110611e1457634e487b7160e01b600052603260045260246000fd5b6020026020010151868281518110611e3c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506001858281518110611e6a57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018351611e849190615cc2565b821015611e9d57611e96826001615b24565b9150611ea2565b600091505b611ead816001615b24565b9050611dec565b5050611faf565b80516001600160401b03811115611ee257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611f0b578160200160208202803683370190505b50935060005b8151811015611fad57818181518110611f3a57634e487b7160e01b600052603260045260246000fd5b6020026020010151858281518110611f6257634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506001848281518110611f9057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611fa581615dc5565b915050611f11565b505b611fca33858560405180602001604052806000815250613477565b336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc5858560405161200592919061576c565b60405180910390a2600a60008e8e8981811061203157634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206007016007015460016120599190615b24565b600a60008f8f8a81811061207d57634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250810191909152604001600020600e015550806120a581615dc5565b915050611bdd565b506121fb565b60408051600180825281830190925290602080830190803683370190505091508a8a858181106120f357634e487b7160e01b600052603260045260246000fd5b905060200201358260008151811061211b57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604080516001808252818301909252908160200160208202803683370190505090508c8c8581811061216857634e487b7160e01b600052603260045260246000fd5b905060200201358160008151811061219057634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121b733838360405180602001604052806000815250613477565b336001600160a01b03167fb19a0e54a0d12c649f962287d12e0573df3d188f5fcad44083dd0a11e759bcc583836040516121f292919061576c565b60405180910390a25b6122498d8d8681811061221e57634e487b7160e01b600052603260045260246000fd5b90506020020135600a60008e8e8981811061167557634e487b7160e01b600052603260045260246000fd5b600a60008d8d8881811061226d57634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508181019290925260409081016000908120338252600201909252902055508291506122a6905081615dc5565b9150506119b6565b505060016009555050505050505050565b6006546001600160a01b031633146122e95760405162461bcd60e51b815260040161090190615a3d565b610fc86000613489565b60006122ff8133612c84565b506000918252600a60209081526040808420928452600590920190529020600401805460ff19169055565b6006546001600160a01b031633146123545760405162461bcd60e51b815260040161090190615a3d565b610fc86134db565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600880546109b590615d3f565b336001600160a01b03831614156123ff5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610901565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006124778133612c84565b6000600a60008f815260200190815260200160002090508a81600701600101819055508981600701600201819055508881600701600301819055508781600701600401819055508681600701600601819055508581600701600501819055508c8160000190805190602001906124ee92919061493c565b508b5161250490600183019060208f019061493c565b5060005b835181101561257d5783818151811061253157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600083815260038501909252604090912080546001600160a01b0319166001600160a01b039092169190911790558061257581615dc5565b915050612508565b509151600483015550600f01805461ffff191692151561ff0019169290921761010091151591909102179055505050505050505050565b600880546125c190615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546125ed90615d3f565b801561263a5780601f1061260f5761010080835404028352916020019161263a565b820191906000526020600020905b81548152906001019060200180831161261d57829003601f168201915b505050505081565b600b80546125c190615d3f565b60008281526020819052604090206001015461266b8133612c84565b610de0838361313b565b60006126818133612c84565b506000928352600a60205260409092206010810191909155600f018054911515620100000262ff000019909216919091179055565b6000868152600a60205260408120600c810154600f82015460ff16156126da575060005b6006820154600090156128a15760008060005b856006015481101561289957600081815260058701602052604090206004015460ff1615612887576127218e8e838b613556565b600f870154909250610100900460ff16156127765760006127448f8f848c613556565b116127765760405162461bcd60e51b8152602060048201526002602482015261189960f11b6044820152606401610901565b600f86015460ff16156128835761278b6149af565b6000828152600588016020526040902080546127a690615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546127d290615d3f565b801561281f5780601f106127f45761010080835404028352916020019161281f565b820191906000526020600020905b81548152906001019060200180831161280257829003601f168201915b505050918352505060008281526005880160208181526040832060018101546001600160a01b03168286015292859052526003015460608201526128638f82610bf8565b935061286f8487615b24565b955061287b8486615b24565b945050612887565b8193505b8061289181615dc5565b9150506126ed565b5050506128a8565b50600d8201545b8461294957600081116128e25760405162461bcd60e51b8152602060048201526002602482015261313360f01b6044820152606401610901565b600f83015460ff1615612949576001600160a01b038b1660009081526002840160205260409020548290612916908b613249565b11156129495760405162461bcd60e51b81526020600482015260026024820152610c4d60f21b6044820152606401610901565b600f83015462010000900460ff16156129995761296887878c8b613770565b6129995760405162461bcd60e51b8152602060048201526002602482015261313560f01b6044820152606401610901565b84156129ac578881106129ac57886129ae565b805b93505050505b979650505050505050565b60006129cb8133612c84565b612a478684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a918291850190849080828437600092018290525060408051602081019091529081529250613477915050565b505050505050565b6000612a5b8133612c84565b6000868152600a6020908152604080832060068101548452600501825290912086519091612a8d91839189019061493c565b5060038101849055600481018054600160ff19909116811790915580820180546001600160a01b0319166001600160a01b038816179055600282018490556000888152600a6020526040902060060154612ae691615b24565b6000978852600a602052604090972060060196909655505050505050565b600780546125c190615d3f565b6001600160a01b038516331480612b2d5750612b2d853361080b565b612b495760405162461bcd60e51b815260040161090190615922565b610db3858585858561381e565b6006546001600160a01b03163314612b805760405162461bcd60e51b815260040161090190615a3d565b6001600160a01b038116612be55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610901565b61097381613489565b6001600160a01b038316331480612c0a5750612c0a833361080b565b612c265760405162461bcd60e51b815260040161090190615922565b610de08383836131a0565b60006001600160e01b03198216636cdb3d1360e11b1480612c6257506001600160e01b031982166303a24d0760e21b145b8061092f575061092f8261394e565b8051610e5f90600390602084019061493c565b612c8e828261235c565b610e5f57612ca6816001600160a01b03166014613983565b612cb1836020613983565b604051602001612cc292919061564c565b60408051601f198184030181529082905262461bcd60e51b82526109019160040161579a565b600081604051602001612cfb91906154ef565b6040516020818303038152906040528051906020012083604051602001612d2291906154ef565b6040516020818303038152906040528051906020012014905092915050565b606060038054612d5090615d3f565b80601f0160208091040260200160405190810160405280929190818152602001828054612d7c90615d3f565b8015612dc95780601f10612d9e57610100808354040283529160200191612dc9565b820191906000526020600020905b815481529060010190602001808311612dac57829003601f168201915b50505050509050919050565b606081612df95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e235780612e0d81615dc5565b9150612e1c9050600a83615b61565b9150612dfd565b6000816001600160401b03811115612e4b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e75576020820181803683370190505b5090505b8415612eee57612e8a600183615cc2565b9150612e97600a86615de0565b612ea2906030615b24565b60f81b818381518110612ec557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ee7600a86615b61565b9450612e79565b949350505050565b8151835114612f175760405162461bcd60e51b815260040161090190615a72565b6001600160a01b038416612f3d5760405162461bcd60e51b81526004016109019061596b565b33612f4c818787878787613b64565b60005b8451811015613051576000858281518110612f7a57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110612fa657634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015612ff75760405162461bcd60e51b8152600401610901906159f3565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613036908490615b24565b925050819055505050508061304a90615dc5565b9050612f4f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130a192919061576c565b60405180910390a4612a47818787878787613b72565b6130c1828261235c565b610e5f576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556130f73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613145828261235c565b15610e5f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610de0838383613cdd565b60045460ff166131f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610901565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610de0838383613d10565b6000610bf18284615b24565b6000610bf18284615c82565b60606132738360000151600084613dae565b835260606000805b85515181101561332457600a6000876000015183815181106132ad57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600701600401546132fe876000015183815181106132f157634e487b7160e01b600052603260045260246000fd5b6020026020010151610bbd565b1015613312578161330e81615dc5565b9250505b8061331c81615dc5565b91505061327b565b50806001600160401b0381111561334b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015613374578160200160208202803683370190505b5091506000805b86515181101561346c57600a6000886000015183815181106133ad57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600701600401546133f1886000015183815181106132f157634e487b7160e01b600052603260045260246000fd5b101561345a57865180518290811061341957634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061344157634e487b7160e01b600052603260045260246000fd5b60209081029190910101528161345681615dc5565b9250505b8061346481615dc5565b91505061337b565b509195945050505050565b61348384848484613fd2565b50505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460ff16156135215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610901565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132213390565b6000838152600a60205260408120819081906135706149af565b60008781526005830160205260409020805461358b90615d3f565b80601f01602080910402602001604051908101604052809291908181526020018280546135b790615d3f565b80156136045780601f106135d957610100808354040283529160200191613604565b820191906000526020600020905b8154815290600101906020018083116135e757829003601f168201915b505050918352505060008781526005830160208181526040832060018101546001600160a01b031682860152928a9052526003015460608201526136488982610bf8565b600088815260058401602052604090206002015460118401549194508410159060ff168015613675575086155b156136db57601383015460ff161561369d5760148301546136969086615b24565b94506136af565b60128301546136ac9086615b24565b94505b6015830154158015906136bf5750805b156136d65760158301546136d39086615b24565b94505b61373d565b601183015460ff1680156136f35750601683015460ff165b80156136fc5750805b156137095783945061373d565b601183015460ff161580156137225750600f83015460ff165b1561372f5783945061373d565b801561373d57600d83015494505b841580156137555750600f830154610100900460ff16155b1561376257600d83015494505b509298975050505050505050565b6000828152600a60205260408120600f015462010000900460ff1661379757506001612eee565b60006137a33384614071565b90506000816040516020016137b8919061579a565b6040516020818303038152906040528051906020012090506129b487878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152600a602052604090206010015492508591506140ad9050565b6001600160a01b0384166138445760405162461bcd60e51b81526004016109019061596b565b336138638187876138548861416a565b61385d8861416a565b87613b64565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156138a65760405162461bcd60e51b8152600401610901906159f3565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906138e5908490615b24565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46139458288888888886141c3565b50505050505050565b60006001600160e01b03198216637965db0b60e01b148061092f57506301ffc9a760e01b6001600160e01b031983161461092f565b60606000613992836002615c82565b61399d906002615b24565b6001600160401b038111156139c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139ec576020820181803683370190505b509050600360fc1b81600081518110613a1557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a5257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613a76846002615c82565b613a81906001615b24565b90505b6001811115613b15576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613ac357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613ae757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613b0e81615d28565b9050613a84565b508315610bf15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610901565b612a4786868686868661428d565b6001600160a01b0384163b15612a475760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613bb690899089908890889088906004016156c1565b602060405180830381600087803b158015613bd057600080fd5b505af1925050508015613c00575060408051601f3d908101601f19168201909252613bfd91810190615155565b60015b613cad57613c0c615e36565b806308c379a01415613c465750613c21615e4e565b80613c2c5750613c48565b8060405162461bcd60e51b8152600401610901919061579a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610901565b6001600160e01b0319811663bc197c8160e01b146139455760405162461bcd60e51b815260040161090190615896565b613ce88383836142f5565b60008281526005602052604081208054839290613d06908490615cc2565b9091555050505050565b613d1b8383836143fa565b60005b825181101561348357818181518110613d4757634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110613d7357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613d989190615cc2565b90915550613da7905081615dc5565b9050613d1e565b606082613ef55760005b8451811015613eef576000818651613dd09190615cc2565b604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018690526074016040516020818303038152906040528051906020012060001c613e219190615de0565b613e2b9083615b24565b90506000868281518110613e4f57634e487b7160e01b600052603260045260246000fd5b60200260200101519050868381518110613e7957634e487b7160e01b600052603260045260246000fd5b6020026020010151878381518110613ea157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505080878481518110613ece57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050508080613ee790615dc5565b915050613db8565b50613fca565b8351604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101849052600091906074016040516020818303038152906040528051906020012060001c613f4c9190615de0565b6040805160018082528183019092529192506000919060208083019080368337019050509050858281518110613f9257634e487b7160e01b600052603260045260246000fd5b602002602001015181600081518110613fbb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101529450505b509192915050565b613fde848484846145a7565b60005b8351811015610db35782818151811061400a57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061403657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461405b9190615b24565b9091555061406a905081615dc5565b9050613fe1565b606061407c83614758565b61408583612dd5565b604051602001614096929190615575565b604051602081830303815290604052905092915050565b600081815b855181101561415f5760008682815181106140dd57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161411f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061414c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061415781615dc5565b9150506140b2565b509092149392505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106141b257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15612a475760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614207908990899088908890889060040161571f565b602060405180830381600087803b15801561422157600080fd5b505af1925050508015614251575060408051601f3d908101601f1916820190925261424e91810190615155565b60015b61425d57613c0c615e36565b6001600160e01b0319811663f23a6e6160e01b146139455760405162461bcd60e51b815260040161090190615896565b60045460ff1615612a475760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610901565b6001600160a01b03831661431b5760405162461bcd60e51b8152600401610901906159b0565b3361434a8185600061432c8761416a565b6143358761416a565b60405180602001604052806000815250613b64565b60008381526001602090815260408083206001600160a01b03881684529091529020548281101561438d5760405162461bcd60e51b8152600401610901906158de565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0383166144205760405162461bcd60e51b8152600401610901906159b0565b80518251146144415760405162461bcd60e51b815260040161090190615a72565b600033905061446481856000868660405180602001604052806000815250613b64565b60005b835181101561454857600084828151811061449257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106144be57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038c16835290935291909120549091508181101561450f5760405162461bcd60e51b8152600401610901906158de565b60009283526001602090815260408085206001600160a01b038b168652909152909220910390558061454081615dc5565b915050614467565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161459992919061576c565b60405180910390a450505050565b6001600160a01b0384166146075760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610901565b81518351146146285760405162461bcd60e51b815260040161090190615a72565b3361463881600087878787613b64565b60005b84518110156146f05783818151811061466457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600087848151811061469057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546146d89190615b24565b909155508190506146e881615dc5565b91505061463b565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161474192919061576c565b60405180910390a4610db381600087878787613b72565b60408051602880825260608281019093526000919060208201818036833701905050905060005b60148110156148b4576000614795826013615cc2565b6147a0906008615c82565b6147ab906002615bda565b6147be906001600160a01b038716615b61565b60f81b9050600060108260f81c6147d59190615b75565b60f81b905060008160f81c60106147ec9190615ca1565b8360f81c6147fa9190615cd9565b60f81b9050614808826148bb565b85614814866002615c82565b8151811061483257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350614852816148bb565b8561485e866002615c82565b614869906001615b24565b8151811061488757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806148ac90615dc5565b91505061477f565b5092915050565b6000600a60f883901c10156148e2576148d960f883901c6030615b3c565b60f81b92915050565b6148d960f883901c6057615b3c565b82805482825590600052602060002090810192821561492c579160200282015b8281111561492c578251825591602001919060010190614911565b506149389291506149e9565b5090565b82805461494890615d3f565b90600052602060002090601f01602090048101928261496a576000855561492c565b82601f1061498357805160ff191683800117855561492c565b8280016001018555821561492c579182018281111561492c578251825591602001919060010190614911565b6040518060a001604052806060815260200160006001600160a01b0316815260200160008152602001600081526020016000151581525090565b5b8082111561493857600081556001016149ea565b600082601f830112614a0e578081fd5b81356020614a1b82615b01565b604051614a288282615d99565b8381528281019150858301600585901b87018401881015614a47578586fd5b855b85811015614a6e578135614a5c81615ed7565b84529284019290840190600101614a49565b5090979650505050505050565b60008083601f840112614a8c578182fd5b5081356001600160401b03811115614aa2578182fd5b6020830191508360208260051b8501011115614abd57600080fd5b9250929050565b600082601f830112614ad4578081fd5b81356020614ae182615b01565b604051614aee8282615d99565b8381528281019150858301600585901b87018401881015614b0d578586fd5b855b85811015614a6e57813584529284019290840190600101614b0f565b80358015158114610b8557600080fd5b600082601f830112614b4b578081fd5b81356001600160401b03811115614b6457614b64615e20565b604051614b7b601f8301601f191660200182615d99565b818152846020838601011115614b8f578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215614bba578081fd5b8135610bf181615ed7565b60008060408385031215614bd7578081fd5b8235614be281615ed7565b946020939093013593505050565b60008060408385031215614c02578182fd5b8235614c0d81615ed7565b91506020830135614c1d81615ed7565b809150509250929050565b600080600080600060a08688031215614c3f578081fd5b8535614c4a81615ed7565b94506020860135614c5a81615ed7565b935060408601356001600160401b0380821115614c75578283fd5b614c8189838a01614ac4565b94506060880135915080821115614c96578283fd5b614ca289838a01614ac4565b93506080880135915080821115614cb7578283fd5b50614cc488828901614b3b565b9150509295509295909350565b600080600080600060a08688031215614ce8578283fd5b8535614cf381615ed7565b94506020860135614d0381615ed7565b9350604086013592506060860135915060808601356001600160401b03811115614d2b578182fd5b614cc488828901614b3b565b600080600080600060608688031215614d4e578283fd5b8535614d5981615ed7565b945060208601356001600160401b0380821115614d74578485fd5b614d8089838a01614a7b565b90965094506040880135915080821115614d98578283fd5b50614da588828901614a7b565b969995985093965092949392505050565b600080600060608486031215614dca578081fd5b8335614dd581615ed7565b925060208401356001600160401b0380821115614df0578283fd5b614dfc87838801614ac4565b93506040860135915080821115614e11578283fd5b50614e1e86828701614ac4565b9150509250925092565b60008060408385031215614e3a578182fd5b8235614e4581615ed7565b9150614e5360208401614b2b565b90509250929050565b60008060408385031215614e6e578182fd5b8235614e7981615ed7565b915060208301356001600160401b0380821115614e94578283fd5b9084019060a08287031215614ea7578283fd5b604051614eb381615d74565b823582811115614ec1578485fd5b614ecd88828601614b3b565b82525060208301359150614ee082615ed7565b8160208201526040830135604082015260608301356060820152614f0660808401614b2b565b60808201528093505050509250929050565b60008060408385031215614bd7578182fd5b600080600060608486031215614f3e578081fd5b8335614f4981615ed7565b95602085013595506040909401359392505050565b600080600080600080600060c0888a031215614f78578485fd5b8735614f8381615ed7565b965060208801359550604088013594506060880135935060808801356001600160401b03811115614fb2578283fd5b614fbe8a828b01614a7b565b9094509250614fd1905060a08901614b2b565b905092959891949750929550565b60008060408385031215614ff1578182fd5b82356001600160401b0380821115615007578384fd5b615013868387016149fe565b93506020850135915080821115615028578283fd5b5061503585828601614ac4565b9150509250929050565b6000806000806000806000806080898b03121561505a578182fd5b88356001600160401b0380821115615070578384fd5b61507c8c838d01614a7b565b909a50985060208b0135915080821115615094578384fd5b6150a08c838d01614a7b565b909850965060408b01359150808211156150b8578384fd5b6150c48c838d01614a7b565b909650945060608b01359150808211156150dc578384fd5b506150e98b828c01614a7b565b999c989b5096995094979396929594505050565b60006020828403121561510e578081fd5b5035919050565b60008060408385031215615127578182fd5b823591506020830135614c1d81615ed7565b60006020828403121561514a578081fd5b8135610bf181615eec565b600060208284031215615166578081fd5b8151610bf181615eec565b600060208284031215615182578081fd5b81356001600160401b03811115615197578182fd5b612eee84828501614b3b565b6000602082840312156151b4578081fd5b5051919050565b600080604083850312156151cd578182fd5b82359150614e5360208401614b2b565b600080600080600080600080610100898b0312156151f9578182fd5b8835975061520960208a01614b2b565b965060408901356001600160401b03811115615223578283fd5b61522f8b828c01614ac4565b96505061523e60608a01614b2b565b94506080890135935060a0890135925061525a60c08a01614b2b565b915061526860e08a01614b2b565b90509295985092959890939650565b60008060006060848603121561528b578081fd5b83359250602084013591506152a260408501614b2b565b90509250925092565b600080600080600060a086880312156152c2578283fd5b8535945060208601356001600160401b038111156152de578384fd5b6152ea88828901614b3b565b94505060408601356152fb81615ed7565b94979396509394606081013594506080013592915050565b6000806000806000806000806000806000806101808d8f031215615335578586fd5b8c359b506001600160401b0360208e01351115615350578586fd5b6153608e60208f01358f01614b3b565b9a506001600160401b0360408e01351115615379578586fd5b6153898e60408f01358f01614b3b565b995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d013593506153c36101208e01614b2b565b92506153d26101408e01614b2b565b91506001600160401b036101608e013511156153ec578081fd5b6153fd8e6101608f01358f016149fe565b90509295989b509295989b509295989b565b60008060408385031215615421578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561545f57815187529582019590820190600101615443565b509495945050505050565b60008151808452615482816020860160208601615cfc565b601f01601f19169290920160200192915050565b6000815160c084526154ab60c0850182615430565b9050602083015115156020850152604083015160408501526060830151606085015260808301511515608085015260a0830151151560a08501528091505092915050565b60008251615501818460208701615cfc565b9190910192915050565b6000835161551d818460208801615cfc565b835190830190615531818360208801615cfc565b01949350505050565b6000835161554c818460208801615cfc565b835190830190615560818360208801615cfc565b600b60fa1b9101908152600101949350505050565b60008351615587818460208801615cfc565b605f60f81b90830190815283516155a5816001840160208801615cfc565b01600101949350505050565b600080835482600182811c9150808316806155cd57607f831692505b60208084108214156155ed57634e487b7160e01b87526022600452602487fd5b81801561560157600181146156125761563e565b60ff1986168952848901965061563e565b60008a815260209020885b868110156156365781548b82015290850190830161561d565b505084890196505b509498975050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615684816017850160208801615cfc565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516156b5816028840160208801615cfc565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906156ed90830186615430565b82810360608401526156ff8186615430565b90508281036080840152615713818561546a565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906129b49083018461546a565b602081526000610bf16020830184615430565b60408152600061577f6040830185615430565b82810360208401526157918185615430565b95945050505050565b602081526000610bf1602083018461546a565b60006102408083526157c18184018c61546a565b905082810360208401526157d5818b61546a565b9050886040840152876060840152865115156080840152602087015160a0840152604087015160c0840152606087015160e0840152608087015161010084015260a087015161012084015260c087015161014084015260e087015161016084015261586b610180840187805115158252602081015115156020830152604081015115156040830152606081015160608301525050565b8415156102008401528281036102208401526158878185615496565b9b9a5050505050505050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6000808335601e19843603018112615ad0578283fd5b8301803591506001600160401b03821115615ae9578283fd5b6020019150600581901b3603821315614abd57600080fd5b60006001600160401b03821115615b1a57615b1a615e20565b5060051b60200190565b60008219821115615b3757615b37615df4565b500190565b600060ff821660ff84168060ff03821115615b5957615b59615df4565b019392505050565b600082615b7057615b70615e0a565b500490565b600060ff831680615b8857615b88615e0a565b8060ff84160491505092915050565b600181815b80851115615bd2578160001904821115615bb857615bb8615df4565b80851615615bc557918102915b93841c9390800290615b9c565b509250929050565b6000610bf18383600082615bf05750600161092f565b81615bfd5750600061092f565b8160018114615c135760028114615c1d57615c39565b600191505061092f565b60ff841115615c2e57615c2e615df4565b50506001821b61092f565b5060208310610133831016604e8410600b8410161715615c5c575081810a61092f565b615c668383615b97565b8060001904821115615c7a57615c7a615df4565b029392505050565b6000816000190483118215151615615c9c57615c9c615df4565b500290565b600060ff821660ff84168160ff0481118215151615615c7a57615c7a615df4565b600082821015615cd457615cd4615df4565b500390565b600060ff821660ff841680821015615cf357615cf3615df4565b90039392505050565b60005b83811015615d17578181015183820152602001615cff565b838111156134835750506000910152565b600081615d3757615d37615df4565b506000190190565b600181811c90821680615d5357607f821691505b602082108114156114f457634e487b7160e01b600052602260045260246000fd5b60a081018181106001600160401b0382111715615d9357615d93615e20565b60405250565b601f8201601f191681016001600160401b0381118282101715615dbe57615dbe615e20565b6040525050565b6000600019821415615dd957615dd9615df4565b5060010190565b600082615def57615def615e0a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615e4b57600481823e5160e01c5b90565b600060443d1015615e5c5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615e8b57505050505090565b8285019150815181811115615ea35750505050505090565b843d8701016020828501011115615ebd5750505050505090565b615ecc60208286010187615d99565b509095945050505050565b6001600160a01b038116811461097357600080fd5b6001600160e01b03198116811461097357600080fdfea2646970667358221220eb9fd03cb1839f5162b48c6d49428ad7760b781a2775b05762ba86b26eda101b64736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000015426f737320426561757469657320436f6c6c61627300000000000000000000000000000000000000000000000000000000000000000000000000000000000014424f5353424541555449455353434f4c4c414253000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3000000000000000000000000110d0c8b5a06c0367053938eedf10131ac9725930000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d656b426a5631485950714b7333557178674e714e6135563638483436564241504b5244556d467165724a364b0000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Boss Beauties Collabs
Arg [1] : _symbol (string): BOSSBEAUTIESSCOLLABS
Arg [2] : _admins (address[]): 0x81745b7339D5067E82B93ca6BBAd125F214525d3,0x110d0C8b5A06c0367053938eeDF10131ac972593
Arg [3] : _contract_URI (string): ipfs://QmekBjV1HYPqKs3UqxgNqNa5V68H46VBAPKRDUmFqerJ6K

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 426f737320426561757469657320436f6c6c6162730000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [7] : 424f5353424541555449455353434f4c4c414253000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 00000000000000000000000081745b7339d5067e82b93ca6bbad125f214525d3
Arg [10] : 000000000000000000000000110d0c8b5a06c0367053938eedf10131ac972593
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [12] : 697066733a2f2f516d656b426a5631485950714b7333557178674e714e613556
Arg [13] : 3638483436564241504b5244556d467165724a364b0000000000000000000000


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

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