ETH Price: $3,333.49 (-3.80%)
Gas: 3 Gwei

Token

Sunflowers4Ukraine (S4U)
 

Overview

Max Total Supply

18 S4U

Holders

18

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
jtt.eth
0x36c488771b5ee5485f83d8b9e51ebf26cc587f28
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:
SaveUkraineFactory

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : SaveUkraineFactory.sol
// SPDX-License-Identifier: MIT

/*

    888b. 8888    db    .d88b 8888
    8  .8 8www   dPYb   8P    8www
    8wwP' 8     dPwwYb  8b    8
    8     8888 dP    Yb `Y88P 8888

    Yb        dP 888 8    8
    Yb  db  dP   8  8    8
    YbdPYbdP    8  8    8
    YP  YP    888 8888 8888

    888b. 888b. 8888 Yb    dP    db    888 8
    8  .8 8  .8 8www  Yb  dP    dPYb    8  8
    8wwP' 8wwK' 8      YbdP    dPwwYb   8  8
    8     8  Yb 8888    YP    dP    Yb 888 8888

                                    .d88b  8
                                    8P www 8
                                    8b  d8 8
                                    `Y88P' 8888


Visit https://www.sunflowers4ukraine.org/ for project details.
Contract Developed by https://hcode.tech/
*/

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./AbstractMintTokenFactory.sol";

contract SaveUkraineFactory is  AbstractMintTokenFactory  {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    uint256 public fundsRaised;

    Counters.Counter private mtCounter;
  
    mapping(uint256 => MintToken) public mintTokens;
    
    event Claimed(uint index, address indexed account, uint amount);
    event ClaimedMultiple(uint[] index, address indexed account, uint[] amount);

    struct MintToken {
        uint256 mintPrice;
        string ipfsMetadataHash;
        mapping(address => uint256) claimedMTs;
    }

    string internal _contractURI;
   
function addMintToken(
        uint256 _mintPrice,
        string memory _ipfsMetadataHash
        
    ) public onlyOwner {
        
        uint256 _tokenIndex = mtCounter.current();
        MintToken storage mt = mintTokens[_tokenIndex];
        _update_mt(mt, _mintPrice, _ipfsMetadataHash);
        mtCounter.increment();

    }


    constructor() ERC1155("https://gateway.pinata.cloud/ipfs/") {
        name_ = "Sunflowers4Ukraine";
        symbol_ = "S4U";
       addMintToken(100000000000000000, "QmVq9Kq6tnkRztExvGo51NWeSYM5R831ASTpV2cRYpaK3U");
       addMintToken(200000000000000000, "QmUvwp6t1rJQBDCz2hJB24TYoZBKrottxht66gznRuLR2j");
       addMintToken(500000000000000000, "QmaecMjV2L4U9aCJ5u72sXnBSKaZ4tTVTLM5ociqYZZCtD");
       addMintToken(1000000000000000000, "QmWfx7DCzUq762kg4VL88d3dLQGsu7RZ18LCgt1RUAwSa3");
       addMintToken(4000000000000000000, "QmYQDZPhfwihYXXjPFgv6aAdmXSTxtkY3KVT2NT3b5Q5Pb");
       addMintToken(40000000000000000000, "QmZZfV9BCxKsMEW4oiB3tdyLF9Xz4KNPkUbwfSehSh1UPa"); 
       addMintToken(400000000000000000000, "QmUQ6QfQFCQaPHBL47pJMazXPBR3s2iaSkuksmCmukUAkf");
    }

    function _update_mt( 
        MintToken storage mt,
        uint256 _mintPrice,
        string memory _ipfsMetadataHash
    ) internal {
        require(_mintPrice > 0, "addMintToken: _mintPrice must be non zero");
        mt.mintPrice = _mintPrice;  
        mt.ipfsMetadataHash = _ipfsMetadataHash;
    }

    

    function editMintToken(
        uint256 _tokenIndex,
        uint256 _mintPrice, 
       
        string memory _ipfsMetadataHash
        
    ) external onlyOwner {
        _update_mt(mintTokens[_tokenIndex], _mintPrice,_ipfsMetadataHash);
    }   

     

    function editTokenIPFSMetaDataHash(
        string memory _ipfsMetadataHash, 
        uint256 _tokenIndex
    ) external  onlyOwner{
        mintTokens[_tokenIndex].ipfsMetadataHash = _ipfsMetadataHash;
    } 


    function editTokenMintPrice(
        uint256 _mintPrice, 
        uint256 _tokenIndex
    ) external onlyOwner {
        mintTokens[_tokenIndex].mintPrice = _mintPrice;
    } 

   
    function claim(
        uint256 numTokens,
        uint256 tokenIndex
    ) external payable {
        // verify call is valid
        require(isValidClaim(numTokens,tokenIndex));
        uint256 tokenCost = numTokens.mul(mintTokens[tokenIndex].mintPrice);
        require(!paused(), "Claim: claiming is paused");
        
        mintTokens[tokenIndex].claimedMTs[msg.sender] = mintTokens[tokenIndex].claimedMTs[msg.sender].add(numTokens);
        fundsRaised = fundsRaised.add(tokenCost);
         emit Claimed(tokenIndex, msg.sender, numTokens);
        _mint(msg.sender, tokenIndex, numTokens, "");

       
    }

    function claimMultiple(
        uint256[] calldata numTokens,
        uint256[] calldata tokenIndexs
    ) external payable {
        // duplicate merkle proof indexes are not permitted
        require(arrayIsUnique(tokenIndexs), "Claim: claim cannot contain duplicate indexes");

         // verify contract is not paused
        require(!paused(), "Claim: claiming is paused");

        //validate all tokens being claimed and aggregate a total cost due
       
        for (uint i=0; i< tokenIndexs.length; i++) {
            require(isValidClaim(numTokens[i],tokenIndexs[i]), "One or more claims are invalid");
        }

        for (uint i=0; i< tokenIndexs.length; i++) {
            mintTokens[tokenIndexs[i]].claimedMTs[msg.sender] = mintTokens[tokenIndexs[i]].claimedMTs[msg.sender].add(numTokens[i]);
        }

        emit ClaimedMultiple(tokenIndexs, msg.sender, numTokens);
        _mintBatch(msg.sender, tokenIndexs, numTokens, "");

        

    
    }

    function getPrices() public view returns(uint256[] memory) {
        uint256 len = mtCounter.current();
        uint256[] memory prices = new uint256[](len);

        for (uint i=0; i < len; i++) {
            prices[i] = mintTokens[i].mintPrice;
        }

        return prices;
    
    }

    function mint(
        address to,
        uint256 numTokens,
        uint256 tokenIndex) public onlyOwner
    {   
        _mint(to, tokenIndex, numTokens, "");
    }

    function mintBatch(
        address to,
        uint256[] calldata numTokens,
        uint256[] calldata tokenIndexs) public onlyOwner
    {
        _mintBatch(to, tokenIndexs, numTokens, "");
    }

    function isValidClaim( uint256 numTokens,
        uint256 tokenIndex) internal view returns (bool) {
         // verify contract is not paused
        require(!paused(), "Claim: claiming is paused");
        require(tokenIndex < mtCounter.current(),"Invalid tokenIndex");
        // Verify minting price
        require(msg.value >= numTokens.mul(mintTokens[tokenIndex].mintPrice), "Claim: Ether value incorrect");
        
        
        return true;         

    }


   function isSaleOpen() public view returns (bool) {
            return !paused();
   }

    function getTokenSupply(uint256 tokenIndex) public view returns (uint256) {
        return totalSupply(tokenIndex);
    }
    
    function arrayIsUnique(uint256[] memory items) internal pure returns (bool) {
        // iterate over array to determine whether or not there are any duplicate items in it
        // we do this instead of using a set because it saves gas
        for (uint i = 0; i < items.length; i++) {
            for (uint k = i + 1; k < items.length; k++) {
                if (items[i] == items[k]) {
                    return false;
                }
            }
        }

        return true;
    }

    
    function withdrawEther(address payable _to, uint256 _amount) public onlyOwner
    {
        require(_to != 0x0000000000000000000000000000000000000000 , "cant send money to null address");
        _to.transfer(_amount);
    }

    function getClaimedMTs(uint256 _tokenIndex, address userAdress) public view returns (uint256) {
        return mintTokens[_tokenIndex].claimedMTs[userAdress];
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(_id < mtCounter.current(), "URI: nonexistent token");
        return string(abi.encodePacked(super.uri(_id), mintTokens[_id].ipfsMetadataHash));
    } 
}

