ETH Price: $3,318.80 (-2.81%)

Token

Danger Islands ()
 

Overview

Max Total Supply

3,238

Holders

119

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x9A37Ed4c098E71ff9C335c173b524Bcba036d037
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Danger Islands is an upcoming pirate-themed blockchain game where players compete for resources and rewards. Mints available only on Lazer LaunchPad. First mint is Genesis Common Land.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GameObjectMaker

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


contract GameObjectMaker is ERC1155, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private counter;

    string metadataPath;

    mapping(address => bool) private minters;

    struct GameObject {
        uint256 gameObjectId; 
        uint256 maxSupply;
        uint256 totalSupply;
        uint256 mintPrice;
        bool paidWithToken;
        bool isSaleClosed;
    }

    mapping(uint256 => GameObject) public gameObjects;

    constructor() ERC1155("") {
        metadataPath = "";
    }

    // modifiers

    modifier onlyMinter {
        if (minters[msg.sender] != true) revert();
        _;
    }

    // Getters

    function isPaidWithToken(uint256 gameObjectId) public view returns (bool) {
        return gameObjects[gameObjectId].paidWithToken;
    }

    function isSaleClosed(uint256 gameObjectId) public view returns (bool) {
        return gameObjects[gameObjectId].isSaleClosed;
    }

    function getMintPrice(uint256 gameObjectId) public view returns (uint256) {
        return gameObjects[gameObjectId].mintPrice;
    }

    function getGameObject(uint256 id) public view returns (GameObject memory) {
        return gameObjects[id];
    }

    function getTotalSupply(uint256 gameObjectId) public view returns (uint256) {
        return gameObjects[gameObjectId].totalSupply;
    }

    function exists(uint256 id) public view returns (bool) {
        return gameObjects[id].maxSupply > 0;
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
        return (
            string(abi.encodePacked(metadataPath, Strings.toString(tokenId)))
        );
    }

    function isMinter(address _address) public view returns (bool) {
        return minters[_address];
    }

    // Setters

    function setMinter(address _address, bool value) external onlyOwner {
        minters[_address] = value;
    }

    function setMetadataPath(string memory _metadataPath) external onlyOwner {
        metadataPath = _metadataPath;
    }

    // Manage sale
    function openSingleSale(uint256 _gameObjectId) external onlyMinter {
        require(exists(_gameObjectId), "GameObject does not exist");
        gameObjects[_gameObjectId].isSaleClosed = false;
    }

    function closeSingleSale(uint256 _gameObjectId) external onlyMinter {
        require(exists(_gameObjectId), "GameObject does not exist");
        gameObjects[_gameObjectId].isSaleClosed = true;
    }

    function openSale(uint256[] calldata _gameObjectIds) external onlyMinter {
        for (uint256 i = 0; i < _gameObjectIds.length; i++) {
            require(exists(_gameObjectIds[i]), "GameObject does not exist");
            gameObjects[_gameObjectIds[i]].isSaleClosed = false;
        }
    }

    function closeSale(uint256[] calldata _gameObjectIds) external onlyMinter {
        for (uint256 i = 0; i < _gameObjectIds.length; i++) {
            require(exists(_gameObjectIds[i]), "GameObject does not exist");
            gameObjects[_gameObjectIds[i]].isSaleClosed = true;
        }
    }

    // Manage GameObjects

    function addGameObject(
        uint256 _maxSupply,
        uint256 _mintPrice,
        bool _paidWithToken
    ) public onlyOwner {
        GameObject storage go = gameObjects[counter.current()];
        go.gameObjectId = counter.current();
        go.maxSupply = _maxSupply;
        go.mintPrice = _mintPrice;
        go.paidWithToken = _paidWithToken;
        go.isSaleClosed = true;
        go.totalSupply = 0;

        counter.increment();
    }

    function editGameObject(
        uint256 _gameObjectId,
        uint256 _maxSupply,
        uint256 _mintPrice,
        bool _paidWithToken
    ) external onlyOwner {
        require(
            exists(_gameObjectId),
            "EditGameObject: gameObject does not exist"
        );
        gameObjects[_gameObjectId].maxSupply = _maxSupply;
        gameObjects[_gameObjectId].mintPrice = _mintPrice;
        gameObjects[_gameObjectId].paidWithToken = _paidWithToken;
    }

    // Mint by minter
    function mint(address _recipient, uint256 _gameObjectId, uint256 _amount) external onlyMinter {
        require(
            gameObjects[_gameObjectId].totalSupply + _amount <= gameObjects[_gameObjectId].maxSupply,
            "mint: Max supply reached"
        );
        gameObjects[_gameObjectId].totalSupply += _amount;
        _mint(_recipient, _gameObjectId, _amount, "");
    }

    // Withdraw

    function withdraw() public payable onlyOwner {
        uint256 bal = address(this).balance;
        require(payable(msg.sender).send(bal));
    }

    function withdrawToken(address _tokenAddress) public payable onlyOwner {
        ERC20 token = ERC20(_tokenAddress);
        uint256 bal = token.balanceOf(address(this));
        token.transfer(msg.sender, bal);
    }
}

