ETH Price: $3,121.64 (+1.10%)
Gas: 6 Gwei

Token

 

Overview

Max Total Supply

26

Holders

17

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
themissnguyen.eth
0xe40dcd3e8587c72cf741293c55d0ecb1fca5a852
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:
HunnysMerch

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 13 : HunnysMerch.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol"; 

abstract contract hun {
    function tokensOfOwner(address addr) public virtual view returns(uint256[] memory);
}

contract HunnysMerch is ERC1155Supply, Ownable {  
    using Address for address;
    using Counters for Counters.Counter; 

    struct ProductData {
        uint256     id;
        string      uriString;
        uint256     price;
        bool        redeemable;
        uint256     layerId;
        bool        isLimited;
        bool        isHolderOnly;
        bool        isSoldOut;
        uint256     currentCount;
        uint256     limit;
    }

    hun private hu;
    Counters.Counter private tokenIds;
    ProductData[] public products;

    mapping (uint256 => string) private tokenURIs;
    mapping (uint256 => ProductData) public tokenProductRelation;

    string public baseTokenURI;

    // Starting and stopping sale
    bool public active = false;

    // price scale
    bool public scalePriceDown = false;
    uint256 public priceScalePercent = 0;

    // Team addresses for withdrawals
    address public a1;
    address public a2;
    address public a3;
    address public a4;
    
    constructor (string memory newBaseURI, address hunAddress) ERC1155 ("Hunnys Merch") {
        baseTokenURI = newBaseURI;
        // Deploy with Hunnys contract address
        hu = hun(hunAddress);
    }

    // Override so the openzeppelin tokenURI() method will use this method to create the full tokenURI instead
    function uri(uint256 tokenId) override public view returns (string memory) { 
        return(tokenURIs[tokenId]); 
    } 

    // See which address owns which tokens
    function totalSupply(uint256 productId) override public view returns(uint256) {
        return products[productId].currentCount;
    }

    function totalContractSupply() public view returns(uint256) {
        return tokenIds.current();
    }

    function hunnysTokensOfOwner() public view returns(uint256[] memory) {
        return hu.tokensOfOwner(msg.sender);
    }

    function tokensOfOwner(address addr) public view returns(uint256[] memory) {
        uint256 tokenCounter = 0;
        // get tokenCount
        for (uint256 i = 0; i < tokenIds.current(); i++) {
            uint256 tokenCount = balanceOf(addr, i);
            if(tokenCount == 1) {
                tokenCounter = tokenCounter + 1;
            }
        }

        // use tokenCount to set return array size
        uint256[] memory tokensId = new uint256[](tokenCounter);
        uint256 count = 0;

        for (uint256 i = 0; i < tokenIds.current(); i++) {
            uint256 tokenCount = balanceOf(addr, i);
            if(tokenCount == 1) {
                tokensId[count] = i;
                count = count + 1;
            }
        }

        return tokensId;
    }

    // returns the length of the products array
    function getProductCount() public view returns(uint256) {
        return products.length;
    }

    // mint function
    function mintProducts(uint256[] memory _ids, uint256[] memory _amounts) public payable {
        require( active,                                                                    "Sale isn't active" );
        require( _ids.length > 0 && _ids.length == _amounts.length,                         "Params do not match up" );

        uint256 totalPrice = 0.00 ether;

        // validation 
        for (uint256 i = 0; i < _ids.length; i++) {
            // check if id is present
            require( _ids[i] >= 0 && _ids[i] <= products.length - 1,                        "Some ids got no matching product" );

            // get product data
            ProductData memory currentData = products[_ids[i]];

            // check for soldOut
            require( !currentData.isSoldOut,                                                "Can't mint a sold out product" );

            // check for limit
            if(currentData.isLimited){
                require( currentData.currentCount + _amounts[i] <= currentData.limit + 1,   "Can't mint more than max supply" );
            }

            // check for holder
            if(currentData.isHolderOnly){
                uint256[] memory ownedHunTokens = hu.tokensOfOwner(msg.sender);
                
                require( ownedHunTokens.length > 0,                                         "Some products require wallet to hold a Hunnys 10k Token" );
            }

            // set price
            uint256 scaledPrice = applyPriceScale(currentData.price);
            totalPrice = totalPrice + (scaledPrice * _amounts[i]);
        }

        // check price
        require( msg.value == totalPrice,                                                   "Wrong amount of ETH sent" );

        // minting
        for (uint256 i = 0; i < _ids.length; i++) {
            ProductData memory currentProduct = products[_ids[i]];

            // set products new current count before mint
            uint256 currentProductCount = currentProduct.currentCount;
            products[currentProduct.id].currentCount = products[currentProduct.id].currentCount + _amounts[i];

            // mint that product
            for (uint256 k = 0; k < _amounts[i]; k++) {
                uint256 currentContractId = tokenIds.current(); 
                
                setTokenUri(currentContractId, append(baseTokenURI, currentProduct.uriString, Strings.toString(currentProductCount + k)));

                tokenProductRelation[currentContractId] = products[_ids[i]];

                tokenIds.increment(); 

                _mint(msg.sender, currentContractId, 1, "");
            }
        }
    }

    function applyPriceScale(uint256 price) private view returns(uint256) {
        uint256 result = price;
        uint256 onePricePercent = price / 100;
        uint256 scaleValue = onePricePercent * priceScalePercent;

        if(scalePriceDown) {
            result = price - scaleValue;
        } else {
            result = price + scaleValue;
        }

        return result;
    }

    function setTokenUri(uint256 tokenId, string memory tokenURI) private {
         tokenURIs[tokenId] = tokenURI; 
    } 

    // concat strings
    function append(string memory a, string memory b, string memory c) internal pure returns (string memory) {
        return string(abi.encodePacked(a, b, c));
    }

    // Add new products in array way 
    function addNewProducts(string[] memory _uriString, uint256[] memory _prices, bool[] memory _redeemable, uint256[] memory _layerIds, bool[] memory _isLimited, bool[] memory _isHolderOnly, bool[] memory _isSoldOut, uint256[] memory _limits) public onlyOwner {
        uint256 currentId = products.length;
        for(uint256 i = 0; i < _uriString.length; i++){
            ProductData memory newProduct = ProductData(currentId + i, _uriString[i], _prices[i], _redeemable[i], _layerIds[i], _isLimited[i], _isHolderOnly[i], _isSoldOut[i], 1, _limits[i]);
            products.push(newProduct);
        }
    }

    // Change existing product by id 
    function changeProductById(uint256 _id, string memory _uriString, uint256 _price, bool _redeemable, uint256 _layerId, bool _isLimited, bool _isHolderOnly, bool _isSoldOut, uint256 _limit) public onlyOwner {
        products[_id].uriString = _uriString;
        products[_id].price = _price;
        products[_id].redeemable = _redeemable;
        products[_id].layerId = _layerId;
        products[_id].isLimited = _isLimited;
        products[_id].isHolderOnly = _isHolderOnly;
        products[_id].isSoldOut = _isSoldOut;
        products[_id].limit = _limit;
    }

    // Start and stop sale
    function setActive(bool val) public onlyOwner {
        active = val;
    }

    // Set new baseURI
    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    // Set discount values
    function setPriceScale(bool scaleDown, uint256 pricePercent) public onlyOwner {
        scalePriceDown = scaleDown;
        priceScalePercent = pricePercent;
    }

    // Set team addresses
    function setAddresses(address[] memory _a) public onlyOwner {
        a1 = _a[0];
        a2 = _a[1];
        a3 = _a[2];
        a4 = _a[3];
    }

    // Withdraw funds from contract for the team
    function withdrawTeam(uint256 amount) public payable onlyOwner {
        uint256 percent = amount / 100;
        require(payable(a1).send(percent * 60)); // 60% to Community Wallet
        require(payable(a2).send((percent * 13) + (percent / 3 ))); // 13,3% to Stacy
        require(payable(a3).send((percent * 13) + (percent / 3 ))); // 13,3% to NFT Forge
        require(payable(a4).send((percent * 13) + (percent / 3 ))); // 13,3% to Rat
    }
}