File 2 of 18 : AbstractMintTokenFactory.sol
// SPDX-License-Identifier: MIT

/*

    888b. 8888    db    .d88b 8888
    8  .8 8www   dPYb   8P    8www
    8wwP' 8     dPwwYb  8b    8
    8     8888 dP    Yb `Y88P 8888

    Yb        dP 888 8    8
    Yb  db  dP   8  8    8
    YbdPYbdP    8  8    8
    YP  YP    888 8888 8888

    888b. 888b. 8888 Yb    dP    db    888 8
    8  .8 8  .8 8www  Yb  dP    dPYb    8  8
    8wwP' 8wwK' 8      YbdP    dPwwYb   8  8
    8     8  Yb 8888    YP    dP    Yb 888 8888

                                    .d88b  8
                                    8P www 8
                                    8b  d8 8
                                    `Y88P' 8888


Visit https://www.sunflowers4ukraine.org/ for project details.
Contract Developed by https://hcode.tech/
*/

pragma solidity ^0.8.4;

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



abstract contract AbstractMintTokenFactory is  ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string internal name_;
    string internal symbol_;
    
    function pause() external onlyOwner {
        _pause();
    }

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

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

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

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

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

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

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

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

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

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

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

}

File 3 of 18 : 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 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 18 : 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 18 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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();

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

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

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

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

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

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

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

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `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();

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

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

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

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

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

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

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

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

    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 7 of 18 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 8 of 18 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

File 9 of 18 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

File 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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);
}

File 18 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"index","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"ClaimedMultiple","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"}],"name":"addMintToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"numTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIndexs","type":"uint256[]"}],"name":"claimMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"}],"name":"editMintToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"editTokenIPFSMetaDataHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"editTokenMintPrice","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":"fundsRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"address","name":"userAdress","type":"address"}],"name":"getClaimedMTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrices","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"getTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"numTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIndexs","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintTokens","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"string","name":"ipfsMetadataHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405180606001604052806022815260200162003aa6602291396200003781620001f9565b506003805460ff191690556200004d3362000212565b6040805180820190915260128082527153756e666c6f7765727334556b7261696e6560701b60209092019182526200008891600691620003a3565b506040805180820190915260038082526253345560e81b6020909201918252620000b591600791620003a3565b50620000e367016345785d8a00006040518060600160405280602e815260200162003a1c602e913962000264565b620001106702c68af0bb1400006040518060600160405280602e815260200162003a4a602e913962000264565b6200013d6706f05b59d3b200006040518060600160405280602e815260200162003a78602e913962000264565b6200016a670de0b6b3a76400006040518060600160405280602e815260200162003ac8602e913962000264565b62000197673782dace9d9000006040518060600160405280602e815260200162003b52602e913962000264565b620001c568022b1c8c1227a000006040518060600160405280602e815260200162003b24602e913962000264565b620001f36815af1d78b58c4000006040518060600160405280602e815260200162003af6602e913962000264565b62000486565b80516200020e906002906020840190620003a3565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b03163314620002c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6000620002dd60096200031860201b6200154e1760201c565b6000818152600a60205260409020909150620002fb8185856200031c565b6200031260096200039a60201b620015521760201c565b50505050565b5490565b60008211620003805760405162461bcd60e51b815260206004820152602960248201527f6164644d696e74546f6b656e3a205f6d696e745072696365206d757374206265604482015268206e6f6e207a65726f60b81b6064820152608401620002bb565b8183558051620003129060018501906020840190620003a3565b80546001019055565b828054620003b19062000449565b90600052602060002090601f016020900481019282620003d5576000855562000420565b82601f10620003f057805160ff191683800117855562000420565b8280016001018555821562000420579182015b828111156200042057825182559160200191906001019062000403565b506200042e92915062000432565b5090565b5b808211156200042e576000815560010162000433565b600181811c908216806200045e57607f821691505b602082108114156200048057634e487b7160e01b600052602260045260246000fd5b50919050565b61358680620004966000396000f3fe6080604052600436106102195760003560e01c80636b20c45411610123578063a22cb465116100ab578063e6d1aea01161006f578063e6d1aea01461063d578063e985e9c51461065d578063f242432a146106a6578063f2fde38b146106c6578063f5298aca146106e657600080fd5b8063a22cb465146105a8578063bd85b039146105c8578063bd9a548b146105f5578063c34902631461060a578063d81d0a151461061d57600080fd5b80638a8f72b9116100f25780638a8f72b9146104d65780638b0bf0681461051d5780638da5cb5b1461053d57806395d89b411461056557806397304ced1461057a57600080fd5b80636b20c4541461046c578063715018a61461048c57806375efad6a146104a15780638456cb59146104c157600080fd5b80631a081330116101a65780634f558e79116101755780634f558e79146103dc578063522f68151461040b57806357db6e1d1461042b5780635c975abb1461043e5780636681b9fd1461045657600080fd5b80631a081330146103655780632eb2c2d61461037a5780633f4ba83a1461039a5780634e1273f4146103af57600080fd5b806306fdde03116101ed57806306fdde03146102c35780630e89341c146102e557806313af403514610305578063156e29f61461032557806319b88edb1461034557600080fd5b8062fdd58e1461021e57806301ffc9a714610251578063023133071461028157806302fe5305146102a3575b600080fd5b34801561022a57600080fd5b5061023e61023936600461284d565b610706565b6040519081526020015b60405180910390f35b34801561025d57600080fd5b5061027161026c366004612c63565b61079d565b6040519015158152602001610248565b34801561028d57600080fd5b506102a161029c366004612db9565b6107ae565b005b3480156102af57600080fd5b506102a16102be366004612c9d565b6107f6565b3480156102cf57600080fd5b506102d861082c565b6040516102489190613057565b3480156102f157600080fd5b506102d8610300366004612d1d565b6108be565b34801561031157600080fd5b506102a1610320366004612830565b610952565b34801561033157600080fd5b506102a1610340366004612af1565b610985565b34801561035157600080fd5b5061023e610360366004612d1d565b6109ca565b34801561037157600080fd5b506102716109de565b34801561038657600080fd5b506102a16103953660046128b2565b6109f2565b3480156103a657600080fd5b506102a1610a89565b3480156103bb57600080fd5b506103cf6103ca366004612b26565b610abd565b6040516102489190613016565b3480156103e857600080fd5b506102716103f7366004612d1d565b600090815260046020526040902054151590565b34801561041757600080fd5b506102a161042636600461284d565b610be6565b6102a1610439366004612bf8565b610c9c565b34801561044a57600080fd5b5060035460ff16610271565b34801561046257600080fd5b5061023e60085481565b34801561047857600080fd5b506102a1610487366004612a49565b610f8a565b34801561049857600080fd5b506102a1610fcd565b3480156104ad57600080fd5b506102a16104bc366004612d97565b611001565b3480156104cd57600080fd5b506102a161103c565b3480156104e257600080fd5b5061023e6104f1366004612d36565b6000828152600a602090815260408083206001600160a01b038516845260020190915290205492915050565b34801561052957600080fd5b506102a1610538366004612d5b565b61106e565b34801561054957600080fd5b506005546040516001600160a01b039091168152602001610248565b34801561057157600080fd5b506102d86110cd565b34801561058657600080fd5b5061059a610595366004612d1d565b6110dc565b604051610248929190613306565b3480156105b457600080fd5b506102a16105c3366004612abe565b611181565b3480156105d457600080fd5b5061023e6105e3366004612d1d565b60009081526004602052604090205490565b34801561060157600080fd5b506103cf611190565b6102a1610618366004612d97565b611237565b34801561062957600080fd5b506102a16106383660046129c7565b611339565b34801561064957600080fd5b506102a1610658366004612cd9565b6113df565b34801561066957600080fd5b50610271610678366004612879565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106b257600080fd5b506102a16106c136600461295f565b61142e565b3480156106d257600080fd5b506102a16106e1366004612830565b611473565b3480156106f257600080fd5b506102a1610701366004612af1565b61150b565b60006001600160a01b0383166107775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006107a88261155b565b92915050565b6005546001600160a01b031633146107d85760405162461bcd60e51b815260040161076e90613248565b6000838152600a602052604090206107f19083836115ab565b505050565b6005546001600160a01b031633146108205760405162461bcd60e51b815260040161076e90613248565b61082981611625565b50565b60606006805461083b906133bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610867906133bc565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905090565b60606108c960095490565b82106109105760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161076e565b61091982611638565b6000838152600a6020908152604091829020915161093c93926001019101612e9b565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461097c5760405162461bcd60e51b815260040161076e90613248565b61082981611473565b6005546001600160a01b031633146109af5760405162461bcd60e51b815260040161076e90613248565b6107f1838284604051806020016040528060008152506116cc565b6000818152600460205260408120546107a8565b60006109ec60035460ff1690565b15905090565b6001600160a01b038516331480610a0e5750610a0e8533610678565b610a755760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161076e565b610a8285858585856116d8565b5050505050565b6005546001600160a01b03163314610ab35760405162461bcd60e51b815260040161076e90613248565b610abb611882565b565b60608151835114610b225760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161076e565b600083516001600160401b03811115610b3d57610b3d61346a565b604051908082528060200260200182016040528015610b66578160200160208202803683370190505b50905060005b8451811015610bde57610bb1858281518110610b8a57610b8a613454565b6020026020010151858381518110610ba457610ba4613454565b6020026020010151610706565b828281518110610bc357610bc3613454565b6020908102919091010152610bd781613423565b9050610b6c565b509392505050565b6005546001600160a01b03163314610c105760405162461bcd60e51b815260040161076e90613248565b6001600160a01b038216610c665760405162461bcd60e51b815260206004820152601f60248201527f63616e742073656e64206d6f6e657920746f206e756c6c206164647265737300604482015260640161076e565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156107f1573d6000803e3d6000fd5b610cd882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061191592505050565b610d3a5760405162461bcd60e51b815260206004820152602d60248201527f436c61696d3a20636c61696d2063616e6e6f7420636f6e7461696e206475706c60448201526c696361746520696e646578657360981b606482015260840161076e565b60035460ff1615610d5d5760405162461bcd60e51b815260040161076e9061313f565b60005b81811015610e0057610da2858583818110610d7d57610d7d613454565b90506020020135848484818110610d9657610d96613454565b905060200201356119ad565b610dee5760405162461bcd60e51b815260206004820152601e60248201527f4f6e65206f72206d6f726520636c61696d732061726520696e76616c69640000604482015260640161076e565b80610df881613423565b915050610d60565b5060005b81811015610ec057610e6e858583818110610e2157610e21613454565b90506020020135600a6000868686818110610e3e57610e3e613454565b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490611a87565b600a6000858585818110610e8457610e84613454565b60209081029290920135835250818101929092526040908101600090812033825260020190925290205580610eb881613423565b915050610e04565b50336001600160a01b03167f1f36743b8f77937c5a06ebeca4819ea0c795222f7ecf5a42583ff5d0063adabf83838787604051610f009493929190612fef565b60405180910390a2610f843383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092018290525060408051602081019091529081529250611a9a915050565b50505050565b6001600160a01b038316331480610fa65750610fa68333610678565b610fc25760405162461bcd60e51b815260040161076e906130f6565b6107f1838383611aa6565b6005546001600160a01b03163314610ff75760405162461bcd60e51b815260040161076e90613248565b610abb6000611ab1565b6005546001600160a01b0316331461102b5760405162461bcd60e51b815260040161076e90613248565b6000908152600a6020526040902055565b6005546001600160a01b031633146110665760405162461bcd60e51b815260040161076e90613248565b610abb611b03565b6005546001600160a01b031633146110985760405162461bcd60e51b815260040161076e90613248565b60006110a360095490565b6000818152600a602052604090209091506110bf8185856115ab565b610f84600980546001019055565b60606007805461083b906133bc565b600a60205260009081526040902080546001820180549192916110fe906133bc565b80601f016020809104026020016040519081016040528092919081815260200182805461112a906133bc565b80156111775780601f1061114c57610100808354040283529160200191611177565b820191906000526020600020905b81548152906001019060200180831161115a57829003601f168201915b5050505050905082565b61118c338383611b7e565b5050565b6060600061119d60095490565b90506000816001600160401b038111156111b9576111b961346a565b6040519080825280602002602001820160405280156111e2578160200160208202803683370190505b50905060005b82811015611230576000818152600a6020526040902054825183908390811061121357611213613454565b60209081029190910101528061122881613423565b9150506111e8565b5092915050565b61124182826119ad565b61124a57600080fd5b6000818152600a6020526040812054611264908490611c5f565b905061127260035460ff1690565b1561128f5760405162461bcd60e51b815260040161076e9061313f565b6000828152600a602090815260408083203384526002019091529020546112b69084611a87565b6000838152600a602090815260408083203384526002019091529020556008546112e09082611a87565b600855604080518381526020810185905233917f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026910160405180910390a26107f1338385604051806020016040528060008152506116cc565b6005546001600160a01b031633146113635760405162461bcd60e51b815260040161076e90613248565b610a828583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092018290525060408051602081019091529081529250611a9a915050565b6005546001600160a01b031633146114095760405162461bcd60e51b815260040161076e90613248565b6000818152600a6020908152604090912083516107f192600190920191850190612662565b6001600160a01b03851633148061144a575061144a8533610678565b6114665760405162461bcd60e51b815260040161076e906130f6565b610a828585858585611c6b565b6005546001600160a01b0316331461149d5760405162461bcd60e51b815260040161076e90613248565b6001600160a01b0381166115025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161076e565b61082981611ab1565b6001600160a01b03831633148061152757506115278333610678565b6115435760405162461bcd60e51b815260040161076e906130f6565b6107f1838383611d97565b5490565b80546001019055565b60006001600160e01b03198216636cdb3d1360e11b148061158c57506001600160e01b031982166303a24d0760e21b145b806107a857506301ffc9a760e01b6001600160e01b03198316146107a8565b6000821161160d5760405162461bcd60e51b815260206004820152602960248201527f6164644d696e74546f6b656e3a205f6d696e745072696365206d757374206265604482015268206e6f6e207a65726f60b81b606482015260840161076e565b8183558051610f849060018501906020840190612662565b805161118c906002906020840190612662565b606060028054611647906133bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611673906133bc565b80156116c05780601f10611695576101008083540402835291602001916116c0565b820191906000526020600020905b8154815290600101906020018083116116a357829003601f168201915b50505050509050919050565b610f8484848484611da2565b81518351146116f95760405162461bcd60e51b815260040161076e9061327d565b6001600160a01b03841661171f5760405162461bcd60e51b815260040161076e90613176565b3361172e818787878787611e69565b60005b845181101561181457600085828151811061174e5761174e613454565b60200260200101519050600085838151811061176c5761176c613454565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156117bc5760405162461bcd60e51b815260040161076e906131fe565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906117f9908490613342565b925050819055505050508061180d90613423565b9050611731565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611864929190613029565b60405180910390a461187a818787878787611e77565b505050505050565b60035460ff166118cb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161076e565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000805b82518110156119a457600061192f826001613342565b90505b83518110156119915783818151811061194d5761194d613454565b602002602001015184838151811061196757611967613454565b6020026020010151141561197f575060009392505050565b8061198981613423565b915050611932565b508061199c81613423565b915050611919565b50600192915050565b60006119bb60035460ff1690565b156119d85760405162461bcd60e51b815260040161076e9061313f565b6009548210611a1e5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e8ded6cadc92dcc8caf60731b604482015260640161076e565b6000828152600a6020526040902054611a38908490611c5f565b3410156119a45760405162461bcd60e51b815260206004820152601c60248201527f436c61696d3a2045746865722076616c756520696e636f727265637400000000604482015260640161076e565b6000611a938284613342565b9392505050565b610f8484848484611fe2565b6107f183838361213c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff1615611b495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161076e565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118f83390565b816001600160a01b0316836001600160a01b03161415611bf25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161076e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000611a93828461335a565b6001600160a01b038416611c915760405162461bcd60e51b815260040161076e90613176565b33611cb0818787611ca1886122ca565b611caa886122ca565b87611e69565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611cf15760405162461bcd60e51b815260040161076e906131fe565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611d2e908490613342565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611d8e828888888888612315565b50505050505050565b6107f18383836123df565b6001600160a01b038416611dc85760405162461bcd60e51b815260040161076e906132c5565b33611dd981600087611ca1886122ca565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611e09908490613342565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a8281600087878787612315565b61187a8686868686866124e0565b6001600160a01b0384163b1561187a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ebb9089908990889088908890600401612f4c565b602060405180830381600087803b158015611ed557600080fd5b505af1925050508015611f05575060408051601f3d908101601f19168201909252611f0291810190612c80565b60015b611fb257611f11613480565b806308c379a01415611f4b5750611f2661349c565b80611f315750611f4d565b8060405162461bcd60e51b815260040161076e9190613057565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161076e565b6001600160e01b0319811663bc197c8160e01b14611d8e5760405162461bcd60e51b815260040161076e9061306a565b6001600160a01b0384166120085760405162461bcd60e51b815260040161076e906132c5565b81518351146120295760405162461bcd60e51b815260040161076e9061327d565b3361203981600087878787611e69565b60005b84518110156120d45783818151811061205757612057613454565b602002602001015160008087848151811061207457612074613454565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546120bc9190613342565b909155508190506120cc81613423565b91505061203c565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612125929190613029565b60405180910390a4610a8281600087878787611e77565b6001600160a01b0383166121625760405162461bcd60e51b815260040161076e906131bb565b80518251146121835760405162461bcd60e51b815260040161076e9061327d565b60003390506121a681856000868660405180602001604052806000815250611e69565b60005b835181101561226b5760008482815181106121c6576121c6613454565b6020026020010151905060008483815181106121e4576121e4613454565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156122345760405162461bcd60e51b815260040161076e906130b2565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061226381613423565b9150506121a9565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122bc929190613029565b60405180910390a450505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061230457612304613454565b602090810291909101015292915050565b6001600160a01b0384163b1561187a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123599089908990889088908890600401612faa565b602060405180830381600087803b15801561237357600080fd5b505af19250505080156123a3575060408051601f3d908101601f191682019092526123a091810190612c80565b60015b6123af57611f11613480565b6001600160e01b0319811663f23a6e6160e01b14611d8e5760405162461bcd60e51b815260040161076e9061306a565b6001600160a01b0383166124055760405162461bcd60e51b815260040161076e906131bb565b3361243481856000612416876122ca565b61241f876122ca565b60405180602001604052806000815250611e69565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156124755760405162461bcd60e51b815260040161076e906130b2565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6124ee8686868686866125fa565b6001600160a01b0385166125755760005b83518110156125735782818151811061251a5761251a613454565b60200260200101516004600086848151811061253857612538613454565b60200260200101518152602001908152602001600020600082825461255d9190613342565b9091555061256c905081613423565b90506124ff565b505b6001600160a01b03841661187a5760005b8351811015611d8e578281815181106125a1576125a1613454565b6020026020010151600460008684815181106125bf576125bf613454565b6020026020010151815260200190815260200160002060008282546125e49190613379565b909155506125f3905081613423565b9050612586565b60035460ff161561187a5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161076e565b82805461266e906133bc565b90600052602060002090601f01602090048101928261269057600085556126d6565b82601f106126a957805160ff19168380011785556126d6565b828001600101855582156126d6579182015b828111156126d65782518255916020019190600101906126bb565b506126e29291506126e6565b5090565b5b808211156126e257600081556001016126e7565b60008083601f84011261270d57600080fd5b5081356001600160401b0381111561272457600080fd5b6020830191508360208260051b850101111561273f57600080fd5b9250929050565b600082601f83011261275757600080fd5b813560206127648261331f565b60405161277182826133f7565b8381528281019150858301600585901b8701840188101561279157600080fd5b60005b858110156127b057813584529284019290840190600101612794565b5090979650505050505050565b600082601f8301126127ce57600080fd5b81356001600160401b038111156127e7576127e761346a565b6040516127fe601f8301601f1916602001826133f7565b81815284602083860101111561281357600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561284257600080fd5b8135611a9381613525565b6000806040838503121561286057600080fd5b823561286b81613525565b946020939093013593505050565b6000806040838503121561288c57600080fd5b823561289781613525565b915060208301356128a781613525565b809150509250929050565b600080600080600060a086880312156128ca57600080fd5b85356128d581613525565b945060208601356128e581613525565b935060408601356001600160401b038082111561290157600080fd5b61290d89838a01612746565b9450606088013591508082111561292357600080fd5b61292f89838a01612746565b9350608088013591508082111561294557600080fd5b50612952888289016127bd565b9150509295509295909350565b600080600080600060a0868803121561297757600080fd5b853561298281613525565b9450602086013561299281613525565b9350604086013592506060860135915060808601356001600160401b038111156129bb57600080fd5b612952888289016127bd565b6000806000806000606086880312156129df57600080fd5b85356129ea81613525565b945060208601356001600160401b0380821115612a0657600080fd5b612a1289838a016126fb565b90965094506040880135915080821115612a2b57600080fd5b50612a38888289016126fb565b969995985093965092949392505050565b600080600060608486031215612a5e57600080fd5b8335612a6981613525565b925060208401356001600160401b0380821115612a8557600080fd5b612a9187838801612746565b93506040860135915080821115612aa757600080fd5b50612ab486828701612746565b9150509250925092565b60008060408385031215612ad157600080fd5b8235612adc81613525565b9150602083013580151581146128a757600080fd5b600080600060608486031215612b0657600080fd5b8335612b1181613525565b95602085013595506040909401359392505050565b60008060408385031215612b3957600080fd5b82356001600160401b0380821115612b5057600080fd5b818501915085601f830112612b6457600080fd5b81356020612b718261331f565b604051612b7e82826133f7565b8381528281019150858301600585901b870184018b1015612b9e57600080fd5b600096505b84871015612bca578035612bb681613525565b835260019690960195918301918301612ba3565b5096505086013592505080821115612be157600080fd5b50612bee85828601612746565b9150509250929050565b60008060008060408587031215612c0e57600080fd5b84356001600160401b0380821115612c2557600080fd5b612c31888389016126fb565b90965094506020870135915080821115612c4a57600080fd5b50612c57878288016126fb565b95989497509550505050565b600060208284031215612c7557600080fd5b8135611a938161353a565b600060208284031215612c9257600080fd5b8151611a938161353a565b600060208284031215612caf57600080fd5b81356001600160401b03811115612cc557600080fd5b612cd1848285016127bd565b949350505050565b60008060408385031215612cec57600080fd5b82356001600160401b03811115612d0257600080fd5b612d0e858286016127bd565b95602094909401359450505050565b600060208284031215612d2f57600080fd5b5035919050565b60008060408385031215612d4957600080fd5b8235915060208301356128a781613525565b60008060408385031215612d6e57600080fd5b8235915060208301356001600160401b03811115612d8b57600080fd5b612bee858286016127bd565b60008060408385031215612daa57600080fd5b50508035926020909101359150565b600080600060608486031215612dce57600080fd5b833592506020840135915060408401356001600160401b03811115612df257600080fd5b612ab4868287016127bd565b81835260006001600160fb1b03831115612e1757600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b83811015612e6457815187529582019590820190600101612e48565b509495945050505050565b60008151808452612e87816020860160208601613390565b601f01601f19169290920160200192915050565b600083516020612eae8285838901613390565b845491840191600090600181811c9080831680612ecc57607f831692505b858310811415612eea57634e487b7160e01b85526022600452602485fd5b808015612efe5760018114612f0f57612f3c565b60ff19851688528388019550612f3c565b60008b81526020902060005b85811015612f345781548a820152908401908801612f1b565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612f7890830186612e34565b8281036060840152612f8a8186612e34565b90508281036080840152612f9e8185612e6f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612fe490830184612e6f565b979650505050505050565b604081526000613003604083018688612dfe565b8281036020840152612fe4818587612dfe565b602081526000611a936020830184612e34565b60408152600061303c6040830185612e34565b828103602084015261304e8185612e34565b95945050505050565b602081526000611a936020830184612e6f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526019908201527f436c61696d3a20636c61696d696e672069732070617573656400000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b828152604060208201526000612cd16040830184612e6f565b60006001600160401b038211156133385761333861346a565b5060051b60200190565b600082198211156133555761335561343e565b500190565b60008160001904831182151516156133745761337461343e565b500290565b60008282101561338b5761338b61343e565b500390565b60005b838110156133ab578181015183820152602001613393565b83811115610f845750506000910152565b600181811c908216806133d057607f821691505b602082108114156133f157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561341c5761341c61346a565b6040525050565b60006000198214156134375761343761343e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156134995760046000803e5060005160e01c5b90565b600060443d10156134aa5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156134d957505050505090565b82850191508151818111156134f15750505050505090565b843d870101602082850101111561350b5750505050505090565b61351a602082860101876133f7565b509095945050505050565b6001600160a01b038116811461082957600080fd5b6001600160e01b03198116811461082957600080fdfea264697066735822122054e56757c8b81f1543cec8b3b801e1cedab32f944db405d2615b20dc339bdb9c64736f6c63430008070033516d5671394b7136746e6b527a74457876476f35314e576553594d355238333141535470563263525970614b3355516d55767770367431724a514244437a32684a42323454596f5a424b726f74747868743636677a6e52754c52326a516d6165634d6a56324c34553961434a3575373273586e42534b615a34745456544c4d356f636971595a5a43744468747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d5766783744437a55713736326b6734564c38386433644c5147737537525a31384c4367743152554177536133516d555136516651464351615048424c3437704a4d617a585042523373326961536b756b736d436d756b55416b66516d5a5a6656394243784b734d4557346f6942337464794c4639587a344b4e506b55627766536568536831555061516d5951445a5068667769685958586a50466776366141646d58535478746b59334b5654324e5433623551355062

Deployed Bytecode

0x6080604052600436106102195760003560e01c80636b20c45411610123578063a22cb465116100ab578063e6d1aea01161006f578063e6d1aea01461063d578063e985e9c51461065d578063f242432a146106a6578063f2fde38b146106c6578063f5298aca146106e657600080fd5b8063a22cb465146105a8578063bd85b039146105c8578063bd9a548b146105f5578063c34902631461060a578063d81d0a151461061d57600080fd5b80638a8f72b9116100f25780638a8f72b9146104d65780638b0bf0681461051d5780638da5cb5b1461053d57806395d89b411461056557806397304ced1461057a57600080fd5b80636b20c4541461046c578063715018a61461048c57806375efad6a146104a15780638456cb59146104c157600080fd5b80631a081330116101a65780634f558e79116101755780634f558e79146103dc578063522f68151461040b57806357db6e1d1461042b5780635c975abb1461043e5780636681b9fd1461045657600080fd5b80631a081330146103655780632eb2c2d61461037a5780633f4ba83a1461039a5780634e1273f4146103af57600080fd5b806306fdde03116101ed57806306fdde03146102c35780630e89341c146102e557806313af403514610305578063156e29f61461032557806319b88edb1461034557600080fd5b8062fdd58e1461021e57806301ffc9a714610251578063023133071461028157806302fe5305146102a3575b600080fd5b34801561022a57600080fd5b5061023e61023936600461284d565b610706565b6040519081526020015b60405180910390f35b34801561025d57600080fd5b5061027161026c366004612c63565b61079d565b6040519015158152602001610248565b34801561028d57600080fd5b506102a161029c366004612db9565b6107ae565b005b3480156102af57600080fd5b506102a16102be366004612c9d565b6107f6565b3480156102cf57600080fd5b506102d861082c565b6040516102489190613057565b3480156102f157600080fd5b506102d8610300366004612d1d565b6108be565b34801561031157600080fd5b506102a1610320366004612830565b610952565b34801561033157600080fd5b506102a1610340366004612af1565b610985565b34801561035157600080fd5b5061023e610360366004612d1d565b6109ca565b34801561037157600080fd5b506102716109de565b34801561038657600080fd5b506102a16103953660046128b2565b6109f2565b3480156103a657600080fd5b506102a1610a89565b3480156103bb57600080fd5b506103cf6103ca366004612b26565b610abd565b6040516102489190613016565b3480156103e857600080fd5b506102716103f7366004612d1d565b600090815260046020526040902054151590565b34801561041757600080fd5b506102a161042636600461284d565b610be6565b6102a1610439366004612bf8565b610c9c565b34801561044a57600080fd5b5060035460ff16610271565b34801561046257600080fd5b5061023e60085481565b34801561047857600080fd5b506102a1610487366004612a49565b610f8a565b34801561049857600080fd5b506102a1610fcd565b3480156104ad57600080fd5b506102a16104bc366004612d97565b611001565b3480156104cd57600080fd5b506102a161103c565b3480156104e257600080fd5b5061023e6104f1366004612d36565b6000828152600a602090815260408083206001600160a01b038516845260020190915290205492915050565b34801561052957600080fd5b506102a1610538366004612d5b565b61106e565b34801561054957600080fd5b506005546040516001600160a01b039091168152602001610248565b34801561057157600080fd5b506102d86110cd565b34801561058657600080fd5b5061059a610595366004612d1d565b6110dc565b604051610248929190613306565b3480156105b457600080fd5b506102a16105c3366004612abe565b611181565b3480156105d457600080fd5b5061023e6105e3366004612d1d565b60009081526004602052604090205490565b34801561060157600080fd5b506103cf611190565b6102a1610618366004612d97565b611237565b34801561062957600080fd5b506102a16106383660046129c7565b611339565b34801561064957600080fd5b506102a1610658366004612cd9565b6113df565b34801561066957600080fd5b50610271610678366004612879565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106b257600080fd5b506102a16106c136600461295f565b61142e565b3480156106d257600080fd5b506102a16106e1366004612830565b611473565b3480156106f257600080fd5b506102a1610701366004612af1565b61150b565b60006001600160a01b0383166107775760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006107a88261155b565b92915050565b6005546001600160a01b031633146107d85760405162461bcd60e51b815260040161076e90613248565b6000838152600a602052604090206107f19083836115ab565b505050565b6005546001600160a01b031633146108205760405162461bcd60e51b815260040161076e90613248565b61082981611625565b50565b60606006805461083b906133bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610867906133bc565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b5050505050905090565b60606108c960095490565b82106109105760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161076e565b61091982611638565b6000838152600a6020908152604091829020915161093c93926001019101612e9b565b6040516020818303038152906040529050919050565b6005546001600160a01b0316331461097c5760405162461bcd60e51b815260040161076e90613248565b61082981611473565b6005546001600160a01b031633146109af5760405162461bcd60e51b815260040161076e90613248565b6107f1838284604051806020016040528060008152506116cc565b6000818152600460205260408120546107a8565b60006109ec60035460ff1690565b15905090565b6001600160a01b038516331480610a0e5750610a0e8533610678565b610a755760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161076e565b610a8285858585856116d8565b5050505050565b6005546001600160a01b03163314610ab35760405162461bcd60e51b815260040161076e90613248565b610abb611882565b565b60608151835114610b225760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161076e565b600083516001600160401b03811115610b3d57610b3d61346a565b604051908082528060200260200182016040528015610b66578160200160208202803683370190505b50905060005b8451811015610bde57610bb1858281518110610b8a57610b8a613454565b6020026020010151858381518110610ba457610ba4613454565b6020026020010151610706565b828281518110610bc357610bc3613454565b6020908102919091010152610bd781613423565b9050610b6c565b509392505050565b6005546001600160a01b03163314610c105760405162461bcd60e51b815260040161076e90613248565b6001600160a01b038216610c665760405162461bcd60e51b815260206004820152601f60248201527f63616e742073656e64206d6f6e657920746f206e756c6c206164647265737300604482015260640161076e565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156107f1573d6000803e3d6000fd5b610cd882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061191592505050565b610d3a5760405162461bcd60e51b815260206004820152602d60248201527f436c61696d3a20636c61696d2063616e6e6f7420636f6e7461696e206475706c60448201526c696361746520696e646578657360981b606482015260840161076e565b60035460ff1615610d5d5760405162461bcd60e51b815260040161076e9061313f565b60005b81811015610e0057610da2858583818110610d7d57610d7d613454565b90506020020135848484818110610d9657610d96613454565b905060200201356119ad565b610dee5760405162461bcd60e51b815260206004820152601e60248201527f4f6e65206f72206d6f726520636c61696d732061726520696e76616c69640000604482015260640161076e565b80610df881613423565b915050610d60565b5060005b81811015610ec057610e6e858583818110610e2157610e21613454565b90506020020135600a6000868686818110610e3e57610e3e613454565b60209081029290920135835250818101929092526040908101600090812033825260020190925290205490611a87565b600a6000858585818110610e8457610e84613454565b60209081029290920135835250818101929092526040908101600090812033825260020190925290205580610eb881613423565b915050610e04565b50336001600160a01b03167f1f36743b8f77937c5a06ebeca4819ea0c795222f7ecf5a42583ff5d0063adabf83838787604051610f009493929190612fef565b60405180910390a2610f843383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092018290525060408051602081019091529081529250611a9a915050565b50505050565b6001600160a01b038316331480610fa65750610fa68333610678565b610fc25760405162461bcd60e51b815260040161076e906130f6565b6107f1838383611aa6565b6005546001600160a01b03163314610ff75760405162461bcd60e51b815260040161076e90613248565b610abb6000611ab1565b6005546001600160a01b0316331461102b5760405162461bcd60e51b815260040161076e90613248565b6000908152600a6020526040902055565b6005546001600160a01b031633146110665760405162461bcd60e51b815260040161076e90613248565b610abb611b03565b6005546001600160a01b031633146110985760405162461bcd60e51b815260040161076e90613248565b60006110a360095490565b6000818152600a602052604090209091506110bf8185856115ab565b610f84600980546001019055565b60606007805461083b906133bc565b600a60205260009081526040902080546001820180549192916110fe906133bc565b80601f016020809104026020016040519081016040528092919081815260200182805461112a906133bc565b80156111775780601f1061114c57610100808354040283529160200191611177565b820191906000526020600020905b81548152906001019060200180831161115a57829003601f168201915b5050505050905082565b61118c338383611b7e565b5050565b6060600061119d60095490565b90506000816001600160401b038111156111b9576111b961346a565b6040519080825280602002602001820160405280156111e2578160200160208202803683370190505b50905060005b82811015611230576000818152600a6020526040902054825183908390811061121357611213613454565b60209081029190910101528061122881613423565b9150506111e8565b5092915050565b61124182826119ad565b61124a57600080fd5b6000818152600a6020526040812054611264908490611c5f565b905061127260035460ff1690565b1561128f5760405162461bcd60e51b815260040161076e9061313f565b6000828152600a602090815260408083203384526002019091529020546112b69084611a87565b6000838152600a602090815260408083203384526002019091529020556008546112e09082611a87565b600855604080518381526020810185905233917f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026910160405180910390a26107f1338385604051806020016040528060008152506116cc565b6005546001600160a01b031633146113635760405162461bcd60e51b815260040161076e90613248565b610a828583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092018290525060408051602081019091529081529250611a9a915050565b6005546001600160a01b031633146114095760405162461bcd60e51b815260040161076e90613248565b6000818152600a6020908152604090912083516107f192600190920191850190612662565b6001600160a01b03851633148061144a575061144a8533610678565b6114665760405162461bcd60e51b815260040161076e906130f6565b610a828585858585611c6b565b6005546001600160a01b0316331461149d5760405162461bcd60e51b815260040161076e90613248565b6001600160a01b0381166115025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161076e565b61082981611ab1565b6001600160a01b03831633148061152757506115278333610678565b6115435760405162461bcd60e51b815260040161076e906130f6565b6107f1838383611d97565b5490565b80546001019055565b60006001600160e01b03198216636cdb3d1360e11b148061158c57506001600160e01b031982166303a24d0760e21b145b806107a857506301ffc9a760e01b6001600160e01b03198316146107a8565b6000821161160d5760405162461bcd60e51b815260206004820152602960248201527f6164644d696e74546f6b656e3a205f6d696e745072696365206d757374206265604482015268206e6f6e207a65726f60b81b606482015260840161076e565b8183558051610f849060018501906020840190612662565b805161118c906002906020840190612662565b606060028054611647906133bc565b80601f0160208091040260200160405190810160405280929190818152602001828054611673906133bc565b80156116c05780601f10611695576101008083540402835291602001916116c0565b820191906000526020600020905b8154815290600101906020018083116116a357829003601f168201915b50505050509050919050565b610f8484848484611da2565b81518351146116f95760405162461bcd60e51b815260040161076e9061327d565b6001600160a01b03841661171f5760405162461bcd60e51b815260040161076e90613176565b3361172e818787878787611e69565b60005b845181101561181457600085828151811061174e5761174e613454565b60200260200101519050600085838151811061176c5761176c613454565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156117bc5760405162461bcd60e51b815260040161076e906131fe565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906117f9908490613342565b925050819055505050508061180d90613423565b9050611731565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611864929190613029565b60405180910390a461187a818787878787611e77565b505050505050565b60035460ff166118cb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161076e565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000805b82518110156119a457600061192f826001613342565b90505b83518110156119915783818151811061194d5761194d613454565b602002602001015184838151811061196757611967613454565b6020026020010151141561197f575060009392505050565b8061198981613423565b915050611932565b508061199c81613423565b915050611919565b50600192915050565b60006119bb60035460ff1690565b156119d85760405162461bcd60e51b815260040161076e9061313f565b6009548210611a1e5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e8ded6cadc92dcc8caf60731b604482015260640161076e565b6000828152600a6020526040902054611a38908490611c5f565b3410156119a45760405162461bcd60e51b815260206004820152601c60248201527f436c61696d3a2045746865722076616c756520696e636f727265637400000000604482015260640161076e565b6000611a938284613342565b9392505050565b610f8484848484611fe2565b6107f183838361213c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff1615611b495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161076e565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118f83390565b816001600160a01b0316836001600160a01b03161415611bf25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161076e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000611a93828461335a565b6001600160a01b038416611c915760405162461bcd60e51b815260040161076e90613176565b33611cb0818787611ca1886122ca565b611caa886122ca565b87611e69565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611cf15760405162461bcd60e51b815260040161076e906131fe565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611d2e908490613342565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611d8e828888888888612315565b50505050505050565b6107f18383836123df565b6001600160a01b038416611dc85760405162461bcd60e51b815260040161076e906132c5565b33611dd981600087611ca1886122ca565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611e09908490613342565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a8281600087878787612315565b61187a8686868686866124e0565b6001600160a01b0384163b1561187a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611ebb9089908990889088908890600401612f4c565b602060405180830381600087803b158015611ed557600080fd5b505af1925050508015611f05575060408051601f3d908101601f19168201909252611f0291810190612c80565b60015b611fb257611f11613480565b806308c379a01415611f4b5750611f2661349c565b80611f315750611f4d565b8060405162461bcd60e51b815260040161076e9190613057565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161076e565b6001600160e01b0319811663bc197c8160e01b14611d8e5760405162461bcd60e51b815260040161076e9061306a565b6001600160a01b0384166120085760405162461bcd60e51b815260040161076e906132c5565b81518351146120295760405162461bcd60e51b815260040161076e9061327d565b3361203981600087878787611e69565b60005b84518110156120d45783818151811061205757612057613454565b602002602001015160008087848151811061207457612074613454565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546120bc9190613342565b909155508190506120cc81613423565b91505061203c565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612125929190613029565b60405180910390a4610a8281600087878787611e77565b6001600160a01b0383166121625760405162461bcd60e51b815260040161076e906131bb565b80518251146121835760405162461bcd60e51b815260040161076e9061327d565b60003390506121a681856000868660405180602001604052806000815250611e69565b60005b835181101561226b5760008482815181106121c6576121c6613454565b6020026020010151905060008483815181106121e4576121e4613454565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156122345760405162461bcd60e51b815260040161076e906130b2565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061226381613423565b9150506121a9565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122bc929190613029565b60405180910390a450505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061230457612304613454565b602090810291909101015292915050565b6001600160a01b0384163b1561187a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123599089908990889088908890600401612faa565b602060405180830381600087803b15801561237357600080fd5b505af19250505080156123a3575060408051601f3d908101601f191682019092526123a091810190612c80565b60015b6123af57611f11613480565b6001600160e01b0319811663f23a6e6160e01b14611d8e5760405162461bcd60e51b815260040161076e9061306a565b6001600160a01b0383166124055760405162461bcd60e51b815260040161076e906131bb565b3361243481856000612416876122ca565b61241f876122ca565b60405180602001604052806000815250611e69565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156124755760405162461bcd60e51b815260040161076e906130b2565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6124ee8686868686866125fa565b6001600160a01b0385166125755760005b83518110156125735782818151811061251a5761251a613454565b60200260200101516004600086848151811061253857612538613454565b60200260200101518152602001908152602001600020600082825461255d9190613342565b9091555061256c905081613423565b90506124ff565b505b6001600160a01b03841661187a5760005b8351811015611d8e578281815181106125a1576125a1613454565b6020026020010151600460008684815181106125bf576125bf613454565b6020026020010151815260200190815260200160002060008282546125e49190613379565b909155506125f3905081613423565b9050612586565b60035460ff161561187a5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161076e565b82805461266e906133bc565b90600052602060002090601f01602090048101928261269057600085556126d6565b82601f106126a957805160ff19168380011785556126d6565b828001600101855582156126d6579182015b828111156126d65782518255916020019190600101906126bb565b506126e29291506126e6565b5090565b5b808211156126e257600081556001016126e7565b60008083601f84011261270d57600080fd5b5081356001600160401b0381111561272457600080fd5b6020830191508360208260051b850101111561273f57600080fd5b9250929050565b600082601f83011261275757600080fd5b813560206127648261331f565b60405161277182826133f7565b8381528281019150858301600585901b8701840188101561279157600080fd5b60005b858110156127b057813584529284019290840190600101612794565b5090979650505050505050565b600082601f8301126127ce57600080fd5b81356001600160401b038111156127e7576127e761346a565b6040516127fe601f8301601f1916602001826133f7565b81815284602083860101111561281357600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561284257600080fd5b8135611a9381613525565b6000806040838503121561286057600080fd5b823561286b81613525565b946020939093013593505050565b6000806040838503121561288c57600080fd5b823561289781613525565b915060208301356128a781613525565b809150509250929050565b600080600080600060a086880312156128ca57600080fd5b85356128d581613525565b945060208601356128e581613525565b935060408601356001600160401b038082111561290157600080fd5b61290d89838a01612746565b9450606088013591508082111561292357600080fd5b61292f89838a01612746565b9350608088013591508082111561294557600080fd5b50612952888289016127bd565b9150509295509295909350565b600080600080600060a0868803121561297757600080fd5b853561298281613525565b9450602086013561299281613525565b9350604086013592506060860135915060808601356001600160401b038111156129bb57600080fd5b612952888289016127bd565b6000806000806000606086880312156129df57600080fd5b85356129ea81613525565b945060208601356001600160401b0380821115612a0657600080fd5b612a1289838a016126fb565b90965094506040880135915080821115612a2b57600080fd5b50612a38888289016126fb565b969995985093965092949392505050565b600080600060608486031215612a5e57600080fd5b8335612a6981613525565b925060208401356001600160401b0380821115612a8557600080fd5b612a9187838801612746565b93506040860135915080821115612aa757600080fd5b50612ab486828701612746565b9150509250925092565b60008060408385031215612ad157600080fd5b8235612adc81613525565b9150602083013580151581146128a757600080fd5b600080600060608486031215612b0657600080fd5b8335612b1181613525565b95602085013595506040909401359392505050565b60008060408385031215612b3957600080fd5b82356001600160401b0380821115612b5057600080fd5b818501915085601f830112612b6457600080fd5b81356020612b718261331f565b604051612b7e82826133f7565b8381528281019150858301600585901b870184018b1015612b9e57600080fd5b600096505b84871015612bca578035612bb681613525565b835260019690960195918301918301612ba3565b5096505086013592505080821115612be157600080fd5b50612bee85828601612746565b9150509250929050565b60008060008060408587031215612c0e57600080fd5b84356001600160401b0380821115612c2557600080fd5b612c31888389016126fb565b90965094506020870135915080821115612c4a57600080fd5b50612c57878288016126fb565b95989497509550505050565b600060208284031215612c7557600080fd5b8135611a938161353a565b600060208284031215612c9257600080fd5b8151611a938161353a565b600060208284031215612caf57600080fd5b81356001600160401b03811115612cc557600080fd5b612cd1848285016127bd565b949350505050565b60008060408385031215612cec57600080fd5b82356001600160401b03811115612d0257600080fd5b612d0e858286016127bd565b95602094909401359450505050565b600060208284031215612d2f57600080fd5b5035919050565b60008060408385031215612d4957600080fd5b8235915060208301356128a781613525565b60008060408385031215612d6e57600080fd5b8235915060208301356001600160401b03811115612d8b57600080fd5b612bee858286016127bd565b60008060408385031215612daa57600080fd5b50508035926020909101359150565b600080600060608486031215612dce57600080fd5b833592506020840135915060408401356001600160401b03811115612df257600080fd5b612ab4868287016127bd565b81835260006001600160fb1b03831115612e1757600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b83811015612e6457815187529582019590820190600101612e48565b509495945050505050565b60008151808452612e87816020860160208601613390565b601f01601f19169290920160200192915050565b600083516020612eae8285838901613390565b845491840191600090600181811c9080831680612ecc57607f831692505b858310811415612eea57634e487b7160e01b85526022600452602485fd5b808015612efe5760018114612f0f57612f3c565b60ff19851688528388019550612f3c565b60008b81526020902060005b85811015612f345781548a820152908401908801612f1b565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612f7890830186612e34565b8281036060840152612f8a8186612e34565b90508281036080840152612f9e8185612e6f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612fe490830184612e6f565b979650505050505050565b604081526000613003604083018688612dfe565b8281036020840152612fe4818587612dfe565b602081526000611a936020830184612e34565b60408152600061303c6040830185612e34565b828103602084015261304e8185612e34565b95945050505050565b602081526000611a936020830184612e6f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526019908201527f436c61696d3a20636c61696d696e672069732070617573656400000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b828152604060208201526000612cd16040830184612e6f565b60006001600160401b038211156133385761333861346a565b5060051b60200190565b600082198211156133555761335561343e565b500190565b60008160001904831182151516156133745761337461343e565b500290565b60008282101561338b5761338b61343e565b500390565b60005b838110156133ab578181015183820152602001613393565b83811115610f845750506000910152565b600181811c908216806133d057607f821691505b602082108114156133f157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561341c5761341c61346a565b6040525050565b60006000198214156134375761343761343e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156134995760046000803e5060005160e01c5b90565b600060443d10156134aa5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156134d957505050505090565b82850191508151818111156134f15750505050505090565b843d870101602082850101111561350b5750505050505090565b61351a602082860101876133f7565b509095945050505050565b6001600160a01b038116811461082957600080fd5b6001600160e01b03198116811461082957600080fdfea264697066735822122054e56757c8b81f1543cec8b3b801e1cedab32f944db405d2615b20dc339bdb9c64736f6c63430008070033

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.