ETH Price: $2,994.57 (+4.66%)
Gas: 2 Gwei

Token

BluntHeads (BLUNT)
 

Overview

Max Total Supply

4,200 BLUNT

Holders

159

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
aleph0ne.eth
0x867eb0804eaca9feeda8a0e1d2b9a32eef58af8f
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Who are The Blunt Heads? The Blunt Heads is a new animated series starring Ice T about a wacky family of blunts living the life of the cannabis kind. These loud mouthed, brown wrapped and brutally honest blunts land themselves in situations that only a blunt family can.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BluntHeads

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : BluntHeads.sol
//SPDX-License-Identifier: MIT
//@dev: Blunt God

pragma solidity ^0.8.11;
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";

contract BluntHeads is ERC1155, Ownable, Pausable, ReentrancyGuard
{
    /*--------------------
        * VARIABLES *
    ---------------------*/
    
    //Init
    string public constant name = "BluntHeads";
    string public constant symbol = "BLUNT";
    string public _BASE_URI = "ipfs://QmamcA6NNQYHyajjiweY3L4mMmyhWQ3paDbQ7P4TPkdbcr/";
    
    //Merkle Root
    bytes32 private root = 0xfdc4c218f8683074c8b4dc0647f943c81bb12c66afc12ce09b9c9be951efbde9;

    //Multisig
    address private immutable _BHMultisig = 0xD98d0432C38536260c5bD323E8ce71144d366A85;

    //Token Amounts
    uint256 public _BLUNTS_MINTED = 1;
    uint256 public _MAX_BLUNTS = 10000;
    uint256 public _MAX_BLUNTS_PURCHASE = 20;
    
    //Price
    uint256 public _BLUNT_PRICE = 0.08 ether;

    //Sale State
    bool public _SALE_IS_ACTIVE_PUBLIC = false;
    bool public _SALE_IS_ACTIVE_BLUNTLIST = true;
    bool public _ALLOW_MULTIPLE_PURCHASES = true;

    //Mint Mapping
    mapping (address => bool) private _MINTED;
    mapping (address => bool) private _CLAIMED;

    //Mint Event
    event BluntHeadsMinted(address indexed recipient, uint256 indexed amount);

    /*--------------------
        * CONSTRUCTOR *
    ---------------------*/

    constructor() ERC1155("https://ipfs.io/ipfs/QmamcA6NNQYHyajjiweY3L4mMmyhWQ3paDbQ7P4TPkdbcr/{id}.json") { _reserveBluntHeads(100); }

    /*--------------------
          * MINT *
    ---------------------*/
    
    /**
     * @dev Public Mints Blunt Heads
     */
    function BluntHeadsMint(uint256 numberOfTokens) public payable nonReentrant whenNotPaused
    {
        require(tx.origin == msg.sender, "No External Contracts");
        require(_SALE_IS_ACTIVE_PUBLIC, "Sale must be active to mint Blunts");
        require(numberOfTokens <= _MAX_BLUNTS_PURCHASE && numberOfTokens > 0, "Can only mint max 20 Blunts at a time, and a minimum of 1");
        require(_BLUNTS_MINTED + numberOfTokens <= _MAX_BLUNTS, "Purchase would exceed max supply of Blunts");
        require(_BLUNT_PRICE * numberOfTokens == msg.value, "Ether value sent is not correct. 0.08 ETH Per Blunt | 80000000000000000 WEI");
        if(!_ALLOW_MULTIPLE_PURCHASES) { require(!_MINTED[msg.sender], "Address Has Already Minted"); }

        _MINTED[msg.sender] = true; 

        //Mints Blunts
        for(uint256 i=0; i < numberOfTokens; i++) 
        {
            if (_BLUNTS_MINTED <= _MAX_BLUNTS) 
            {
                _mint(msg.sender, _BLUNTS_MINTED, 1, "");
                _BLUNTS_MINTED += 1;
            }
        }

        //Purchase 3 Or More, Get 1 Free
        if(numberOfTokens >= 3 && _BLUNTS_MINTED < _MAX_BLUNTS) 
        {
            uint256 numFree = numberOfTokens / 3;
            for(uint256 i = 0; i < numFree; i++)
            {
                _mint(msg.sender, _BLUNTS_MINTED, 1, "");
                _BLUNTS_MINTED += 1;
            }
        }

        //Finishes Mint
        emit BluntHeadsMinted(msg.sender, numberOfTokens);
    }

    /**
     * @dev Mints Blunt Heads from Merkle Proof Bluntlist
     */
    function BluntHeadsMintBluntlist(uint256 numberOfTokens, bytes32[] calldata proof) public payable nonReentrant whenNotPaused
    {
        require(tx.origin == msg.sender, "No External Contracts");
        require(_SALE_IS_ACTIVE_BLUNTLIST, "BluntList Sale Is Not Active");
        require(!_CLAIMED[msg.sender], "User Has Already Claimed Bluntlist Allocation");
        require(_BLUNTS_MINTED + numberOfTokens <= _MAX_BLUNTS, "Purchase would exceed max supply of Blunts");
        require(_BLUNT_PRICE * numberOfTokens == msg.value, "Ether value sent is not correct. 0.08 ETH Per Blunt | 80000000000000000 WEI");
        require(numberOfTokens <= _MAX_BLUNTS_PURCHASE && numberOfTokens > 0, "Can only mint max 20 Blunts at a time, and a minimum of 1");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(proof, root, leaf), "Invalid Merkle Tree, Msg.sender Is Not On BluntList");

        //One BluntList Transaction Per User
        _CLAIMED[msg.sender] = true;

        //Mints Blunts
        for(uint256 i = 0; i < numberOfTokens; i++) 
        {
            if (_BLUNTS_MINTED <= _MAX_BLUNTS) 
            {
                _mint(msg.sender, _BLUNTS_MINTED, 1, "");
                _BLUNTS_MINTED += 1;
            }
        }

        //Purchase 3 Or More, Get 1 Free
        if(numberOfTokens >= 3 && _BLUNTS_MINTED < _MAX_BLUNTS) 
        {
            uint256 numFree = numberOfTokens / 3;
            for(uint256 i = 0; i < numFree; i++)
            {
                _mint(msg.sender, _BLUNTS_MINTED, 1, "");
                _BLUNTS_MINTED += 1;
            }
        }

        //Finishes Mint
        emit BluntHeadsMinted(msg.sender, numberOfTokens);
    }

    /*--------------------
        * PUBLIC VIEW *
    ---------------------*/

    /**
     * @dev URI for decoding storage of tokenIDs
     */
    function uri(uint256 tokenId) override public view returns (string memory) { return(string(abi.encodePacked(_BASE_URI, Strings.toString(tokenId), ".json"))); }

    /**
     * @dev Shows Total Supply
     */
    function totalSupply() public view returns (uint256 supply) { return(_MAX_BLUNTS); }

    /*--------------------
          * ADMIN *
    ---------------------*/

    /**
     * @dev Withdraws Ether From The Contract
     */
    function __withdrawEther() external onlyOwner 
    { 
        require(address(this).balance > 0, "Zero Ether Balance");
        payable(msg.sender).transfer(address(this).balance); 
    }
    
    /**
     * @dev Withdraws ERC-20
     */
    function __withdrawERC20(address tokenAddress) external onlyOwner 
    { 
        IERC20 erc20Token = IERC20(tokenAddress);
        require(erc20Token.balanceOf(address(this)) > 0, "Zero Token Balance");
        erc20Token.transfer(_BHMultisig, erc20Token.balanceOf(address(this))); 
    }

    /**
     * @dev Reserves Blunt Heads For Team
     */
    function _reserveBluntHeads(uint256 numberOfTokens) public onlyOwner
    {
        //Mints Blunts
        for(uint256 i = 0; i < numberOfTokens; i++) 
        {
            if (_BLUNTS_MINTED <= _MAX_BLUNTS) 
            {
                _mint(_BHMultisig, _BLUNTS_MINTED, 1, "");
                _BLUNTS_MINTED += 1;
            }
        }
    }

    /**
     * @dev Sets Base URI For .json hosting
     */
    function __setBaseURI(string memory BASE_URI) external onlyOwner { _BASE_URI = BASE_URI; }

    /**
     * @dev Sets Max Blunts for future Blunt Expansion Packs
     */
    function __setMaxBlunts(uint256 MAX_BLUNTS) external onlyOwner { _MAX_BLUNTS = MAX_BLUNTS; }

    /**
     * @dev Sets Max Blunts Purchaseable by Wallet
     */
    function __setMaxBluntsPurchase(uint256 MAX_BLUNTS_PURCHASE) external onlyOwner { _MAX_BLUNTS_PURCHASE = MAX_BLUNTS_PURCHASE; }

    /**
     * @dev Sets Future Blunt Price
     */
    function __setBluntPrice(uint256 BLUNT_PRICE) external onlyOwner { _BLUNT_PRICE = BLUNT_PRICE; }

    /**
     * @dev Flips Allowing Multiple Purchases for future Blunt Expansion Packs
     */
    function __flip_allowMultiplePurchases() external onlyOwner { _ALLOW_MULTIPLE_PURCHASES = !_ALLOW_MULTIPLE_PURCHASES; }
    
    /**
     * @dev Flips Sale State
     */
    function __Flip_Sale_State_Public() external onlyOwner { _SALE_IS_ACTIVE_PUBLIC = !_SALE_IS_ACTIVE_PUBLIC; }

    /**
     * @dev Flips Sale State BluntList
     */
    function __Flip_Sale_State_BluntList() external onlyOwner { _SALE_IS_ACTIVE_BLUNTLIST = !_SALE_IS_ACTIVE_BLUNTLIST; }

    /**
     * @dev Ends Sale
     */
    function __endSale() external onlyOwner { _SALE_IS_ACTIVE_BLUNTLIST = false; _SALE_IS_ACTIVE_PUBLIC = false; }

    /**
     * @dev Pauses Contract
     */
    function __pause() external onlyOwner { _pause(); }

    /**
     * @dev Unpauses Contract
     */
    function __unpause() external onlyOwner { _unpause(); }

    /**
     * @dev Modifies Merkle Root
     */
    function __modifyMerkleRoot(bytes32 newRoot) external onlyOwner { root = newRoot; }

    /*--------------------
         * INTERNAL *
    ---------------------*/
    
    /**
     * @dev Conforms to ERC-1155 Standard
     */
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal whenNotPaused override 
    { 
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data); 
    }
}