File 2 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

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 {
        _setApprovalForAll(_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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), to, 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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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 3 of 13 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

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 whether 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-_beforeTokenTransfer}.
     */
    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);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 4 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 13 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

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

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

File 7 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

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 8 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 9 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"address","name":"hunAddress","type":"address"}],"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":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"},{"inputs":[],"name":"a1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_uriString","type":"string[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"bool[]","name":"_redeemable","type":"bool[]"},{"internalType":"uint256[]","name":"_layerIds","type":"uint256[]"},{"internalType":"bool[]","name":"_isLimited","type":"bool[]"},{"internalType":"bool[]","name":"_isHolderOnly","type":"bool[]"},{"internalType":"bool[]","name":"_isSoldOut","type":"bool[]"},{"internalType":"uint256[]","name":"_limits","type":"uint256[]"}],"name":"addNewProducts","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":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uriString","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bool","name":"_redeemable","type":"bool"},{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"bool","name":"_isLimited","type":"bool"},{"internalType":"bool","name":"_isHolderOnly","type":"bool"},{"internalType":"bool","name":"_isSoldOut","type":"bool"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"changeProductById","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":[],"name":"getProductCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hunnysTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintProducts","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceScalePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"products","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"uriString","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"redeemable","type":"bool"},{"internalType":"uint256","name":"layerId","type":"uint256"},{"internalType":"bool","name":"isLimited","type":"bool"},{"internalType":"bool","name":"isHolderOnly","type":"bool"},{"internalType":"bool","name":"isSoldOut","type":"bool"},{"internalType":"uint256","name":"currentCount","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[],"name":"scalePriceDown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_a","type":"address[]"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"scaleDown","type":"bool"},{"internalType":"uint256","name":"pricePercent","type":"uint256"}],"name":"setPriceScale","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenProductRelation","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"uriString","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"redeemable","type":"bool"},{"internalType":"uint256","name":"layerId","type":"uint256"},{"internalType":"bool","name":"isLimited","type":"bool"},{"internalType":"bool","name":"isHolderOnly","type":"bool"},{"internalType":"bool","name":"isSoldOut","type":"bool"},{"internalType":"uint256","name":"currentCount","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalContractSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"productId","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTeam","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600b805461ffff191690556000600c553480156200002157600080fd5b5060405162004351380380620043518339810160408190526200004491620001e9565b60408051808201909152600c81526b090eadcdcf2e6409acae4c6d60a31b60208201526200007281620000bb565b506200007e33620000d4565b81516200009390600a90602085019062000126565b50600580546001600160a01b0319166001600160a01b03929092169190911790555062000327565b8051620000d090600290602084019062000126565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013490620002d4565b90600052602060002090601f016020900481019282620001585760008555620001a3565b82601f106200017357805160ff1916838001178555620001a3565b82800160010185558215620001a3579182015b82811115620001a357825182559160200191906001019062000186565b50620001b1929150620001b5565b5090565b5b80821115620001b15760008155600101620001b6565b80516001600160a01b0381168114620001e457600080fd5b919050565b60008060408385031215620001fc578182fd5b82516001600160401b038082111562000213578384fd5b818501915085601f83011262000227578384fd5b8151818111156200023c576200023c62000311565b604051601f8201601f19908116603f0116810190838211818310171562000267576200026762000311565b8160405282815260209350888484870101111562000283578687fd5b8691505b82821015620002a6578482018401518183018501529083019062000287565b82821115620002b757868484830101525b9550620002c9915050858201620001cc565b925050509250929050565b600181811c90821680620002e957607f821691505b602082108114156200030b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61401a80620003376000396000f3fe6080604052600436106102335760003560e01c80638462151c11610138578063b9571721116100b0578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610686578063f74ea418146106a6578063fd2b0492146106c657600080fd5b8063e985e9c51461061d578063f242432a1461066657600080fd5b8063b9571721146105a8578063bd85b039146105c8578063c3c6b41b146105e8578063d547cfb71461060857600080fd5b80639766353911610107578063a22cb465116100ec578063a22cb46514610555578063a935951314610575578063acec338a1461058857600080fd5b8063976635391461052157806399de31e51461054057600080fd5b80638462151c146104a35780638da5cb5b146104c35780639426eef8146104e1578063969e9d0c1461050157600080fd5b80633cf2552a116101cb57806355f804b31161019a5780637921da7e1161017f5780637921da7e1461044e5780637acc0b201461046e57806382801f941461048e57600080fd5b806355f804b314610419578063715018a61461043957600080fd5b80633cf2552a146103925780634a348da9146103a85780634e1273f4146103bd5780634f558e79146103ea57600080fd5b80630e89341c116102075780630e89341c146102eb578063119552a1146103185780632eb2c2d6146103505780633803741b1461037257600080fd5b8062fdd58e1461023857806301ffc9a71461026b5780630296d2431461029b57806302fb0c5e146102d1575b600080fd5b34801561024457600080fd5b50610258610253366004613782565b6106d9565b6040519081526020015b60405180910390f35b34801561027757600080fd5b5061028b610286366004613a7d565b610782565b6040519015158152602001610262565b3480156102a757600080fd5b506102bb6102b6366004613ae8565b61081f565b6040516102629a99989796959493929190613d43565b3480156102dd57600080fd5b50600b5461028b9060ff1681565b3480156102f757600080fd5b5061030b610306366004613ae8565b610902565b6040516102629190613d30565b34801561032457600080fd5b50600d54610338906001600160a01b031681565b6040516001600160a01b039091168152602001610262565b34801561035c57600080fd5b5061037061036b366004613650565b6109a4565b005b34801561037e57600080fd5b5061037061038d366004613b00565b610a46565b34801561039e57600080fd5b50610258600c5481565b3480156103b457600080fd5b50600754610258565b3480156103c957600080fd5b506103dd6103d83660046137de565b610cbf565b6040516102629190613cef565b3480156103f657600080fd5b5061028b610405366004613ae8565b600090815260036020526040902054151590565b34801561042557600080fd5b50610370610434366004613ab5565b610e35565b34801561044557600080fd5b50610370610ea6565b34801561045a57600080fd5b5061037061046936600461383f565b610f0c565b34801561047a57600080fd5b506102bb610489366004613ae8565b61122d565b34801561049a57600080fd5b50610258611262565b3480156104af57600080fd5b506103dd6104be3660046135fd565b611272565b3480156104cf57600080fd5b506004546001600160a01b0316610338565b3480156104ed57600080fd5b50600f54610338906001600160a01b031681565b34801561050d57600080fd5b50600e54610338906001600160a01b031681565b34801561052d57600080fd5b50600b5461028b90610100900460ff1681565b34801561054c57600080fd5b506103dd61138c565b34801561056157600080fd5b50610370610570366004613759565b61140c565b610370610583366004613a13565b611417565b34801561059457600080fd5b506103706105a3366004613a48565b611e47565b3480156105b457600080fd5b506103706105c33660046137ab565b611eb4565b3480156105d457600080fd5b506102586105e3366004613ae8565b61204d565b3480156105f457600080fd5b50610370610603366004613a62565b612089565b34801561061457600080fd5b5061030b612101565b34801561062957600080fd5b5061028b61063836600461361e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561067257600080fd5b506103706106813660046136f6565b61218f565b34801561069257600080fd5b506103706106a13660046135fd565b61222a565b3480156106b257600080fd5b50601054610338906001600160a01b031681565b6103706106d4366004613ae8565b61230c565b60006001600160a01b03831661075c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806107e557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061081957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6009602052600090815260409020805460018201805491929161084190613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461086d90613e53565b80156108ba5780601f1061088f576101008083540402835291602001916108ba565b820191906000526020600020905b81548152906001019060200180831161089d57829003601f168201915b50505050600283015460038401546004850154600586015460068701546007909701549596939560ff938416955091938382169361010083048116936201000090930416918a565b600081815260086020526040902080546060919061091f90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90613e53565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b50505050509050919050565b6001600160a01b0385163314806109c057506109c08533610638565b610a325760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610753565b610a3f858585858561249d565b5050505050565b6004546001600160a01b03163314610aa05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b8760078a81548110610ac257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016001019080519060200190610ae6929190613274565b508660078a81548110610b0957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600201819055508560078a81548110610b4057634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160030160006101000a81548160ff0219169083151502179055508460078a81548110610b8a57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600401819055508360078a81548110610bc157634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160006101000a81548160ff0219169083151502179055508260078a81548110610c0b57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160016101000a81548160ff0219169083151502179055508160078a81548110610c5557634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160026101000a81548160ff0219169083151502179055508060078a81548110610c9f57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160070181905550505050505050505050565b60608151835114610d385760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610753565b6000835167ffffffffffffffff811115610d6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b8451811015610e2d57610df2858281518110610dbd57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610de557634e487b7160e01b600052603260045260246000fd5b60200260200101516106d9565b828281518110610e1257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e2681613ebb565b9050610d91565b509392505050565b6004546001600160a01b03163314610e8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b8051610ea290600a906020840190613274565b5050565b6004546001600160a01b03163314610f005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b610f0a600061273a565b565b6004546001600160a01b03163314610f665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b60075460005b89518110156112215760006040518061014001604052808385610f8f9190613dc5565b81526020018c8481518110610fb457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018b8481518110610fe157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018a848151811061100e57634e487b7160e01b600052603260045260246000fd5b60200260200101511515815260200189848151811061103d57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200188848151811061106a57634e487b7160e01b600052603260045260246000fd5b60200260200101511515815260200187848151811061109957634e487b7160e01b600052603260045260246000fd5b6020026020010151151581526020018684815181106110c857634e487b7160e01b600052603260045260246000fd5b602002602001015115158152602001600181526020018584815181106110fe57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101519091526007805460018101825560009190915282517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600890920291820190815583830151805194955085949193611187937fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6890192910190613274565b5060408201516002820155606082015160038201805460ff19169115159190911790556080820151600482015560a082015160058201805460c085015160e086015161ffff1990921693151561ff0019169390931761010093151584021762ff000019166201000091151591909102179055820151600682015561012090910151600790910155508061121981613ebb565b915050610f6c565b50505050505050505050565b6007818154811061123d57600080fd5b6000918252602090912060089091020180546001820180549193509061084190613e53565b600061126d60065490565b905090565b60606000805b6006548110156112ba57600061128e85836106d9565b905080600114156112a7576112a4836001613dc5565b92505b50806112b281613ebb565b915050611278565b5060008167ffffffffffffffff8111156112e457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561130d578160200160208202803683370190505b5090506000805b60065481101561138257600061132a87836106d9565b9050806001141561136f578184848151811061135657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261136c836001613dc5565b92505b508061137a81613ebb565b915050611314565b5090949350505050565b600554604051632118854760e21b81523360048201526060916001600160a01b031690638462151c9060240160006040518083038186803b1580156113d057600080fd5b505afa1580156113e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126d9190810190613976565b610ea23383836127a4565b600b5460ff166114695760405162461bcd60e51b815260206004820152601160248201527f53616c652069736e2774206163746976650000000000000000000000000000006044820152606401610753565b6000825111801561147b575080518251145b6114c75760405162461bcd60e51b815260206004820152601660248201527f506172616d7320646f206e6f74206d61746368207570000000000000000000006044820152606401610753565b6000805b83518110156119555760008482815181106114f657634e487b7160e01b600052603260045260246000fd5b602002602001015110158015611541575060075461151690600190613e10565b84828151811061153657634e487b7160e01b600052603260045260246000fd5b602002602001015111155b61158d5760405162461bcd60e51b815260206004820181905260248201527f536f6d652069647320676f74206e6f206d61746368696e672070726f647563746044820152606401610753565b600060078583815181106115b157634e487b7160e01b600052603260045260246000fd5b6020026020010151815481106115d757634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201604051806101400160405290816000820154815260200160018201805461160b90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461163790613e53565b80156116845780601f1061165957610100808354040283529160200191611684565b820191906000526020600020905b81548152906001019060200180831161166757829003601f168201915b505050918352505060028201546020820152600382015460ff90811615156040830152600483015460608301526005830154808216151560808401526101008082048316151560a085015262010000909104909116151560c0830152600683015460e0808401919091526007909301549101528101519091501561174a5760405162461bcd60e51b815260206004820152601d60248201527f43616e2774206d696e74206120736f6c64206f75742070726f647563740000006044820152606401610753565b8060a00151156117eb57610120810151611765906001613dc5565b84838151811061178557634e487b7160e01b600052603260045260246000fd5b602002602001015182610100015161179d9190613dc5565b11156117eb5760405162461bcd60e51b815260206004820152601f60248201527f43616e2774206d696e74206d6f7265207468616e206d617820737570706c79006044820152606401610753565b8060c00151156118f057600554604051632118854760e21b81523360048201526000916001600160a01b031690638462151c9060240160006040518083038186803b15801561183957600080fd5b505afa15801561184d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118759190810190613976565b905060008151116118ee5760405162461bcd60e51b815260206004820152603760248201527f536f6d652070726f647563747320726571756972652077616c6c657420746f2060448201527f686f6c6420612048756e6e79732031306b20546f6b656e0000000000000000006064820152608401610753565b505b60006118ff8260400151612899565b905084838151811061192157634e487b7160e01b600052603260045260246000fd5b6020026020010151816119349190613df1565b61193e9085613dc5565b93505050808061194d90613ebb565b9150506114cb565b508034146119a55760405162461bcd60e51b815260206004820152601860248201527f57726f6e6720616d6f756e74206f66204554482073656e7400000000000000006044820152606401610753565b60005b8351811015611e4157600060078583815181106119d557634e487b7160e01b600052603260045260246000fd5b6020026020010151815481106119fb57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016040518061014001604052908160008201548152602001600182018054611a2f90613e53565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b90613e53565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b505050918352505060028201546020820152600382015460ff90811615156040830152600483015460608301526005830154808216151560808401526101008082048316151560a085015262010000909104909116151560c0830152600683015460e083015260079092015490820152810151855191925090859084908110611b4157634e487b7160e01b600052603260045260246000fd5b60200260200101516007836000015181548110611b6e57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160060154611b8a9190613dc5565b6007836000015181548110611baf57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016006018190555060005b858481518110611be757634e487b7160e01b600052603260045260246000fd5b6020026020010151811015611e2b576000611c0160065490565b9050611cb881611cb3600a8054611c1790613e53565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4390613e53565b8015611c905780601f10611c6557610100808354040283529160200191611c90565b820191906000526020600020905b815481529060010190602001808311611c7357829003601f168201915b50505050508760200151611cae8789611ca99190613dc5565b6128f4565b612a4a565b612a79565b6007888681518110611cda57634e487b7160e01b600052603260045260246000fd5b602002602001015181548110611d0057634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160096000838152602001908152602001600020600082015481600001556001820181600101908054611d3f90613e53565b611d4a9291906132f8565b5060028281015490820155600380830154908201805460ff928316151560ff199182161790915560048085015490840155600580850180549185018054928516151593831684178155815461010090819004861615150261ff001990941661ffff19909316929092179290921780825591546201000090819004909316151590920262ff000019909116179055600680830154818301556007928301549290910191909155611dfc9080546001019055565b611e183382600160405180602001604052806000815250612a9d565b5080611e2381613ebb565b915050611bc7565b5050508080611e3990613ebb565b9150506119a8565b50505050565b6004546001600160a01b03163314611ea15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b600b805460ff1916911515919091179055565b6004546001600160a01b03163314611f0e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b80600081518110611f2f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600181518110611f7e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600e60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600281518110611fcd57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060038151811061201c57634e487b7160e01b600052603260045260246000fd5b6020026020010151601060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60006007828154811061207057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600601549050919050565b6004546001600160a01b031633146120e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b600b80549215156101000261ff001990931692909217909155600c55565b600a805461210e90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461213a90613e53565b80156121875780601f1061215c57610100808354040283529160200191612187565b820191906000526020600020905b81548152906001019060200180831161216a57829003601f168201915b505050505081565b6001600160a01b0385163314806121ab57506121ab8533610638565b61221d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610753565b610a3f8585858585612bdc565b6004546001600160a01b031633146122845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b6001600160a01b0381166123005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610753565b6123098161273a565b50565b6004546001600160a01b031633146123665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b6000612373606483613ddd565b600d549091506001600160a01b03166108fc61239083603c613df1565b6040518115909202916000818181858888f193505050506123b057600080fd5b600e546001600160a01b03166108fc6123ca600384613ddd565b6123d584600d613df1565b6123df9190613dc5565b6040518115909202916000818181858888f193505050506123ff57600080fd5b600f546001600160a01b03166108fc612419600384613ddd565b61242484600d613df1565b61242e9190613dc5565b6040518115909202916000818181858888f1935050505061244e57600080fd5b6010546001600160a01b03166108fc612468600384613ddd565b61247384600d613df1565b61247d9190613dc5565b6040518115909202916000818181858888f19350505050610ea257600080fd5b81518351146125145760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610753565b6001600160a01b0384166125785760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610753565b33612587818787878787612d95565b60005b84518110156126cc5760008582815181106125b557634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106125e157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156126745760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610753565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906126b1908490613dc5565b92505081905550505050806126c590613ebb565b905061258a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161271c929190613d02565b60405180910390a4612732818787878787612f5b565b505050505050565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561282c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610753565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081816128a8606483613ddd565b90506000600c54826128ba9190613df1565b600b54909150610100900460ff16156128de576128d78186613e10565b92506128eb565b6128e88186613dc5565b92505b50909392505050565b60608161293457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561295e578061294881613ebb565b91506129579050600a83613ddd565b9150612938565b60008167ffffffffffffffff81111561298757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129b1576020820181803683370190505b5090505b8415612a42576129c6600183613e10565b91506129d3600a86613ed6565b6129de906030613dc5565b60f81b818381518110612a0157634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a3b600a86613ddd565b94506129b5565b949350505050565b6060838383604051602001612a6193929190613c0b565b60405160208183030381529060405290509392505050565b60008281526008602090815260409091208251612a9892840190613274565b505050565b6001600160a01b038416612b195760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610753565b336000612b2585613110565b90506000612b3285613110565b9050612b4383600089858589612d95565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612b73908490613dc5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612bd383600089898989613169565b50505050505050565b6001600160a01b038416612c405760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610753565b336000612c4c85613110565b90506000612c5985613110565b9050612c69838989858589612d95565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612ced5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610753565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612d2a908490613dc5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d8a848a8a8a8a8a613169565b505050505050505050565b6001600160a01b038516612e385760005b8351811015612e3657828181518110612dcf57634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612dfb57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e209190613dc5565b90915550612e2f905081613ebb565b9050612da6565b505b6001600160a01b0384166127325760005b8351811015612bd3576000848281518110612e7457634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612ea057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006003600084815260200190815260200160002054905081811015612f385760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610753565b60009283526003602052604090922091039055612f5481613ebb565b9050612e49565b6001600160a01b0384163b156127325760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612f9f9089908990889088908890600401613c4e565b602060405180830381600087803b158015612fb957600080fd5b505af1925050508015612fe9575060408051601f3d908101601f19168201909252612fe691810190613a99565b60015b61309f57612ff5613f2c565b806308c379a0141561302f575061300a613f44565b806130155750613031565b8060405162461bcd60e51b81526004016107539190613d30565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610753565b6001600160e01b0319811663bc197c8160e01b14612bd35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610753565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061315857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156127325760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906131ad9089908990889088908890600401613cac565b602060405180830381600087803b1580156131c757600080fd5b505af19250505080156131f7575060408051601f3d908101601f191682019092526131f491810190613a99565b60015b61320357612ff5613f2c565b6001600160e01b0319811663f23a6e6160e01b14612bd35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610753565b82805461328090613e53565b90600052602060002090601f0160209004810192826132a257600085556132e8565b82601f106132bb57805160ff19168380011785556132e8565b828001600101855582156132e8579182015b828111156132e85782518255916020019190600101906132cd565b506132f4929150613373565b5090565b82805461330490613e53565b90600052602060002090601f01602090048101928261332657600085556132e8565b82601f1061333757805485556132e8565b828001600101855582156132e857600052602060002091601f016020900482015b828111156132e8578254825591600101919060010190613358565b5b808211156132f45760008155600101613374565b80356001600160a01b038116811461339f57600080fd5b919050565b600082601f8301126133b4578081fd5b813560206133c182613da1565b6040516133ce8282613e8e565b8381528281019150858301600585901b870184018810156133ed578586fd5b855b858110156134125761340082613388565b845292840192908401906001016133ef565b5090979650505050505050565b600082601f83011261342f578081fd5b8135602061343c82613da1565b6040516134498282613e8e565b8381528281019150858301600585901b87018401881015613468578586fd5b855b858110156134125761347b8261357e565b8452928401929084019060010161346a565b600082601f83011261349d578081fd5b813560206134aa82613da1565b6040516134b78282613e8e565b8381528281019150858301600585901b870184018810156134d6578586fd5b855b8581101561341257813567ffffffffffffffff8111156134f6578788fd5b6135048a87838c010161358e565b85525092840192908401906001016134d8565b600082601f830112613527578081fd5b8135602061353482613da1565b6040516135418282613e8e565b8381528281019150858301600585901b87018401881015613560578586fd5b855b8581101561341257813584529284019290840190600101613562565b8035801515811461339f57600080fd5b600082601f83011261359e578081fd5b813567ffffffffffffffff8111156135b8576135b8613f16565b6040516135cf601f8301601f191660200182613e8e565b8181528460208386010111156135e3578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561360e578081fd5b61361782613388565b9392505050565b60008060408385031215613630578081fd5b61363983613388565b915061364760208401613388565b90509250929050565b600080600080600060a08688031215613667578081fd5b61367086613388565b945061367e60208701613388565b9350604086013567ffffffffffffffff8082111561369a578283fd5b6136a689838a01613517565b945060608801359150808211156136bb578283fd5b6136c789838a01613517565b935060808801359150808211156136dc578283fd5b506136e98882890161358e565b9150509295509295909350565b600080600080600060a0868803121561370d578283fd5b61371686613388565b945061372460208701613388565b93506040860135925060608601359150608086013567ffffffffffffffff81111561374d578182fd5b6136e98882890161358e565b6000806040838503121561376b578182fd5b61377483613388565b91506136476020840161357e565b60008060408385031215613794578182fd5b61379d83613388565b946020939093013593505050565b6000602082840312156137bc578081fd5b813567ffffffffffffffff8111156137d2578182fd5b612a42848285016133a4565b600080604083850312156137f0578182fd5b823567ffffffffffffffff80821115613807578384fd5b613813868387016133a4565b93506020850135915080821115613828578283fd5b5061383585828601613517565b9150509250929050565b600080600080600080600080610100898b03121561385b578586fd5b883567ffffffffffffffff80821115613872578788fd5b61387e8c838d0161348d565b995060208b0135915080821115613893578788fd5b61389f8c838d01613517565b985060408b01359150808211156138b4578788fd5b6138c08c838d0161341f565b975060608b01359150808211156138d5578485fd5b6138e18c838d01613517565b965060808b01359150808211156138f6578485fd5b6139028c838d0161341f565b955060a08b0135915080821115613917578485fd5b6139238c838d0161341f565b945060c08b0135915080821115613938578384fd5b6139448c838d0161341f565b935060e08b0135915080821115613959578283fd5b506139668b828c01613517565b9150509295985092959890939650565b60006020808385031215613988578182fd5b825167ffffffffffffffff81111561399e578283fd5b8301601f810185136139ae578283fd5b80516139b981613da1565b6040516139c68282613e8e565b8281528481019150838501600584901b850186018910156139e5578687fd5b8694505b83851015613a075780518352600194909401939185019185016139e9565b50979650505050505050565b60008060408385031215613a25578182fd5b823567ffffffffffffffff80821115613a3c578384fd5b61381386838701613517565b600060208284031215613a59578081fd5b6136178261357e565b60008060408385031215613a74578182fd5b61379d8361357e565b600060208284031215613a8e578081fd5b813561361781613fce565b600060208284031215613aaa578081fd5b815161361781613fce565b600060208284031215613ac6578081fd5b813567ffffffffffffffff811115613adc578182fd5b612a428482850161358e565b600060208284031215613af9578081fd5b5035919050565b60008060008060008060008060006101208a8c031215613b1e578283fd5b8935985060208a013567ffffffffffffffff811115613b3b578384fd5b613b478c828d0161358e565b98505060408a01359650613b5d60608b0161357e565b955060808a01359450613b7260a08b0161357e565b9350613b8060c08b0161357e565b9250613b8e60e08b0161357e565b91506101008a013590509295985092959850929598565b6000815180845260208085019450808401835b83811015613bd457815187529582019590820190600101613bb8565b509495945050505050565b60008151808452613bf7816020860160208601613e27565b601f01601f19169290920160200192915050565b60008451613c1d818460208901613e27565b845190830190613c31818360208901613e27565b8451910190613c44818360208801613e27565b0195945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613c7a60a0830186613ba5565b8281036060840152613c8c8186613ba5565b90508281036080840152613ca08185613bdf565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613ce460a0830184613bdf565b979650505050505050565b6020815260006136176020830184613ba5565b604081526000613d156040830185613ba5565b8281036020840152613d278185613ba5565b95945050505050565b6020815260006136176020830184613bdf565b60006101408c8352806020840152613d5d8184018d613bdf565b604084019b909b5250509615156060880152608087019590955292151560a086015290151560c0850152151560e08401526101008301526101209091015292915050565b600067ffffffffffffffff821115613dbb57613dbb613f16565b5060051b60200190565b60008219821115613dd857613dd8613eea565b500190565b600082613dec57613dec613f00565b500490565b6000816000190483118215151615613e0b57613e0b613eea565b500290565b600082821015613e2257613e22613eea565b500390565b60005b83811015613e42578181015183820152602001613e2a565b83811115611e415750506000910152565b600181811c90821680613e6757607f821691505b60208210811415613e8857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613eb457613eb4613f16565b6040525050565b6000600019821415613ecf57613ecf613eea565b5060010190565b600082613ee557613ee5613f00565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613f4157600481823e5160e01c5b90565b600060443d1015613f525790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613f8257505050505090565b8285019150815181811115613f9a5750505050505090565b843d8701016020828501011115613fb45750505050505090565b613fc360208286010187613e8e565b509095945050505050565b6001600160e01b03198116811461230957600080fdfea2646970667358221220b395d4b0b13386ec0e8fd355432a0a29d3ea97fb58da2fbef5e768445628c6f364736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000005dfeb75abae11b138a16583e03a2be17740eaded000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f68756e6e79732d6d657263682e73332e616d617a6f6e6177732e636f6d2f0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102335760003560e01c80638462151c11610138578063b9571721116100b0578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610686578063f74ea418146106a6578063fd2b0492146106c657600080fd5b8063e985e9c51461061d578063f242432a1461066657600080fd5b8063b9571721146105a8578063bd85b039146105c8578063c3c6b41b146105e8578063d547cfb71461060857600080fd5b80639766353911610107578063a22cb465116100ec578063a22cb46514610555578063a935951314610575578063acec338a1461058857600080fd5b8063976635391461052157806399de31e51461054057600080fd5b80638462151c146104a35780638da5cb5b146104c35780639426eef8146104e1578063969e9d0c1461050157600080fd5b80633cf2552a116101cb57806355f804b31161019a5780637921da7e1161017f5780637921da7e1461044e5780637acc0b201461046e57806382801f941461048e57600080fd5b806355f804b314610419578063715018a61461043957600080fd5b80633cf2552a146103925780634a348da9146103a85780634e1273f4146103bd5780634f558e79146103ea57600080fd5b80630e89341c116102075780630e89341c146102eb578063119552a1146103185780632eb2c2d6146103505780633803741b1461037257600080fd5b8062fdd58e1461023857806301ffc9a71461026b5780630296d2431461029b57806302fb0c5e146102d1575b600080fd5b34801561024457600080fd5b50610258610253366004613782565b6106d9565b6040519081526020015b60405180910390f35b34801561027757600080fd5b5061028b610286366004613a7d565b610782565b6040519015158152602001610262565b3480156102a757600080fd5b506102bb6102b6366004613ae8565b61081f565b6040516102629a99989796959493929190613d43565b3480156102dd57600080fd5b50600b5461028b9060ff1681565b3480156102f757600080fd5b5061030b610306366004613ae8565b610902565b6040516102629190613d30565b34801561032457600080fd5b50600d54610338906001600160a01b031681565b6040516001600160a01b039091168152602001610262565b34801561035c57600080fd5b5061037061036b366004613650565b6109a4565b005b34801561037e57600080fd5b5061037061038d366004613b00565b610a46565b34801561039e57600080fd5b50610258600c5481565b3480156103b457600080fd5b50600754610258565b3480156103c957600080fd5b506103dd6103d83660046137de565b610cbf565b6040516102629190613cef565b3480156103f657600080fd5b5061028b610405366004613ae8565b600090815260036020526040902054151590565b34801561042557600080fd5b50610370610434366004613ab5565b610e35565b34801561044557600080fd5b50610370610ea6565b34801561045a57600080fd5b5061037061046936600461383f565b610f0c565b34801561047a57600080fd5b506102bb610489366004613ae8565b61122d565b34801561049a57600080fd5b50610258611262565b3480156104af57600080fd5b506103dd6104be3660046135fd565b611272565b3480156104cf57600080fd5b506004546001600160a01b0316610338565b3480156104ed57600080fd5b50600f54610338906001600160a01b031681565b34801561050d57600080fd5b50600e54610338906001600160a01b031681565b34801561052d57600080fd5b50600b5461028b90610100900460ff1681565b34801561054c57600080fd5b506103dd61138c565b34801561056157600080fd5b50610370610570366004613759565b61140c565b610370610583366004613a13565b611417565b34801561059457600080fd5b506103706105a3366004613a48565b611e47565b3480156105b457600080fd5b506103706105c33660046137ab565b611eb4565b3480156105d457600080fd5b506102586105e3366004613ae8565b61204d565b3480156105f457600080fd5b50610370610603366004613a62565b612089565b34801561061457600080fd5b5061030b612101565b34801561062957600080fd5b5061028b61063836600461361e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561067257600080fd5b506103706106813660046136f6565b61218f565b34801561069257600080fd5b506103706106a13660046135fd565b61222a565b3480156106b257600080fd5b50601054610338906001600160a01b031681565b6103706106d4366004613ae8565b61230c565b60006001600160a01b03831661075c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a260000000000000000000000000000000000000000000000000000000014806107e557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061081957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6009602052600090815260409020805460018201805491929161084190613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461086d90613e53565b80156108ba5780601f1061088f576101008083540402835291602001916108ba565b820191906000526020600020905b81548152906001019060200180831161089d57829003601f168201915b50505050600283015460038401546004850154600586015460068701546007909701549596939560ff938416955091938382169361010083048116936201000090930416918a565b600081815260086020526040902080546060919061091f90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90613e53565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b50505050509050919050565b6001600160a01b0385163314806109c057506109c08533610638565b610a325760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610753565b610a3f858585858561249d565b5050505050565b6004546001600160a01b03163314610aa05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b8760078a81548110610ac257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016001019080519060200190610ae6929190613274565b508660078a81548110610b0957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600201819055508560078a81548110610b4057634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160030160006101000a81548160ff0219169083151502179055508460078a81548110610b8a57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600401819055508360078a81548110610bc157634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160006101000a81548160ff0219169083151502179055508260078a81548110610c0b57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160016101000a81548160ff0219169083151502179055508160078a81548110610c5557634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160050160026101000a81548160ff0219169083151502179055508060078a81548110610c9f57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160070181905550505050505050505050565b60608151835114610d385760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610753565b6000835167ffffffffffffffff811115610d6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b8451811015610e2d57610df2858281518110610dbd57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610de557634e487b7160e01b600052603260045260246000fd5b60200260200101516106d9565b828281518110610e1257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e2681613ebb565b9050610d91565b509392505050565b6004546001600160a01b03163314610e8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b8051610ea290600a906020840190613274565b5050565b6004546001600160a01b03163314610f005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b610f0a600061273a565b565b6004546001600160a01b03163314610f665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b60075460005b89518110156112215760006040518061014001604052808385610f8f9190613dc5565b81526020018c8481518110610fb457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018b8481518110610fe157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018a848151811061100e57634e487b7160e01b600052603260045260246000fd5b60200260200101511515815260200189848151811061103d57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200188848151811061106a57634e487b7160e01b600052603260045260246000fd5b60200260200101511515815260200187848151811061109957634e487b7160e01b600052603260045260246000fd5b6020026020010151151581526020018684815181106110c857634e487b7160e01b600052603260045260246000fd5b602002602001015115158152602001600181526020018584815181106110fe57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101519091526007805460018101825560009190915282517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600890920291820190815583830151805194955085949193611187937fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6890192910190613274565b5060408201516002820155606082015160038201805460ff19169115159190911790556080820151600482015560a082015160058201805460c085015160e086015161ffff1990921693151561ff0019169390931761010093151584021762ff000019166201000091151591909102179055820151600682015561012090910151600790910155508061121981613ebb565b915050610f6c565b50505050505050505050565b6007818154811061123d57600080fd5b6000918252602090912060089091020180546001820180549193509061084190613e53565b600061126d60065490565b905090565b60606000805b6006548110156112ba57600061128e85836106d9565b905080600114156112a7576112a4836001613dc5565b92505b50806112b281613ebb565b915050611278565b5060008167ffffffffffffffff8111156112e457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561130d578160200160208202803683370190505b5090506000805b60065481101561138257600061132a87836106d9565b9050806001141561136f578184848151811061135657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261136c836001613dc5565b92505b508061137a81613ebb565b915050611314565b5090949350505050565b600554604051632118854760e21b81523360048201526060916001600160a01b031690638462151c9060240160006040518083038186803b1580156113d057600080fd5b505afa1580156113e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261126d9190810190613976565b610ea23383836127a4565b600b5460ff166114695760405162461bcd60e51b815260206004820152601160248201527f53616c652069736e2774206163746976650000000000000000000000000000006044820152606401610753565b6000825111801561147b575080518251145b6114c75760405162461bcd60e51b815260206004820152601660248201527f506172616d7320646f206e6f74206d61746368207570000000000000000000006044820152606401610753565b6000805b83518110156119555760008482815181106114f657634e487b7160e01b600052603260045260246000fd5b602002602001015110158015611541575060075461151690600190613e10565b84828151811061153657634e487b7160e01b600052603260045260246000fd5b602002602001015111155b61158d5760405162461bcd60e51b815260206004820181905260248201527f536f6d652069647320676f74206e6f206d61746368696e672070726f647563746044820152606401610753565b600060078583815181106115b157634e487b7160e01b600052603260045260246000fd5b6020026020010151815481106115d757634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201604051806101400160405290816000820154815260200160018201805461160b90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461163790613e53565b80156116845780601f1061165957610100808354040283529160200191611684565b820191906000526020600020905b81548152906001019060200180831161166757829003601f168201915b505050918352505060028201546020820152600382015460ff90811615156040830152600483015460608301526005830154808216151560808401526101008082048316151560a085015262010000909104909116151560c0830152600683015460e0808401919091526007909301549101528101519091501561174a5760405162461bcd60e51b815260206004820152601d60248201527f43616e2774206d696e74206120736f6c64206f75742070726f647563740000006044820152606401610753565b8060a00151156117eb57610120810151611765906001613dc5565b84838151811061178557634e487b7160e01b600052603260045260246000fd5b602002602001015182610100015161179d9190613dc5565b11156117eb5760405162461bcd60e51b815260206004820152601f60248201527f43616e2774206d696e74206d6f7265207468616e206d617820737570706c79006044820152606401610753565b8060c00151156118f057600554604051632118854760e21b81523360048201526000916001600160a01b031690638462151c9060240160006040518083038186803b15801561183957600080fd5b505afa15801561184d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118759190810190613976565b905060008151116118ee5760405162461bcd60e51b815260206004820152603760248201527f536f6d652070726f647563747320726571756972652077616c6c657420746f2060448201527f686f6c6420612048756e6e79732031306b20546f6b656e0000000000000000006064820152608401610753565b505b60006118ff8260400151612899565b905084838151811061192157634e487b7160e01b600052603260045260246000fd5b6020026020010151816119349190613df1565b61193e9085613dc5565b93505050808061194d90613ebb565b9150506114cb565b508034146119a55760405162461bcd60e51b815260206004820152601860248201527f57726f6e6720616d6f756e74206f66204554482073656e7400000000000000006044820152606401610753565b60005b8351811015611e4157600060078583815181106119d557634e487b7160e01b600052603260045260246000fd5b6020026020010151815481106119fb57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016040518061014001604052908160008201548152602001600182018054611a2f90613e53565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b90613e53565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b505050918352505060028201546020820152600382015460ff90811615156040830152600483015460608301526005830154808216151560808401526101008082048316151560a085015262010000909104909116151560c0830152600683015460e083015260079092015490820152810151855191925090859084908110611b4157634e487b7160e01b600052603260045260246000fd5b60200260200101516007836000015181548110611b6e57634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160060154611b8a9190613dc5565b6007836000015181548110611baf57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600802016006018190555060005b858481518110611be757634e487b7160e01b600052603260045260246000fd5b6020026020010151811015611e2b576000611c0160065490565b9050611cb881611cb3600a8054611c1790613e53565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4390613e53565b8015611c905780601f10611c6557610100808354040283529160200191611c90565b820191906000526020600020905b815481529060010190602001808311611c7357829003601f168201915b50505050508760200151611cae8789611ca99190613dc5565b6128f4565b612a4a565b612a79565b6007888681518110611cda57634e487b7160e01b600052603260045260246000fd5b602002602001015181548110611d0057634e487b7160e01b600052603260045260246000fd5b906000526020600020906008020160096000838152602001908152602001600020600082015481600001556001820181600101908054611d3f90613e53565b611d4a9291906132f8565b5060028281015490820155600380830154908201805460ff928316151560ff199182161790915560048085015490840155600580850180549185018054928516151593831684178155815461010090819004861615150261ff001990941661ffff19909316929092179290921780825591546201000090819004909316151590920262ff000019909116179055600680830154818301556007928301549290910191909155611dfc9080546001019055565b611e183382600160405180602001604052806000815250612a9d565b5080611e2381613ebb565b915050611bc7565b5050508080611e3990613ebb565b9150506119a8565b50505050565b6004546001600160a01b03163314611ea15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b600b805460ff1916911515919091179055565b6004546001600160a01b03163314611f0e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b80600081518110611f2f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600181518110611f7e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600e60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600281518110611fcd57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060038151811061201c57634e487b7160e01b600052603260045260246000fd5b6020026020010151601060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60006007828154811061207057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201600601549050919050565b6004546001600160a01b031633146120e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b600b80549215156101000261ff001990931692909217909155600c55565b600a805461210e90613e53565b80601f016020809104026020016040519081016040528092919081815260200182805461213a90613e53565b80156121875780601f1061215c57610100808354040283529160200191612187565b820191906000526020600020905b81548152906001019060200180831161216a57829003601f168201915b505050505081565b6001600160a01b0385163314806121ab57506121ab8533610638565b61221d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610753565b610a3f8585858585612bdc565b6004546001600160a01b031633146122845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b6001600160a01b0381166123005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610753565b6123098161273a565b50565b6004546001600160a01b031633146123665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610753565b6000612373606483613ddd565b600d549091506001600160a01b03166108fc61239083603c613df1565b6040518115909202916000818181858888f193505050506123b057600080fd5b600e546001600160a01b03166108fc6123ca600384613ddd565b6123d584600d613df1565b6123df9190613dc5565b6040518115909202916000818181858888f193505050506123ff57600080fd5b600f546001600160a01b03166108fc612419600384613ddd565b61242484600d613df1565b61242e9190613dc5565b6040518115909202916000818181858888f1935050505061244e57600080fd5b6010546001600160a01b03166108fc612468600384613ddd565b61247384600d613df1565b61247d9190613dc5565b6040518115909202916000818181858888f19350505050610ea257600080fd5b81518351146125145760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610753565b6001600160a01b0384166125785760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610753565b33612587818787878787612d95565b60005b84518110156126cc5760008582815181106125b557634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106125e157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156126745760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610753565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906126b1908490613dc5565b92505081905550505050806126c590613ebb565b905061258a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161271c929190613d02565b60405180910390a4612732818787878787612f5b565b505050505050565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561282c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610753565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081816128a8606483613ddd565b90506000600c54826128ba9190613df1565b600b54909150610100900460ff16156128de576128d78186613e10565b92506128eb565b6128e88186613dc5565b92505b50909392505050565b60608161293457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561295e578061294881613ebb565b91506129579050600a83613ddd565b9150612938565b60008167ffffffffffffffff81111561298757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129b1576020820181803683370190505b5090505b8415612a42576129c6600183613e10565b91506129d3600a86613ed6565b6129de906030613dc5565b60f81b818381518110612a0157634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a3b600a86613ddd565b94506129b5565b949350505050565b6060838383604051602001612a6193929190613c0b565b60405160208183030381529060405290509392505050565b60008281526008602090815260409091208251612a9892840190613274565b505050565b6001600160a01b038416612b195760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610753565b336000612b2585613110565b90506000612b3285613110565b9050612b4383600089858589612d95565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612b73908490613dc5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612bd383600089898989613169565b50505050505050565b6001600160a01b038416612c405760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610753565b336000612c4c85613110565b90506000612c5985613110565b9050612c69838989858589612d95565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015612ced5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610753565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612d2a908490613dc5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d8a848a8a8a8a8a613169565b505050505050505050565b6001600160a01b038516612e385760005b8351811015612e3657828181518110612dcf57634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612dfb57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e209190613dc5565b90915550612e2f905081613ebb565b9050612da6565b505b6001600160a01b0384166127325760005b8351811015612bd3576000848281518110612e7457634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612ea057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006003600084815260200190815260200160002054905081811015612f385760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610753565b60009283526003602052604090922091039055612f5481613ebb565b9050612e49565b6001600160a01b0384163b156127325760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612f9f9089908990889088908890600401613c4e565b602060405180830381600087803b158015612fb957600080fd5b505af1925050508015612fe9575060408051601f3d908101601f19168201909252612fe691810190613a99565b60015b61309f57612ff5613f2c565b806308c379a0141561302f575061300a613f44565b806130155750613031565b8060405162461bcd60e51b81526004016107539190613d30565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610753565b6001600160e01b0319811663bc197c8160e01b14612bd35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610753565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061315857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156127325760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906131ad9089908990889088908890600401613cac565b602060405180830381600087803b1580156131c757600080fd5b505af19250505080156131f7575060408051601f3d908101601f191682019092526131f491810190613a99565b60015b61320357612ff5613f2c565b6001600160e01b0319811663f23a6e6160e01b14612bd35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610753565b82805461328090613e53565b90600052602060002090601f0160209004810192826132a257600085556132e8565b82601f106132bb57805160ff19168380011785556132e8565b828001600101855582156132e8579182015b828111156132e85782518255916020019190600101906132cd565b506132f4929150613373565b5090565b82805461330490613e53565b90600052602060002090601f01602090048101928261332657600085556132e8565b82601f1061333757805485556132e8565b828001600101855582156132e857600052602060002091601f016020900482015b828111156132e8578254825591600101919060010190613358565b5b808211156132f45760008155600101613374565b80356001600160a01b038116811461339f57600080fd5b919050565b600082601f8301126133b4578081fd5b813560206133c182613da1565b6040516133ce8282613e8e565b8381528281019150858301600585901b870184018810156133ed578586fd5b855b858110156134125761340082613388565b845292840192908401906001016133ef565b5090979650505050505050565b600082601f83011261342f578081fd5b8135602061343c82613da1565b6040516134498282613e8e565b8381528281019150858301600585901b87018401881015613468578586fd5b855b858110156134125761347b8261357e565b8452928401929084019060010161346a565b600082601f83011261349d578081fd5b813560206134aa82613da1565b6040516134b78282613e8e565b8381528281019150858301600585901b870184018810156134d6578586fd5b855b8581101561341257813567ffffffffffffffff8111156134f6578788fd5b6135048a87838c010161358e565b85525092840192908401906001016134d8565b600082601f830112613527578081fd5b8135602061353482613da1565b6040516135418282613e8e565b8381528281019150858301600585901b87018401881015613560578586fd5b855b8581101561341257813584529284019290840190600101613562565b8035801515811461339f57600080fd5b600082601f83011261359e578081fd5b813567ffffffffffffffff8111156135b8576135b8613f16565b6040516135cf601f8301601f191660200182613e8e565b8181528460208386010111156135e3578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561360e578081fd5b61361782613388565b9392505050565b60008060408385031215613630578081fd5b61363983613388565b915061364760208401613388565b90509250929050565b600080600080600060a08688031215613667578081fd5b61367086613388565b945061367e60208701613388565b9350604086013567ffffffffffffffff8082111561369a578283fd5b6136a689838a01613517565b945060608801359150808211156136bb578283fd5b6136c789838a01613517565b935060808801359150808211156136dc578283fd5b506136e98882890161358e565b9150509295509295909350565b600080600080600060a0868803121561370d578283fd5b61371686613388565b945061372460208701613388565b93506040860135925060608601359150608086013567ffffffffffffffff81111561374d578182fd5b6136e98882890161358e565b6000806040838503121561376b578182fd5b61377483613388565b91506136476020840161357e565b60008060408385031215613794578182fd5b61379d83613388565b946020939093013593505050565b6000602082840312156137bc578081fd5b813567ffffffffffffffff8111156137d2578182fd5b612a42848285016133a4565b600080604083850312156137f0578182fd5b823567ffffffffffffffff80821115613807578384fd5b613813868387016133a4565b93506020850135915080821115613828578283fd5b5061383585828601613517565b9150509250929050565b600080600080600080600080610100898b03121561385b578586fd5b883567ffffffffffffffff80821115613872578788fd5b61387e8c838d0161348d565b995060208b0135915080821115613893578788fd5b61389f8c838d01613517565b985060408b01359150808211156138b4578788fd5b6138c08c838d0161341f565b975060608b01359150808211156138d5578485fd5b6138e18c838d01613517565b965060808b01359150808211156138f6578485fd5b6139028c838d0161341f565b955060a08b0135915080821115613917578485fd5b6139238c838d0161341f565b945060c08b0135915080821115613938578384fd5b6139448c838d0161341f565b935060e08b0135915080821115613959578283fd5b506139668b828c01613517565b9150509295985092959890939650565b60006020808385031215613988578182fd5b825167ffffffffffffffff81111561399e578283fd5b8301601f810185136139ae578283fd5b80516139b981613da1565b6040516139c68282613e8e565b8281528481019150838501600584901b850186018910156139e5578687fd5b8694505b83851015613a075780518352600194909401939185019185016139e9565b50979650505050505050565b60008060408385031215613a25578182fd5b823567ffffffffffffffff80821115613a3c578384fd5b61381386838701613517565b600060208284031215613a59578081fd5b6136178261357e565b60008060408385031215613a74578182fd5b61379d8361357e565b600060208284031215613a8e578081fd5b813561361781613fce565b600060208284031215613aaa578081fd5b815161361781613fce565b600060208284031215613ac6578081fd5b813567ffffffffffffffff811115613adc578182fd5b612a428482850161358e565b600060208284031215613af9578081fd5b5035919050565b60008060008060008060008060006101208a8c031215613b1e578283fd5b8935985060208a013567ffffffffffffffff811115613b3b578384fd5b613b478c828d0161358e565b98505060408a01359650613b5d60608b0161357e565b955060808a01359450613b7260a08b0161357e565b9350613b8060c08b0161357e565b9250613b8e60e08b0161357e565b91506101008a013590509295985092959850929598565b6000815180845260208085019450808401835b83811015613bd457815187529582019590820190600101613bb8565b509495945050505050565b60008151808452613bf7816020860160208601613e27565b601f01601f19169290920160200192915050565b60008451613c1d818460208901613e27565b845190830190613c31818360208901613e27565b8451910190613c44818360208801613e27565b0195945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152613c7a60a0830186613ba5565b8281036060840152613c8c8186613ba5565b90508281036080840152613ca08185613bdf565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613ce460a0830184613bdf565b979650505050505050565b6020815260006136176020830184613ba5565b604081526000613d156040830185613ba5565b8281036020840152613d278185613ba5565b95945050505050565b6020815260006136176020830184613bdf565b60006101408c8352806020840152613d5d8184018d613bdf565b604084019b909b5250509615156060880152608087019590955292151560a086015290151560c0850152151560e08401526101008301526101209091015292915050565b600067ffffffffffffffff821115613dbb57613dbb613f16565b5060051b60200190565b60008219821115613dd857613dd8613eea565b500190565b600082613dec57613dec613f00565b500490565b6000816000190483118215151615613e0b57613e0b613eea565b500290565b600082821015613e2257613e22613eea565b500390565b60005b83811015613e42578181015183820152602001613e2a565b83811115611e415750506000910152565b600181811c90821680613e6757607f821691505b60208210811415613e8857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff81118282101715613eb457613eb4613f16565b6040525050565b6000600019821415613ecf57613ecf613eea565b5060010190565b600082613ee557613ee5613f00565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613f4157600481823e5160e01c5b90565b600060443d1015613f525790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613f8257505050505090565b8285019150815181811115613f9a5750505050505090565b843d8701016020828501011115613fb45750505050505090565b613fc360208286010187613e8e565b509095945050505050565b6001600160e01b03198116811461230957600080fdfea2646970667358221220b395d4b0b13386ec0e8fd355432a0a29d3ea97fb58da2fbef5e768445628c6f364736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000005dfeb75abae11b138a16583e03a2be17740eaded000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f68756e6e79732d6d657263682e73332e616d617a6f6e6177732e636f6d2f0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : newBaseURI (string): https://hunnys-merch.s3.amazonaws.com/
Arg [1] : hunAddress (address): 0x5DFEB75aBae11b138A16583E03A2bE17740EADeD

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000005dfeb75abae11b138a16583e03a2be17740eaded
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [3] : 68747470733a2f2f68756e6e79732d6d657263682e73332e616d617a6f6e6177
Arg [4] : 732e636f6d2f0000000000000000000000000000000000000000000000000000


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

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