ETH Price: $3,431.89 (+1.74%)

Token

BS Special Editions (BSSE)
 

Overview

Max Total Supply

367 BSSE

Holders

278

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
biggingeco.eth
0xeb0da32c9d1aa1aabf37798b347638e57bfc6a6a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BoringStoneSpecialEditions

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 14 : BoringStoneSpecialEditions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

/**
 * @title BoringStone Special Editions ERC1155 Smart Contract
 * @dev Extends ERC1155 
 */

contract BoringStoneSpecialEditions is ERC1155, ERC1155Supply, ERC1155Burnable, Ownable, ReentrancyGuard {
    string private _contractURI;
    address public minterAddress;
    string _name = "BS Special Editions";
    string _symbol = "BSSE";
    uint256 public mintingTokenID = 0;
    uint256 public numberMintedTotal = 0;
    uint256 public maxTokens = 1000;

    /// PUBLIC MINT
    uint256 public tokenPricePublic = 0.00 ether;
    bool public mintIsActivePublic = false;
    uint256 public maxTokensPerTransactionPublic = 1;
    uint256 public numberMintedPublic = 0;
    uint256 public maxTokensPublic  = 2;

    // PRESALE MINT
    uint256 public tokenPricePresale = 0.00 ether;
    bool public mintIsActivePresale = false;
    uint256 public maxTokensPerTransactionPresale = 1;
    uint256 public numberMintedPresale = 0;
    uint256 public maxTokensPresale = 1000;

    // FREE WALLET BASED MINT
    bool public mintIsActiveFree = false;
    uint256 public numberFreeToMint = 1;
    mapping (address => bool) public freeWalletList;

    // PRESALE MERKLE MINT
    mapping (uint256 => mapping (address => bool) ) public presaleMerkleWalletList;
    bytes32 public presaleMerkleRoot;


    constructor() ERC1155("") {}

    // PUBLIC MINT

    /**
     * @notice turn on/off public mint
     */
    function flipMintStatePublic() external onlyOwner {
        mintIsActivePublic = !mintIsActivePublic;
    }

    /**
     * @notice Public mint function
     */
    function mint(uint256 numberOfTokens) external payable nonReentrant {
        require(mintIsActivePublic, "Public mint is not active");
        require(
            numberOfTokens <= maxTokensPerTransactionPublic, 
            "You went over max tokens per transaction"
        );
        require(
	        msg.value >= tokenPricePublic * numberOfTokens,
            "You sent the incorrect amount of ETH"
        );
        require(
            numberMintedPublic + numberOfTokens <= maxTokensPublic, 
            "Not enough tokens left to mint that many"
        );
        require(
            numberMintedTotal + numberOfTokens <= maxTokens, 
            "Not enough tokens left to mint that many"
        );

        numberMintedPublic += numberOfTokens;
        numberMintedTotal += numberOfTokens;
        _mint(msg.sender, mintingTokenID, numberOfTokens, "");
    }

    //  PRESALE WALLET MERKLE MINT

    /**
    * @notice sets Merkle Root for presale
    */
    function setMerkleRoot(bytes32 _presaleMerkleRoot) public onlyOwner {
        presaleMerkleRoot = _presaleMerkleRoot;
    }

    /**
    * @notice view function to check if a merkleProof is valid before sending presale mint function
    */
    function isOnPresaleMerkle(bytes32[] calldata _merkleProof) public view returns(bool) {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        return MerkleProof.verify(_merkleProof, presaleMerkleRoot, leaf);
    }

    /**
     * @notice Turn on/off presale wallet mint
     */
    function flipPresaleMintState() external onlyOwner {
        mintIsActivePresale = !mintIsActivePresale;
    }

    /**
     * @notice deprecated - but useful to reset a list of addresses to be able to presale mint again. 
     */
    function initPresaleMerkleWalletList(address[] memory walletList) external onlyOwner {
	    for (uint i; i < walletList.length; i++) {
		    presaleMerkleWalletList[mintingTokenID][walletList[i]] = false;
	    }
    }

    /**
     * @notice check if address is on presale list
     */
    function checkAddressOnPresaleMerkleWalletList(uint256 tokenId, address wallet) public view returns (bool) {
	    return presaleMerkleWalletList[tokenId][wallet];
    }

    /**
     * @notice Presale wallet list mint 
     */
    function mintPresale(uint256 numberOfTokens, bytes32[] calldata _merkleProof) external payable nonReentrant{
        require(mintIsActivePresale, "Presale mint is not active");
        require(
            numberOfTokens <= maxTokensPerTransactionPresale, 
            "You went over max tokens per transaction"
        );
        require(
	        msg.value >= tokenPricePresale * numberOfTokens,
            "You sent the incorrect amount of ETH"
        );
        require(
            !presaleMerkleWalletList[mintingTokenID][msg.sender], 
            "You are not on the presale wallet list or have already minted"
        );
        require(
            numberMintedPresale + numberOfTokens <= maxTokensPresale, 
            "Not enough tokens left to mint that many"
        );
        require(
            numberMintedTotal + numberOfTokens <= maxTokens, 
            "Not enough tokens left to mint that many"
        );

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, presaleMerkleRoot, leaf), "Invalid Proof");
        numberMintedPresale += numberOfTokens;
        numberMintedTotal += numberOfTokens;
        presaleMerkleWalletList[mintingTokenID][msg.sender] = true;

        _mint(msg.sender, mintingTokenID, numberOfTokens, "");
    }

    // Free Wallet Mint

    /**
     * @notice turn on/off free wallet mint
     */
    function flipFreeWalletState() external onlyOwner {
	    mintIsActiveFree = !mintIsActiveFree;
    }

    /**
     * @notice data structure for uploading free mint wallets
     */
    function initFreeWalletList(address[] memory walletList) external onlyOwner {
	    for (uint256 i = 0; i < walletList.length; i++) {
		    freeWalletList[walletList[i]] = true;
	    }
    }

    /**
     * @notice Free mint for wallets in freeWalletList
     */
    function mintFreeWalletList() external nonReentrant {
        require(mintIsActiveFree, "Free mint is not active");
        require(
            numberMintedTotal + numberFreeToMint <= maxTokens, 
            "Not enough tokens left to mint that many"
        );
	    require(
            freeWalletList[msg.sender] == true, 
            "You are not on the free wallet list or have already minted"
        );

        numberMintedTotal += numberFreeToMint;
        freeWalletList[msg.sender] = false;
        _mint(msg.sender, mintingTokenID, numberFreeToMint, "");
    }


    /**
    *  @notice set address of minter for airdrops
    */
    function setMinterAddress(address minter) public onlyOwner {
	    minterAddress = minter;
    }

    modifier onlyMinter {
	    require(minterAddress == msg.sender || owner() == msg.sender, "You must have the Minter role");
	    _;
    }

     /**
    *  @notice mint a collection
    */
    function mintReserve(uint256 amount) public onlyOwner {
        _mint(msg.sender, mintingTokenID, amount, "");
    }

    /**
    *  @notice mint a batch of token collections
    */
    function mintBatch(
        uint256[] memory ids,
        uint256[] memory amounts
    ) public onlyMinter {
        _mintBatch(msg.sender, ids, amounts, "");
    }

    /**
    * @notice airdrop a specific token to a list of addresses
    */

    function airdrop(address[] calldata addresses, uint id, uint amt_each) public onlyMinter {
        for (uint i=0; i < addresses.length; i++) {
            _mint(addresses[i], id, amt_each, "");
        }
    }

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

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

    function contractURI() public view returns (string memory) {
	    return _contractURI;
    }


    //  SETTER FUNCTIONS

    /**
    *  @notice set token base uri
    */
    function setURI(string memory baseURI) public onlyMinter {
        _setURI(baseURI);
    }

    /**
    *  @notice set contract uri https://docs.opensea.io/docs/contract-level-metadata
    */
    function setContractURI(string memory newContractURI) public onlyOwner {
        _contractURI = newContractURI;
    }
    
    /**
    *  @notice Set token price of presale - tokenPricePublic
    */
    function setTokenPricePublic(uint256 tokenPrice) external onlyOwner {
        require(tokenPrice >= 0, "Must be greater or equal then zer0");
        tokenPricePublic = tokenPrice;
    }

    /**
    *  @notice Set max tokens allowed minted in public sale - maxTokensPublic
    */
    function setMaxTokens (uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokens = amount;
    }

    /**
    *  @notice Set total number of tokens minted in public sale - numberMintedPublic
    */
    function setNumberMintedTotal(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        numberMintedTotal = amount;
    }

    /**
    *  @notice Set max tokens allowed minted in public sale - maxTokensPublic
    */
    function setMaxTokensPublic (uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokensPublic = amount;
    }

    /**
    *  @notice Set total number of tokens minted in public sale - numberMintedPublic
    */
    function setNumberMintedPublic(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        numberMintedPublic = amount;
    }

    /**
    *  @notice Set max tokens per transaction for public sale - maxTokensPerTransactionPublic 
    */
    function setMaxTokensPerTransactionPublic(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPerTransactionPublic = amount;
    }

    /**
    *  @notice Set token price of presale - tokenPricePresale
    */
    function setTokenPricePresale(uint256 tokenPrice) external onlyOwner {
        require(tokenPrice >= 0, "Must be greater or equal than zer0");
        tokenPricePresale = tokenPrice;
    }

    /**
    *  @notice Set max tokens allowed minted in presale - maxTokensPresale
    */
    function setMaxTokensPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPresale = amount;
    }

    /**
    *  @notice Set total number of tokens minted in presale - numberMintedPresale
    */
    function setNumberMintedPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        numberMintedPresale = amount;
    }

    /**
    *  @notice Set max tokens per transaction for presale - maxTokensPerTransactionPresale 
    */
    function setMaxTokensPerTransactionPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPerTransactionPresale = amount;
    }

    /**
    *  @notice Set the current token ID minting - mintingTokenID
    */
    function setMintingTokenID(uint256 tokenID) external onlyOwner {
        require(tokenID >= 0, "Invalid token id");
        mintingTokenID = tokenID;
    }

    /**
    *  @notice Set the current token ID minting and reset all counters and active mints to 0 and false respectively
    */
    function setMintingTokenIdAndResetState(uint256 tokenID) external onlyOwner {
	    require(tokenID >= 0, "Invalid token id");
	    mintingTokenID = tokenID;

	    mintIsActivePublic = false;
	    mintIsActivePresale = false;
	    mintIsActiveFree = false;

        numberMintedTotal = 0;
	    numberMintedPresale = 0;
	    numberMintedPublic = 0;
    }

    /**
     * @notice Withdraw ETH in contract to ownership wallet
     */
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(owner()), balance);
    }

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

}