File 2 of 16 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

File 3 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 6 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 10 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 11 of 16 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 13 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BluntHeadsMinted","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":"numberOfTokens","type":"uint256"}],"name":"BluntHeadsMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"BluntHeadsMintBluntlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"_ALLOW_MULTIPLE_PURCHASES","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_BLUNTS_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_BLUNT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_MAX_BLUNTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_MAX_BLUNTS_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_SALE_IS_ACTIVE_BLUNTLIST","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_SALE_IS_ACTIVE_PUBLIC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"__Flip_Sale_State_BluntList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__Flip_Sale_State_Public","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__flip_allowMultiplePurchases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"__modifyMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"BASE_URI","type":"string"}],"name":"__setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"BLUNT_PRICE","type":"uint256"}],"name":"__setBluntPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"MAX_BLUNTS","type":"uint256"}],"name":"__setMaxBlunts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"MAX_BLUNTS_PURCHASE","type":"uint256"}],"name":"__setMaxBluntsPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"__withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"_reserveBluntHeads","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":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

610100604052603660a08181529062003eb360c03980516200002a91600591602090910190620005f8565b507ffdc4c218f8683074c8b4dc0647f943c81bb12c66afc12ce09b9c9be951efbde960065573d98d0432c38536260c5bd323e8ce71144d366a856080526001600755612710600855601460095567011c37937e080000600a55600b805462ffffff191662010100179055348015620000a157600080fd5b506040518060800160405280604d815260200162003ee9604d9139620000c781620000f7565b50620000d33362000110565b6003805460ff60a01b191690556001600455620000f1606462000162565b62000906565b80516200010c906002906020840190620005f8565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6003546001600160a01b03163314620001c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60005b818110156200010c57600854600754116200021d57620002026080516007546001604051806020016040528060008152506200023260201b60201c565b600160076000828254620002179190620006b4565b90915550505b806200022981620006cf565b915050620001c5565b6001600160a01b038416620002945760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620001b9565b33620002ba81600087620002a88862000355565b620002b38862000355565b87620003a3565b6000848152602081815260408083206001600160a01b038916845290915281208054859290620002ec908490620006b4565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46200034e816000878787876200041c565b5050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620003925762000392620006ed565b602090810291909101015292915050565b620003b7600354600160a01b900460ff1690565b15620003f95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620001b9565b620004148686868686866200041460201b62001eed1760201c565b505050505050565b6200043b846001600160a01b0316620005f260201b62001ef51760201c565b15620004145760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062000477908990899088908890889060040162000753565b6020604051808303816000875af1925050508015620004b5575060408051601f3d908101601f19168201909252620004b2918101906200079a565b60015b6200057657620004c4620007cd565b806308c379a01415620005055750620004dc62000825565b80620004e9575062000507565b8060405162461bcd60e51b8152600401620001b99190620008b4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620001b9565b6001600160e01b0319811663f23a6e6160e01b14620005e95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620001b9565b50505050505050565b3b151590565b8280546200060690620008c9565b90600052602060002090601f0160209004810192826200062a576000855562000675565b82601f106200064557805160ff191683800117855562000675565b8280016001018555821562000675579182015b828111156200067557825182559160200191906001019062000658565b506200068392915062000687565b5090565b5b8082111562000683576000815560010162000688565b634e487b7160e01b600052601160045260246000fd5b60008219821115620006ca57620006ca6200069e565b500190565b6000600019821415620006e657620006e66200069e565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b818110156200072b576020818501810151868301820152016200070d565b818111156200073e576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906200078f9083018462000703565b979650505050505050565b600060208284031215620007ad57600080fd5b81516001600160e01b031981168114620007c657600080fd5b9392505050565b600060033d1115620007e75760046000803e5060005160e01c5b90565b601f8201601f191681016001600160401b03811182821017156200081e57634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d1015620008345790565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156200086457505050505090565b82850191508151818111156200087d5750505050505090565b843d8701016020828501011115620008985750505050505090565b620008a960208286010187620007ea565b509095945050505050565b602081526000620007c6602083018462000703565b600181811c90821680620008de57607f821691505b602082108114156200090057634e487b7160e01b600052602260045260246000fd5b50919050565b60805161358a62000929600039600081816117c00152611cd4015261358a6000f3fe6080604052600436106102845760003560e01c80635c975abb11610153578063ad2bf9e5116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610708578063f5a5726314610728578063f7fb579f1461073e57600080fd5b8063e985e9c51461069f578063f242432a146106e857600080fd5b8063c94de64d116100b0578063c94de64d14610650578063ce46bcb91461066a578063d1ca36681461067f57600080fd5b8063ad2bf9e514610626578063c0e6f2541461063b57600080fd5b80638c6d6d7e1161012257806395d89b411161010757806395d89b41146105a85780639c51b6f2146105f1578063a22cb4651461060657600080fd5b80638c6d6d7e1461056b5780638da5cb5b1461058057600080fd5b80635c975abb1461050257806362873fba146105215780637494abdf14610541578063824c6c4a1461055657600080fd5b80632941d3ac116102015780633ba223de116101b55780634a3b889a1161019a5780634a3b889a146104955780634e1273f4146104b5578063585f85f6146104e257600080fd5b80633ba223de1461046957806349ee0cfd1461047f57600080fd5b80632eb2c2d6116101e65780632eb2c2d6146104165780632f16c7141461043657806330432db71461045657600080fd5b80632941d3ac146103e45780632982a2bd146103f757600080fd5b80630e89341c1161025857806318160ddd1161023d57806318160ddd146103975780631e9884f8146103ac5780631fb71eaf146103ce57600080fd5b80630e89341c146103575780631393094f1461037757600080fd5b8062fdd58e1461028957806301ffc9a7146102bc57806305d1941a146102ec57806306fdde031461030e575b600080fd5b34801561029557600080fd5b506102a96102a4366004612bb3565b61075e565b6040519081526020015b60405180910390f35b3480156102c857600080fd5b506102dc6102d7366004612bf3565b610807565b60405190151581526020016102b3565b3480156102f857600080fd5b506103016108a4565b6040516102b39190612c73565b34801561031a57600080fd5b506103016040518060400160405280600a81526020017f426c756e7448656164730000000000000000000000000000000000000000000081525081565b34801561036357600080fd5b50610301610372366004612c86565b610932565b34801561038357600080fd5b50600b546102dc9062010000900460ff1681565b3480156103a357600080fd5b506008546102a9565b3480156103b857600080fd5b506103cc6103c7366004612c86565b610966565b005b3480156103da57600080fd5b506102a960095481565b6103cc6103f2366004612c86565b6109b3565b34801561040357600080fd5b50600b546102dc90610100900460ff1681565b34801561042257600080fd5b506103cc610431366004612df5565b610e47565b34801561044257600080fd5b506103cc610451366004612c86565b610ee9565b6103cc610464366004612e9f565b610f36565b34801561047557600080fd5b506102a9600a5481565b34801561048b57600080fd5b506102a960075481565b3480156104a157600080fd5b506103cc6104b0366004612f1e565b6114ae565b3480156104c157600080fd5b506104d56104d0366004612f67565b61150d565b6040516102b3919061306d565b3480156104ee57600080fd5b506103cc6104fd366004612c86565b61164b565b34801561050e57600080fd5b50600354600160a01b900460ff166102dc565b34801561052d57600080fd5b506103cc61053c366004613080565b611698565b34801561054d57600080fd5b506103cc6118a0565b34801561056257600080fd5b506103cc611905565b34801561057757600080fd5b506103cc611957565b34801561058c57600080fd5b506003546040516001600160a01b0390911681526020016102b3565b3480156105b457600080fd5b506103016040518060400160405280600581526020017f424c554e5400000000000000000000000000000000000000000000000000000081525081565b3480156105fd57600080fd5b506103cc6119a7565b34801561061257600080fd5b506103cc6106213660046130a9565b611a0e565b34801561063257600080fd5b506103cc611af9565b34801561064757600080fd5b506103cc611b4e565b34801561065c57600080fd5b50600b546102dc9060ff1681565b34801561067657600080fd5b506103cc611c15565b34801561068b57600080fd5b506103cc61069a366004612c86565b611c71565b3480156106ab57600080fd5b506102dc6106ba3660046130e0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106f457600080fd5b506103cc610703366004613113565b611d38565b34801561071457600080fd5b506103cc610723366004613080565b611dd3565b34801561073457600080fd5b506102a960085481565b34801561074a57600080fd5b506103cc610759366004612c86565b611ea0565b60006001600160a01b0383166107e15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061086a57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061089e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600580546108b190613178565b80601f01602080910402602001604051908101604052809291908181526020018280546108dd90613178565b801561092a5780601f106108ff5761010080835404028352916020019161092a565b820191906000526020600020905b81548152906001019060200180831161090d57829003601f168201915b505050505081565b6060600561093f83611efb565b6040516020016109509291906131cf565b6040516020818303038152906040529050919050565b6003546001600160a01b031633146109ae5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600a55565b60026004541415610a065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d8565b6002600455600354600160a01b900460ff1615610a585760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b323314610aa75760405162461bcd60e51b815260206004820152601560248201527f4e6f2045787465726e616c20436f6e747261637473000000000000000000000060448201526064016107d8565b600b5460ff16610b1f5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420426c756e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016107d8565b6009548111158015610b315750600081115b610ba35760405162461bcd60e51b815260206004820152603960248201527f43616e206f6e6c79206d696e74206d617820323020426c756e7473206174206160448201527f2074696d652c20616e642061206d696e696d756d206f6620310000000000000060648201526084016107d8565b60085481600754610bb491906132b8565b1115610c155760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620426c756e747360b01b60648201526084016107d8565b3481600a54610c2491906132d0565b14610cab5760405162461bcd60e51b815260206004820152604b60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e60448201527f20302e3038204554482050657220426c756e74207c203830303030303030303060648201526a303030303030302057454960a81b608482015260a4016107d8565b600b5462010000900460ff16610d1b57336000908152600c602052604090205460ff1615610d1b5760405162461bcd60e51b815260206004820152601a60248201527f416464726573732048617320416c7265616479204d696e74656400000000000060448201526064016107d8565b336000908152600c60205260408120805460ff191660011790555b81811015610d925760085460075411610d8057610d6733600754600160405180602001604052806000815250612035565b600160076000828254610d7a91906132b8565b90915550505b80610d8a816132ef565b915050610d36565b5060038110158015610da75750600854600754105b15610e12576000610db9600383613320565b905060005b81811015610e0f57610de433600754600160405180602001604052806000815250612035565b600160076000828254610df791906132b8565b90915550819050610e07816132ef565b915050610dbe565b50505b604051819033907f141b41075bd791e750d6d9653036c85af835aa0bdff180d7c96894779a479db790600090a3506001600455565b6001600160a01b038516331480610e635750610e6385336106ba565b610ed55760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107d8565b610ee28585858585612161565b5050505050565b6003546001600160a01b03163314610f315760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600855565b60026004541415610f895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d8565b6002600455600354600160a01b900460ff1615610fdb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b32331461102a5760405162461bcd60e51b815260206004820152601560248201527f4e6f2045787465726e616c20436f6e747261637473000000000000000000000060448201526064016107d8565b600b54610100900460ff166110815760405162461bcd60e51b815260206004820152601c60248201527f426c756e744c6973742053616c65204973204e6f74204163746976650000000060448201526064016107d8565b336000908152600d602052604090205460ff16156111075760405162461bcd60e51b815260206004820152602d60248201527f557365722048617320416c726561647920436c61696d656420426c756e746c6960448201527f737420416c6c6f636174696f6e0000000000000000000000000000000000000060648201526084016107d8565b6008548360075461111891906132b8565b11156111795760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620426c756e747360b01b60648201526084016107d8565b3483600a5461118891906132d0565b1461120f5760405162461bcd60e51b815260206004820152604b60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e60448201527f20302e3038204554482050657220426c756e74207c203830303030303030303060648201526a303030303030302057454960a81b608482015260a4016107d8565b60095483111580156112215750600083115b6112935760405162461bcd60e51b815260206004820152603960248201527f43616e206f6e6c79206d696e74206d617820323020426c756e7473206174206160448201527f2074696d652c20616e642061206d696e696d756d206f6620310000000000000060648201526084016107d8565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061130d8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060065491508490506123da565b61137f5760405162461bcd60e51b815260206004820152603360248201527f496e76616c6964204d65726b6c6520547265652c204d73672e73656e6465722060448201527f4973204e6f74204f6e20426c756e744c6973740000000000000000000000000060648201526084016107d8565b336000908152600d60205260408120805460ff191660011790555b848110156113f657600854600754116113e4576113cb33600754600160405180602001604052806000815250612035565b6001600760008282546113de91906132b8565b90915550505b806113ee816132ef565b91505061139a565b506003841015801561140b5750600854600754105b1561147657600061141d600386613320565b905060005b818110156114735761144833600754600160405180602001604052806000815250612035565b60016007600082825461145b91906132b8565b9091555081905061146b816132ef565b915050611422565b50505b604051849033907f141b41075bd791e750d6d9653036c85af835aa0bdff180d7c96894779a479db790600090a3505060016004555050565b6003546001600160a01b031633146114f65760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b8051611509906005906020840190612afe565b5050565b606081518351146115865760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107d8565b6000835167ffffffffffffffff8111156115a2576115a2612c9f565b6040519080825280602002602001820160405280156115cb578160200160208202803683370190505b50905060005b8451811015611643576116168582815181106115ef576115ef613334565b602002602001015185838151811061160957611609613334565b602002602001015161075e565b82828151811061162857611628613334565b602090810291909101015261163c816132ef565b90506115d1565b509392505050565b6003546001600160a01b031633146116935760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600655565b6003546001600160a01b031633146116e05760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174d919061334a565b1161179a5760405162461bcd60e51b815260206004820152601260248201527f5a65726f20546f6b656e2042616c616e6365000000000000000000000000000060448201526064016107d8565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb907f00000000000000000000000000000000000000000000000000000000000000009083906370a0823190602401602060405180830381865afa158015611808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182c919061334a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189b9190613363565b505050565b6003546001600160a01b031633146118e85760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805461ff001981166101009182900460ff1615909102179055565b6003546001600160a01b0316331461194d5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b611955612489565b565b6003546001600160a01b0316331461199f5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b61195561252f565b6003546001600160a01b031633146119ef5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805462ff0000198116620100009182900460ff1615909102179055565b336001600160a01b0383161415611a8d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107d8565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b03163314611b415760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805461ffff19169055565b6003546001600160a01b03163314611b965760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b60004711611be65760405162461bcd60e51b815260206004820152601260248201527f5a65726f2045746865722042616c616e6365000000000000000000000000000060448201526064016107d8565b60405133904780156108fc02916000818181858888f19350505050158015611c12573d6000803e3d6000fd5b50565b6003546001600160a01b03163314611c5d5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805460ff19811660ff90911615179055565b6003546001600160a01b03163314611cb95760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b60005b818110156115095760085460075411611d2657611d0d7f0000000000000000000000000000000000000000000000000000000000000000600754600160405180602001604052806000815250612035565b600160076000828254611d2091906132b8565b90915550505b80611d30816132ef565b915050611cbc565b6001600160a01b038516331480611d545750611d5485336106ba565b611dc65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107d8565b610ee285858585856125b7565b6003546001600160a01b03163314611e1b5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b6001600160a01b038116611e975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d8565b611c1281612755565b6003546001600160a01b03163314611ee85760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600955565b505050505050565b3b151590565b606081611f3b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f655780611f4f816132ef565b9150611f5e9050600a83613320565b9150611f3f565b60008167ffffffffffffffff811115611f8057611f80612c9f565b6040519080825280601f01601f191660200182016040528015611faa576020820181803683370190505b5090505b841561202d57611fbf600183613380565b9150611fcc600a86613397565b611fd79060306132b8565b60f81b818381518110611fec57611fec613334565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612026600a86613320565b9450611fae565b949350505050565b6001600160a01b0384166120b15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107d8565b336120d1816000876120c2886127bf565b6120cb886127bf565b8761280a565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121019084906132b8565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ee28160008787878761285c565b81518351146121d85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107d8565b6001600160a01b03841661223c5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107d8565b3361224b81878787878761280a565b60005b845181101561237457600085828151811061226b5761226b613334565b60200260200101519050600085838151811061228957612289613334565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561231c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107d8565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906123599084906132b8565b925050819055505050508061236d906132ef565b905061224e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123c49291906133ab565b60405180910390a4611eed818787878787612a02565b600081815b855181101561247e5760008682815181106123fc576123fc613334565b6020026020010151905080831161243e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061246b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612476816132ef565b9150506123df565b509092149392505050565b600354600160a01b900460ff166124e25760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107d8565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600354600160a01b900460ff161561257c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125123390565b6001600160a01b03841661261b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107d8565b3361262b8187876120c2886127bf565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126af5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107d8565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126ec9084906132b8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461274c82888888888861285c565b50505050505050565b600380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106127f9576127f9613334565b602090810291909101015292915050565b600354600160a01b900460ff16156128575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b611eed565b6001600160a01b0384163b15611eed5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906128a090899089908890889088906004016133d0565b6020604051808303816000875af19250505080156128db575060408051601f3d908101601f191682019092526128d891810190613413565b60015b612991576128e7613430565b806308c379a0141561292157506128fc61344c565b806129075750612923565b8060405162461bcd60e51b81526004016107d89190612c73565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107d8565b6001600160e01b0319811663f23a6e6160e01b1461274c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107d8565b6001600160a01b0384163b15611eed5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a4690899089908890889088906004016134d6565b6020604051808303816000875af1925050508015612a81575060408051601f3d908101601f19168201909252612a7e91810190613413565b60015b612a8d576128e7613430565b6001600160e01b0319811663bc197c8160e01b1461274c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107d8565b828054612b0a90613178565b90600052602060002090601f016020900481019282612b2c5760008555612b72565b82601f10612b4557805160ff1916838001178555612b72565b82800160010185558215612b72579182015b82811115612b72578251825591602001919060010190612b57565b50612b7e929150612b82565b5090565b5b80821115612b7e5760008155600101612b83565b80356001600160a01b0381168114612bae57600080fd5b919050565b60008060408385031215612bc657600080fd5b612bcf83612b97565b946020939093013593505050565b6001600160e01b031981168114611c1257600080fd5b600060208284031215612c0557600080fd5b8135612c1081612bdd565b9392505050565b60005b83811015612c32578181015183820152602001612c1a565b83811115612c41576000848401525b50505050565b60008151808452612c5f816020860160208601612c17565b601f01601f19169290920160200192915050565b602081526000612c106020830184612c47565b600060208284031215612c9857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612cdb57612cdb612c9f565b6040525050565b600067ffffffffffffffff821115612cfc57612cfc612c9f565b5060051b60200190565b600082601f830112612d1757600080fd5b81356020612d2482612ce2565b604051612d318282612cb5565b83815260059390931b8501820192828101915086841115612d5157600080fd5b8286015b84811015612d6c5780358352918301918301612d55565b509695505050505050565b600067ffffffffffffffff831115612d9157612d91612c9f565b604051612da8601f8501601f191660200182612cb5565b809150838152848484011115612dbd57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612de657600080fd5b612c1083833560208501612d77565b600080600080600060a08688031215612e0d57600080fd5b612e1686612b97565b9450612e2460208701612b97565b9350604086013567ffffffffffffffff80821115612e4157600080fd5b612e4d89838a01612d06565b94506060880135915080821115612e6357600080fd5b612e6f89838a01612d06565b93506080880135915080821115612e8557600080fd5b50612e9288828901612dd5565b9150509295509295909350565b600080600060408486031215612eb457600080fd5b83359250602084013567ffffffffffffffff80821115612ed357600080fd5b818601915086601f830112612ee757600080fd5b813581811115612ef657600080fd5b8760208260051b8501011115612f0b57600080fd5b6020830194508093505050509250925092565b600060208284031215612f3057600080fd5b813567ffffffffffffffff811115612f4757600080fd5b8201601f81018413612f5857600080fd5b61202d84823560208401612d77565b60008060408385031215612f7a57600080fd5b823567ffffffffffffffff80821115612f9257600080fd5b818501915085601f830112612fa657600080fd5b81356020612fb382612ce2565b604051612fc08282612cb5565b83815260059390931b8501820192828101915089841115612fe057600080fd5b948201945b8386101561300557612ff686612b97565b82529482019490820190612fe5565b9650508601359250508082111561301b57600080fd5b5061302885828601612d06565b9150509250929050565b600081518084526020808501945080840160005b8381101561306257815187529582019590820190600101613046565b509495945050505050565b602081526000612c106020830184613032565b60006020828403121561309257600080fd5b612c1082612b97565b8015158114611c1257600080fd5b600080604083850312156130bc57600080fd5b6130c583612b97565b915060208301356130d58161309b565b809150509250929050565b600080604083850312156130f357600080fd5b6130fc83612b97565b915061310a60208401612b97565b90509250929050565b600080600080600060a0868803121561312b57600080fd5b61313486612b97565b945061314260208701612b97565b93506040860135925060608601359150608086013567ffffffffffffffff81111561316c57600080fd5b612e9288828901612dd5565b600181811c9082168061318c57607f821691505b602082108114156131ad57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516131c5818560208601612c17565b9290920192915050565b600080845481600182811c9150808316806131eb57607f831692505b602080841082141561320b57634e487b7160e01b86526022600452602486fd5b81801561321f57600181146132305761325d565b60ff1986168952848901965061325d565b60008b81526020902060005b868110156132555781548b82015290850190830161323c565b505084890196505b50505050505061329961327082866131b3565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156132cb576132cb6132a2565b500190565b60008160001904831182151516156132ea576132ea6132a2565b500290565b6000600019821415613303576133036132a2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261332f5761332f61330a565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561335c57600080fd5b5051919050565b60006020828403121561337557600080fd5b8151612c108161309b565b600082821015613392576133926132a2565b500390565b6000826133a6576133a661330a565b500690565b6040815260006133be6040830185613032565b82810360208401526132998185613032565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261340860a0830184612c47565b979650505050505050565b60006020828403121561342557600080fd5b8151612c1081612bdd565b600060033d11156134495760046000803e5060005160e01c5b90565b600060443d101561345a5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561348a57505050505090565b82850191508151818111156134a25750505050505090565b843d87010160208285010111156134bc5750505050505090565b6134cb60208286010187612cb5565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261350260a0830186613032565b82810360608401526135148186613032565b905082810360808401526135288185612c47565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f2e04c644977f7d0f4c0bb340af60435193d6228e3b4b8dc69202e57e1db8f7f64736f6c634300080b0033697066733a2f2f516d616d6341364e4e51594879616a6a69776559334c346d4d6d7968575133706144625137503454506b646263722f68747470733a2f2f697066732e696f2f697066732f516d616d6341364e4e51594879616a6a69776559334c346d4d6d7968575133706144625137503454506b646263722f7b69647d2e6a736f6e