File 2 of 19 : 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 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

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

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 19 : 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 19 : 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 19 : 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 19 : 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 19 : 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 19 : 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 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 15 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 18 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 19 of 19 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "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":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"bool","name":"_paidWithToken","type":"bool"}],"name":"addGameObject","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":"uint256[]","name":"_gameObjectIds","type":"uint256[]"}],"name":"closeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gameObjectId","type":"uint256"}],"name":"closeSingleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gameObjectId","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"bool","name":"_paidWithToken","type":"bool"}],"name":"editGameObject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gameObjects","outputs":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"bool","name":"paidWithToken","type":"bool"},{"internalType":"bool","name":"isSaleClosed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getGameObject","outputs":[{"components":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"bool","name":"paidWithToken","type":"bool"},{"internalType":"bool","name":"isSaleClosed","type":"bool"}],"internalType":"struct GameObjectMaker.GameObject","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"}],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"}],"name":"isPaidWithToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameObjectId","type":"uint256"}],"name":"isSaleClosed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_gameObjectId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_gameObjectIds","type":"uint256[]"}],"name":"openSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gameObjectId","type":"uint256"}],"name":"openSingleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_metadataPath","type":"string"}],"name":"setMetadataPath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b506040518060200160405280600081525062000033816200008260201b60201c565b5062000054620000486200009e60201b60201c565b620000a660201b60201c565b60405180602001604052806000815250600590805190602001906200007b9291906200016c565b5062000281565b80600290805190602001906200009a9291906200016c565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200017a906200021c565b90600052602060002090601f0160209004810192826200019e5760008555620001ea565b82601f10620001b957805160ff1916838001178555620001ea565b82800160010185558215620001ea579182015b82811115620001e9578251825591602001919060010190620001cc565b5b509050620001f99190620001fd565b5090565b5b8082111562000218576000816000905550600101620001fe565b5090565b600060028204905060018216806200023557607f821691505b602082108114156200024c576200024b62000252565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6147ed80620002916000396000f3fe6080604052600436106101cc5760003560e01c806372b367aa116100f7578063bbc709de11610095578063ef034d5c11610064578063ef034d5c146106b4578063f242432a146106f1578063f2fde38b1461071a578063f830fbc214610743576101cc565b8063bbc709de146105e8578063c8b4d40114610611578063cf456ae71461064e578063e985e9c514610677576101cc565b80638da5cb5b116100d15780638da5cb5b1461051a57806392ab723e14610545578063a22cb46514610582578063aa271e1a146105ab576101cc565b806372b367aa1461049357806389476069146104d55780638a1cfed6146104f1576101cc565b80633ccfd60b1161016f5780634f6cd7ec1161013e5780634f6cd7ec146103ed578063559e775b146104165780635fa4749414610453578063715018a61461047c576101cc565b80633ccfd60b146103405780633d9e2f7f1461034a5780634e1273f4146103735780634f558e79146103b0576101cc565b8063156e29f6116101ab578063156e29f61461028857806318ff07a5146102b1578063215f3b6f146102da5780632eb2c2d614610317576101cc565b8062fdd58e146101d157806301ffc9a71461020e5780630e89341c1461024b575b600080fd5b3480156101dd57600080fd5b506101f860048036038101906101f3919061326c565b61076c565b604051610205919061418f565b60405180910390f35b34801561021a57600080fd5b50610235600480360381019061023091906133d1565b610835565b6040516102429190613f37565b60405180910390f35b34801561025757600080fd5b50610272600480360381019061026d9190613464565b610917565b60405161027f9190613f52565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa91906132a8565b61094b565b005b3480156102bd57600080fd5b506102d860048036038101906102d391906134b6565b610a6f565b005b3480156102e657600080fd5b5061030160048036038101906102fc9190613464565b610b82565b60405161030e9190613f37565b60405180910390f35b34801561032357600080fd5b5061033e600480360381019061033991906130e2565b610baf565b005b610348610c50565b005b34801561035657600080fd5b50610371600480360381019061036c9190613363565b610d12565b005b34801561037f57600080fd5b5061039a600480360381019061039591906132f7565b610e8a565b6040516103a79190613ede565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613464565b61103b565b6040516103e49190613f37565b60405180910390f35b3480156103f957600080fd5b50610414600480360381019061040f9190613505565b61105d565b005b34801561042257600080fd5b5061043d60048036038101906104389190613464565b61118b565b60405161044a919061418f565b60405180910390f35b34801561045f57600080fd5b5061047a60048036038101906104759190613464565b6111ab565b005b34801561048857600080fd5b50610491611282565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190613464565b61130a565b6040516104cc969594939291906141d3565b60405180910390f35b6104ef60048036038101906104ea919061307d565b611360565b005b3480156104fd57600080fd5b5061051860048036038101906105139190613363565b611501565b005b34801561052657600080fd5b5061052f611679565b60405161053c9190613dd8565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613464565b6116a3565b604051610579919061418f565b60405180910390f35b34801561058e57600080fd5b506105a960048036038101906105a49190613230565b6116c3565b005b3480156105b757600080fd5b506105d260048036038101906105cd919061307d565b6116d9565b6040516105df9190613f37565b60405180910390f35b3480156105f457600080fd5b5061060f600480360381019061060a9190613423565b61172f565b005b34801561061d57600080fd5b5061063860048036038101906106339190613464565b6117c5565b6040516106459190614174565b60405180910390f35b34801561065a57600080fd5b5061067560048036038101906106709190613230565b611850565b005b34801561068357600080fd5b5061069e600480360381019061069991906130a6565b611927565b6040516106ab9190613f37565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d69190613464565b6119bb565b6040516106e89190613f37565b60405180910390f35b3480156106fd57600080fd5b50610718600480360381019061071391906131a1565b6119e8565b005b34801561072657600080fd5b50610741600480360381019061073c919061307d565b611a89565b005b34801561074f57600080fd5b5061076a60048036038101906107659190613464565b611b81565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d490613fb4565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610910575061090f82611c58565b5b9050919050565b6060600561092483611cc2565b604051602001610935929190613db4565b6040516020818303038152906040529050919050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146109a857600080fd5b60076000838152602001908152602001600020600101548160076000858152602001908152602001600020600201546109e191906143ae565b1115610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614014565b60405180910390fd5b80600760008481526020019081526020016000206002016000828254610a4891906143ae565b92505081905550610a6a83838360405180602001604052806000815250611e6f565b505050565b610a77612005565b73ffffffffffffffffffffffffffffffffffffffff16610a95611679565b73ffffffffffffffffffffffffffffffffffffffff1614610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae2906140b4565b60405180910390fd5b600060076000610afb600461200d565b81526020019081526020016000209050610b15600461200d565b8160000181905550838160010181905550828160030181905550818160040160006101000a81548160ff02191690831515021790555060018160040160016101000a81548160ff02191690831515021790555060008160020181905550610b7c600461201b565b50505050565b60006007600083815260200190815260200160002060040160019054906101000a900460ff169050919050565b610bb7612005565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610bfd5750610bfc85610bf7612005565b611927565b5b610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3390614054565b60405180910390fd5b610c498585858585612031565b5050505050565b610c58612005565b73ffffffffffffffffffffffffffffffffffffffff16610c76611679565b73ffffffffffffffffffffffffffffffffffffffff1614610ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc3906140b4565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610d0f57600080fd5b50565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610d6f57600080fd5b60005b82829050811015610e8557610dc5838383818110610db9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561103b565b610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb906140d4565b60405180910390fd5b600060076000858585818110610e43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002060040160016101000a81548160ff0219169083151502179055508080610e7d90614551565b915050610d72565b505050565b60608151835114610ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec790614114565b60405180910390fd5b6000835167ffffffffffffffff811115610f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610f415781602001602082028036833780820191505090505b50905060005b845181101561103057610fda858281518110610f8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610fcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161076c565b828281518110611013577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061102990614551565b9050610f47565b508091505092915050565b6000806007600084815260200190815260200160002060010154119050919050565b611065612005565b73ffffffffffffffffffffffffffffffffffffffff16611083611679565b73ffffffffffffffffffffffffffffffffffffffff16146110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d0906140b4565b60405180910390fd5b6110e28461103b565b611121576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111890614094565b60405180910390fd5b826007600086815260200190815260200160002060010181905550816007600086815260200190815260200160002060030181905550806007600086815260200190815260200160002060040160006101000a81548160ff02191690831515021790555050505050565b600060076000838152602001908152602001600020600301549050919050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461120857600080fd5b6112118161103b565b611250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611247906140d4565b60405180910390fd5b60016007600083815260200190815260200160002060040160016101000a81548160ff02191690831515021790555050565b61128a612005565b73ffffffffffffffffffffffffffffffffffffffff166112a8611679565b73ffffffffffffffffffffffffffffffffffffffff16146112fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f5906140b4565b60405180910390fd5b6113086000612391565b565b60076020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16908060040160019054906101000a900460ff16905086565b611368612005565b73ffffffffffffffffffffffffffffffffffffffff16611386611679565b73ffffffffffffffffffffffffffffffffffffffff16146113dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d3906140b4565b60405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161141c9190613dd8565b60206040518083038186803b15801561143457600080fd5b505afa158015611448573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146c919061348d565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114a9929190613eb5565b602060405180830381600087803b1580156114c357600080fd5b505af11580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb91906133a8565b50505050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461155e57600080fd5b60005b82829050811015611674576115b48383838181106115a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561103b565b6115f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ea906140d4565b60405180910390fd5b600160076000858585818110611632577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002060040160016101000a81548160ff021916908315150217905550808061166c90614551565b915050611561565b505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060076000838152602001908152602001600020600201549050919050565b6116d56116ce612005565b8383612457565b5050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b611737612005565b73ffffffffffffffffffffffffffffffffffffffff16611755611679565b73ffffffffffffffffffffffffffffffffffffffff16146117ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a2906140b4565b60405180910390fd5b80600590805190602001906117c1929190612cc7565b5050565b6117cd612d4d565b600760008381526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900460ff161515151581526020016004820160019054906101000a900460ff1615151515815250509050919050565b611858612005565b73ffffffffffffffffffffffffffffffffffffffff16611876611679565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906140b4565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006007600083815260200190815260200160002060040160009054906101000a900460ff169050919050565b6119f0612005565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a365750611a3585611a30612005565b611927565b5b611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c90613ff4565b60405180910390fd5b611a8285858585856125c4565b5050505050565b611a91612005565b73ffffffffffffffffffffffffffffffffffffffff16611aaf611679565b73ffffffffffffffffffffffffffffffffffffffff1614611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906140b4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6c90613fd4565b60405180910390fd5b611b7e81612391565b50565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611bde57600080fd5b611be78161103b565b611c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1d906140d4565b60405180910390fd5b60006007600083815260200190815260200160002060040160016101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415611d0a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611e6a565b600082905060005b60008214611d3c578080611d2590614551565b915050600a82611d359190614404565b9150611d12565b60008167ffffffffffffffff811115611d7e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611db05781602001600182028036833780820191505090505b5090505b60008514611e6357600182611dc99190614435565b9150600a85611dd8919061459a565b6030611de491906143ae565b60f81b818381518110611e20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611e5c9190614404565b9450611db4565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed690614154565b60405180910390fd5b6000611ee9612005565b9050611f0a81600087611efb88612846565b611f0488612846565b8761290c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f6991906143ae565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611fe79291906141aa565b60405180910390a4611ffe81600087878787612914565b5050505050565b600033905090565b600081600001549050919050565b6001816000016000828254019250508190555050565b8151835114612075576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206c90614134565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dc90614034565b60405180910390fd5b60006120ef612005565b90506120ff81878787878761290c565b60005b84518110156122fc576000858281518110612146577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600085838151811061218b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561222c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222390614074565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e191906143ae565b92505081905550505050806122f590614551565b9050612102565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612373929190613f00565b60405180910390a4612389818787878787612ae4565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bd906140f4565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125b79190613f37565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262b90614034565b60405180910390fd5b600061263e612005565b905061265e81878761264f88612846565b61265888612846565b8761290c565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156126f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ec90614074565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127aa91906143ae565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516128279291906141aa565b60405180910390a461283d828888888888612914565b50505050505050565b60606000600167ffffffffffffffff81111561288b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156128b95781602001602082028036833780820191505090505b50905082816000815181106128f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b6129338473ffffffffffffffffffffffffffffffffffffffff16612cb4565b15612adc578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612979959493929190613e5b565b602060405180830381600087803b15801561299357600080fd5b505af19250505080156129c457506040513d601f19601f820116820180604052508101906129c191906133fa565b60015b612a53576129d06146a5565b806129db5750612a18565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0f9190613f52565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4a90613f74565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad190613f94565b60405180910390fd5b505b505050505050565b612b038473ffffffffffffffffffffffffffffffffffffffff16612cb4565b15612cac578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b49959493929190613df3565b602060405180830381600087803b158015612b6357600080fd5b505af1925050508015612b9457506040513d601f19601f82011682018060405250810190612b9191906133fa565b60015b612c2357612ba06146a5565b80612bab5750612be8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf9190613f52565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a90613f74565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca190613f94565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054612cd39061451f565b90600052602060002090601f016020900481019282612cf55760008555612d3c565b82601f10612d0e57805160ff1916838001178555612d3c565b82800160010185558215612d3c579182015b82811115612d3b578251825591602001919060010190612d20565b5b509050612d499190612d87565b5090565b6040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b5b80821115612da0576000816000905550600101612d88565b5090565b6000612db7612db284614265565b614234565b90508083825260208201905082856020860282011115612dd657600080fd5b60005b85811015612e065781612dec8882612ef8565b845260208401935060208301925050600181019050612dd9565b5050509392505050565b6000612e23612e1e84614291565b614234565b90508083825260208201905082856020860282011115612e4257600080fd5b60005b85811015612e725781612e588882613053565b845260208401935060208301925050600181019050612e45565b5050509392505050565b6000612e8f612e8a846142bd565b614234565b905082815260208101848484011115612ea757600080fd5b612eb28482856144dd565b509392505050565b6000612ecd612ec8846142ed565b614234565b905082815260208101848484011115612ee557600080fd5b612ef08482856144dd565b509392505050565b600081359050612f078161475b565b92915050565b600082601f830112612f1e57600080fd5b8135612f2e848260208601612da4565b91505092915050565b60008083601f840112612f4957600080fd5b8235905067ffffffffffffffff811115612f6257600080fd5b602083019150836020820283011115612f7a57600080fd5b9250929050565b600082601f830112612f9257600080fd5b8135612fa2848260208601612e10565b91505092915050565b600081359050612fba81614772565b92915050565b600081519050612fcf81614772565b92915050565b600081359050612fe481614789565b92915050565b600081519050612ff981614789565b92915050565b600082601f83011261301057600080fd5b8135613020848260208601612e7c565b91505092915050565b600082601f83011261303a57600080fd5b813561304a848260208601612eba565b91505092915050565b600081359050613062816147a0565b92915050565b600081519050613077816147a0565b92915050565b60006020828403121561308f57600080fd5b600061309d84828501612ef8565b91505092915050565b600080604083850312156130b957600080fd5b60006130c785828601612ef8565b92505060206130d885828601612ef8565b9150509250929050565b600080600080600060a086880312156130fa57600080fd5b600061310888828901612ef8565b955050602061311988828901612ef8565b945050604086013567ffffffffffffffff81111561313657600080fd5b61314288828901612f81565b935050606086013567ffffffffffffffff81111561315f57600080fd5b61316b88828901612f81565b925050608086013567ffffffffffffffff81111561318857600080fd5b61319488828901612fff565b9150509295509295909350565b600080600080600060a086880312156131b957600080fd5b60006131c788828901612ef8565b95505060206131d888828901612ef8565b94505060406131e988828901613053565b93505060606131fa88828901613053565b925050608086013567ffffffffffffffff81111561321757600080fd5b61322388828901612fff565b9150509295509295909350565b6000806040838503121561324357600080fd5b600061325185828601612ef8565b925050602061326285828601612fab565b9150509250929050565b6000806040838503121561327f57600080fd5b600061328d85828601612ef8565b925050602061329e85828601613053565b9150509250929050565b6000806000606084860312156132bd57600080fd5b60006132cb86828701612ef8565b93505060206132dc86828701613053565b92505060406132ed86828701613053565b9150509250925092565b6000806040838503121561330a57600080fd5b600083013567ffffffffffffffff81111561332457600080fd5b61333085828601612f0d565b925050602083013567ffffffffffffffff81111561334d57600080fd5b61335985828601612f81565b9150509250929050565b6000806020838503121561337657600080fd5b600083013567ffffffffffffffff81111561339057600080fd5b61339c85828601612f37565b92509250509250929050565b6000602082840312156133ba57600080fd5b60006133c884828501612fc0565b91505092915050565b6000602082840312156133e357600080fd5b60006133f184828501612fd5565b91505092915050565b60006020828403121561340c57600080fd5b600061341a84828501612fea565b91505092915050565b60006020828403121561343557600080fd5b600082013567ffffffffffffffff81111561344f57600080fd5b61345b84828501613029565b91505092915050565b60006020828403121561347657600080fd5b600061348484828501613053565b91505092915050565b60006020828403121561349f57600080fd5b60006134ad84828501613068565b91505092915050565b6000806000606084860312156134cb57600080fd5b60006134d986828701613053565b93505060206134ea86828701613053565b92505060406134fb86828701612fab565b9150509250925092565b6000806000806080858703121561351b57600080fd5b600061352987828801613053565b945050602061353a87828801613053565b935050604061354b87828801613053565b925050606061355c87828801612fab565b91505092959194509250565b60006135748383613d96565b60208301905092915050565b61358981614469565b82525050565b600061359a82614342565b6135a48185614370565b93506135af8361431d565b8060005b838110156135e05781516135c78882613568565b97506135d283614363565b9250506001810190506135b3565b5085935050505092915050565b6135f68161447b565b82525050565b6136058161447b565b82525050565b60006136168261434d565b6136208185614381565b93506136308185602086016144ec565b61363981614687565b840191505092915050565b600061364f82614358565b6136598185614392565b93506136698185602086016144ec565b61367281614687565b840191505092915050565b600061368882614358565b61369281856143a3565b93506136a28185602086016144ec565b80840191505092915050565b600081546136bb8161451f565b6136c581866143a3565b945060018216600081146136e057600181146136f157613724565b60ff19831686528186019350613724565b6136fa8561432d565b60005b8381101561371c578154818901526001820191506020810190506136fd565b838801955050505b50505092915050565b600061373a603483614392565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b60006137a0602883614392565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613806602b83614392565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b600061386c602683614392565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138d2602983614392565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b6000613938601883614392565b91507f6d696e743a204d617820737570706c79207265616368656400000000000000006000830152602082019050919050565b6000613978602583614392565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139de603283614392565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613a44602a83614392565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b6000613aaa602983614392565b91507f4564697447616d654f626a6563743a2067616d654f626a65637420646f65732060008301527f6e6f7420657869737400000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b10602083614392565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613b50601983614392565b91507f47616d654f626a65637420646f6573206e6f74206578697374000000000000006000830152602082019050919050565b6000613b90602983614392565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613bf6602983614392565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c5c602883614392565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613cc2602183614392565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60c082016000820151613d316000850182613d96565b506020820151613d446020850182613d96565b506040820151613d576040850182613d96565b506060820151613d6a6060850182613d96565b506080820151613d7d60808501826135ed565b5060a0820151613d9060a08501826135ed565b50505050565b613d9f816144d3565b82525050565b613dae816144d3565b82525050565b6000613dc082856136ae565b9150613dcc828461367d565b91508190509392505050565b6000602082019050613ded6000830184613580565b92915050565b600060a082019050613e086000830188613580565b613e156020830187613580565b8181036040830152613e27818661358f565b90508181036060830152613e3b818561358f565b90508181036080830152613e4f818461360b565b90509695505050505050565b600060a082019050613e706000830188613580565b613e7d6020830187613580565b613e8a6040830186613da5565b613e976060830185613da5565b8181036080830152613ea9818461360b565b90509695505050505050565b6000604082019050613eca6000830185613580565b613ed76020830184613da5565b9392505050565b60006020820190508181036000830152613ef8818461358f565b905092915050565b60006040820190508181036000830152613f1a818561358f565b90508181036020830152613f2e818461358f565b90509392505050565b6000602082019050613f4c60008301846135fc565b92915050565b60006020820190508181036000830152613f6c8184613644565b905092915050565b60006020820190508181036000830152613f8d8161372d565b9050919050565b60006020820190508181036000830152613fad81613793565b9050919050565b60006020820190508181036000830152613fcd816137f9565b9050919050565b60006020820190508181036000830152613fed8161385f565b9050919050565b6000602082019050818103600083015261400d816138c5565b9050919050565b6000602082019050818103600083015261402d8161392b565b9050919050565b6000602082019050818103600083015261404d8161396b565b9050919050565b6000602082019050818103600083015261406d816139d1565b9050919050565b6000602082019050818103600083015261408d81613a37565b9050919050565b600060208201905081810360008301526140ad81613a9d565b9050919050565b600060208201905081810360008301526140cd81613b03565b9050919050565b600060208201905081810360008301526140ed81613b43565b9050919050565b6000602082019050818103600083015261410d81613b83565b9050919050565b6000602082019050818103600083015261412d81613be9565b9050919050565b6000602082019050818103600083015261414d81613c4f565b9050919050565b6000602082019050818103600083015261416d81613cb5565b9050919050565b600060c0820190506141896000830184613d1b565b92915050565b60006020820190506141a46000830184613da5565b92915050565b60006040820190506141bf6000830185613da5565b6141cc6020830184613da5565b9392505050565b600060c0820190506141e86000830189613da5565b6141f56020830188613da5565b6142026040830187613da5565b61420f6060830186613da5565b61421c60808301856135fc565b61422960a08301846135fc565b979650505050505050565b6000604051905081810181811067ffffffffffffffff8211171561425b5761425a614658565b5b8060405250919050565b600067ffffffffffffffff8211156142805761427f614658565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142ac576142ab614658565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142d8576142d7614658565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561430857614307614658565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143b9826144d3565b91506143c4836144d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143f9576143f86145cb565b5b828201905092915050565b600061440f826144d3565b915061441a836144d3565b92508261442a576144296145fa565b5b828204905092915050565b6000614440826144d3565b915061444b836144d3565b92508282101561445e5761445d6145cb565b5b828203905092915050565b6000614474826144b3565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561450a5780820151818401526020810190506144ef565b83811115614519576000848401525b50505050565b6000600282049050600182168061453757607f821691505b6020821081141561454b5761454a614629565b5b50919050565b600061455c826144d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561458f5761458e6145cb565b5b600182019050919050565b60006145a5826144d3565b91506145b0836144d3565b9250826145c0576145bf6145fa565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156146b557614758565b60046000803e6146c6600051614698565b6308c379a081146146d75750614758565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561470357505050614758565b808201805167ffffffffffffffff811115614722575050505050614758565b8060208301013d850181111561473d57505050505050614758565b61474682614687565b60208401016040528296505050505050505b90565b61476481614469565b811461476f57600080fd5b50565b61477b8161447b565b811461478657600080fd5b50565b61479281614487565b811461479d57600080fd5b50565b6147a9816144d3565b81146147b457600080fd5b5056fea26469706673582212201868fadb277d3f1a989a700d1b5bfe73fb8469944628a34977c9d52a6b27190064736f6c63430008000033

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c806372b367aa116100f7578063bbc709de11610095578063ef034d5c11610064578063ef034d5c146106b4578063f242432a146106f1578063f2fde38b1461071a578063f830fbc214610743576101cc565b8063bbc709de146105e8578063c8b4d40114610611578063cf456ae71461064e578063e985e9c514610677576101cc565b80638da5cb5b116100d15780638da5cb5b1461051a57806392ab723e14610545578063a22cb46514610582578063aa271e1a146105ab576101cc565b806372b367aa1461049357806389476069146104d55780638a1cfed6146104f1576101cc565b80633ccfd60b1161016f5780634f6cd7ec1161013e5780634f6cd7ec146103ed578063559e775b146104165780635fa4749414610453578063715018a61461047c576101cc565b80633ccfd60b146103405780633d9e2f7f1461034a5780634e1273f4146103735780634f558e79146103b0576101cc565b8063156e29f6116101ab578063156e29f61461028857806318ff07a5146102b1578063215f3b6f146102da5780632eb2c2d614610317576101cc565b8062fdd58e146101d157806301ffc9a71461020e5780630e89341c1461024b575b600080fd5b3480156101dd57600080fd5b506101f860048036038101906101f3919061326c565b61076c565b604051610205919061418f565b60405180910390f35b34801561021a57600080fd5b50610235600480360381019061023091906133d1565b610835565b6040516102429190613f37565b60405180910390f35b34801561025757600080fd5b50610272600480360381019061026d9190613464565b610917565b60405161027f9190613f52565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa91906132a8565b61094b565b005b3480156102bd57600080fd5b506102d860048036038101906102d391906134b6565b610a6f565b005b3480156102e657600080fd5b5061030160048036038101906102fc9190613464565b610b82565b60405161030e9190613f37565b60405180910390f35b34801561032357600080fd5b5061033e600480360381019061033991906130e2565b610baf565b005b610348610c50565b005b34801561035657600080fd5b50610371600480360381019061036c9190613363565b610d12565b005b34801561037f57600080fd5b5061039a600480360381019061039591906132f7565b610e8a565b6040516103a79190613ede565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613464565b61103b565b6040516103e49190613f37565b60405180910390f35b3480156103f957600080fd5b50610414600480360381019061040f9190613505565b61105d565b005b34801561042257600080fd5b5061043d60048036038101906104389190613464565b61118b565b60405161044a919061418f565b60405180910390f35b34801561045f57600080fd5b5061047a60048036038101906104759190613464565b6111ab565b005b34801561048857600080fd5b50610491611282565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190613464565b61130a565b6040516104cc969594939291906141d3565b60405180910390f35b6104ef60048036038101906104ea919061307d565b611360565b005b3480156104fd57600080fd5b5061051860048036038101906105139190613363565b611501565b005b34801561052657600080fd5b5061052f611679565b60405161053c9190613dd8565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613464565b6116a3565b604051610579919061418f565b60405180910390f35b34801561058e57600080fd5b506105a960048036038101906105a49190613230565b6116c3565b005b3480156105b757600080fd5b506105d260048036038101906105cd919061307d565b6116d9565b6040516105df9190613f37565b60405180910390f35b3480156105f457600080fd5b5061060f600480360381019061060a9190613423565b61172f565b005b34801561061d57600080fd5b5061063860048036038101906106339190613464565b6117c5565b6040516106459190614174565b60405180910390f35b34801561065a57600080fd5b5061067560048036038101906106709190613230565b611850565b005b34801561068357600080fd5b5061069e600480360381019061069991906130a6565b611927565b6040516106ab9190613f37565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d69190613464565b6119bb565b6040516106e89190613f37565b60405180910390f35b3480156106fd57600080fd5b50610718600480360381019061071391906131a1565b6119e8565b005b34801561072657600080fd5b50610741600480360381019061073c919061307d565b611a89565b005b34801561074f57600080fd5b5061076a60048036038101906107659190613464565b611b81565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d490613fb4565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610910575061090f82611c58565b5b9050919050565b6060600561092483611cc2565b604051602001610935929190613db4565b6040516020818303038152906040529050919050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146109a857600080fd5b60076000838152602001908152602001600020600101548160076000858152602001908152602001600020600201546109e191906143ae565b1115610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614014565b60405180910390fd5b80600760008481526020019081526020016000206002016000828254610a4891906143ae565b92505081905550610a6a83838360405180602001604052806000815250611e6f565b505050565b610a77612005565b73ffffffffffffffffffffffffffffffffffffffff16610a95611679565b73ffffffffffffffffffffffffffffffffffffffff1614610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae2906140b4565b60405180910390fd5b600060076000610afb600461200d565b81526020019081526020016000209050610b15600461200d565b8160000181905550838160010181905550828160030181905550818160040160006101000a81548160ff02191690831515021790555060018160040160016101000a81548160ff02191690831515021790555060008160020181905550610b7c600461201b565b50505050565b60006007600083815260200190815260200160002060040160019054906101000a900460ff169050919050565b610bb7612005565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610bfd5750610bfc85610bf7612005565b611927565b5b610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3390614054565b60405180910390fd5b610c498585858585612031565b5050505050565b610c58612005565b73ffffffffffffffffffffffffffffffffffffffff16610c76611679565b73ffffffffffffffffffffffffffffffffffffffff1614610ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc3906140b4565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610d0f57600080fd5b50565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610d6f57600080fd5b60005b82829050811015610e8557610dc5838383818110610db9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561103b565b610e04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfb906140d4565b60405180910390fd5b600060076000858585818110610e43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002060040160016101000a81548160ff0219169083151502179055508080610e7d90614551565b915050610d72565b505050565b60608151835114610ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec790614114565b60405180910390fd5b6000835167ffffffffffffffff811115610f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610f415781602001602082028036833780820191505090505b50905060005b845181101561103057610fda858281518110610f8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610fcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161076c565b828281518110611013577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508061102990614551565b9050610f47565b508091505092915050565b6000806007600084815260200190815260200160002060010154119050919050565b611065612005565b73ffffffffffffffffffffffffffffffffffffffff16611083611679565b73ffffffffffffffffffffffffffffffffffffffff16146110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d0906140b4565b60405180910390fd5b6110e28461103b565b611121576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111890614094565b60405180910390fd5b826007600086815260200190815260200160002060010181905550816007600086815260200190815260200160002060030181905550806007600086815260200190815260200160002060040160006101000a81548160ff02191690831515021790555050505050565b600060076000838152602001908152602001600020600301549050919050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461120857600080fd5b6112118161103b565b611250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611247906140d4565b60405180910390fd5b60016007600083815260200190815260200160002060040160016101000a81548160ff02191690831515021790555050565b61128a612005565b73ffffffffffffffffffffffffffffffffffffffff166112a8611679565b73ffffffffffffffffffffffffffffffffffffffff16146112fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f5906140b4565b60405180910390fd5b6113086000612391565b565b60076020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16908060040160019054906101000a900460ff16905086565b611368612005565b73ffffffffffffffffffffffffffffffffffffffff16611386611679565b73ffffffffffffffffffffffffffffffffffffffff16146113dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d3906140b4565b60405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161141c9190613dd8565b60206040518083038186803b15801561143457600080fd5b505afa158015611448573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146c919061348d565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114a9929190613eb5565b602060405180830381600087803b1580156114c357600080fd5b505af11580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb91906133a8565b50505050565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461155e57600080fd5b60005b82829050811015611674576115b48383838181106115a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561103b565b6115f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ea906140d4565b60405180910390fd5b600160076000858585818110611632577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002060040160016101000a81548160ff021916908315150217905550808061166c90614551565b915050611561565b505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060076000838152602001908152602001600020600201549050919050565b6116d56116ce612005565b8383612457565b5050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b611737612005565b73ffffffffffffffffffffffffffffffffffffffff16611755611679565b73ffffffffffffffffffffffffffffffffffffffff16146117ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a2906140b4565b60405180910390fd5b80600590805190602001906117c1929190612cc7565b5050565b6117cd612d4d565b600760008381526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900460ff161515151581526020016004820160019054906101000a900460ff1615151515815250509050919050565b611858612005565b73ffffffffffffffffffffffffffffffffffffffff16611876611679565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906140b4565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006007600083815260200190815260200160002060040160009054906101000a900460ff169050919050565b6119f0612005565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a365750611a3585611a30612005565b611927565b5b611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c90613ff4565b60405180910390fd5b611a8285858585856125c4565b5050505050565b611a91612005565b73ffffffffffffffffffffffffffffffffffffffff16611aaf611679565b73ffffffffffffffffffffffffffffffffffffffff1614611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906140b4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6c90613fd4565b60405180910390fd5b611b7e81612391565b50565b60011515600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611bde57600080fd5b611be78161103b565b611c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1d906140d4565b60405180910390fd5b60006007600083815260200190815260200160002060040160016101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415611d0a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611e6a565b600082905060005b60008214611d3c578080611d2590614551565b915050600a82611d359190614404565b9150611d12565b60008167ffffffffffffffff811115611d7e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611db05781602001600182028036833780820191505090505b5090505b60008514611e6357600182611dc99190614435565b9150600a85611dd8919061459a565b6030611de491906143ae565b60f81b818381518110611e20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611e5c9190614404565b9450611db4565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed690614154565b60405180910390fd5b6000611ee9612005565b9050611f0a81600087611efb88612846565b611f0488612846565b8761290c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f6991906143ae565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611fe79291906141aa565b60405180910390a4611ffe81600087878787612914565b5050505050565b600033905090565b600081600001549050919050565b6001816000016000828254019250508190555050565b8151835114612075576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206c90614134565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dc90614034565b60405180910390fd5b60006120ef612005565b90506120ff81878787878761290c565b60005b84518110156122fc576000858281518110612146577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600085838151811061218b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561222c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222390614074565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122e191906143ae565b92505081905550505050806122f590614551565b9050612102565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612373929190613f00565b60405180910390a4612389818787878787612ae4565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bd906140f4565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125b79190613f37565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262b90614034565b60405180910390fd5b600061263e612005565b905061265e81878761264f88612846565b61265888612846565b8761290c565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156126f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ec90614074565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127aa91906143ae565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516128279291906141aa565b60405180910390a461283d828888888888612914565b50505050505050565b60606000600167ffffffffffffffff81111561288b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156128b95781602001602082028036833780820191505090505b50905082816000815181106128f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b6129338473ffffffffffffffffffffffffffffffffffffffff16612cb4565b15612adc578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612979959493929190613e5b565b602060405180830381600087803b15801561299357600080fd5b505af19250505080156129c457506040513d601f19601f820116820180604052508101906129c191906133fa565b60015b612a53576129d06146a5565b806129db5750612a18565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0f9190613f52565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4a90613f74565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad190613f94565b60405180910390fd5b505b505050505050565b612b038473ffffffffffffffffffffffffffffffffffffffff16612cb4565b15612cac578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b49959493929190613df3565b602060405180830381600087803b158015612b6357600080fd5b505af1925050508015612b9457506040513d601f19601f82011682018060405250810190612b9191906133fa565b60015b612c2357612ba06146a5565b80612bab5750612be8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf9190613f52565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a90613f74565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca190613f94565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b828054612cd39061451f565b90600052602060002090601f016020900481019282612cf55760008555612d3c565b82601f10612d0e57805160ff1916838001178555612d3c565b82800160010185558215612d3c579182015b82811115612d3b578251825591602001919060010190612d20565b5b509050612d499190612d87565b5090565b6040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b5b80821115612da0576000816000905550600101612d88565b5090565b6000612db7612db284614265565b614234565b90508083825260208201905082856020860282011115612dd657600080fd5b60005b85811015612e065781612dec8882612ef8565b845260208401935060208301925050600181019050612dd9565b5050509392505050565b6000612e23612e1e84614291565b614234565b90508083825260208201905082856020860282011115612e4257600080fd5b60005b85811015612e725781612e588882613053565b845260208401935060208301925050600181019050612e45565b5050509392505050565b6000612e8f612e8a846142bd565b614234565b905082815260208101848484011115612ea757600080fd5b612eb28482856144dd565b509392505050565b6000612ecd612ec8846142ed565b614234565b905082815260208101848484011115612ee557600080fd5b612ef08482856144dd565b509392505050565b600081359050612f078161475b565b92915050565b600082601f830112612f1e57600080fd5b8135612f2e848260208601612da4565b91505092915050565b60008083601f840112612f4957600080fd5b8235905067ffffffffffffffff811115612f6257600080fd5b602083019150836020820283011115612f7a57600080fd5b9250929050565b600082601f830112612f9257600080fd5b8135612fa2848260208601612e10565b91505092915050565b600081359050612fba81614772565b92915050565b600081519050612fcf81614772565b92915050565b600081359050612fe481614789565b92915050565b600081519050612ff981614789565b92915050565b600082601f83011261301057600080fd5b8135613020848260208601612e7c565b91505092915050565b600082601f83011261303a57600080fd5b813561304a848260208601612eba565b91505092915050565b600081359050613062816147a0565b92915050565b600081519050613077816147a0565b92915050565b60006020828403121561308f57600080fd5b600061309d84828501612ef8565b91505092915050565b600080604083850312156130b957600080fd5b60006130c785828601612ef8565b92505060206130d885828601612ef8565b9150509250929050565b600080600080600060a086880312156130fa57600080fd5b600061310888828901612ef8565b955050602061311988828901612ef8565b945050604086013567ffffffffffffffff81111561313657600080fd5b61314288828901612f81565b935050606086013567ffffffffffffffff81111561315f57600080fd5b61316b88828901612f81565b925050608086013567ffffffffffffffff81111561318857600080fd5b61319488828901612fff565b9150509295509295909350565b600080600080600060a086880312156131b957600080fd5b60006131c788828901612ef8565b95505060206131d888828901612ef8565b94505060406131e988828901613053565b93505060606131fa88828901613053565b925050608086013567ffffffffffffffff81111561321757600080fd5b61322388828901612fff565b9150509295509295909350565b6000806040838503121561324357600080fd5b600061325185828601612ef8565b925050602061326285828601612fab565b9150509250929050565b6000806040838503121561327f57600080fd5b600061328d85828601612ef8565b925050602061329e85828601613053565b9150509250929050565b6000806000606084860312156132bd57600080fd5b60006132cb86828701612ef8565b93505060206132dc86828701613053565b92505060406132ed86828701613053565b9150509250925092565b6000806040838503121561330a57600080fd5b600083013567ffffffffffffffff81111561332457600080fd5b61333085828601612f0d565b925050602083013567ffffffffffffffff81111561334d57600080fd5b61335985828601612f81565b9150509250929050565b6000806020838503121561337657600080fd5b600083013567ffffffffffffffff81111561339057600080fd5b61339c85828601612f37565b92509250509250929050565b6000602082840312156133ba57600080fd5b60006133c884828501612fc0565b91505092915050565b6000602082840312156133e357600080fd5b60006133f184828501612fd5565b91505092915050565b60006020828403121561340c57600080fd5b600061341a84828501612fea565b91505092915050565b60006020828403121561343557600080fd5b600082013567ffffffffffffffff81111561344f57600080fd5b61345b84828501613029565b91505092915050565b60006020828403121561347657600080fd5b600061348484828501613053565b91505092915050565b60006020828403121561349f57600080fd5b60006134ad84828501613068565b91505092915050565b6000806000606084860312156134cb57600080fd5b60006134d986828701613053565b93505060206134ea86828701613053565b92505060406134fb86828701612fab565b9150509250925092565b6000806000806080858703121561351b57600080fd5b600061352987828801613053565b945050602061353a87828801613053565b935050604061354b87828801613053565b925050606061355c87828801612fab565b91505092959194509250565b60006135748383613d96565b60208301905092915050565b61358981614469565b82525050565b600061359a82614342565b6135a48185614370565b93506135af8361431d565b8060005b838110156135e05781516135c78882613568565b97506135d283614363565b9250506001810190506135b3565b5085935050505092915050565b6135f68161447b565b82525050565b6136058161447b565b82525050565b60006136168261434d565b6136208185614381565b93506136308185602086016144ec565b61363981614687565b840191505092915050565b600061364f82614358565b6136598185614392565b93506136698185602086016144ec565b61367281614687565b840191505092915050565b600061368882614358565b61369281856143a3565b93506136a28185602086016144ec565b80840191505092915050565b600081546136bb8161451f565b6136c581866143a3565b945060018216600081146136e057600181146136f157613724565b60ff19831686528186019350613724565b6136fa8561432d565b60005b8381101561371c578154818901526001820191506020810190506136fd565b838801955050505b50505092915050565b600061373a603483614392565b91507f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008301527f526563656976657220696d706c656d656e7465720000000000000000000000006020830152604082019050919050565b60006137a0602883614392565b91507f455243313135353a204552433131353552656365697665722072656a6563746560008301527f6420746f6b656e730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613806602b83614392565b91507f455243313135353a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b600061386c602683614392565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138d2602983614392565b91507f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008301527f20617070726f76656400000000000000000000000000000000000000000000006020830152604082019050919050565b6000613938601883614392565b91507f6d696e743a204d617820737570706c79207265616368656400000000000000006000830152602082019050919050565b6000613978602583614392565b91507f455243313135353a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139de603283614392565b91507f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000613a44602a83614392565b91507f455243313135353a20696e73756666696369656e742062616c616e636520666f60008301527f72207472616e73666572000000000000000000000000000000000000000000006020830152604082019050919050565b6000613aaa602983614392565b91507f4564697447616d654f626a6563743a2067616d654f626a65637420646f65732060008301527f6e6f7420657869737400000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b10602083614392565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613b50601983614392565b91507f47616d654f626a65637420646f6573206e6f74206578697374000000000000006000830152602082019050919050565b6000613b90602983614392565b91507f455243313135353a2073657474696e6720617070726f76616c2073746174757360008301527f20666f722073656c6600000000000000000000000000000000000000000000006020830152604082019050919050565b6000613bf6602983614392565b91507f455243313135353a206163636f756e747320616e6420696473206c656e67746860008301527f206d69736d6174636800000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c5c602883614392565b91507f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008301527f6d69736d617463680000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613cc2602183614392565b91507f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60c082016000820151613d316000850182613d96565b506020820151613d446020850182613d96565b506040820151613d576040850182613d96565b506060820151613d6a6060850182613d96565b506080820151613d7d60808501826135ed565b5060a0820151613d9060a08501826135ed565b50505050565b613d9f816144d3565b82525050565b613dae816144d3565b82525050565b6000613dc082856136ae565b9150613dcc828461367d565b91508190509392505050565b6000602082019050613ded6000830184613580565b92915050565b600060a082019050613e086000830188613580565b613e156020830187613580565b8181036040830152613e27818661358f565b90508181036060830152613e3b818561358f565b90508181036080830152613e4f818461360b565b90509695505050505050565b600060a082019050613e706000830188613580565b613e7d6020830187613580565b613e8a6040830186613da5565b613e976060830185613da5565b8181036080830152613ea9818461360b565b90509695505050505050565b6000604082019050613eca6000830185613580565b613ed76020830184613da5565b9392505050565b60006020820190508181036000830152613ef8818461358f565b905092915050565b60006040820190508181036000830152613f1a818561358f565b90508181036020830152613f2e818461358f565b90509392505050565b6000602082019050613f4c60008301846135fc565b92915050565b60006020820190508181036000830152613f6c8184613644565b905092915050565b60006020820190508181036000830152613f8d8161372d565b9050919050565b60006020820190508181036000830152613fad81613793565b9050919050565b60006020820190508181036000830152613fcd816137f9565b9050919050565b60006020820190508181036000830152613fed8161385f565b9050919050565b6000602082019050818103600083015261400d816138c5565b9050919050565b6000602082019050818103600083015261402d8161392b565b9050919050565b6000602082019050818103600083015261404d8161396b565b9050919050565b6000602082019050818103600083015261406d816139d1565b9050919050565b6000602082019050818103600083015261408d81613a37565b9050919050565b600060208201905081810360008301526140ad81613a9d565b9050919050565b600060208201905081810360008301526140cd81613b03565b9050919050565b600060208201905081810360008301526140ed81613b43565b9050919050565b6000602082019050818103600083015261410d81613b83565b9050919050565b6000602082019050818103600083015261412d81613be9565b9050919050565b6000602082019050818103600083015261414d81613c4f565b9050919050565b6000602082019050818103600083015261416d81613cb5565b9050919050565b600060c0820190506141896000830184613d1b565b92915050565b60006020820190506141a46000830184613da5565b92915050565b60006040820190506141bf6000830185613da5565b6141cc6020830184613da5565b9392505050565b600060c0820190506141e86000830189613da5565b6141f56020830188613da5565b6142026040830187613da5565b61420f6060830186613da5565b61421c60808301856135fc565b61422960a08301846135fc565b979650505050505050565b6000604051905081810181811067ffffffffffffffff8211171561425b5761425a614658565b5b8060405250919050565b600067ffffffffffffffff8211156142805761427f614658565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142ac576142ab614658565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142d8576142d7614658565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561430857614307614658565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143b9826144d3565b91506143c4836144d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143f9576143f86145cb565b5b828201905092915050565b600061440f826144d3565b915061441a836144d3565b92508261442a576144296145fa565b5b828204905092915050565b6000614440826144d3565b915061444b836144d3565b92508282101561445e5761445d6145cb565b5b828203905092915050565b6000614474826144b3565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561450a5780820151818401526020810190506144ef565b83811115614519576000848401525b50505050565b6000600282049050600182168061453757607f821691505b6020821081141561454b5761454a614629565b5b50919050565b600061455c826144d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561458f5761458e6145cb565b5b600182019050919050565b60006145a5826144d3565b91506145b0836144d3565b9250826145c0576145bf6145fa565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d10156146b557614758565b60046000803e6146c6600051614698565b6308c379a081146146d75750614758565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561470357505050614758565b808201805167ffffffffffffffff811115614722575050505050614758565b8060208301013d850181111561473d57505050505050614758565b61474682614687565b60208401016040528296505050505050505b90565b61476481614469565b811461476f57600080fd5b50565b61477b8161447b565b811461478657600080fd5b50565b61479281614487565b811461479d57600080fd5b50565b6147a9816144d3565b81146147b457600080fd5b5056fea26469706673582212201868fadb277d3f1a989a700d1b5bfe73fb8469944628a34977c9d52a6b27190064736f6c63430008000033

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.