File 2 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 3 of 14 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

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

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

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

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) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        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));
            }
        }
        return computedHash;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        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 10 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

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 12 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amt_each","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"}],"name":"checkAddressOnPresaleMerkleWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipFreeWalletState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintStatePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresaleMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"walletList","type":"address[]"}],"name":"initFreeWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"walletList","type":"address[]"}],"name":"initPresaleMerkleWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isOnPresaleMerkle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTransactionPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTransactionPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintFreeWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActiveFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActivePresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActivePublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberFreeToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"presaleMerkleWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPerTransactionPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPerTransactionPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_presaleMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"setMintingTokenID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"setMintingTokenIdAndResetState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setTokenPricePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setTokenPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPricePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052601360808190527f4253205370656369616c2045646974696f6e730000000000000000000000000060a090815262000040916008919062000187565b50604080518082019091526004808252634253534560e01b60209092019182526200006e9160099162000187565b506000600a819055600b8190556103e8600c819055600d829055600e805460ff199081169091556001600f81905560108490556002601155601284905560138054831690556014819055601593909355601691909155601780549091169055601855348015620000dd57600080fd5b50604080516020810190915260008152620000f88162000118565b506200010d6200010762000131565b62000135565b60016005556200026a565b80516200012d90600290602084019062000187565b5050565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000195906200022d565b90600052602060002090601f016020900481019282620001b9576000855562000204565b82601f10620001d457805160ff191683800117855562000204565b8280016001018555821562000204579182015b8281111562000204578251825591602001919060010190620001e7565b506200021292915062000216565b5090565b5b8082111562000212576000815560010162000217565b6002810460018216806200024257607f821691505b602082108114156200026457634e487b7160e01b600052602260045260246000fd5b50919050565b61425b806200027a6000396000f3fe6080604052600436106104135760003560e01c80638b13fde811610228578063c7b6945911610128578063e985e9c5116100bb578063f906751b1161008a578063f93468811161006f578063f934688114610b2c578063fa5d788214610b4c578063ff5a70c614610b6c57610413565b8063f906751b14610af7578063f931a4c214610b1757610413565b8063e985e9c514610a77578063f242432a14610a97578063f2fde38b14610ab7578063f5298aca14610ad757610413565b8063d70c3dba116100f7578063d70c3dba14610a18578063d9a02e6914610a38578063e831574214610a4d578063e8a3d48514610a6257610413565b8063c7b69459146109ae578063cca97911146109c3578063cd2c7052146109d8578063d351cfdc146109f857610413565b8063a22cb465116101bb578063b8de970a1161018a578063b9dc644a1161016f578063b9dc644a1461094e578063bd85b0391461096e578063c121d6f01461098e57610413565b8063b8de970a14610924578063b92bc3751461093957610413565b8063a22cb465146108a4578063a3106b95146108c4578063a40d317b146108e4578063a496dedf1461090457610413565b806395d89b41116101f757806395d89b41146108475780639be51bea1461085c578063a0712d6814610871578063a1e33d021461088457610413565b80638b13fde8146107dd5780638da5cb5b146107fd5780638f4167da14610812578063938e3d7b1461082757610413565b806335a4faf41161033357806359aefc59116102c6578063715018a6116102955780637cb647591161027a5780637cb64759146107935780637de69d5f146107b3578063894a8cac146107c857610413565b8063715018a61461075e5780637521134c1461077357610413565b806359aefc59146106f45780635d04aeab146107095780636b20c454146107295780636de56d0e1461074957610413565b806346ca1ab81161030257806346ca1ab8146106725780634e1273f4146106925780634f558e79146106bf5780635071d017146106df57610413565b806335a4faf4146106085780633ccfd60b1461062857806343b43a541461063d5780634576cdd51461065d57610413565b806311e776fe116103ab5780632b0384111161037a5780632b038411146105915780632eb2c2d6146105a6578063311df29a146105c657806334d722c9146105e657610413565b806311e776fe146105275780631df09e471461054757806322212e2b1461055c5780632611f4661461057157610413565b806306fdde03116103e757806306fdde03146104b25780630c0a6b5e146104d45780630c9a6313146104e75780630e89341c1461050757610413565b8062fdd58e1461041857806301ffc9a71461044e57806302fe53051461047b57806305461a6a1461049d575b600080fd5b34801561042457600080fd5b506104386104333660046132ca565b610b81565b6040516104459190613730565b60405180910390f35b34801561045a57600080fd5b5061046e610469366004613495565b610bd8565b6040516104459190613725565b34801561048757600080fd5b5061049b6104963660046134cd565b610c52565b005b3480156104a957600080fd5b5061046e610ca2565b3480156104be57600080fd5b506104c7610cab565b6040516104459190613739565b61049b6104e2366004613535565b610d3e565b3480156104f357600080fd5b5061046e6105023660046130ca565b610f79565b34801561051357600080fd5b506104c761052236600461347d565b610f8e565b34801561053357600080fd5b5061049b61054236600461347d565b611022565b34801561055357600080fd5b50610438611066565b34801561056857600080fd5b5061043861106c565b34801561057d57600080fd5b5061049b61058c366004613374565b611072565b34801561059d57600080fd5b5061043861113a565b3480156105b257600080fd5b5061049b6105c1366004613116565b611140565b3480156105d257600080fd5b5061049b6105e136600461347d565b61119e565b3480156105f257600080fd5b506105fb6111e2565b604051610445919061362f565b34801561061457600080fd5b5061049b61062336600461347d565b6111f1565b34801561063457600080fd5b5061049b611235565b34801561064957600080fd5b5061046e610658366004613513565b611286565b34801561066957600080fd5b506104386112b1565b34801561067e57600080fd5b5061049b61068d36600461347d565b6112b7565b34801561069e57600080fd5b506106b26106ad3660046133a7565b6112fb565b60405161044591906136e4565b3480156106cb57600080fd5b5061046e6106da36600461347d565b61141b565b3480156106eb57600080fd5b5061043861142e565b34801561070057600080fd5b50610438611434565b34801561071557600080fd5b5061049b610724366004613374565b61143a565b34801561073557600080fd5b5061049b61074436600461321f565b6114ef565b34801561075557600080fd5b50610438611549565b34801561076a57600080fd5b5061049b61154f565b34801561077f57600080fd5b5061049b61078e36600461347d565b61159a565b34801561079f57600080fd5b5061049b6107ae36600461347d565b6115de565b3480156107bf57600080fd5b50610438611622565b3480156107d457600080fd5b5061049b611628565b3480156107e957600080fd5b5061049b6107f836600461347d565b61167b565b34801561080957600080fd5b506105fb6116bf565b34801561081e57600080fd5b506104386116ce565b34801561083357600080fd5b5061049b6108423660046134cd565b6116d4565b34801561085357600080fd5b506104c7611726565b34801561086857600080fd5b50610438611735565b61049b61087f36600461347d565b61173b565b34801561089057600080fd5b5061049b61089f36600461347d565b611889565b3480156108b057600080fd5b5061049b6108bf366004613290565b6118fa565b3480156108d057600080fd5b5061049b6108df3660046130ca565b61190c565b3480156108f057600080fd5b5061046e6108ff366004613408565b61197a565b34801561091057600080fd5b5061049b61091f366004613325565b6119ef565b34801561093057600080fd5b50610438611a9f565b34801561094557600080fd5b5061049b611aa5565b34801561095a57600080fd5b5061046e610969366004613513565b611af8565b34801561097a57600080fd5b5061043861098936600461347d565b611b18565b34801561099a57600080fd5b5061049b6109a936600461347d565b611b2a565b3480156109ba57600080fd5b5061046e611b6e565b3480156109cf57600080fd5b5061049b611b77565b3480156109e457600080fd5b5061049b6109f336600461347d565b611c7c565b348015610a0457600080fd5b5061049b610a13366004613448565b611cc0565b348015610a2457600080fd5b5061049b610a3336600461347d565b611d1f565b348015610a4457600080fd5b50610438611d63565b348015610a5957600080fd5b50610438611d69565b348015610a6e57600080fd5b506104c7611d6f565b348015610a8357600080fd5b5061046e610a923660046130e4565b611d7e565b348015610aa357600080fd5b5061049b610ab23660046131bc565b611dac565b348015610ac357600080fd5b5061049b610ad23660046130ca565b611e03565b348015610ae357600080fd5b5061049b610af23660046132f3565b611e71565b348015610b0357600080fd5b5061049b610b1236600461347d565b611ec6565b348015610b2357600080fd5b5061049b611f22565b348015610b3857600080fd5b5061049b610b4736600461347d565b611f75565b348015610b5857600080fd5b5061049b610b6736600461347d565b611fb9565b348015610b7857600080fd5b5061046e611ffd565b60006001600160a01b038316610bb25760405162461bcd60e51b8152600401610ba99061391d565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610c3b57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610c4a5750610c4a82612006565b90505b919050565b6007546001600160a01b0316331480610c7a575033610c6f6116bf565b6001600160a01b0316145b610c965760405162461bcd60e51b8152600401610ba990613c4d565b610c9f81612038565b50565b60175460ff1681565b606060088054610cba906140e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce6906140e2565b8015610d335780601f10610d0857610100808354040283529160200191610d33565b820191906000526020600020905b815481529060010190602001808311610d1657829003601f168201915b505050505090505b90565b60026005541415610d615760405162461bcd60e51b8152600401610ba990613fd8565b600260055560135460ff16610d885760405162461bcd60e51b8152600401610ba990613c16565b601454831115610daa5760405162461bcd60e51b8152600401610ba990613806565b82601254610db891906140ac565b341015610dd75760405162461bcd60e51b8152600401610ba990613d73565b600a546000908152601a6020908152604080832033845290915290205460ff1615610e145760405162461bcd60e51b8152600401610ba990613dd0565b60165483601554610e259190614094565b1115610e435760405162461bcd60e51b8152600401610ba990613863565b600c5483600b54610e549190614094565b1115610e725760405162461bcd60e51b8152600401610ba990613863565b600033604051602001610e859190613604565b604051602081830303815290604052805190602001209050610ede83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b54915084905061204b565b610efa5760405162461bcd60e51b8152600401610ba990613e2d565b8360156000828254610f0c9190614094565b9250508190555083600b6000828254610f259190614094565b9091555050600a80546000908152601a6020908152604080832033808552908352818420805460ff1916600117905593548151928301909152918152610f6e9291908790612061565b505060016005555050565b60196020526000908152604090205460ff1681565b606060028054610f9d906140e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc9906140e2565b80156110165780601f10610feb57610100808354040283529160200191611016565b820191906000526020600020905b815481529060010190602001808311610ff957829003601f168201915b50505050509050919050565b61102a612150565b6001600160a01b031661103b6116bf565b6001600160a01b0316146110615760405162461bcd60e51b8152600401610ba990613d3e565b600c55565b600f5481565b601b5481565b61107a612150565b6001600160a01b031661108b6116bf565b6001600160a01b0316146110b15760405162461bcd60e51b8152600401610ba990613d3e565b60005b815181101561113657600a546000908152601a60205260408120835182908590859081106110f257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061112e8161411d565b9150506110b4565b5050565b60125481565b611148612150565b6001600160a01b0316856001600160a01b0316148061116e575061116e85610a92612150565b61118a5760405162461bcd60e51b8152600401610ba990613bb9565b6111978585858585612154565b5050505050565b6111a6612150565b6001600160a01b03166111b76116bf565b6001600160a01b0316146111dd5760405162461bcd60e51b8152600401610ba990613d3e565b601255565b6007546001600160a01b031681565b6111f9612150565b6001600160a01b031661120a6116bf565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610ba990613d3e565b601455565b61123d612150565b6001600160a01b031661124e6116bf565b6001600160a01b0316146112745760405162461bcd60e51b8152600401610ba990613d3e565b47610c9f6112806116bf565b82612325565b6000918252601a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a5481565b6112bf612150565b6001600160a01b03166112d06116bf565b6001600160a01b0316146112f65760405162461bcd60e51b8152600401610ba990613d3e565b601655565b6060815183511461131e5760405162461bcd60e51b8152600401610ba990613ec1565b6000835167ffffffffffffffff81111561134857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611371578160200160208202803683370190505b50905060005b8451811015611413576113d88582815181106113a357634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106113cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151610b81565b8282815181106113f857634e487b7160e01b600052603260045260246000fd5b602090810291909101015261140c8161411d565b9050611377565b509392505050565b60008061142783611b18565b1192915050565b60185481565b60115481565b611442612150565b6001600160a01b03166114536116bf565b6001600160a01b0316146114795760405162461bcd60e51b8152600401610ba990613d3e565b60005b8151811015611136576001601960008484815181106114ab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806114e78161411d565b91505061147c565b6114f7612150565b6001600160a01b0316836001600160a01b0316148061151d575061151d83610a92612150565b6115395760405162461bcd60e51b8152600401610ba990613a34565b6115448383836123c1565b505050565b600b5481565b611557612150565b6001600160a01b03166115686116bf565b6001600160a01b03161461158e5760405162461bcd60e51b8152600401610ba990613d3e565b6115986000612572565b565b6115a2612150565b6001600160a01b03166115b36116bf565b6001600160a01b0316146115d95760405162461bcd60e51b8152600401610ba990613d3e565b601555565b6115e6612150565b6001600160a01b03166115f76116bf565b6001600160a01b03161461161d5760405162461bcd60e51b8152600401610ba990613d3e565b601b55565b600d5481565b611630612150565b6001600160a01b03166116416116bf565b6001600160a01b0316146116675760405162461bcd60e51b8152600401610ba990613d3e565b6017805460ff19811660ff90911615179055565b611683612150565b6001600160a01b03166116946116bf565b6001600160a01b0316146116ba5760405162461bcd60e51b8152600401610ba990613d3e565b600a55565b6004546001600160a01b031690565b60155481565b6116dc612150565b6001600160a01b03166116ed6116bf565b6001600160a01b0316146117135760405162461bcd60e51b8152600401610ba990613d3e565b8051611136906006906020840190612e86565b606060098054610cba906140e2565b60145481565b6002600554141561175e5760405162461bcd60e51b8152600401610ba990613fd8565b6002600555600e5460ff166117855760405162461bcd60e51b8152600401610ba99061400f565b600f548111156117a75760405162461bcd60e51b8152600401610ba990613806565b80600d546117b591906140ac565b3410156117d45760405162461bcd60e51b8152600401610ba990613d73565b601154816010546117e59190614094565b11156118035760405162461bcd60e51b8152600401610ba990613863565b600c5481600b546118149190614094565b11156118325760405162461bcd60e51b8152600401610ba990613863565b80601060008282546118449190614094565b9250508190555080600b600082825461185d9190614094565b9250508190555061188133600a548360405180602001604052806000815250612061565b506001600555565b611891612150565b6001600160a01b03166118a26116bf565b6001600160a01b0316146118c85760405162461bcd60e51b8152600401610ba990613d3e565b600a55600e805460ff1990811690915560138054821690556017805490911690556000600b8190556015819055601055565b611136611905612150565b83836125d1565b611914612150565b6001600160a01b03166119256116bf565b6001600160a01b03161461194b5760405162461bcd60e51b8152600401610ba990613d3e565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000803360405160200161198e9190613604565b6040516020818303038152906040528051906020012090506119e784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b54915084905061204b565b949350505050565b6007546001600160a01b0316331480611a17575033611a0c6116bf565b6001600160a01b0316145b611a335760405162461bcd60e51b8152600401610ba990613c4d565b60005b8381101561119757611a8d858583818110611a6157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a7691906130ca565b848460405180602001604052806000815250612061565b80611a978161411d565b915050611a36565b60165481565b611aad612150565b6001600160a01b0316611abe6116bf565b6001600160a01b031614611ae45760405162461bcd60e51b8152600401610ba990613d3e565b600e805460ff19811660ff90911615179055565b601a60209081526000928352604080842090915290825290205460ff1681565b60009081526003602052604090205490565b611b32612150565b6001600160a01b0316611b436116bf565b6001600160a01b031614611b695760405162461bcd60e51b8152600401610ba990613d3e565b600b55565b600e5460ff1681565b60026005541415611b9a5760405162461bcd60e51b8152600401610ba990613fd8565b600260055560175460ff16611bc15760405162461bcd60e51b8152600401610ba990613a91565b600c54601854600b54611bd49190614094565b1115611bf25760405162461bcd60e51b8152600401610ba990613863565b3360009081526019602052604090205460ff161515600114611c265760405162461bcd60e51b8152600401610ba9906138c0565b601854600b6000828254611c3a9190614094565b9091555050336000818152601960209081526040808320805460ff19169055600a546018548251938401909252928252611c75939291612061565b6001600555565b611c84612150565b6001600160a01b0316611c956116bf565b6001600160a01b031614611cbb5760405162461bcd60e51b8152600401610ba990613d3e565b600d55565b6007546001600160a01b0316331480611ce8575033611cdd6116bf565b6001600160a01b0316145b611d045760405162461bcd60e51b8152600401610ba990613c4d565b61113633838360405180602001604052806000815250612674565b611d27612150565b6001600160a01b0316611d386116bf565b6001600160a01b031614611d5e5760405162461bcd60e51b8152600401610ba990613d3e565b601155565b60105481565b600c5481565b606060068054610cba906140e2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b611db4612150565b6001600160a01b0316856001600160a01b03161480611dda5750611dda85610a92612150565b611df65760405162461bcd60e51b8152600401610ba990613a34565b61119785858585856127f5565b611e0b612150565b6001600160a01b0316611e1c6116bf565b6001600160a01b031614611e425760405162461bcd60e51b8152600401610ba990613d3e565b6001600160a01b038116611e685760405162461bcd60e51b8152600401610ba99061397a565b610c9f81612572565b611e79612150565b6001600160a01b0316836001600160a01b03161480611e9f5750611e9f83610a92612150565b611ebb5760405162461bcd60e51b8152600401610ba990613a34565b611544838383612929565b611ece612150565b6001600160a01b0316611edf6116bf565b6001600160a01b031614611f055760405162461bcd60e51b8152600401610ba990613d3e565b610c9f33600a548360405180602001604052806000815250612061565b611f2a612150565b6001600160a01b0316611f3b6116bf565b6001600160a01b031614611f615760405162461bcd60e51b8152600401610ba990613d3e565b6013805460ff19811660ff90911615179055565b611f7d612150565b6001600160a01b0316611f8e6116bf565b6001600160a01b031614611fb45760405162461bcd60e51b8152600401610ba990613d3e565b601055565b611fc1612150565b6001600160a01b0316611fd26116bf565b6001600160a01b031614611ff85760405162461bcd60e51b8152600401610ba990613d3e565b600f55565b60135460ff1681565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b8051611136906002906020840190612e86565b6000826120588584612a38565b14949350505050565b6001600160a01b0384166120875760405162461bcd60e51b8152600401610ba990613f7b565b6000612091612150565b90506120b2816000876120a388612ae8565b6120ac88612ae8565b87612b41565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906120e2908490614094565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612139929190613621565b60405180910390a461119781600087878787612b4f565b3390565b81518351146121755760405162461bcd60e51b8152600401610ba990613f1e565b6001600160a01b03841661219b5760405162461bcd60e51b8152600401610ba990613b5c565b60006121a5612150565b90506121b5818787878787612b41565b60005b84518110156122b75760008582815181106121e357634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061220f57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561225f5760405162461bcd60e51b8152600401610ba990613ce1565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061229c908490614094565b92505081905550505050806122b09061411d565b90506121b8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123079291906136f7565b60405180910390a461231d818787878787612c5d565b505050505050565b804710156123455760405162461bcd60e51b8152600401610ba990613b25565b6000826001600160a01b03168260405161235e90610d3b565b60006040518083038185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b50509050806115445760405162461bcd60e51b8152600401610ba990613ac8565b6001600160a01b0383166123e75760405162461bcd60e51b8152600401610ba990613c84565b80518251146124085760405162461bcd60e51b8152600401610ba990613f1e565b6000612412612150565b905061243281856000868660405180602001604052806000815250612b41565b60005b835181101561251357600084828151811061246057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061248c57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156124dc5760405162461bcd60e51b8152600401610ba9906139d7565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061250b8161411d565b915050612435565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516125649291906136f7565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156126035760405162461bcd60e51b8152600401610ba990613e64565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612667908590613725565b60405180910390a3505050565b6001600160a01b03841661269a5760405162461bcd60e51b8152600401610ba990613f7b565b81518351146126bb5760405162461bcd60e51b8152600401610ba990613f1e565b60006126c5612150565b90506126d681600087878787612b41565b60005b845181101561278d5783818151811061270257634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061272d57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546127759190614094565b909155508190506127858161411d565b9150506126d9565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127de9291906136f7565b60405180910390a461119781600087878787612c5d565b6001600160a01b03841661281b5760405162461bcd60e51b8152600401610ba990613b5c565b6000612825612150565b90506128368187876120a388612ae8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156128775760405162461bcd60e51b8152600401610ba990613ce1565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906128b4908490614094565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161290a929190613621565b60405180910390a4612920828888888888612b4f565b50505050505050565b6001600160a01b03831661294f5760405162461bcd60e51b8152600401610ba990613c84565b6000612959612150565b90506129898185600061296b87612ae8565b61297487612ae8565b60405180602001604052806000815250612b41565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156129ca5760405162461bcd60e51b8152600401610ba9906139d7565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612a299089908990613621565b60405180910390a45050505050565b600081815b8451811015611413576000858281518110612a6857634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612aa9578281604051602001612a8c929190613621565b604051602081830303815290604052805190602001209250612ad5565b8083604051602001612abc929190613621565b6040516020818303038152906040528051906020012092505b5080612ae08161411d565b915050612a3d565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b3057634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b61231d868686868686612d2e565b612b61846001600160a01b0316612e80565b1561231d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b9a90899089908890889088906004016136a1565b602060405180830381600087803b158015612bb457600080fd5b505af1925050508015612be4575060408051601f3d908101601f19168201909252612be1918101906134b1565b60015b612c2d57612bf061416a565b80612bfb5750612c15565b8060405162461bcd60e51b8152600401610ba99190613739565b60405162461bcd60e51b8152600401610ba99061374c565b6001600160e01b0319811663f23a6e6160e01b146129205760405162461bcd60e51b8152600401610ba9906137a9565b612c6f846001600160a01b0316612e80565b1561231d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ca89089908990889088908890600401613643565b602060405180830381600087803b158015612cc257600080fd5b505af1925050508015612cf2575060408051601f3d908101601f19168201909252612cef918101906134b1565b60015b612cfe57612bf061416a565b6001600160e01b0319811663bc197c8160e01b146129205760405162461bcd60e51b8152600401610ba9906137a9565b612d3c86868686868661231d565b6001600160a01b038516612ddf5760005b8351811015612ddd57828181518110612d7657634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612da257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612dc79190614094565b90915550612dd690508161411d565b9050612d4d565b505b6001600160a01b03841661231d5760005b835181101561292057828181518110612e1957634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612e4557634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e6a91906140cb565b90915550612e7990508161411d565b9050612df0565b3b151590565b828054612e92906140e2565b90600052602060002090601f016020900481019282612eb45760008555612efa565b82601f10612ecd57805160ff1916838001178555612efa565b82800160010185558215612efa579182015b82811115612efa578251825591602001919060010190612edf565b50612f06929150612f0a565b5090565b5b80821115612f065760008155600101612f0b565b600067ffffffffffffffff831115612f3957612f3961414e565b612f4c601f8401601f1916602001614046565b9050828152838383011115612f6057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114610c4d57600080fd5b60008083601f840112612f9f578182fd5b50813567ffffffffffffffff811115612fb6578182fd5b6020830191508360208083028501011115612fd057600080fd5b9250929050565b600082601f830112612fe7578081fd5b81356020612ffc612ff783614070565b614046565b8281528181019085830183850287018401881015613018578586fd5b855b8581101561303d5761302b82612f77565b8452928401929084019060010161301a565b5090979650505050505050565b600082601f83011261305a578081fd5b8135602061306a612ff783614070565b8281528181019085830183850287018401881015613086578586fd5b855b8581101561303d57813584529284019290840190600101613088565b600082601f8301126130b4578081fd5b6130c383833560208501612f1f565b9392505050565b6000602082840312156130db578081fd5b6130c382612f77565b600080604083850312156130f6578081fd5b6130ff83612f77565b915061310d60208401612f77565b90509250929050565b600080600080600060a0868803121561312d578081fd5b61313686612f77565b945061314460208701612f77565b9350604086013567ffffffffffffffff80821115613160578283fd5b61316c89838a0161304a565b94506060880135915080821115613181578283fd5b61318d89838a0161304a565b935060808801359150808211156131a2578283fd5b506131af888289016130a4565b9150509295509295909350565b600080600080600060a086880312156131d3578081fd5b6131dc86612f77565b94506131ea60208701612f77565b93506040860135925060608601359150608086013567ffffffffffffffff811115613213578182fd5b6131af888289016130a4565b600080600060608486031215613233578283fd5b61323c84612f77565b9250602084013567ffffffffffffffff80821115613258578384fd5b6132648783880161304a565b93506040860135915080821115613279578283fd5b506132868682870161304a565b9150509250925092565b600080604083850312156132a2578182fd5b6132ab83612f77565b9150602083013580151581146132bf578182fd5b809150509250929050565b600080604083850312156132dc578182fd5b6132e583612f77565b946020939093013593505050565b600080600060608486031215613307578081fd5b61331084612f77565b95602085013595506040909401359392505050565b6000806000806060858703121561333a578182fd5b843567ffffffffffffffff811115613350578283fd5b61335c87828801612f8e565b90989097506020870135966040013595509350505050565b600060208284031215613385578081fd5b813567ffffffffffffffff81111561339b578182fd5b6119e784828501612fd7565b600080604083850312156133b9578182fd5b823567ffffffffffffffff808211156133d0578384fd5b6133dc86838701612fd7565b935060208501359150808211156133f1578283fd5b506133fe8582860161304a565b9150509250929050565b6000806020838503121561341a578182fd5b823567ffffffffffffffff811115613430578283fd5b61343c85828601612f8e565b90969095509350505050565b6000806040838503121561345a578182fd5b823567ffffffffffffffff80821115613471578384fd5b6133dc8683870161304a565b60006020828403121561348e578081fd5b5035919050565b6000602082840312156134a6578081fd5b81356130c38161420f565b6000602082840312156134c2578081fd5b81516130c38161420f565b6000602082840312156134de578081fd5b813567ffffffffffffffff8111156134f4578182fd5b8201601f81018413613504578182fd5b6119e784823560208401612f1f565b60008060408385031215613525578182fd5b8235915061310d60208401612f77565b600080600060408486031215613549578081fd5b83359250602084013567ffffffffffffffff811115613566578182fd5b61357286828701612f8e565b9497909650939450505050565b6000815180845260208085019450808401835b838110156135ae57815187529582019590820190600101613592565b509495945050505050565b60008151808452815b818110156135de576020818501810151868301820152016135c2565b818111156135ef5782602083870101525b50601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261366f60a083018661357f565b8281036060840152613681818661357f565b9050828103608084015261369581856135b9565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526136d960a08301846135b9565b979650505050505050565b6000602082526130c3602083018461357f565b60006040825261370a604083018561357f565b828103602084015261371c818561357f565b95945050505050565b901515815260200190565b90815260200190565b6000602082526130c360208301846135b9565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f596f752077656e74206f766572206d617820746f6b656e73207065722074726160408201527f6e73616374696f6e000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e74207460408201527f686174206d616e79000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f596f7520617265206e6f74206f6e2074686520667265652077616c6c6574206c60408201527f697374206f72206861766520616c7265616479206d696e746564000000000000606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f46726565206d696e74206973206e6f7420616374697665000000000000000000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601a908201527f50726573616c65206d696e74206973206e6f7420616374697665000000000000604082015260600190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f596f752073656e742074686520696e636f727265637420616d6f756e74206f6660408201527f2045544800000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603d908201527f596f7520617265206e6f74206f6e207468652070726573616c652077616c6c6560408201527f74206c697374206f72206861766520616c7265616479206d696e746564000000606082015260800190565b6020808252600d908201527f496e76616c69642050726f6f6600000000000000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b60405181810167ffffffffffffffff811182821017156140685761406861414e565b604052919050565b600067ffffffffffffffff82111561408a5761408a61414e565b5060209081020190565b600082198211156140a7576140a7614138565b500190565b60008160001904831182151516156140c6576140c6614138565b500290565b6000828210156140dd576140dd614138565b500390565b6002810460018216806140f657607f821691505b6020821081141561411757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561413157614131614138565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561417a57610d3b565b600481823e6308c379a061418e8251614164565b1461419857610d3b565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156141c85750505050610d3b565b828401925082519150808211156141e25750505050610d3b565b503d830160208284010111156141fa57505050610d3b565b601f01601f1916810160200160405291505090565b6001600160e01b031981168114610c9f57600080fdfea2646970667358221220f1e65ed276d3f2cd3cbef059d80c0c5e5077db07ea7d4c23c6f3a3a0c1aafd3264736f6c63430008000033