Deployed Bytecode

0x6080604052600436106102845760003560e01c80635c975abb11610153578063ad2bf9e5116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610708578063f5a5726314610728578063f7fb579f1461073e57600080fd5b8063e985e9c51461069f578063f242432a146106e857600080fd5b8063c94de64d116100b0578063c94de64d14610650578063ce46bcb91461066a578063d1ca36681461067f57600080fd5b8063ad2bf9e514610626578063c0e6f2541461063b57600080fd5b80638c6d6d7e1161012257806395d89b411161010757806395d89b41146105a85780639c51b6f2146105f1578063a22cb4651461060657600080fd5b80638c6d6d7e1461056b5780638da5cb5b1461058057600080fd5b80635c975abb1461050257806362873fba146105215780637494abdf14610541578063824c6c4a1461055657600080fd5b80632941d3ac116102015780633ba223de116101b55780634a3b889a1161019a5780634a3b889a146104955780634e1273f4146104b5578063585f85f6146104e257600080fd5b80633ba223de1461046957806349ee0cfd1461047f57600080fd5b80632eb2c2d6116101e65780632eb2c2d6146104165780632f16c7141461043657806330432db71461045657600080fd5b80632941d3ac146103e45780632982a2bd146103f757600080fd5b80630e89341c1161025857806318160ddd1161023d57806318160ddd146103975780631e9884f8146103ac5780631fb71eaf146103ce57600080fd5b80630e89341c146103575780631393094f1461037757600080fd5b8062fdd58e1461028957806301ffc9a7146102bc57806305d1941a146102ec57806306fdde031461030e575b600080fd5b34801561029557600080fd5b506102a96102a4366004612bb3565b61075e565b6040519081526020015b60405180910390f35b3480156102c857600080fd5b506102dc6102d7366004612bf3565b610807565b60405190151581526020016102b3565b3480156102f857600080fd5b506103016108a4565b6040516102b39190612c73565b34801561031a57600080fd5b506103016040518060400160405280600a81526020017f426c756e7448656164730000000000000000000000000000000000000000000081525081565b34801561036357600080fd5b50610301610372366004612c86565b610932565b34801561038357600080fd5b50600b546102dc9062010000900460ff1681565b3480156103a357600080fd5b506008546102a9565b3480156103b857600080fd5b506103cc6103c7366004612c86565b610966565b005b3480156103da57600080fd5b506102a960095481565b6103cc6103f2366004612c86565b6109b3565b34801561040357600080fd5b50600b546102dc90610100900460ff1681565b34801561042257600080fd5b506103cc610431366004612df5565b610e47565b34801561044257600080fd5b506103cc610451366004612c86565b610ee9565b6103cc610464366004612e9f565b610f36565b34801561047557600080fd5b506102a9600a5481565b34801561048b57600080fd5b506102a960075481565b3480156104a157600080fd5b506103cc6104b0366004612f1e565b6114ae565b3480156104c157600080fd5b506104d56104d0366004612f67565b61150d565b6040516102b3919061306d565b3480156104ee57600080fd5b506103cc6104fd366004612c86565b61164b565b34801561050e57600080fd5b50600354600160a01b900460ff166102dc565b34801561052d57600080fd5b506103cc61053c366004613080565b611698565b34801561054d57600080fd5b506103cc6118a0565b34801561056257600080fd5b506103cc611905565b34801561057757600080fd5b506103cc611957565b34801561058c57600080fd5b506003546040516001600160a01b0390911681526020016102b3565b3480156105b457600080fd5b506103016040518060400160405280600581526020017f424c554e5400000000000000000000000000000000000000000000000000000081525081565b3480156105fd57600080fd5b506103cc6119a7565b34801561061257600080fd5b506103cc6106213660046130a9565b611a0e565b34801561063257600080fd5b506103cc611af9565b34801561064757600080fd5b506103cc611b4e565b34801561065c57600080fd5b50600b546102dc9060ff1681565b34801561067657600080fd5b506103cc611c15565b34801561068b57600080fd5b506103cc61069a366004612c86565b611c71565b3480156106ab57600080fd5b506102dc6106ba3660046130e0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106f457600080fd5b506103cc610703366004613113565b611d38565b34801561071457600080fd5b506103cc610723366004613080565b611dd3565b34801561073457600080fd5b506102a960085481565b34801561074a57600080fd5b506103cc610759366004612c86565b611ea0565b60006001600160a01b0383166107e15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061086a57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061089e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600580546108b190613178565b80601f01602080910402602001604051908101604052809291908181526020018280546108dd90613178565b801561092a5780601f106108ff5761010080835404028352916020019161092a565b820191906000526020600020905b81548152906001019060200180831161090d57829003601f168201915b505050505081565b6060600561093f83611efb565b6040516020016109509291906131cf565b6040516020818303038152906040529050919050565b6003546001600160a01b031633146109ae5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600a55565b60026004541415610a065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d8565b6002600455600354600160a01b900460ff1615610a585760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b323314610aa75760405162461bcd60e51b815260206004820152601560248201527f4e6f2045787465726e616c20436f6e747261637473000000000000000000000060448201526064016107d8565b600b5460ff16610b1f5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420426c756e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016107d8565b6009548111158015610b315750600081115b610ba35760405162461bcd60e51b815260206004820152603960248201527f43616e206f6e6c79206d696e74206d617820323020426c756e7473206174206160448201527f2074696d652c20616e642061206d696e696d756d206f6620310000000000000060648201526084016107d8565b60085481600754610bb491906132b8565b1115610c155760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620426c756e747360b01b60648201526084016107d8565b3481600a54610c2491906132d0565b14610cab5760405162461bcd60e51b815260206004820152604b60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e60448201527f20302e3038204554482050657220426c756e74207c203830303030303030303060648201526a303030303030302057454960a81b608482015260a4016107d8565b600b5462010000900460ff16610d1b57336000908152600c602052604090205460ff1615610d1b5760405162461bcd60e51b815260206004820152601a60248201527f416464726573732048617320416c7265616479204d696e74656400000000000060448201526064016107d8565b336000908152600c60205260408120805460ff191660011790555b81811015610d925760085460075411610d8057610d6733600754600160405180602001604052806000815250612035565b600160076000828254610d7a91906132b8565b90915550505b80610d8a816132ef565b915050610d36565b5060038110158015610da75750600854600754105b15610e12576000610db9600383613320565b905060005b81811015610e0f57610de433600754600160405180602001604052806000815250612035565b600160076000828254610df791906132b8565b90915550819050610e07816132ef565b915050610dbe565b50505b604051819033907f141b41075bd791e750d6d9653036c85af835aa0bdff180d7c96894779a479db790600090a3506001600455565b6001600160a01b038516331480610e635750610e6385336106ba565b610ed55760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107d8565b610ee28585858585612161565b5050505050565b6003546001600160a01b03163314610f315760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600855565b60026004541415610f895760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d8565b6002600455600354600160a01b900460ff1615610fdb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b32331461102a5760405162461bcd60e51b815260206004820152601560248201527f4e6f2045787465726e616c20436f6e747261637473000000000000000000000060448201526064016107d8565b600b54610100900460ff166110815760405162461bcd60e51b815260206004820152601c60248201527f426c756e744c6973742053616c65204973204e6f74204163746976650000000060448201526064016107d8565b336000908152600d602052604090205460ff16156111075760405162461bcd60e51b815260206004820152602d60248201527f557365722048617320416c726561647920436c61696d656420426c756e746c6960448201527f737420416c6c6f636174696f6e0000000000000000000000000000000000000060648201526084016107d8565b6008548360075461111891906132b8565b11156111795760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620426c756e747360b01b60648201526084016107d8565b3483600a5461118891906132d0565b1461120f5760405162461bcd60e51b815260206004820152604b60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563742e60448201527f20302e3038204554482050657220426c756e74207c203830303030303030303060648201526a303030303030302057454960a81b608482015260a4016107d8565b60095483111580156112215750600083115b6112935760405162461bcd60e51b815260206004820152603960248201527f43616e206f6e6c79206d696e74206d617820323020426c756e7473206174206160448201527f2074696d652c20616e642061206d696e696d756d206f6620310000000000000060648201526084016107d8565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061130d8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060065491508490506123da565b61137f5760405162461bcd60e51b815260206004820152603360248201527f496e76616c6964204d65726b6c6520547265652c204d73672e73656e6465722060448201527f4973204e6f74204f6e20426c756e744c6973740000000000000000000000000060648201526084016107d8565b336000908152600d60205260408120805460ff191660011790555b848110156113f657600854600754116113e4576113cb33600754600160405180602001604052806000815250612035565b6001600760008282546113de91906132b8565b90915550505b806113ee816132ef565b91505061139a565b506003841015801561140b5750600854600754105b1561147657600061141d600386613320565b905060005b818110156114735761144833600754600160405180602001604052806000815250612035565b60016007600082825461145b91906132b8565b9091555081905061146b816132ef565b915050611422565b50505b604051849033907f141b41075bd791e750d6d9653036c85af835aa0bdff180d7c96894779a479db790600090a3505060016004555050565b6003546001600160a01b031633146114f65760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b8051611509906005906020840190612afe565b5050565b606081518351146115865760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107d8565b6000835167ffffffffffffffff8111156115a2576115a2612c9f565b6040519080825280602002602001820160405280156115cb578160200160208202803683370190505b50905060005b8451811015611643576116168582815181106115ef576115ef613334565b602002602001015185838151811061160957611609613334565b602002602001015161075e565b82828151811061162857611628613334565b602090810291909101015261163c816132ef565b90506115d1565b509392505050565b6003546001600160a01b031633146116935760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600655565b6003546001600160a01b031633146116e05760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174d919061334a565b1161179a5760405162461bcd60e51b815260206004820152601260248201527f5a65726f20546f6b656e2042616c616e6365000000000000000000000000000060448201526064016107d8565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb907f000000000000000000000000d98d0432c38536260c5bd323e8ce71144d366a859083906370a0823190602401602060405180830381865afa158015611808573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182c919061334a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189b9190613363565b505050565b6003546001600160a01b031633146118e85760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805461ff001981166101009182900460ff1615909102179055565b6003546001600160a01b0316331461194d5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b611955612489565b565b6003546001600160a01b0316331461199f5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b61195561252f565b6003546001600160a01b031633146119ef5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805462ff0000198116620100009182900460ff1615909102179055565b336001600160a01b0383161415611a8d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107d8565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b03163314611b415760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805461ffff19169055565b6003546001600160a01b03163314611b965760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b60004711611be65760405162461bcd60e51b815260206004820152601260248201527f5a65726f2045746865722042616c616e6365000000000000000000000000000060448201526064016107d8565b60405133904780156108fc02916000818181858888f19350505050158015611c12573d6000803e3d6000fd5b50565b6003546001600160a01b03163314611c5d5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600b805460ff19811660ff90911615179055565b6003546001600160a01b03163314611cb95760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b60005b818110156115095760085460075411611d2657611d0d7f000000000000000000000000d98d0432c38536260c5bd323e8ce71144d366a85600754600160405180602001604052806000815250612035565b600160076000828254611d2091906132b8565b90915550505b80611d30816132ef565b915050611cbc565b6001600160a01b038516331480611d545750611d5485336106ba565b611dc65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107d8565b610ee285858585856125b7565b6003546001600160a01b03163314611e1b5760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b6001600160a01b038116611e975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d8565b611c1281612755565b6003546001600160a01b03163314611ee85760405162461bcd60e51b8152602060048201819052602482015260008051602061353583398151915260448201526064016107d8565b600955565b505050505050565b3b151590565b606081611f3b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f655780611f4f816132ef565b9150611f5e9050600a83613320565b9150611f3f565b60008167ffffffffffffffff811115611f8057611f80612c9f565b6040519080825280601f01601f191660200182016040528015611faa576020820181803683370190505b5090505b841561202d57611fbf600183613380565b9150611fcc600a86613397565b611fd79060306132b8565b60f81b818381518110611fec57611fec613334565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612026600a86613320565b9450611fae565b949350505050565b6001600160a01b0384166120b15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107d8565b336120d1816000876120c2886127bf565b6120cb886127bf565b8761280a565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121019084906132b8565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ee28160008787878761285c565b81518351146121d85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107d8565b6001600160a01b03841661223c5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107d8565b3361224b81878787878761280a565b60005b845181101561237457600085828151811061226b5761226b613334565b60200260200101519050600085838151811061228957612289613334565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561231c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107d8565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906123599084906132b8565b925050819055505050508061236d906132ef565b905061224e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123c49291906133ab565b60405180910390a4611eed818787878787612a02565b600081815b855181101561247e5760008682815181106123fc576123fc613334565b6020026020010151905080831161243e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061246b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612476816132ef565b9150506123df565b509092149392505050565b600354600160a01b900460ff166124e25760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107d8565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600354600160a01b900460ff161561257c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125123390565b6001600160a01b03841661261b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107d8565b3361262b8187876120c2886127bf565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126af5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107d8565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126ec9084906132b8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461274c82888888888861285c565b50505050505050565b600380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106127f9576127f9613334565b602090810291909101015292915050565b600354600160a01b900460ff16156128575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107d8565b611eed565b6001600160a01b0384163b15611eed5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906128a090899089908890889088906004016133d0565b6020604051808303816000875af19250505080156128db575060408051601f3d908101601f191682019092526128d891810190613413565b60015b612991576128e7613430565b806308c379a0141561292157506128fc61344c565b806129075750612923565b8060405162461bcd60e51b81526004016107d89190612c73565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107d8565b6001600160e01b0319811663f23a6e6160e01b1461274c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107d8565b6001600160a01b0384163b15611eed5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a4690899089908890889088906004016134d6565b6020604051808303816000875af1925050508015612a81575060408051601f3d908101601f19168201909252612a7e91810190613413565b60015b612a8d576128e7613430565b6001600160e01b0319811663bc197c8160e01b1461274c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107d8565b828054612b0a90613178565b90600052602060002090601f016020900481019282612b2c5760008555612b72565b82601f10612b4557805160ff1916838001178555612b72565b82800160010185558215612b72579182015b82811115612b72578251825591602001919060010190612b57565b50612b7e929150612b82565b5090565b5b80821115612b7e5760008155600101612b83565b80356001600160a01b0381168114612bae57600080fd5b919050565b60008060408385031215612bc657600080fd5b612bcf83612b97565b946020939093013593505050565b6001600160e01b031981168114611c1257600080fd5b600060208284031215612c0557600080fd5b8135612c1081612bdd565b9392505050565b60005b83811015612c32578181015183820152602001612c1a565b83811115612c41576000848401525b50505050565b60008151808452612c5f816020860160208601612c17565b601f01601f19169290920160200192915050565b602081526000612c106020830184612c47565b600060208284031215612c9857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612cdb57612cdb612c9f565b6040525050565b600067ffffffffffffffff821115612cfc57612cfc612c9f565b5060051b60200190565b600082601f830112612d1757600080fd5b81356020612d2482612ce2565b604051612d318282612cb5565b83815260059390931b8501820192828101915086841115612d5157600080fd5b8286015b84811015612d6c5780358352918301918301612d55565b509695505050505050565b600067ffffffffffffffff831115612d9157612d91612c9f565b604051612da8601f8501601f191660200182612cb5565b809150838152848484011115612dbd57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612de657600080fd5b612c1083833560208501612d77565b600080600080600060a08688031215612e0d57600080fd5b612e1686612b97565b9450612e2460208701612b97565b9350604086013567ffffffffffffffff80821115612e4157600080fd5b612e4d89838a01612d06565b94506060880135915080821115612e6357600080fd5b612e6f89838a01612d06565b93506080880135915080821115612e8557600080fd5b50612e9288828901612dd5565b9150509295509295909350565b600080600060408486031215612eb457600080fd5b83359250602084013567ffffffffffffffff80821115612ed357600080fd5b818601915086601f830112612ee757600080fd5b813581811115612ef657600080fd5b8760208260051b8501011115612f0b57600080fd5b6020830194508093505050509250925092565b600060208284031215612f3057600080fd5b813567ffffffffffffffff811115612f4757600080fd5b8201601f81018413612f5857600080fd5b61202d84823560208401612d77565b60008060408385031215612f7a57600080fd5b823567ffffffffffffffff80821115612f9257600080fd5b818501915085601f830112612fa657600080fd5b81356020612fb382612ce2565b604051612fc08282612cb5565b83815260059390931b8501820192828101915089841115612fe057600080fd5b948201945b8386101561300557612ff686612b97565b82529482019490820190612fe5565b9650508601359250508082111561301b57600080fd5b5061302885828601612d06565b9150509250929050565b600081518084526020808501945080840160005b8381101561306257815187529582019590820190600101613046565b509495945050505050565b602081526000612c106020830184613032565b60006020828403121561309257600080fd5b612c1082612b97565b8015158114611c1257600080fd5b600080604083850312156130bc57600080fd5b6130c583612b97565b915060208301356130d58161309b565b809150509250929050565b600080604083850312156130f357600080fd5b6130fc83612b97565b915061310a60208401612b97565b90509250929050565b600080600080600060a0868803121561312b57600080fd5b61313486612b97565b945061314260208701612b97565b93506040860135925060608601359150608086013567ffffffffffffffff81111561316c57600080fd5b612e9288828901612dd5565b600181811c9082168061318c57607f821691505b602082108114156131ad57634e487b7160e01b600052602260045260246000fd5b50919050565b600081516131c5818560208601612c17565b9290920192915050565b600080845481600182811c9150808316806131eb57607f831692505b602080841082141561320b57634e487b7160e01b86526022600452602486fd5b81801561321f57600181146132305761325d565b60ff1986168952848901965061325d565b60008b81526020902060005b868110156132555781548b82015290850190830161323c565b505084890196505b50505050505061329961327082866131b3565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156132cb576132cb6132a2565b500190565b60008160001904831182151516156132ea576132ea6132a2565b500290565b6000600019821415613303576133036132a2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261332f5761332f61330a565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561335c57600080fd5b5051919050565b60006020828403121561337557600080fd5b8151612c108161309b565b600082821015613392576133926132a2565b500390565b6000826133a6576133a661330a565b500690565b6040815260006133be6040830185613032565b82810360208401526132998185613032565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261340860a0830184612c47565b979650505050505050565b60006020828403121561342557600080fd5b8151612c1081612bdd565b600060033d11156134495760046000803e5060005160e01c5b90565b600060443d101561345a5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561348a57505050505090565b82850191508151818111156134a25750505050505090565b843d87010160208285010111156134bc5750505050505090565b6134cb60208286010187612cb5565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261350260a0830186613032565b82810360608401526135148186613032565b905082810360808401526135288185612c47565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f2e04c644977f7d0f4c0bb340af60435193d6228e3b4b8dc69202e57e1db8f7f64736f6c634300080b0033

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.