Deployed Bytecode

0x6080604052600436106104135760003560e01c80638b13fde811610228578063c7b6945911610128578063e985e9c5116100bb578063f906751b1161008a578063f93468811161006f578063f934688114610b2c578063fa5d788214610b4c578063ff5a70c614610b6c57610413565b8063f906751b14610af7578063f931a4c214610b1757610413565b8063e985e9c514610a77578063f242432a14610a97578063f2fde38b14610ab7578063f5298aca14610ad757610413565b8063d70c3dba116100f7578063d70c3dba14610a18578063d9a02e6914610a38578063e831574214610a4d578063e8a3d48514610a6257610413565b8063c7b69459146109ae578063cca97911146109c3578063cd2c7052146109d8578063d351cfdc146109f857610413565b8063a22cb465116101bb578063b8de970a1161018a578063b9dc644a1161016f578063b9dc644a1461094e578063bd85b0391461096e578063c121d6f01461098e57610413565b8063b8de970a14610924578063b92bc3751461093957610413565b8063a22cb465146108a4578063a3106b95146108c4578063a40d317b146108e4578063a496dedf1461090457610413565b806395d89b41116101f757806395d89b41146108475780639be51bea1461085c578063a0712d6814610871578063a1e33d021461088457610413565b80638b13fde8146107dd5780638da5cb5b146107fd5780638f4167da14610812578063938e3d7b1461082757610413565b806335a4faf41161033357806359aefc59116102c6578063715018a6116102955780637cb647591161027a5780637cb64759146107935780637de69d5f146107b3578063894a8cac146107c857610413565b8063715018a61461075e5780637521134c1461077357610413565b806359aefc59146106f45780635d04aeab146107095780636b20c454146107295780636de56d0e1461074957610413565b806346ca1ab81161030257806346ca1ab8146106725780634e1273f4146106925780634f558e79146106bf5780635071d017146106df57610413565b806335a4faf4146106085780633ccfd60b1461062857806343b43a541461063d5780634576cdd51461065d57610413565b806311e776fe116103ab5780632b0384111161037a5780632b038411146105915780632eb2c2d6146105a6578063311df29a146105c657806334d722c9146105e657610413565b806311e776fe146105275780631df09e471461054757806322212e2b1461055c5780632611f4661461057157610413565b806306fdde03116103e757806306fdde03146104b25780630c0a6b5e146104d45780630c9a6313146104e75780630e89341c1461050757610413565b8062fdd58e1461041857806301ffc9a71461044e57806302fe53051461047b57806305461a6a1461049d575b600080fd5b34801561042457600080fd5b506104386104333660046132ca565b610b81565b6040516104459190613730565b60405180910390f35b34801561045a57600080fd5b5061046e610469366004613495565b610bd8565b6040516104459190613725565b34801561048757600080fd5b5061049b6104963660046134cd565b610c52565b005b3480156104a957600080fd5b5061046e610ca2565b3480156104be57600080fd5b506104c7610cab565b6040516104459190613739565b61049b6104e2366004613535565b610d3e565b3480156104f357600080fd5b5061046e6105023660046130ca565b610f79565b34801561051357600080fd5b506104c761052236600461347d565b610f8e565b34801561053357600080fd5b5061049b61054236600461347d565b611022565b34801561055357600080fd5b50610438611066565b34801561056857600080fd5b5061043861106c565b34801561057d57600080fd5b5061049b61058c366004613374565b611072565b34801561059d57600080fd5b5061043861113a565b3480156105b257600080fd5b5061049b6105c1366004613116565b611140565b3480156105d257600080fd5b5061049b6105e136600461347d565b61119e565b3480156105f257600080fd5b506105fb6111e2565b604051610445919061362f565b34801561061457600080fd5b5061049b61062336600461347d565b6111f1565b34801561063457600080fd5b5061049b611235565b34801561064957600080fd5b5061046e610658366004613513565b611286565b34801561066957600080fd5b506104386112b1565b34801561067e57600080fd5b5061049b61068d36600461347d565b6112b7565b34801561069e57600080fd5b506106b26106ad3660046133a7565b6112fb565b60405161044591906136e4565b3480156106cb57600080fd5b5061046e6106da36600461347d565b61141b565b3480156106eb57600080fd5b5061043861142e565b34801561070057600080fd5b50610438611434565b34801561071557600080fd5b5061049b610724366004613374565b61143a565b34801561073557600080fd5b5061049b61074436600461321f565b6114ef565b34801561075557600080fd5b50610438611549565b34801561076a57600080fd5b5061049b61154f565b34801561077f57600080fd5b5061049b61078e36600461347d565b61159a565b34801561079f57600080fd5b5061049b6107ae36600461347d565b6115de565b3480156107bf57600080fd5b50610438611622565b3480156107d457600080fd5b5061049b611628565b3480156107e957600080fd5b5061049b6107f836600461347d565b61167b565b34801561080957600080fd5b506105fb6116bf565b34801561081e57600080fd5b506104386116ce565b34801561083357600080fd5b5061049b6108423660046134cd565b6116d4565b34801561085357600080fd5b506104c7611726565b34801561086857600080fd5b50610438611735565b61049b61087f36600461347d565b61173b565b34801561089057600080fd5b5061049b61089f36600461347d565b611889565b3480156108b057600080fd5b5061049b6108bf366004613290565b6118fa565b3480156108d057600080fd5b5061049b6108df3660046130ca565b61190c565b3480156108f057600080fd5b5061046e6108ff366004613408565b61197a565b34801561091057600080fd5b5061049b61091f366004613325565b6119ef565b34801561093057600080fd5b50610438611a9f565b34801561094557600080fd5b5061049b611aa5565b34801561095a57600080fd5b5061046e610969366004613513565b611af8565b34801561097a57600080fd5b5061043861098936600461347d565b611b18565b34801561099a57600080fd5b5061049b6109a936600461347d565b611b2a565b3480156109ba57600080fd5b5061046e611b6e565b3480156109cf57600080fd5b5061049b611b77565b3480156109e457600080fd5b5061049b6109f336600461347d565b611c7c565b348015610a0457600080fd5b5061049b610a13366004613448565b611cc0565b348015610a2457600080fd5b5061049b610a3336600461347d565b611d1f565b348015610a4457600080fd5b50610438611d63565b348015610a5957600080fd5b50610438611d69565b348015610a6e57600080fd5b506104c7611d6f565b348015610a8357600080fd5b5061046e610a923660046130e4565b611d7e565b348015610aa357600080fd5b5061049b610ab23660046131bc565b611dac565b348015610ac357600080fd5b5061049b610ad23660046130ca565b611e03565b348015610ae357600080fd5b5061049b610af23660046132f3565b611e71565b348015610b0357600080fd5b5061049b610b1236600461347d565b611ec6565b348015610b2357600080fd5b5061049b611f22565b348015610b3857600080fd5b5061049b610b4736600461347d565b611f75565b348015610b5857600080fd5b5061049b610b6736600461347d565b611fb9565b348015610b7857600080fd5b5061046e611ffd565b60006001600160a01b038316610bb25760405162461bcd60e51b8152600401610ba99061391d565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610c3b57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610c4a5750610c4a82612006565b90505b919050565b6007546001600160a01b0316331480610c7a575033610c6f6116bf565b6001600160a01b0316145b610c965760405162461bcd60e51b8152600401610ba990613c4d565b610c9f81612038565b50565b60175460ff1681565b606060088054610cba906140e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce6906140e2565b8015610d335780601f10610d0857610100808354040283529160200191610d33565b820191906000526020600020905b815481529060010190602001808311610d1657829003601f168201915b505050505090505b90565b60026005541415610d615760405162461bcd60e51b8152600401610ba990613fd8565b600260055560135460ff16610d885760405162461bcd60e51b8152600401610ba990613c16565b601454831115610daa5760405162461bcd60e51b8152600401610ba990613806565b82601254610db891906140ac565b341015610dd75760405162461bcd60e51b8152600401610ba990613d73565b600a546000908152601a6020908152604080832033845290915290205460ff1615610e145760405162461bcd60e51b8152600401610ba990613dd0565b60165483601554610e259190614094565b1115610e435760405162461bcd60e51b8152600401610ba990613863565b600c5483600b54610e549190614094565b1115610e725760405162461bcd60e51b8152600401610ba990613863565b600033604051602001610e859190613604565b604051602081830303815290604052805190602001209050610ede83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b54915084905061204b565b610efa5760405162461bcd60e51b8152600401610ba990613e2d565b8360156000828254610f0c9190614094565b9250508190555083600b6000828254610f259190614094565b9091555050600a80546000908152601a6020908152604080832033808552908352818420805460ff1916600117905593548151928301909152918152610f6e9291908790612061565b505060016005555050565b60196020526000908152604090205460ff1681565b606060028054610f9d906140e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc9906140e2565b80156110165780601f10610feb57610100808354040283529160200191611016565b820191906000526020600020905b815481529060010190602001808311610ff957829003601f168201915b50505050509050919050565b61102a612150565b6001600160a01b031661103b6116bf565b6001600160a01b0316146110615760405162461bcd60e51b8152600401610ba990613d3e565b600c55565b600f5481565b601b5481565b61107a612150565b6001600160a01b031661108b6116bf565b6001600160a01b0316146110b15760405162461bcd60e51b8152600401610ba990613d3e565b60005b815181101561113657600a546000908152601a60205260408120835182908590859081106110f257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061112e8161411d565b9150506110b4565b5050565b60125481565b611148612150565b6001600160a01b0316856001600160a01b0316148061116e575061116e85610a92612150565b61118a5760405162461bcd60e51b8152600401610ba990613bb9565b6111978585858585612154565b5050505050565b6111a6612150565b6001600160a01b03166111b76116bf565b6001600160a01b0316146111dd5760405162461bcd60e51b8152600401610ba990613d3e565b601255565b6007546001600160a01b031681565b6111f9612150565b6001600160a01b031661120a6116bf565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610ba990613d3e565b601455565b61123d612150565b6001600160a01b031661124e6116bf565b6001600160a01b0316146112745760405162461bcd60e51b8152600401610ba990613d3e565b47610c9f6112806116bf565b82612325565b6000918252601a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a5481565b6112bf612150565b6001600160a01b03166112d06116bf565b6001600160a01b0316146112f65760405162461bcd60e51b8152600401610ba990613d3e565b601655565b6060815183511461131e5760405162461bcd60e51b8152600401610ba990613ec1565b6000835167ffffffffffffffff81111561134857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611371578160200160208202803683370190505b50905060005b8451811015611413576113d88582815181106113a357634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106113cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151610b81565b8282815181106113f857634e487b7160e01b600052603260045260246000fd5b602090810291909101015261140c8161411d565b9050611377565b509392505050565b60008061142783611b18565b1192915050565b60185481565b60115481565b611442612150565b6001600160a01b03166114536116bf565b6001600160a01b0316146114795760405162461bcd60e51b8152600401610ba990613d3e565b60005b8151811015611136576001601960008484815181106114ab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806114e78161411d565b91505061147c565b6114f7612150565b6001600160a01b0316836001600160a01b0316148061151d575061151d83610a92612150565b6115395760405162461bcd60e51b8152600401610ba990613a34565b6115448383836123c1565b505050565b600b5481565b611557612150565b6001600160a01b03166115686116bf565b6001600160a01b03161461158e5760405162461bcd60e51b8152600401610ba990613d3e565b6115986000612572565b565b6115a2612150565b6001600160a01b03166115b36116bf565b6001600160a01b0316146115d95760405162461bcd60e51b8152600401610ba990613d3e565b601555565b6115e6612150565b6001600160a01b03166115f76116bf565b6001600160a01b03161461161d5760405162461bcd60e51b8152600401610ba990613d3e565b601b55565b600d5481565b611630612150565b6001600160a01b03166116416116bf565b6001600160a01b0316146116675760405162461bcd60e51b8152600401610ba990613d3e565b6017805460ff19811660ff90911615179055565b611683612150565b6001600160a01b03166116946116bf565b6001600160a01b0316146116ba5760405162461bcd60e51b8152600401610ba990613d3e565b600a55565b6004546001600160a01b031690565b60155481565b6116dc612150565b6001600160a01b03166116ed6116bf565b6001600160a01b0316146117135760405162461bcd60e51b8152600401610ba990613d3e565b8051611136906006906020840190612e86565b606060098054610cba906140e2565b60145481565b6002600554141561175e5760405162461bcd60e51b8152600401610ba990613fd8565b6002600555600e5460ff166117855760405162461bcd60e51b8152600401610ba99061400f565b600f548111156117a75760405162461bcd60e51b8152600401610ba990613806565b80600d546117b591906140ac565b3410156117d45760405162461bcd60e51b8152600401610ba990613d73565b601154816010546117e59190614094565b11156118035760405162461bcd60e51b8152600401610ba990613863565b600c5481600b546118149190614094565b11156118325760405162461bcd60e51b8152600401610ba990613863565b80601060008282546118449190614094565b9250508190555080600b600082825461185d9190614094565b9250508190555061188133600a548360405180602001604052806000815250612061565b506001600555565b611891612150565b6001600160a01b03166118a26116bf565b6001600160a01b0316146118c85760405162461bcd60e51b8152600401610ba990613d3e565b600a55600e805460ff1990811690915560138054821690556017805490911690556000600b8190556015819055601055565b611136611905612150565b83836125d1565b611914612150565b6001600160a01b03166119256116bf565b6001600160a01b03161461194b5760405162461bcd60e51b8152600401610ba990613d3e565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000803360405160200161198e9190613604565b6040516020818303038152906040528051906020012090506119e784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b54915084905061204b565b949350505050565b6007546001600160a01b0316331480611a17575033611a0c6116bf565b6001600160a01b0316145b611a335760405162461bcd60e51b8152600401610ba990613c4d565b60005b8381101561119757611a8d858583818110611a6157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a7691906130ca565b848460405180602001604052806000815250612061565b80611a978161411d565b915050611a36565b60165481565b611aad612150565b6001600160a01b0316611abe6116bf565b6001600160a01b031614611ae45760405162461bcd60e51b8152600401610ba990613d3e565b600e805460ff19811660ff90911615179055565b601a60209081526000928352604080842090915290825290205460ff1681565b60009081526003602052604090205490565b611b32612150565b6001600160a01b0316611b436116bf565b6001600160a01b031614611b695760405162461bcd60e51b8152600401610ba990613d3e565b600b55565b600e5460ff1681565b60026005541415611b9a5760405162461bcd60e51b8152600401610ba990613fd8565b600260055560175460ff16611bc15760405162461bcd60e51b8152600401610ba990613a91565b600c54601854600b54611bd49190614094565b1115611bf25760405162461bcd60e51b8152600401610ba990613863565b3360009081526019602052604090205460ff161515600114611c265760405162461bcd60e51b8152600401610ba9906138c0565b601854600b6000828254611c3a9190614094565b9091555050336000818152601960209081526040808320805460ff19169055600a546018548251938401909252928252611c75939291612061565b6001600555565b611c84612150565b6001600160a01b0316611c956116bf565b6001600160a01b031614611cbb5760405162461bcd60e51b8152600401610ba990613d3e565b600d55565b6007546001600160a01b0316331480611ce8575033611cdd6116bf565b6001600160a01b0316145b611d045760405162461bcd60e51b8152600401610ba990613c4d565b61113633838360405180602001604052806000815250612674565b611d27612150565b6001600160a01b0316611d386116bf565b6001600160a01b031614611d5e5760405162461bcd60e51b8152600401610ba990613d3e565b601155565b60105481565b600c5481565b606060068054610cba906140e2565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b611db4612150565b6001600160a01b0316856001600160a01b03161480611dda5750611dda85610a92612150565b611df65760405162461bcd60e51b8152600401610ba990613a34565b61119785858585856127f5565b611e0b612150565b6001600160a01b0316611e1c6116bf565b6001600160a01b031614611e425760405162461bcd60e51b8152600401610ba990613d3e565b6001600160a01b038116611e685760405162461bcd60e51b8152600401610ba99061397a565b610c9f81612572565b611e79612150565b6001600160a01b0316836001600160a01b03161480611e9f5750611e9f83610a92612150565b611ebb5760405162461bcd60e51b8152600401610ba990613a34565b611544838383612929565b611ece612150565b6001600160a01b0316611edf6116bf565b6001600160a01b031614611f055760405162461bcd60e51b8152600401610ba990613d3e565b610c9f33600a548360405180602001604052806000815250612061565b611f2a612150565b6001600160a01b0316611f3b6116bf565b6001600160a01b031614611f615760405162461bcd60e51b8152600401610ba990613d3e565b6013805460ff19811660ff90911615179055565b611f7d612150565b6001600160a01b0316611f8e6116bf565b6001600160a01b031614611fb45760405162461bcd60e51b8152600401610ba990613d3e565b601055565b611fc1612150565b6001600160a01b0316611fd26116bf565b6001600160a01b031614611ff85760405162461bcd60e51b8152600401610ba990613d3e565b600f55565b60135460ff1681565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b8051611136906002906020840190612e86565b6000826120588584612a38565b14949350505050565b6001600160a01b0384166120875760405162461bcd60e51b8152600401610ba990613f7b565b6000612091612150565b90506120b2816000876120a388612ae8565b6120ac88612ae8565b87612b41565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906120e2908490614094565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612139929190613621565b60405180910390a461119781600087878787612b4f565b3390565b81518351146121755760405162461bcd60e51b8152600401610ba990613f1e565b6001600160a01b03841661219b5760405162461bcd60e51b8152600401610ba990613b5c565b60006121a5612150565b90506121b5818787878787612b41565b60005b84518110156122b75760008582815181106121e357634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061220f57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561225f5760405162461bcd60e51b8152600401610ba990613ce1565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061229c908490614094565b92505081905550505050806122b09061411d565b90506121b8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123079291906136f7565b60405180910390a461231d818787878787612c5d565b505050505050565b804710156123455760405162461bcd60e51b8152600401610ba990613b25565b6000826001600160a01b03168260405161235e90610d3b565b60006040518083038185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b50509050806115445760405162461bcd60e51b8152600401610ba990613ac8565b6001600160a01b0383166123e75760405162461bcd60e51b8152600401610ba990613c84565b80518251146124085760405162461bcd60e51b8152600401610ba990613f1e565b6000612412612150565b905061243281856000868660405180602001604052806000815250612b41565b60005b835181101561251357600084828151811061246057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061248c57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156124dc5760405162461bcd60e51b8152600401610ba9906139d7565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061250b8161411d565b915050612435565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516125649291906136f7565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156126035760405162461bcd60e51b8152600401610ba990613e64565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612667908590613725565b60405180910390a3505050565b6001600160a01b03841661269a5760405162461bcd60e51b8152600401610ba990613f7b565b81518351146126bb5760405162461bcd60e51b8152600401610ba990613f1e565b60006126c5612150565b90506126d681600087878787612b41565b60005b845181101561278d5783818151811061270257634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061272d57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546127759190614094565b909155508190506127858161411d565b9150506126d9565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127de9291906136f7565b60405180910390a461119781600087878787612c5d565b6001600160a01b03841661281b5760405162461bcd60e51b8152600401610ba990613b5c565b6000612825612150565b90506128368187876120a388612ae8565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156128775760405162461bcd60e51b8152600401610ba990613ce1565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906128b4908490614094565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62888860405161290a929190613621565b60405180910390a4612920828888888888612b4f565b50505050505050565b6001600160a01b03831661294f5760405162461bcd60e51b8152600401610ba990613c84565b6000612959612150565b90506129898185600061296b87612ae8565b61297487612ae8565b60405180602001604052806000815250612b41565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156129ca5760405162461bcd60e51b8152600401610ba9906139d7565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612a299089908990613621565b60405180910390a45050505050565b600081815b8451811015611413576000858281518110612a6857634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612aa9578281604051602001612a8c929190613621565b604051602081830303815290604052805190602001209250612ad5565b8083604051602001612abc929190613621565b6040516020818303038152906040528051906020012092505b5080612ae08161411d565b915050612a3d565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612b3057634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b61231d868686868686612d2e565b612b61846001600160a01b0316612e80565b1561231d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b9a90899089908890889088906004016136a1565b602060405180830381600087803b158015612bb457600080fd5b505af1925050508015612be4575060408051601f3d908101601f19168201909252612be1918101906134b1565b60015b612c2d57612bf061416a565b80612bfb5750612c15565b8060405162461bcd60e51b8152600401610ba99190613739565b60405162461bcd60e51b8152600401610ba99061374c565b6001600160e01b0319811663f23a6e6160e01b146129205760405162461bcd60e51b8152600401610ba9906137a9565b612c6f846001600160a01b0316612e80565b1561231d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ca89089908990889088908890600401613643565b602060405180830381600087803b158015612cc257600080fd5b505af1925050508015612cf2575060408051601f3d908101601f19168201909252612cef918101906134b1565b60015b612cfe57612bf061416a565b6001600160e01b0319811663bc197c8160e01b146129205760405162461bcd60e51b8152600401610ba9906137a9565b612d3c86868686868661231d565b6001600160a01b038516612ddf5760005b8351811015612ddd57828181518110612d7657634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612da257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612dc79190614094565b90915550612dd690508161411d565b9050612d4d565b505b6001600160a01b03841661231d5760005b835181101561292057828181518110612e1957634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612e4557634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612e6a91906140cb565b90915550612e7990508161411d565b9050612df0565b3b151590565b828054612e92906140e2565b90600052602060002090601f016020900481019282612eb45760008555612efa565b82601f10612ecd57805160ff1916838001178555612efa565b82800160010185558215612efa579182015b82811115612efa578251825591602001919060010190612edf565b50612f06929150612f0a565b5090565b5b80821115612f065760008155600101612f0b565b600067ffffffffffffffff831115612f3957612f3961414e565b612f4c601f8401601f1916602001614046565b9050828152838383011115612f6057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114610c4d57600080fd5b60008083601f840112612f9f578182fd5b50813567ffffffffffffffff811115612fb6578182fd5b6020830191508360208083028501011115612fd057600080fd5b9250929050565b600082601f830112612fe7578081fd5b81356020612ffc612ff783614070565b614046565b8281528181019085830183850287018401881015613018578586fd5b855b8581101561303d5761302b82612f77565b8452928401929084019060010161301a565b5090979650505050505050565b600082601f83011261305a578081fd5b8135602061306a612ff783614070565b8281528181019085830183850287018401881015613086578586fd5b855b8581101561303d57813584529284019290840190600101613088565b600082601f8301126130b4578081fd5b6130c383833560208501612f1f565b9392505050565b6000602082840312156130db578081fd5b6130c382612f77565b600080604083850312156130f6578081fd5b6130ff83612f77565b915061310d60208401612f77565b90509250929050565b600080600080600060a0868803121561312d578081fd5b61313686612f77565b945061314460208701612f77565b9350604086013567ffffffffffffffff80821115613160578283fd5b61316c89838a0161304a565b94506060880135915080821115613181578283fd5b61318d89838a0161304a565b935060808801359150808211156131a2578283fd5b506131af888289016130a4565b9150509295509295909350565b600080600080600060a086880312156131d3578081fd5b6131dc86612f77565b94506131ea60208701612f77565b93506040860135925060608601359150608086013567ffffffffffffffff811115613213578182fd5b6131af888289016130a4565b600080600060608486031215613233578283fd5b61323c84612f77565b9250602084013567ffffffffffffffff80821115613258578384fd5b6132648783880161304a565b93506040860135915080821115613279578283fd5b506132868682870161304a565b9150509250925092565b600080604083850312156132a2578182fd5b6132ab83612f77565b9150602083013580151581146132bf578182fd5b809150509250929050565b600080604083850312156132dc578182fd5b6132e583612f77565b946020939093013593505050565b600080600060608486031215613307578081fd5b61331084612f77565b95602085013595506040909401359392505050565b6000806000806060858703121561333a578182fd5b843567ffffffffffffffff811115613350578283fd5b61335c87828801612f8e565b90989097506020870135966040013595509350505050565b600060208284031215613385578081fd5b813567ffffffffffffffff81111561339b578182fd5b6119e784828501612fd7565b600080604083850312156133b9578182fd5b823567ffffffffffffffff808211156133d0578384fd5b6133dc86838701612fd7565b935060208501359150808211156133f1578283fd5b506133fe8582860161304a565b9150509250929050565b6000806020838503121561341a578182fd5b823567ffffffffffffffff811115613430578283fd5b61343c85828601612f8e565b90969095509350505050565b6000806040838503121561345a578182fd5b823567ffffffffffffffff80821115613471578384fd5b6133dc8683870161304a565b60006020828403121561348e578081fd5b5035919050565b6000602082840312156134a6578081fd5b81356130c38161420f565b6000602082840312156134c2578081fd5b81516130c38161420f565b6000602082840312156134de578081fd5b813567ffffffffffffffff8111156134f4578182fd5b8201601f81018413613504578182fd5b6119e784823560208401612f1f565b60008060408385031215613525578182fd5b8235915061310d60208401612f77565b600080600060408486031215613549578081fd5b83359250602084013567ffffffffffffffff811115613566578182fd5b61357286828701612f8e565b9497909650939450505050565b6000815180845260208085019450808401835b838110156135ae57815187529582019590820190600101613592565b509495945050505050565b60008151808452815b818110156135de576020818501810151868301820152016135c2565b818111156135ef5782602083870101525b50601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261366f60a083018661357f565b8281036060840152613681818661357f565b9050828103608084015261369581856135b9565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526136d960a08301846135b9565b979650505050505050565b6000602082526130c3602083018461357f565b60006040825261370a604083018561357f565b828103602084015261371c818561357f565b95945050505050565b901515815260200190565b90815260200190565b6000602082526130c360208301846135b9565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f596f752077656e74206f766572206d617820746f6b656e73207065722074726160408201527f6e73616374696f6e000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e74207460408201527f686174206d616e79000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f596f7520617265206e6f74206f6e2074686520667265652077616c6c6574206c60408201527f697374206f72206861766520616c7265616479206d696e746564000000000000606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f46726565206d696e74206973206e6f7420616374697665000000000000000000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601a908201527f50726573616c65206d696e74206973206e6f7420616374697665000000000000604082015260600190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f596f752073656e742074686520696e636f727265637420616d6f756e74206f6660408201527f2045544800000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603d908201527f596f7520617265206e6f74206f6e207468652070726573616c652077616c6c6560408201527f74206c697374206f72206861766520616c7265616479206d696e746564000000606082015260800190565b6020808252600d908201527f496e76616c69642050726f6f6600000000000000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b60405181810167ffffffffffffffff811182821017156140685761406861414e565b604052919050565b600067ffffffffffffffff82111561408a5761408a61414e565b5060209081020190565b600082198211156140a7576140a7614138565b500190565b60008160001904831182151516156140c6576140c6614138565b500290565b6000828210156140dd576140dd614138565b500390565b6002810460018216806140f657607f821691505b6020821081141561411757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561413157614131614138565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561417a57610d3b565b600481823e6308c379a061418e8251614164565b1461419857610d3b565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156141c85750505050610d3b565b828401925082519150808211156141e25750505050610d3b565b503d830160208284010111156141fa57505050610d3b565b601f01601f1916810160200160405291505090565b6001600160e01b031981168114610c9f57600080fdfea2646970667358221220f1e65ed276d3f2cd3cbef059d80c0c5e5077db07ea7d4c23c6f3a3a0c1aafd3264736f6c63430008000033

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.