ETH Price: $3,122.23 (-0.73%)

Token

Metaverses powered by Rove (RMs)
 

Overview

Max Total Supply

1,161 RMs

Holders

578

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dorsian.eth
0x03a025afad1e656b9Df32f2620717875a48e6B1A
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RockNFTCollectionHolder

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 37 : RockNFTCollectionHolder.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

import "../utils/ERC1155TradableForRock.sol";
import "../governance/ParameterControl.sol";

/*
 * TODO:
 * [] Use ERC1155 https://docs.openzeppelin.com/contracts/3.x/erc1155
 * [] 
 *
 */
// Rock NFT for NFT Holder
contract RockNFTCollectionHolder is ERC1155TradableForRock {
    event ParameterControlChanged (address previous, address new_);
    event AddZone(uint256 _metaverseId, uint256 _zoneType, uint256 _zoneIndex, uint256 _rockIndexFrom, uint256 _rockIndexTo, address _coreTeam, address _collAddr, uint256 _price);
    event InitMetaverse(uint256 _metaverseId);
    event EChangeZonePrice(uint256 _metaverseId, uint256 _zoneIndex, uint256 _price);
    event EChangeMetaverseOwner(uint256 _metaverseId, address _add);

    mapping(uint256 => address) public metaverseOwners;
    mapping(address => bool) public metaverseNftCollections; // 1 metaverse only map with 1 nft collections -> add zone-2 always = this nft collection
    mapping(uint256 => mapping(uint256 => SharedStructs.zone)) public metaverseZones;
    mapping(address => mapping(uint256 => bool)) minted;


    using SafeMath for uint256;

    address public parameterControlAdd;

    constructor(address admin, address operator, address _parameterAdd, string memory name, string memory symbol)
    ERC1155TradableForRock(name, symbol, "", admin, operator
    ) public {
        require(_parameterAdd != address(0x0), "INV_ADD");
        parameterControlAdd = _parameterAdd;
    }

    function changeZonePrice(uint256 _metaverseId, uint256 _zoneIndex, uint256 _price) external {
        require(metaverseOwners[_metaverseId] == msgSender(), "I_A");
        require(metaverseZones[_metaverseId][_zoneIndex].rockIndexTo > 0, "I_Z");
        require(metaverseZones[_metaverseId][_zoneIndex].typeZone == 2 || metaverseZones[_metaverseId][_zoneIndex].typeZone == 3, "I_Z");
        metaverseZones[_metaverseId][_zoneIndex].price = _price;
        emit EChangeZonePrice(_metaverseId, _zoneIndex, _price);
    }

    function changeMetaverseOwner(uint256 _metaverseId, address _add) external {
        require(metaverseOwners[_metaverseId] == msgSender(), "I_A");
        require(_add != address(0x0), "I_A");
        metaverseOwners[_metaverseId] = _add;
        emit EChangeMetaverseOwner(_metaverseId, _add);
    }

    function sliceUint(bytes memory bs, uint start)
    internal pure
    returns (uint256)
    {
        require(bs.length >= start + 32, "OOR");
        uint256 x;
        assembly {
            x := mload(add(bs, add(0x20, start)))
        }
        return x;
    }

    function mintRock(
        uint256 _metaverseId,
        address _to,
        uint256 _zoneIndex,
        uint256 _rockIndex,
        string memory _uri,
        bytes memory _data)
    external payable
    {
        address _mOwner = metaverseOwners[_metaverseId];
        require(_mOwner != address(0x0), "N_E_M");

        SharedStructs.zone memory _zone = metaverseZones[_metaverseId][_zoneIndex];

        require(_rockIndex >= _zone.rockIndexFrom && _rockIndex <= _zone.rockIndexTo, "I_R_I");
        uint256 _tokenId = (_metaverseId * (10 ** 9) + _zoneIndex) * (10 ** 9) + _rockIndex;
        require(!_exists(_tokenId), "E_T");

        require(_zone.rockIndexTo > 0, "I_S");
        if (_zone.typeZone == 1) {
            require(_zone.coreTeamAddr == msgSender(), "C_T");
        } else if (_zone.typeZone == 2) {
            // erc-721 check
            address _erc721Add = _zone.collAddr;
            require(_erc721Add != address(0x0));

            require(_data.length > 0, "M_721_T");
            /* check erc-721 */
            ERC721 _erc721 = ERC721(_erc721Add);
            // get token erc721 id from _data
            uint256 _erc721Id = sliceUint(_data, 0);
            // check owner token id
            require(_erc721.ownerOf(_erc721Id) == msgSender(), "N_O_721");
            // check token not minted 
            require(!minted[_erc721Add][_erc721Id], "M");

            // marked this erc721 token id is minted ticket
            minted[_erc721Add][_erc721Id] = true;

            require(msg.value >= _zone.price, "M_P_N");
        } else if (_zone.typeZone == 3) {
            require(msg.value >= _zone.price, "M_P_P");
        }

        creators[_tokenId] = operator;
        if (bytes(_uri).length > 0) {
            customUri[_tokenId] = _uri;
            emit URI(_uri, _tokenId);
        }
        _mint(_to, _tokenId, 1, _data);

        // check user mint fee
        if (_zone.price > 0) {
            if (msg.value > 0) {
                ParameterControl _p = ParameterControl(parameterControlAdd);
                uint256 purchaseFeePercent = _p.getUInt256("ROCK_PUR_FEE");
                uint256 fee = msg.value * purchaseFeePercent / 10000;
                (bool success,) = _mOwner.call{value : msg.value - fee}("");
                require(success, "FAIL");
            }
        }

        emit MintEvent(_to, _tokenId, 1);
    }

    function checkZone(SharedStructs.zone memory _zone) internal returns (bool) {
        if (_zone.typeZone != 2 && _zone.typeZone != 3) {
            return false;
        }
        if (_zone.zoneIndex >= 10 ** 9 || _zone.rockIndexFrom >= 10 ** 9 || _zone.rockIndexTo >= 10 ** 9) {
            return false;
        }
        if (_zone.rockIndexTo > 0) {
            if (_zone.typeZone == 2) {
                if (_zone.collAddr == address(0x0)) {
                    return false;
                }

            } else if (_zone.typeZone == 3) {
                if (_zone.price == 0) {
                    return false;
                }
            }
            if (_zone.rockIndexFrom > _zone.rockIndexTo || _zone.rockIndexFrom == 0) {
                return false;
            }
            return true;
        } else {
            return false;
        }
    }

    function addZone(
        uint256 _metaverseId,
        SharedStructs.zone memory _zone)
    external payable {
        require(metaverseOwners[_metaverseId] != address(0x0), "N_E_M");
        require(metaverseZones[_metaverseId][_zone.zoneIndex].rockIndexTo <= 0, "E_Z");
        require(metaverseOwners[_metaverseId] == msgSender(), "I_A");
        require(checkZone(_zone), "I_ZONE");
        require(_zone.typeZone == 2 || _zone.typeZone == 3, "INV_TYPE");
        if (_zone.typeZone == 2) {
            require(metaverseZones[_metaverseId][2].typeZone == 2, "I_Z2");
            // new zone has collAddr == zone index 2
            require(metaverseZones[_metaverseId][2].collAddr == _zone.collAddr, "I_Z2");
        }

        // get params
        ParameterControl _p = ParameterControl(parameterControlAdd);
        // get fee for imo
        uint256 imoFEE = _p.getUInt256("INIT_IMO_FEE");
        if (imoFEE > 0) {
            require(msg.value >= imoFEE * (_zone.rockIndexTo - _zone.rockIndexFrom + 1), "MISS_INI_FEE");
        }

        metaverseZones[_metaverseId][_zone.zoneIndex] = _zone;

        emit AddZone(_metaverseId, _zone.typeZone, _zone.zoneIndex, _zone.rockIndexFrom, _zone.rockIndexTo, _zone.coreTeamAddr, _zone.collAddr, _zone.price);
    }

    function initMetaverse(
        uint256 _metaverseId,
        SharedStructs.zone memory _zone2
    )
    external payable
    {
        require(metaverseOwners[_metaverseId] == address(0x0), "E_M");
        require(metaverseNftCollections[_zone2.collAddr] == false, "E_M");

        require(_zone2.zoneIndex == 2, "I_Z2");
        require(_zone2.typeZone == 2, "I_Z2");
        require(_zone2.price == 0, "I_Z2");
        // rock index = 1 for rove team
        require(_zone2.rockIndexFrom == 2, "I_Z2");
        require(checkZone(_zone2), "I_Z2");

        // get params
        ParameterControl _p = ParameterControl(parameterControlAdd);
        uint256 size = _p.getUInt256("INIT_IMO_NFT_HOLDER_SIZE");
        if (size > 0) {
            _zone2.rockIndexTo = size + 1;
        } else {
            _zone2.rockIndexTo = 501;
            // default size init
        }
        uint256 totalRockSize = _zone2.rockIndexTo - _zone2.rockIndexFrom + 1;
        require(totalRockSize > 0, "I_Z2");

        // get fee for imo
        uint256 imoFEE = _p.getUInt256("INIT_IMO_FEE");
        if (imoFEE > 0) {
            require(msg.value >= imoFEE * totalRockSize, "I_F");
        }

        metaverseOwners[_metaverseId] = operator;
        metaverseZones[_metaverseId][_zone2.zoneIndex] = _zone2;
        metaverseNftCollections[_zone2.collAddr] = true;

        // init zone 1 for operator rove team
        SharedStructs.zone memory _zone1;
        _zone1.coreTeamAddr = operator;
        _zone1.typeZone = 1;
        _zone1.rockIndexFrom = 1;
        _zone1.rockIndexTo = 1;
        _zone1.price = 0;
        _zone1.collAddr = address(0x0);
        _zone1.zoneIndex = 1;
        metaverseZones[_metaverseId][_zone1.zoneIndex] = _zone1;
        uint256 _tokenId = (_metaverseId * (10 ** 9) + _zone1.zoneIndex) * (10 ** 9) + _zone1.rockIndexFrom;
        creators[_tokenId] = operator;
        _mint(_zone1.coreTeamAddr, _tokenId, 1, '');
        emit MintEvent(_zone1.coreTeamAddr, _tokenId, 1);

        emit InitMetaverse(_metaverseId);
    }
}

File 2 of 37 : 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 3 of 37 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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);

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

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @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.
     * - `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 tokenId
    ) internal virtual {}
}

File 4 of 37 : ERC1155TradableForRock.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";
import "./IERC1155Tradable.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

library SharedStructs {
    struct zone {
        uint256 zoneIndex; // required
        uint256 price; // required for type=3
        address coreTeamAddr; // required for type=1
        address collAddr; // required for type=2 
        uint256 typeZone; //1: team ,2: nft hodler, 3: public
        uint256 rockIndexFrom;
        uint256 rockIndexTo;// required to >= from
    }
}

/**
 * @title ERC1155Tradable
 * ERC1155Tradable - ERC1155 contract that whitelists an operator address, has create and mint functionality, and supports useful standards from OpenZeppelin,
  like _exists(), name(), symbol(), and totalSupply()
 */
contract ERC1155TradableForRock is ContextMixin, ERC1155PresetMinterPauser, NativeMetaTransaction, ReentrancyGuard, IERC1155Tradable {
    event OperatorChanged (address previous, address new_);
    event AdminChanged (address previous, address new_);
    event ProxyRegistryAddressChanged (address previous, address new_);
    event MintEvent (address _to, uint256 _id, uint256 _quantity);

    using Strings for string;
    using SafeMath for uint256;

    // super admin
    address public admin;// multi sig address
    // operator
    address public operator;

    address public proxyRegistryAddress;
    mapping(uint256 => address) public creators;
    mapping(uint256 => string) customUri;
    // Contract name
    string public name;
    // Contract symbol
    string public symbol;

    /**
     * @dev Require _msgSender() to be the creator of the token id
   */
    modifier creatorOnly(uint256 _id) {
        require(creators[_id] == _msgSender(), "ONLY_CREATOR");
        _;
    }

    /**
     * @dev Require _msgSender() to own more than 0 of the token id
   */
    modifier ownersOnly(uint256 _id) {
        require(balanceOf(_msgSender(), _id) > 0, "ONLY_OWNERS");
        _;
    }

    modifier operatorOnly() {
        require(_msgSender() == operator, "ONLY_OPERATOR");
        require(hasRole(OPERATOR_ROLE, _msgSender()), "ONLY_OPERATOR");
        _;
    }

    modifier adminOnly() {
        require(_msgSender() == admin, "ONLY_ADMIN");
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "ONLY_ADMIN");
        _;
    }

    bytes32 public constant CREATOR_ROLE = keccak256("CREATOR_ROLE");
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _uri,
        address _admin,
        address _operator
    ) ERC1155PresetMinterPauser(_uri) {
        name = _name;
        symbol = _symbol;
        proxyRegistryAddress = address(0);
        _initializeEIP712(name);

        admin = _admin;
        // set role for admin address
        grantRole(DEFAULT_ADMIN_ROLE, admin);

        operator = _operator;
        // set role for operator address   
        grantRole(OPERATOR_ROLE, operator);
        grantRole(CREATOR_ROLE, operator);
        grantRole(MINTER_ROLE, operator);
        grantRole(PAUSER_ROLE, operator);

        if (admin != _msgSender()) {
            // revoke role for sender
            revokeRole(MINTER_ROLE, _msgSender());
            revokeRole(PAUSER_ROLE, _msgSender());
            revokeRole(DEFAULT_ADMIN_ROLE, _msgSender());
        }
    }

    // changeOperator: update operator by admin
    function changeOperator(address _newOperator) public adminOnly {
        require(_msgSender() == admin, "NOT_ADMIN");
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "NOT_ADMIN");

        address _previousOperator = operator;
        operator = _newOperator;

        grantRole(OPERATOR_ROLE, operator);
        grantRole(CREATOR_ROLE, operator);
        grantRole(MINTER_ROLE, operator);
        grantRole(PAUSER_ROLE, operator);

        revokeRole(OPERATOR_ROLE, _previousOperator);
        revokeRole(CREATOR_ROLE, _previousOperator);
        revokeRole(MINTER_ROLE, _previousOperator);
        revokeRole(PAUSER_ROLE, _previousOperator);

        emit OperatorChanged(_previousOperator, operator);
    }

    // changeOperator: update admin by old admin
    function changeAdmin(address _newAdmin) public adminOnly {
        require(_msgSender() == admin, "NOT_ADMIN");
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "NOT_ADMIN");

        address _previousAdmin = admin;
        admin = _newAdmin;

        grantRole(DEFAULT_ADMIN_ROLE, admin);
        //        grantRole(CREATOR_ROLE, admin);
        //        grantRole(MINTER_ROLE, admin);
        //        grantRole(PAUSER_ROLE, admin);

        //        revokeRole(CREATOR_ROLE, admin);
        //        revokeRole(MINTER_ROLE, admin);
        //        revokeRole(PAUSER_ROLE, admin);
        revokeRole(DEFAULT_ADMIN_ROLE, _previousAdmin);

        emit AdminChanged(_previousAdmin, admin);
    }

    function uri(
        uint256 _id
    ) override public view returns (string memory) {
        require(_exists(_id), "NONEXISTENT_TOKEN");
        // We have to convert string to bytes to check for existence
        bytes memory customUriBytes = bytes(customUri[_id]);
        if (customUriBytes.length > 0) {
            return customUri[_id];
        } else {
            return super.uri(_id);
        }
    }

    /**
     * @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].
   * @param _newURI New URI for all tokens
   */
    function setURI(
        string memory _newURI
    ) public operatorOnly {
        require(hasRole(CREATOR_ROLE, _msgSender()), "ONLY_CREATOR");
        _setURI(_newURI);
    }

    /**
     * @dev Will update the base URI for the token
   * @param _tokenId The token to update. _msgSender() must be its creator.
   * @param _newURI New URI for the token.
   */
    function setCustomURI(
        uint256 _tokenId,
        string memory _newURI
    ) public creatorOnly(_tokenId) {
        require(hasRole(CREATOR_ROLE, _msgSender()), "ONLY_CREATOR");
        customUri[_tokenId] = _newURI;
        emit URI(_newURI, _tokenId);
    }

    /**
      * @dev Mints some amount of tokens to an address
    * @param _to          Address of the future owner of the token
    * @param _id          Token ID to mint
    * @param _quantity    Amount of tokens to mint
    * @param _data        Data to pass if receiver is contract
    */
    function mint(
        address _to,
        uint256 _id,
        uint256 _quantity,
        bytes memory _data
    ) virtual public override creatorOnly(_id) {
    }

    /**
      * @dev Change the creator address for given tokens
    * @param _to   Address of the new creator
    * @param _ids  Array of Token IDs to change creator
    */
    function setCreator(
        address _to,
        uint256[] memory _ids
    ) public operatorOnly {
        require(_to != address(0), "INVALID_ADDRESS.");

        _grantRole(CREATOR_ROLE, _to);
        _grantRole(MINTER_ROLE, _to);
        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 id = _ids[i];
            _setCreator(_to, id);
        }
    }

    function setProxyRegistryAddress(address _proxyRegistryAddress) public operatorOnly {
        require(_proxyRegistryAddress != proxyRegistryAddress, "PROXY_INVALID");
        address previous = proxyRegistryAddress;
        proxyRegistryAddress = _proxyRegistryAddress;
        emit ProxyRegistryAddressChanged(previous, proxyRegistryAddress);
    }

    /**
   * Override isApprovedForAll to whitelist user's [OpenSea] proxy accounts to enable gas-free listings.
   */
    function isApprovedForAll(
        address _owner,
        address _operator
    ) override(ERC1155, IERC1155) public view returns (bool isOperator) {
        if (proxyRegistryAddress != address(0)) {
            // Whitelist OpenSea proxy contract for easy trading.
            ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
            if (address(proxyRegistry.proxies(_owner)) == _operator) {
                return true;
            }
        }

        return ERC1155.isApprovedForAll(_owner, _operator);
    }

    /**
      * @dev Change the creator address for given token
    * @param _to   Address of the new creator
    * @param _id  Token IDs to change creator of
    */
    function _setCreator(address _to, uint256 _id) internal creatorOnly(_id)
    {
        creators[_id] = _to;
    }

    /**
      * @dev Returns whether the specified token exists by checking to see if it has a creator
    * @param _id uint256 ID of the token to query the existence of
    * @return bool whether the token exists
    */
    function _exists(
        uint256 _id
    ) internal view returns (bool) {
        return creators[_id] != address(0);
    }

    function exists(
        uint256 _id
    ) external view returns (bool) {
        return _exists(_id);
    }

    function getCreator(uint256 id)
    public
    view
    returns (address sender)
    {
        return creators[id];
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155PresetMinterPauser, IERC165) returns (bool) {
        return
        interfaceId == type(IERC1155Tradable).interfaceId ||
        super.supportsInterface(interfaceId);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
    internal
    override
    view
    returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    /** @dev EIP2981 royalties implementation. */
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
        bool isValue;
    }

    mapping(uint256 => RoyaltyInfo) public royalties;

    function setTokenRoyalty(
        uint256 _tokenId,
        address _recipient,
        uint256 _value
    ) public operatorOnly {
        require(hasRole(CREATOR_ROLE, _msgSender()), "NOT_CREATOR");
        require(_value <= 10000, 'TOO_HIGH');
        royalties[_tokenId] = RoyaltyInfo(_recipient, uint24(_value), true);
    }

    // EIP2981 standard royalties return.
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override
    returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalty = royalties[_tokenId];
        if (royalty.isValue) {
            receiver = royalty.recipient;
            royaltyAmount = (_salePrice * royalty.amount) / 10000;
        } else {
            receiver = creators[_tokenId];
            royaltyAmount = (_salePrice * 500) / 10000;
        }
    }

    // Withdraw
    function withdraw(address _to) external nonReentrant adminOnly {
        require(address(this).balance > 0, "NOT_ENOUGH");
        (bool success,) = _to.call{value : address(this).balance}("");
        require(success, "FAIL");
    }
}

File 5 of 37 : ParameterControl.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "hardhat/console.sol";
import "./IParameterControl.sol";

/*
 * @dev Implementation of a programmable parameter control.
 *
 * [x] Add (key, value)
 * [x] Add access control 
 *
 */

contract ParameterControl is AccessControl, IParameterControl {
    event AdminChanged (address previousAdmin, address newAdmin);
    event SetEvent (string key, string value);

    address public admin; // is a mutil sig address when deploy
    mapping(string => string) private _params;
    mapping(string => int) private _paramsInt;
    mapping(string => uint256) private _paramsUInt256;

    constructor(
        address admin_
    ) {
        require(admin_ != address(0x0), "admin is zero address");
        admin = admin_;
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
    }

    function get(string memory key) external view override returns (string memory) {
        return _params[key];
    }

    function getInt(string memory key) external view override returns (int) {
        return _paramsInt[key];
    }

    function getUInt256(string memory key) external view override returns (uint256) {
        return _paramsUInt256[key];
    }

    function set(string memory key, string memory value) external override {
        console.log("msg.sender %s", msg.sender);
        require(msg.sender == admin, "Sender is not admin");
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not a admin");
        _params[key] = value;
        emit SetEvent(key, value);
    }

    function setInt(string memory key, int value) external override {
        console.log("msg.sender %s", msg.sender);
        require(msg.sender == admin, "Sender is not admin");
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not a admin");
        _paramsInt[key] = value;
    }

    function setUInt256(string memory key, uint256 value) external override {
        console.log("msg.sender %s", msg.sender);
        require(msg.sender == admin, "Sender is not admin");
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not a admin");
        _paramsUInt256[key] = value;
    }

    function updateAdmin(address admin_) external {
        require(msg.sender == admin);
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not a admin");
        require(admin_ != address(0x0), "admin is zero address");

        console.log("set new admin %s -> %s", admin, admin_);
        address previousAdmin = admin;
        admin = admin_;
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
        _revokeRole(DEFAULT_ADMIN_ROLE, previousAdmin);
        emit AdminChanged(previousAdmin, admin);
    }
}

File 6 of 37 : 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 7 of 37 : 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 8 of 37 : 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 9 of 37 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 37 : 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 11 of 37 : 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 12 of 37 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 37 : 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 14 of 37 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 15 of 37 : ERC1155PresetMinterPauser.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/presets/ERC1155PresetMinterPauser.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../extensions/ERC1155Burnable.sol";
import "../extensions/ERC1155Pausable.sol";
import "../../../access/AccessControlEnumerable.sol";
import "../../../utils/Context.sol";

/**
 * @dev {ERC1155} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 *
 * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
 */
contract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that
     * deploys the contract.
     */
    constructor(string memory uri) ERC1155(uri) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`, of token type `id`.
     *
     * See {ERC1155-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have minter role to mint");

        _mint(to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.
     */
    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have minter role to mint");

        _mintBatch(to, ids, amounts, data);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC1155Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC1155Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to unpause");
        _unpause();
    }

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

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

File 16 of 37 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 18 of 37 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.12;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 19 of 37 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.12;

import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    bytes32 private constant M_TX_HASH = keccak256(
        bytes(
            "MetaTransaction(nonce,from,signature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress] + 1;

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "fail");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    M_TX_HASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "IN_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 20 of 37 : IERC1155Tradable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

interface IERC1155Tradable is IERC1155, IERC2981 {
    function getCreator(uint256 id) external view
    virtual
    returns (address sender);
}

File 21 of 37 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 22 of 37 : 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 23 of 37 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

File 25 of 37 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

File 28 of 37 : 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 29 of 37 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 30 of 37 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 31 of 37 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 32 of 37 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.12;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 33 of 37 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.12;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 34 of 37 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 35 of 37 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 36 of 37 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

File 37 of 37 : IParameterControl.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

interface IParameterControl {
    function get(string memory key) external view returns (string memory value);

    function set(string memory key, string memory value) external;

    function getInt(string memory key) external view returns (int value);

    function setInt(string memory key, int value) external;

    function getUInt256(string memory key) external view returns (uint256 value);

    function setUInt256(string memory key, uint256 value) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"_parameterAdd","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_zoneType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_zoneIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rockIndexFrom","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rockIndexTo","type":"uint256"},{"indexed":false,"internalType":"address","name":"_coreTeam","type":"address"},{"indexed":false,"internalType":"address","name":"_collAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"AddZone","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"address","name":"new_","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_add","type":"address"}],"name":"EChangeMetaverseOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_zoneIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"EChangeZonePrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_metaverseId","type":"uint256"}],"name":"InitMetaverse","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"MintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"address","name":"new_","type":"address"}],"name":"OperatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"address","name":"new_","type":"address"}],"name":"ParameterControlChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"address","name":"new_","type":"address"}],"name":"ProxyRegistryAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CREATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"components":[{"internalType":"uint256","name":"zoneIndex","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"coreTeamAddr","type":"address"},{"internalType":"address","name":"collAddr","type":"address"},{"internalType":"uint256","name":"typeZone","type":"uint256"},{"internalType":"uint256","name":"rockIndexFrom","type":"uint256"},{"internalType":"uint256","name":"rockIndexTo","type":"uint256"}],"internalType":"struct SharedStructs.zone","name":"_zone","type":"tuple"}],"name":"addZone","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"internalType":"address","name":"_add","type":"address"}],"name":"changeMetaverseOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"changeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"internalType":"uint256","name":"_zoneIndex","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changeZonePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getCreator","outputs":[{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"components":[{"internalType":"uint256","name":"zoneIndex","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"coreTeamAddr","type":"address"},{"internalType":"address","name":"collAddr","type":"address"},{"internalType":"uint256","name":"typeZone","type":"uint256"},{"internalType":"uint256","name":"rockIndexFrom","type":"uint256"},{"internalType":"uint256","name":"rockIndexTo","type":"uint256"}],"internalType":"struct SharedStructs.zone","name":"_zone2","type":"tuple"}],"name":"initMetaverse","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"metaverseNftCollections","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metaverseOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"metaverseZones","outputs":[{"internalType":"uint256","name":"zoneIndex","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"coreTeamAddr","type":"address"},{"internalType":"address","name":"collAddr","type":"address"},{"internalType":"uint256","name":"typeZone","type":"uint256"},{"internalType":"uint256","name":"rockIndexFrom","type":"uint256"},{"internalType":"uint256","name":"rockIndexTo","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_metaverseId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_zoneIndex","type":"uint256"},{"internalType":"uint256","name":"_rockIndex","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mintRock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parameterControlAdd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"amount","type":"uint24"},{"internalType":"bool","name":"isValue","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"setCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newURI","type":"string"}],"name":"setCustomURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526005805461ff00191690553480156200001c57600080fd5b5060405162006ec438038062006ec48339810160408190526200003f9162000cd8565b8181604051806020016040528060008152508787828062000066816200038d60201b60201c565b506005805460ff1916905562000087600062000081620003a6565b620003c2565b620000a560008051602062006ea483398151915262000081620003a6565b620000c360008051602062006e8483398151915262000081620003a6565b5060016008558451620000de90600e90602088019062000b3b565b508351620000f490600f90602087019062000b3b565b50600b80546001600160a01b0319169055600e8054620001a591906200011a9062000d7b565b80601f0160208091040260200160405190810160405280929190818152602001828054620001489062000d7b565b8015620001995780601f106200016d5761010080835404028352916020019162000199565b820191906000526020600020905b8154815290600101906020018083116200017b57829003601f168201915b5050620003ce92505050565b600980546001600160a01b0319166001600160a01b038416908117909155620001d19060009062000436565b600a80546001600160a01b0319166001600160a01b0383169081179091556200021c907f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299062000436565b600a5462000255907f828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f906001600160a01b031662000436565b600a546200027d9060008051602062006ea4833981519152906001600160a01b031662000436565b600a54620002a59060008051602062006e84833981519152906001600160a01b031662000436565b620002af620003a6565b6009546001600160a01b039081169116146200031757620002e960008051602062006ea4833981519152620002e3620003a6565b6200046e565b6200030760008051602062006e84833981519152620002e3620003a6565b620003176000620002e3620003a6565b50505050506001600160a01b038316620003625760405162461bcd60e51b815260206004820152600760248201526612539597d0511160ca1b60448201526064015b60405180910390fd5b5050601580546001600160a01b0319166001600160a01b03929092169190911790555062000f199050565b8051620003a290600490602084019062000b3b565b5050565b6000620003bd6200049b60201b6200369a1760201c565b905090565b620003a28282620004fa565b600554610100900460ff1615620004195760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640162000359565b620004248162000538565b506005805461ff001916610100179055565b6000828152602081905260409020600101546200045d8162000457620003a6565b620005da565b620004698383620004fa565b505050565b6000828152602081905260409020600101546200048f8162000457620003a6565b62000469838362000675565b600033301415620004f457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004f79050565b50335b90565b620005118282620006b360201b620036f71760201c565b6000828152600160209081526040909120620004699183906200377c62000755821b17901c565b6040518060800160405280604f815260200162006e35604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620003a25762000624816001600160a01b031660146200077560201b620037911760201c565b6200063a8360206200379162000775821b17811c565b6040516020016200064d92919062000db8565b60408051601f198184030181529082905262461bcd60e51b8252620003599160040162000e31565b6200068c82826200092e60201b6200392c1760201c565b600082815260016020908152604090912062000469918390620039af620009ce821b17901c565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620003a2576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562000711620003a6565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200076c836001600160a01b038416620009e5565b90505b92915050565b606060006200078683600262000e7c565b6200079390600262000e9e565b6001600160401b03811115620007ad57620007ad62000bfe565b6040519080825280601f01601f191660200182016040528015620007d8576020820181803683370190505b509050600360fc1b81600081518110620007f657620007f662000eb9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000828576200082862000eb9565b60200101906001600160f81b031916908160001a90535060006200084e84600262000e7c565b6200085b90600162000e9e565b90505b6001811115620008dd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000893576200089362000eb9565b1a60f81b828281518110620008ac57620008ac62000eb9565b60200101906001600160f81b031916908160001a90535060049490941c93620008d58162000ecf565b90506200085e565b5083156200076c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000359565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615620003a2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556200098a620003a6565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006200076c836001600160a01b03841662000a37565b600081815260018301602052604081205462000a2e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200076f565b5060006200076f565b6000818152600183016020526040812054801562000b3057600062000a5e60018362000ee9565b855490915060009062000a749060019062000ee9565b905081811462000ae057600086600001828154811062000a985762000a9862000eb9565b906000526020600020015490508087600001848154811062000abe5762000abe62000eb9565b6000918252602080832090910192909255918252600188019052604090208390555b855486908062000af45762000af462000f03565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506200076f565b60009150506200076f565b82805462000b499062000d7b565b90600052602060002090601f01602090048101928262000b6d576000855562000bb8565b82601f1062000b8857805160ff191683800117855562000bb8565b8280016001018555821562000bb8579182015b8281111562000bb857825182559160200191906001019062000b9b565b5062000bc692915062000bca565b5090565b5b8082111562000bc6576000815560010162000bcb565b80516001600160a01b038116811462000bf957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000c3157818101518382015260200162000c17565b8381111562000c41576000848401525b50505050565b600082601f83011262000c5957600080fd5b81516001600160401b038082111562000c765762000c7662000bfe565b604051601f8301601f19908116603f0116810190828211818310171562000ca15762000ca162000bfe565b8160405283815286602085880101111562000cbb57600080fd5b62000cce84602083016020890162000c14565b9695505050505050565b600080600080600060a0868803121562000cf157600080fd5b62000cfc8662000be1565b945062000d0c6020870162000be1565b935062000d1c6040870162000be1565b60608701519093506001600160401b038082111562000d3a57600080fd5b62000d4889838a0162000c47565b9350608088015191508082111562000d5f57600080fd5b5062000d6e8882890162000c47565b9150509295509295909350565b600181811c9082168062000d9057607f821691505b6020821081141562000db257634e487b7160e01b600052602260045260246000fd5b50919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000df281601785016020880162000c14565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000e2581602884016020880162000c14565b01602801949350505050565b602081526000825180602084015262000e5281604085016020870162000c14565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562000e995762000e9962000e66565b500290565b6000821982111562000eb45762000eb462000e66565b500190565b634e487b7160e01b600052603260045260246000fd5b60008162000ee15762000ee162000e66565b506000190190565b60008282101562000efe5762000efe62000e66565b500390565b634e487b7160e01b600052603160045260246000fd5b615f0c8062000f296000396000f3fe60806040526004361061038b5760003560e01c8063731133e9116101dc578063ca15c87311610102578063d547741f116100a0578063f242432a1161006f578063f242432a14610bdd578063f5298aca14610bfd578063f5b541a614610c1d578063f851a44014610c3f57600080fd5b8063d547741f14610b5b578063e63ab1e914610b7b578063e985e9c514610b9d578063eaaef2c314610bbd57600080fd5b8063d26ea6c0116100dc578063d26ea6c014610ac3578063d2a6b51a14610ae3578063d48e638a14610b03578063d539139314610b3957600080fd5b8063ca15c87314610a4d578063cd53d08e14610a6d578063cd7c032614610aa357600080fd5b806395d89b411161017a578063a22cb46511610149578063a22cb465146109c4578063afc24cd6146109e4578063afc41841146109f7578063c91f88cc14610a1757600080fd5b806395d89b41146109675780639713c8071461097c5780639ff43f9e1461099c578063a217fddf146109af57600080fd5b80638aeda25a116101b65780638aeda25a146108e55780638f283970146109075780639010d07c1461092757806391d148541461094757600080fd5b8063731133e9146108365780637f77f574146108565780638456cb59146108d057600080fd5b80632f2ff15d116102c15780634e1933891161025f578063582543391161022e578063582543391461071e5780635c975abb146107ce57806366987f8b146107e65780636b20c4541461081657600080fd5b80634e193389146106865780634f558e79146106be57806351cff8d9146106de578063570ca735146106fe57600080fd5b80633adf80b41161029b5780633adf80b4146106115780633f4ba83a1461063157806340959287146106465780634e1273f41461065957600080fd5b80632f2ff15d146105be5780633408e470146105de57806336568abe146105f157600080fd5b80630f7e59701161032e578063248a9ca311610308578063248a9ca3146104f95780632a55205a146105295780632d0335ab146105685780632eb2c2d61461059e57600080fd5b80630f7e5970146104975780631f7fdffa146104c457806320379ee5146104e457600080fd5b806306394c9b1161036a57806306394c9b1461041557806306fdde03146104355780630c53c51c146104575780630e89341c1461047757600080fd5b8062fdd58e1461039057806301ffc9a7146103c357806302fe5305146103f3575b600080fd5b34801561039c57600080fd5b506103b06103ab366004614dc0565b610c5f565b6040519081526020015b60405180910390f35b3480156103cf57600080fd5b506103e36103de366004614e02565b610cfb565b60405190151581526020016103ba565b3480156103ff57600080fd5b5061041361040e366004614ef9565b610d20565b005b34801561042157600080fd5b50610413610430366004614f35565b610dd2565b34801561044157600080fd5b5061044a610fed565b6040516103ba9190614faa565b34801561046357600080fd5b5061044a610472366004614fbd565b61107b565b34801561048357600080fd5b5061044a61049236600461503a565b61124e565b3480156104a357600080fd5b5061044a604051806040016040528060018152602001603160f81b81525081565b3480156104d057600080fd5b506104136104df3660046150e7565b611401565b3480156104f057600080fd5b506006546103b0565b34801561050557600080fd5b506103b061051436600461503a565b60009081526020819052604090206001015490565b34801561053557600080fd5b50610549610544366004615181565b61149f565b604080516001600160a01b0390931683526020830191909152016103ba565b34801561057457600080fd5b506103b0610583366004614f35565b6001600160a01b031660009081526007602052604090205490565b3480156105aa57600080fd5b506104136105b93660046151a3565b611561565b3480156105ca57600080fd5b506104136105d9366004615250565b61160a565b3480156105ea57600080fd5b50466103b0565b3480156105fd57600080fd5b5061041361060c366004615250565b61163c565b34801561061d57600080fd5b5061041361062c366004615280565b6116ca565b34801561063d57600080fd5b5061041361179f565b6104136106543660046152bc565b611835565b34801561066557600080fd5b5061067961067436600461534d565b611ed6565b6040516103ba919061544a565b34801561069257600080fd5b506015546106a6906001600160a01b031681565b6040516001600160a01b0390911681526020016103ba565b3480156106ca57600080fd5b506103e36106d936600461503a565b611fff565b3480156106ea57600080fd5b506104136106f9366004614f35565b61201e565b34801561070a57600080fd5b50600a546106a6906001600160a01b031681565b34801561072a57600080fd5b5061078d610739366004615181565b60136020908152600092835260408084209091529082529020805460018201546002830154600384015460048501546005860154600690960154949593946001600160a01b03938416949390921692909187565b6040805197885260208801969096526001600160a01b0394851695870195909552929091166060850152608084015260a083015260c082015260e0016103ba565b3480156107da57600080fd5b5060055460ff166103e3565b3480156107f257600080fd5b506103e3610801366004614f35565b60126020526000908152604090205460ff1681565b34801561082257600080fd5b5061041361083136600461545d565b6121ab565b34801561084257600080fd5b506104136108513660046154d2565b612200565b34801561086257600080fd5b506108a561087136600461503a565b6010602052600090815260409020546001600160a01b03811690600160a01b810462ffffff1690600160b81b900460ff1683565b604080516001600160a01b03909416845262ffffff90921660208401521515908201526060016103ba565b3480156108dc57600080fd5b50610413612242565b3480156108f157600080fd5b506103b0600080516020615e5783398151915281565b34801561091357600080fd5b50610413610922366004614f35565b6122d6565b34801561093357600080fd5b506106a6610942366004615181565b612418565b34801561095357600080fd5b506103e3610962366004615250565b612430565b34801561097357600080fd5b5061044a612459565b34801561098857600080fd5b50610413610997366004615528565b612466565b6104136109aa366004615560565b6125e0565b3480156109bb57600080fd5b506103b0600081565b3480156109d057600080fd5b506104136109df3660046155fa565b612c47565b6104136109f2366004615560565b612c59565b348015610a0357600080fd5b50610413610a1236600461562d565b613065565b348015610a2357600080fd5b506106a6610a3236600461503a565b6011602052600090815260409020546001600160a01b031681565b348015610a5957600080fd5b506103b0610a6836600461503a565b6131d1565b348015610a7957600080fd5b506106a6610a8836600461503a565b600c602052600090815260409020546001600160a01b031681565b348015610aaf57600080fd5b50600b546106a6906001600160a01b031681565b348015610acf57600080fd5b50610413610ade366004614f35565b6131e8565b348015610aef57600080fd5b50610413610afe366004615659565b613300565b348015610b0f57600080fd5b506106a6610b1e36600461503a565b6000908152600c60205260409020546001600160a01b031690565b348015610b4557600080fd5b506103b0600080516020615eb783398151915281565b348015610b6757600080fd5b50610413610b76366004615250565b613430565b348015610b8757600080fd5b506103b0600080516020615e9783398151915281565b348015610ba957600080fd5b506103e3610bb836600461569e565b613458565b348015610bc957600080fd5b50610413610bd8366004615250565b613528565b348015610be957600080fd5b50610413610bf83660046156cc565b6135ee565b348015610c0957600080fd5b50610413610c18366004615734565b613645565b348015610c2957600080fd5b506103b0600080516020615e7783398151915281565b348015610c4b57600080fd5b506009546106a6906001600160a01b031681565b60006001600160a01b038316610cd05760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636a4731c560e11b1480610cf55750610cf5826139c4565b600a546001600160a01b0316610d346139cf565b6001600160a01b031614610d5a5760405162461bcd60e51b8152600401610cc790615769565b610d74600080516020615e778339815191526109626139cf565b610d905760405162461bcd60e51b8152600401610cc790615769565b610daa600080516020615e578339815191526109626139cf565b610dc65760405162461bcd60e51b8152600401610cc790615790565b610dcf816139de565b50565b6009546001600160a01b0316610de66139cf565b6001600160a01b031614610e0c5760405162461bcd60e51b8152600401610cc7906157b6565b610e1960006109626139cf565b610e355760405162461bcd60e51b8152600401610cc7906157b6565b6009546001600160a01b0316610e496139cf565b6001600160a01b031614610e6f5760405162461bcd60e51b8152600401610cc7906157da565b610e7c60006109626139cf565b610e985760405162461bcd60e51b8152600401610cc7906157da565b600a80546001600160a01b038381166001600160a01b0319831681179093551690610ed290600080516020615e778339815191529061160a565b600a54610ef790600080516020615e57833981519152906001600160a01b031661160a565b600a54610f1c90600080516020615eb7833981519152906001600160a01b031661160a565b600a54610f4190600080516020615e97833981519152906001600160a01b031661160a565b610f59600080516020615e7783398151915282613430565b610f71600080516020615e5783398151915282613430565b610f89600080516020615eb783398151915282613430565b610fa1600080516020615e9783398151915282613430565b600a54604080516001600160a01b03808516825290921660208301527fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c91015b60405180910390a15050565b600e8054610ffa906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611026906157fd565b80156110735780601f1061104857610100808354040283529160200191611073565b820191906000526020600020905b81548152906001019060200180831161105657829003601f168201915b505050505081565b60408051606081810183526001600160a01b038816600081815260076020908152908590205484528301529181018690526110b987828787876139f1565b61110f5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cc7565b6001600160a01b038716600090815260076020526040902054611133906001615848565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061118390899033908a90615860565b60405180910390a1600080306001600160a01b0316888a6040516020016111ab929190615895565b60408051601f19818403018152908290526111c5916158cc565b6000604051808303816000865af19150503d8060008114611202576040519150601f19603f3d011682016040523d82523d6000602084013e611207565b606091505b5091509150816112425760405162461bcd60e51b8152600401610cc79060208082526004908201526319985a5b60e21b604082015260600190565b98975050505050505050565b6000818152600c60205260409020546060906001600160a01b03166112a95760405162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b6044820152606401610cc7565b6000828152600d6020526040812080546112c2906157fd565b80601f01602080910402602001604051908101604052809291908181526020018280546112ee906157fd565b801561133b5780601f106113105761010080835404028352916020019161133b565b820191906000526020600020905b81548152906001019060200180831161131e57829003601f168201915b505050505090506000815111156113eb576000838152600d602052604090208054611365906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611391906157fd565b80156113de5780601f106113b3576101008083540402835291602001916113de565b820191906000526020600020905b8154815290600101906020018083116113c157829003601f168201915b5050505050915050919050565b6113f483613abf565b9392505050565b50919050565b61141b600080516020615eb78339815191526109626139cf565b61148d5760405162461bcd60e51b815260206004820152603860248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f68617665206d696e74657220726f6c6520746f206d696e7400000000000000006064820152608401610cc7565b61149984848484613b53565b50505050565b6000828152601060209081526040808320815160608101835290546001600160a01b0381168252600160a01b810462ffffff1693820193909352600160b81b90920460ff16158015918301919091528291906115235780516020820151909350612710906115129062ffffff16866158e8565b61151c9190615907565b9150611559565b6000858152600c60205260409020546001600160a01b0316925061271061154c856101f46158e8565b6115569190615907565b91505b509250929050565b6115696139cf565b6001600160a01b0316856001600160a01b0316148061158f575061158f85610bb86139cf565b6115f65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cc7565b6116038585858585613cb9565b5050505050565b60008281526020819052604090206001015461162d816116286139cf565b613e71565b6116378383613ed5565b505050565b6116446139cf565b6001600160a01b0316816001600160a01b0316146116bc5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610cc7565b6116c68282613ef7565b5050565b816116d36139cf565b6000828152600c60205260409020546001600160a01b0390811691161461170c5760405162461bcd60e51b8152600401610cc790615790565b611726600080516020615e578339815191526109626139cf565b6117425760405162461bcd60e51b8152600401610cc790615790565b6000838152600d60209081526040909120835161176192850190614d12565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516117929190614faa565b60405180910390a2505050565b6117b9600080516020615e978339815191526109626139cf565b61182b5760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610cc7565b611833613f19565b565b6000868152601160205260409020546001600160a01b0316806118825760405162461bcd60e51b81526020600482015260056024820152644e5f455f4d60d81b6044820152606401610cc7565b6000878152601360209081526040808320888452825291829020825160e0810184528154815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154909216606082015260048201546080820152600582015460a0820181905260069092015460c082015290851080159061190d57508060c001518511155b6119415760405162461bcd60e51b8152602060048201526005602482015264495f525f4960d81b6044820152606401610cc7565b600085876119538b633b9aca006158e8565b61195d9190615848565b61196b90633b9aca006158e8565b6119759190615848565b6000818152600c60205260409020549091506001600160a01b0316156119c35760405162461bcd60e51b81526020600482015260036024820152621157d560ea1b6044820152606401610cc7565b60008260c00151116119fd5760405162461bcd60e51b8152602060048201526003602482015262495f5360e81b6044820152606401610cc7565b816080015160011415611a6157611a1261369a565b6001600160a01b031682604001516001600160a01b031614611a5c5760405162461bcd60e51b815260206004820152600360248201526210d7d560ea1b6044820152606401610cc7565b611c96565b816080015160021415611c4d5760608201516001600160a01b038116611a8657600080fd5b6000855111611ac15760405162461bcd60e51b81526020600482015260076024820152661357cdcc8c57d560ca1b6044820152606401610cc7565b806000611ace8782613fb2565b9050611ad861369a565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691841690636352211e90602401602060405180830381865afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190615929565b6001600160a01b031614611b855760405162461bcd60e51b81526020600482015260076024820152664e5f4f5f37323160c81b6044820152606401610cc7565b6001600160a01b038316600090815260146020908152604080832084845290915290205460ff1615611bdd5760405162461bcd60e51b81526020600482015260016024820152604d60f81b6044820152606401610cc7565b6001600160a01b03831660009081526014602090815260408083208484528252909120805460ff19166001179055850151341015611c455760405162461bcd60e51b815260206004820152600560248201526426afa82fa760d91b6044820152606401610cc7565b505050611c96565b816080015160031415611c96578160200151341015611c965760405162461bcd60e51b815260206004820152600560248201526404d5f505f560dc1b6044820152606401610cc7565b600a546000828152600c6020526040902080546001600160a01b0319166001600160a01b03909216919091179055845115611d24576000818152600d602090815260409091208651611cea92880190614d12565b50807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b86604051611d1b9190614faa565b60405180910390a25b611d318882600187613ffe565b602082015115611e82573415611e8257601554604051636d12dce160e01b815260206004820152600c60248201526b524f434b5f5055525f46454560a01b60448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa158015611dab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcf9190615946565b90506000612710611de083346158e8565b611dea9190615907565b905060006001600160a01b038716611e02833461595f565b604051600081818185875af1925050503d8060008114611e3e576040519150601f19603f3d011682016040523d82523d6000602084013e611e43565b606091505b5050905080611e7d5760405162461bcd60e51b8152600401610cc7906020808252600490820152631190525360e21b604082015260600190565b505050505b604080516001600160a01b038a1681526020810183905260018183015290517f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee9079181900360600190a1505050505050505050565b60608151835114611f3b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cc7565b600083516001600160401b03811115611f5657611f56614e1f565b604051908082528060200260200182016040528015611f7f578160200160208202803683370190505b50905060005b8451811015611ff757611fca858281518110611fa357611fa3615976565b6020026020010151858381518110611fbd57611fbd615976565b6020026020010151610c5f565b828281518110611fdc57611fdc615976565b6020908102919091010152611ff08161598c565b9050611f85565b509392505050565b6000818152600c60205260408120546001600160a01b03161515610cf5565b600260085414156120715760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc7565b60026008556009546001600160a01b031661208a6139cf565b6001600160a01b0316146120b05760405162461bcd60e51b8152600401610cc7906157b6565b6120bd60006109626139cf565b6120d95760405162461bcd60e51b8152600401610cc7906157b6565b600047116121165760405162461bcd60e51b815260206004820152600a60248201526909c9ea8be8a9c9eaa8e960b31b6044820152606401610cc7565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114612163576040519150601f19603f3d011682016040523d82523d6000602084013e612168565b606091505b50509050806121a25760405162461bcd60e51b8152600401610cc7906020808252600490820152631190525360e21b604082015260600190565b50506001600855565b6121b36139cf565b6001600160a01b0316836001600160a01b031614806121d957506121d983610bb86139cf565b6121f55760405162461bcd60e51b8152600401610cc7906159a7565b6116378383836140e1565b826122096139cf565b6000828152600c60205260409020546001600160a01b039081169116146116035760405162461bcd60e51b8152600401610cc790615790565b61225c600080516020615e978339815191526109626139cf565b6122ce5760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610cc7565b611833614279565b6009546001600160a01b03166122ea6139cf565b6001600160a01b0316146123105760405162461bcd60e51b8152600401610cc7906157b6565b61231d60006109626139cf565b6123395760405162461bcd60e51b8152600401610cc7906157b6565b6009546001600160a01b031661234d6139cf565b6001600160a01b0316146123735760405162461bcd60e51b8152600401610cc7906157da565b61238060006109626139cf565b61239c5760405162461bcd60e51b8152600401610cc7906157da565b600980546001600160a01b038381166001600160a01b03198316811790935516906123c99060009061160a565b6123d4600082613430565b600954604080516001600160a01b03808516825290921660208301527f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f9101610fe1565b60008281526001602052604081206113f490836142f5565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600f8054610ffa906157fd565b600a546001600160a01b031661247a6139cf565b6001600160a01b0316146124a05760405162461bcd60e51b8152600401610cc790615769565b6124ba600080516020615e778339815191526109626139cf565b6124d65760405162461bcd60e51b8152600401610cc790615769565b6124f0600080516020615e578339815191526109626139cf565b61252a5760405162461bcd60e51b815260206004820152600b60248201526a2727aa2fa1a922a0aa27a960a91b6044820152606401610cc7565b6127108111156125675760405162461bcd60e51b81526020600482015260086024820152670a89e9ebe90928e960c31b6044820152606401610cc7565b604080516060810182526001600160a01b03938416815262ffffff928316602080830191825260018385019081526000978852601090915292909520905181549551925194166001600160b81b031990951694909417600160a01b91909216021760ff60b81b1916600160b81b91151591909102179055565b6000828152601160205260409020546001600160a01b03161561262b5760405162461bcd60e51b8152602060048201526003602482015262455f4d60e81b6044820152606401610cc7565b60608101516001600160a01b031660009081526012602052604090205460ff161561267e5760405162461bcd60e51b8152602060048201526003602482015262455f4d60e81b6044820152606401610cc7565b805160021461269f5760405162461bcd60e51b8152600401610cc7906159f0565b80608001516002146126c35760405162461bcd60e51b8152600401610cc7906159f0565b6020810151156126e55760405162461bcd60e51b8152600401610cc7906159f0565b8060a001516002146127095760405162461bcd60e51b8152600401610cc7906159f0565b61271281614301565b61272e5760405162461bcd60e51b8152600401610cc7906159f0565b601554604051636d12dce160e01b815260206004820152601860248201527f494e49545f494d4f5f4e46545f484f4c4445525f53495a45000000000000000060448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa1580156127a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cd9190615946565b905080156127ea576127e0816001615848565b60c08401526127f3565b6101f560c08401525b60008360a001518460c00151612809919061595f565b612814906001615848565b9050600081116128365760405162461bcd60e51b8152600401610cc7906159f0565b604051636d12dce160e01b815260206004820152600c60248201526b494e49545f494d4f5f46454560a01b60448201526000906001600160a01b03851690636d12dce190606401602060405180830381865afa15801561289a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128be9190615946565b90508015612905576128d082826158e8565b3410156129055760405162461bcd60e51b815260206004820152600360248201526224afa360e91b6044820152606401610cc7565b600a54600087815260116020908152604080832080546001600160a01b03199081166001600160a01b0396871617909155601383528184208a51855283528184208a5181558a8401516001828101919091558b8401516002830180549189169185169190911790556060808d015160038401805491909916941684179097556080808d0151600484015560a0808e0151600585015560c0808f015160069095019490945593875260128652848720805460ff1916909217909155835160e081018552868152948501869052928401859052948301849052908201839052810182905291820152600a60009054906101000a90046001600160a01b031681604001906001600160a01b031690816001600160a01b031681525050600181608001818152505060018160a001818152505060018160c00181815250506000816020018181525050600081606001906001600160a01b031690816001600160a01b03168152505060018160000181815250508060136000898152602001908152602001600020600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151816004015560a0820151816005015560c0820151816006015590505060008160a00151826000015189633b9aca00612b4891906158e8565b612b529190615848565b612b6090633b9aca006158e8565b612b6a9190615848565b600a546000828152600c6020908152604080832080546001600160a01b0319166001600160a01b0390951694909417909355858301518351918201909352908152919250612bbc918390600190613ffe565b60408281015181516001600160a01b0390911681526020810183905260018183015290517f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee9079181900360600190a16040518881527f49669a69295acda27baba0ea29247e02f517f3450c77bd52c362870cfb7ceac49060200160405180910390a15050505050505050565b6116c6612c526139cf565b83836143ef565b6000828152601160205260409020546001600160a01b0316612ca55760405162461bcd60e51b81526020600482015260056024820152644e5f455f4d60d81b6044820152606401610cc7565b60008281526013602090815260408083208451845290915290206006015415612cf65760405162461bcd60e51b815260206004820152600360248201526222afad60e91b6044820152606401610cc7565b612cfe61369a565b6000838152601160205260409020546001600160a01b03908116911614612d375760405162461bcd60e51b8152600401610cc790615a0e565b612d4081614301565b612d755760405162461bcd60e51b8152602060048201526006602482015265495f5a4f4e4560d01b6044820152606401610cc7565b806080015160021480612d8c575080608001516003145b612dc35760405162461bcd60e51b8152602060048201526008602482015267494e565f5459504560c01b6044820152606401610cc7565b806080015160021415612e59576000828152601360209081526040808320600280855292529091206004015414612e0c5760405162461bcd60e51b8152600401610cc7906159f0565b60608101516000838152601360209081526040808320600284529091529020600301546001600160a01b03908116911614612e595760405162461bcd60e51b8152600401610cc7906159f0565b601554604051636d12dce160e01b815260206004820152600c60248201526b494e49545f494d4f5f46454560a01b60448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa158015612ec3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee79190615946565b90508015612f56578260a001518360c00151612f03919061595f565b612f0e906001615848565b612f1890826158e8565b341015612f565760405162461bcd60e51b815260206004820152600c60248201526b4d4953535f494e495f46454560a01b6044820152606401610cc7565b60008481526013602090815260408083208651845282529182902085518082559186015160018201819055838701516002830180546001600160a01b038084166001600160a01b03199283161790925560608a01516003860180549382169390921692909217905560808901516004850181905560a08a01516005860181905560c08b0151600690960186905596517fb8033036b5cd4a496e1a16b0f2fd490dc18c2ce1c7c969b4c8f6f84fc3f6b97297613057978d97939690959194919297885260208801969096526040870194909452606086019290925260808501526001600160a01b0390811660a08501521660c083015260e08201526101000190565b60405180910390a150505050565b61306d61369a565b6000848152601160205260409020546001600160a01b039081169116146130a65760405162461bcd60e51b8152600401610cc790615a0e565b60008381526013602090815260408083208584529091529020600601546130f55760405162461bcd60e51b815260206004820152600360248201526224afad60e91b6044820152606401610cc7565b60008381526013602090815260408083208584529091529020600401546002148061313c575060008381526013602090815260408083208584529091529020600401546003145b61316e5760405162461bcd60e51b815260206004820152600360248201526224afad60e91b6044820152606401610cc7565b600083815260136020908152604080832085845282529182902060010183905581518581529081018490529081018290527f95f65f2fc932b553231b4290f85999ae60ac9e82086414d2281a129723b1e76a9060600160405180910390a1505050565b6000818152600160205260408120610cf5906144d0565b600a546001600160a01b03166131fc6139cf565b6001600160a01b0316146132225760405162461bcd60e51b8152600401610cc790615769565b61323c600080516020615e778339815191526109626139cf565b6132585760405162461bcd60e51b8152600401610cc790615769565b600b546001600160a01b03828116911614156132a65760405162461bcd60e51b815260206004820152600d60248201526c141493d61657d2539590531251609a1b6044820152606401610cc7565b600b80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ffc15895015d07bcb2ae0459d79c7bfb40d36feedb31f55cc34e3ef404c86c5779101610fe1565b600a546001600160a01b03166133146139cf565b6001600160a01b03161461333a5760405162461bcd60e51b8152600401610cc790615769565b613354600080516020615e778339815191526109626139cf565b6133705760405162461bcd60e51b8152600401610cc790615769565b6001600160a01b0382166133b95760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa0a2222922a9a99760811b6044820152606401610cc7565b6133d1600080516020615e5783398151915283613ed5565b6133e9600080516020615eb783398151915283613ed5565b60005b815181101561163757600082828151811061340957613409615976565b6020026020010151905061341d84826144da565b50806134288161598c565b9150506133ec565b60008281526020819052604090206001015461344e816116286139cf565b6116378383613ef7565b600b546000906001600160a01b0316156134fa57600b5460405163c455279160e01b81526001600160a01b03858116600483015291821691841690829063c455279190602401602060405180830381865afa1580156134bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134df9190615929565b6001600160a01b031614156134f8576001915050610cf5565b505b6001600160a01b0380841660009081526003602090815260408083209386168352929052205460ff166113f4565b61353061369a565b6000838152601160205260409020546001600160a01b039081169116146135695760405162461bcd60e51b8152600401610cc790615a0e565b6001600160a01b03811661358f5760405162461bcd60e51b8152600401610cc790615a0e565b60008281526011602090815260409182902080546001600160a01b0319166001600160a01b0385169081179091558251858152918201527fdd9fea2fe1361d546c2bb487b53ae58d9745b2e73cf28408f5da6ad65d7ba3c19101610fe1565b6135f66139cf565b6001600160a01b0316856001600160a01b0316148061361c575061361c85610bb86139cf565b6136385760405162461bcd60e51b8152600401610cc7906159a7565b611603858585858561454b565b61364d6139cf565b6001600160a01b0316836001600160a01b03161480613673575061367383610bb86139cf565b61368f5760405162461bcd60e51b8152600401610cc7906159a7565b611637838383614677565b6000333014156136f157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506136f49050565b50335b90565b6137018282612430565b6116c6576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556137386139cf565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006113f4836001600160a01b038416614787565b606060006137a08360026158e8565b6137ab906002615848565b6001600160401b038111156137c2576137c2614e1f565b6040519080825280601f01601f1916602001820160405280156137ec576020820181803683370190505b509050600360fc1b8160008151811061380757613807615976565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061383657613836615976565b60200101906001600160f81b031916908160001a905350600061385a8460026158e8565b613865906001615848565b90505b60018111156138dd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061389957613899615976565b1a60f81b8282815181106138af576138af615976565b60200101906001600160f81b031916908160001a90535060049490941c936138d681615a2b565b9050613868565b5083156113f45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cc7565b6139368282612430565b156116c6576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916905561396b6139cf565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006113f4836001600160a01b0384166147d6565b6000610cf5826148c9565b60006139d961369a565b905090565b80516116c6906004906020840190614d12565b60006001600160a01b038616613a355760405162461bcd60e51b815260206004820152600960248201526824a72fa9a4a3a722a960b91b6044820152606401610cc7565b6001613a48613a4387614909565b614986565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613a96573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b606060048054613ace906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054613afa906157fd565b8015613b475780601f10613b1c57610100808354040283529160200191613b47565b820191906000526020600020905b815481529060010190602001808311613b2a57829003601f168201915b50505050509050919050565b6001600160a01b038416613b795760405162461bcd60e51b8152600401610cc790615a42565b8151835114613b9a5760405162461bcd60e51b8152600401610cc790615a83565b6000613ba46139cf565b9050613bb5816000878787876149b6565b60005b8451811015613c5157838181518110613bd357613bd3615976565b602002602001015160026000878481518110613bf157613bf1615976565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613c399190615848565b90915550819050613c498161598c565b915050613bb8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613ca2929190615acb565b60405180910390a4611603816000878787876149c4565b8151835114613cda5760405162461bcd60e51b8152600401610cc790615a83565b6001600160a01b038416613d005760405162461bcd60e51b8152600401610cc790615af0565b6000613d0a6139cf565b9050613d1a8187878787876149b6565b60005b8451811015613e03576000858281518110613d3a57613d3a615976565b602002602001015190506000858381518110613d5857613d58615976565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015613da95760405162461bcd60e51b8152600401610cc790615b35565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613de8908490615848565b9250508190555050505080613dfc9061598c565b9050613d1d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613e53929190615acb565b60405180910390a4613e698187878787876149c4565b505050505050565b613e7b8282612430565b6116c657613e93816001600160a01b03166014613791565b613e9e836020613791565b604051602001613eaf929190615b7f565b60408051601f198184030181529082905262461bcd60e51b8252610cc791600401614faa565b613edf82826136f7565b6000828152600160205260409020611637908261377c565b613f01828261392c565b600082815260016020526040902061163790826139af565b60055460ff16613f625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cc7565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613f956139cf565b6040516001600160a01b03909116815260200160405180910390a1565b6000613fbf826020615848565b83511015613ff55760405162461bcd60e51b815260206004820152600360248201526227a7a960e91b6044820152606401610cc7565b50016020015190565b6001600160a01b0384166140245760405162461bcd60e51b8152600401610cc790615a42565b600061402e6139cf565b905061404f8160008761404088614b20565b61404988614b20565b876149b6565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290614081908490615848565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461160381600087878787614b6b565b6001600160a01b0383166141075760405162461bcd60e51b8152600401610cc790615bf4565b80518251146141285760405162461bcd60e51b8152600401610cc790615a83565b60006141326139cf565b9050614152818560008686604051806020016040528060008152506149b6565b60005b835181101561421a57600084828151811061417257614172615976565b60200260200101519050600084838151811061419057614190615976565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156141e15760405162461bcd60e51b8152600401610cc790615c37565b60009283526002602090815260408085206001600160a01b038b16865290915290922091039055806142128161598c565b915050614155565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161426b929190615acb565b60405180910390a450505050565b60055460ff16156142bf5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cc7565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613f956139cf565b60006113f48383614c26565b6000816080015160021415801561431d57508160800151600314155b1561432a57506000919050565b8151633b9aca001115806143465750633b9aca008260a0015110155b806143595750633b9aca008260c0015110155b1561436657506000919050565b60c0820151156143e75781608001516002141561439c5760608201516001600160a01b031661439757506000919050565b6143ba565b8160800151600314156143ba5760208201516143ba57506000919050565b8160c001518260a0015111806143d2575060a0820151155b156143df57506000919050565b506001919050565b506000919050565b816001600160a01b0316836001600160a01b031614156144635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cc7565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610cf5825490565b806144e36139cf565b6000828152600c60205260409020546001600160a01b0390811691161461451c5760405162461bcd60e51b8152600401610cc790615790565b506000908152600c6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0384166145715760405162461bcd60e51b8152600401610cc790615af0565b600061457b6139cf565b905061458c81878761404088614b20565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156145cf5760405162461bcd60e51b8152600401610cc790615b35565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061460e908490615848565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461466e828888888888614b6b565b50505050505050565b6001600160a01b03831661469d5760405162461bcd60e51b8152600401610cc790615bf4565b60006146a76139cf565b90506146d7818560006146b987614b20565b6146c287614b20565b604051806020016040528060008152506149b6565b60008381526002602090815260408083206001600160a01b03881684529091529020548281101561471a5760405162461bcd60e51b8152600401610cc790615c37565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60008181526001830160205260408120546147ce57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610cf5565b506000610cf5565b600081815260018301602052604081205480156148bf5760006147fa60018361595f565b855490915060009061480e9060019061595f565b905081811461487357600086600001828154811061482e5761482e615976565b906000526020600020015490508087600001848154811061485157614851615976565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061488457614884615c7b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610cf5565b6000915050610cf5565b60006001600160e01b03198216636cdb3d1360e11b14806148fa57506001600160e01b031982166303a24d0760e21b145b80610cf55750610cf582614c50565b6000604051806060016040528060258152602001615e326025913980516020918201208351848301516040808701518051908601209051614969950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061499160065490565b60405161190160f01b6020820152602281019190915260428101839052606201614969565b613e69868686868686614c75565b6001600160a01b0384163b15613e695760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614a089089908990889088908890600401615c91565b6020604051808303816000875af1925050508015614a43575060408051601f3d908101601f19168201909252614a4091810190615ce3565b60015b614af057614a4f615d00565b806308c379a01415614a895750614a64615d1b565b80614a6f5750614a8b565b8060405162461bcd60e51b8152600401610cc79190614faa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cc7565b6001600160e01b0319811663bc197c8160e01b1461466e5760405162461bcd60e51b8152600401610cc790615da4565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614b5a57614b5a615976565b602090810291909101015292915050565b6001600160a01b0384163b15613e695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614baf9089908990889088908890600401615dec565b6020604051808303816000875af1925050508015614bea575060408051601f3d908101601f19168201909252614be791810190615ce3565b60015b614bf657614a4f615d00565b6001600160e01b0319811663f23a6e6160e01b1461466e5760405162461bcd60e51b8152600401610cc790615da4565b6000826000018281548110614c3d57614c3d615976565b9060005260206000200154905092915050565b60006001600160e01b03198216635a05180f60e01b1480610cf55750610cf582614cdd565b60055460ff1615613e695760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610cc7565b60006001600160e01b03198216637965db0b60e01b1480610cf557506301ffc9a760e01b6001600160e01b0319831614610cf5565b828054614d1e906157fd565b90600052602060002090601f016020900481019282614d405760008555614d86565b82601f10614d5957805160ff1916838001178555614d86565b82800160010185558215614d86579182015b82811115614d86578251825591602001919060010190614d6b565b50614d92929150614d96565b5090565b5b80821115614d925760008155600101614d97565b6001600160a01b0381168114610dcf57600080fd5b60008060408385031215614dd357600080fd5b8235614dde81614dab565b946020939093013593505050565b6001600160e01b031981168114610dcf57600080fd5b600060208284031215614e1457600080fd5b81356113f481614dec565b634e487b7160e01b600052604160045260246000fd5b60e081018181106001600160401b0382111715614e5457614e54614e1f565b60405250565b601f8201601f191681016001600160401b0381118282101715614e7f57614e7f614e1f565b6040525050565b600082601f830112614e9757600080fd5b81356001600160401b03811115614eb057614eb0614e1f565b604051614ec7601f8301601f191660200182614e5a565b818152846020838601011115614edc57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215614f0b57600080fd5b81356001600160401b03811115614f2157600080fd5b614f2d84828501614e86565b949350505050565b600060208284031215614f4757600080fd5b81356113f481614dab565b60005b83811015614f6d578181015183820152602001614f55565b838111156114995750506000910152565b60008151808452614f96816020860160208601614f52565b601f01601f19169290920160200192915050565b6020815260006113f46020830184614f7e565b600080600080600060a08688031215614fd557600080fd5b8535614fe081614dab565b945060208601356001600160401b03811115614ffb57600080fd5b61500788828901614e86565b9450506040860135925060608601359150608086013560ff8116811461502c57600080fd5b809150509295509295909350565b60006020828403121561504c57600080fd5b5035919050565b60006001600160401b0382111561506c5761506c614e1f565b5060051b60200190565b600082601f83011261508757600080fd5b8135602061509482615053565b6040516150a18282614e5a565b83815260059390931b85018201928281019150868411156150c157600080fd5b8286015b848110156150dc57803583529183019183016150c5565b509695505050505050565b600080600080608085870312156150fd57600080fd5b843561510881614dab565b935060208501356001600160401b038082111561512457600080fd5b61513088838901615076565b9450604087013591508082111561514657600080fd5b61515288838901615076565b9350606087013591508082111561516857600080fd5b5061517587828801614e86565b91505092959194509250565b6000806040838503121561519457600080fd5b50508035926020909101359150565b600080600080600060a086880312156151bb57600080fd5b85356151c681614dab565b945060208601356151d681614dab565b935060408601356001600160401b03808211156151f257600080fd5b6151fe89838a01615076565b9450606088013591508082111561521457600080fd5b61522089838a01615076565b9350608088013591508082111561523657600080fd5b5061524388828901614e86565b9150509295509295909350565b6000806040838503121561526357600080fd5b82359150602083013561527581614dab565b809150509250929050565b6000806040838503121561529357600080fd5b8235915060208301356001600160401b038111156152b057600080fd5b61155685828601614e86565b60008060008060008060c087890312156152d557600080fd5b8635955060208701356152e781614dab565b9450604087013593506060870135925060808701356001600160401b038082111561531157600080fd5b61531d8a838b01614e86565b935060a089013591508082111561533357600080fd5b5061534089828a01614e86565b9150509295509295509295565b6000806040838503121561536057600080fd5b82356001600160401b038082111561537757600080fd5b818501915085601f83011261538b57600080fd5b8135602061539882615053565b6040516153a58282614e5a565b83815260059390931b85018201928281019150898411156153c557600080fd5b948201945b838610156153ec5785356153dd81614dab565b825294820194908201906153ca565b9650508601359250508082111561540257600080fd5b5061155685828601615076565b600081518084526020808501945080840160005b8381101561543f57815187529582019590820190600101615423565b509495945050505050565b6020815260006113f4602083018461540f565b60008060006060848603121561547257600080fd5b833561547d81614dab565b925060208401356001600160401b038082111561549957600080fd5b6154a587838801615076565b935060408601359150808211156154bb57600080fd5b506154c886828701615076565b9150509250925092565b600080600080608085870312156154e857600080fd5b84356154f381614dab565b9350602085013592506040850135915060608501356001600160401b0381111561551c57600080fd5b61517587828801614e86565b60008060006060848603121561553d57600080fd5b83359250602084013561554f81614dab565b929592945050506040919091013590565b60008082840361010081121561557557600080fd5b8335925060e0601f198201121561558b57600080fd5b5060405161559881614e35565b602084013581526040840135602082015260608401356155b781614dab565b604082015260808401356155ca81614dab565b8060608301525060a0840135608082015260c084013560a082015260e084013560c0820152809150509250929050565b6000806040838503121561560d57600080fd5b823561561881614dab565b91506020830135801515811461527557600080fd5b60008060006060848603121561564257600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561566c57600080fd5b823561567781614dab565b915060208301356001600160401b0381111561569257600080fd5b61155685828601615076565b600080604083850312156156b157600080fd5b82356156bc81614dab565b9150602083013561527581614dab565b600080600080600060a086880312156156e457600080fd5b85356156ef81614dab565b945060208601356156ff81614dab565b9350604086013592506060860135915060808601356001600160401b0381111561572857600080fd5b61524388828901614e86565b60008060006060848603121561574957600080fd5b833561575481614dab565b95602085013595506040909401359392505050565b6020808252600d908201526c27a7262cafa7a822a920aa27a960991b604082015260600190565b6020808252600c908201526b27a7262cafa1a922a0aa27a960a11b604082015260600190565b6020808252600a908201526927a7262cafa0a226a4a760b11b604082015260600190565b6020808252600990820152682727aa2fa0a226a4a760b91b604082015260600190565b600181811c9082168061581157607f821691505b602082108114156113fb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561585b5761585b615832565b500190565b6001600160a01b0384811682528316602082015260606040820181905260009061588c90830184614f7e565b95945050505050565b600083516158a7818460208801614f52565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516158de818460208701614f52565b9190910192915050565b600081600019048311821515161561590257615902615832565b500290565b60008261592457634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561593b57600080fd5b81516113f481614dab565b60006020828403121561595857600080fd5b5051919050565b60008282101561597157615971615832565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156159a0576159a0615832565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526004908201526324afad1960e11b604082015260600190565b602080825260039082015262495f4160e81b604082015260600190565b600081615a3a57615a3a615832565b506000190190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b604081526000615ade604083018561540f565b828103602084015261588c818561540f565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615bb7816017850160208801614f52565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615be8816028840160208801614f52565b01602801949350505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0386811682528516602082015260a060408201819052600090615cbd9083018661540f565b8281036060840152615ccf818661540f565b905082810360808401526112428185614f7e565b600060208284031215615cf557600080fd5b81516113f481614dec565b600060033d11156136f45760046000803e5060005160e01c90565b600060443d1015615d295790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615d5857505050505090565b8285019150815181811115615d705750505050505090565b843d8701016020828501011115615d8a5750505050505090565b615d9960208286010187614e5a565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615e2690830184614f7e565b97965050505050505056fe4d6574615472616e73616374696f6e286e6f6e63652c66726f6d2c7369676e617475726529828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92965d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220694ca6e25055a5cdbed990c1c416e0d4792b577e8230e528d866f8df8562f79964736f6c634300080c0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742965d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a600000000000000000000000025ba272695b064f33b843c32834f847255ff25dc000000000000000000000000f287d98a7b0823a49cfd20e250a251b97561c6ad00000000000000000000000046396fbadafd9354a13edd57e4f5173d3df0748a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001a4d65746176657273657320706f776572656420627920526f76650000000000000000000000000000000000000000000000000000000000000000000000000003524d730000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061038b5760003560e01c8063731133e9116101dc578063ca15c87311610102578063d547741f116100a0578063f242432a1161006f578063f242432a14610bdd578063f5298aca14610bfd578063f5b541a614610c1d578063f851a44014610c3f57600080fd5b8063d547741f14610b5b578063e63ab1e914610b7b578063e985e9c514610b9d578063eaaef2c314610bbd57600080fd5b8063d26ea6c0116100dc578063d26ea6c014610ac3578063d2a6b51a14610ae3578063d48e638a14610b03578063d539139314610b3957600080fd5b8063ca15c87314610a4d578063cd53d08e14610a6d578063cd7c032614610aa357600080fd5b806395d89b411161017a578063a22cb46511610149578063a22cb465146109c4578063afc24cd6146109e4578063afc41841146109f7578063c91f88cc14610a1757600080fd5b806395d89b41146109675780639713c8071461097c5780639ff43f9e1461099c578063a217fddf146109af57600080fd5b80638aeda25a116101b65780638aeda25a146108e55780638f283970146109075780639010d07c1461092757806391d148541461094757600080fd5b8063731133e9146108365780637f77f574146108565780638456cb59146108d057600080fd5b80632f2ff15d116102c15780634e1933891161025f578063582543391161022e578063582543391461071e5780635c975abb146107ce57806366987f8b146107e65780636b20c4541461081657600080fd5b80634e193389146106865780634f558e79146106be57806351cff8d9146106de578063570ca735146106fe57600080fd5b80633adf80b41161029b5780633adf80b4146106115780633f4ba83a1461063157806340959287146106465780634e1273f41461065957600080fd5b80632f2ff15d146105be5780633408e470146105de57806336568abe146105f157600080fd5b80630f7e59701161032e578063248a9ca311610308578063248a9ca3146104f95780632a55205a146105295780632d0335ab146105685780632eb2c2d61461059e57600080fd5b80630f7e5970146104975780631f7fdffa146104c457806320379ee5146104e457600080fd5b806306394c9b1161036a57806306394c9b1461041557806306fdde03146104355780630c53c51c146104575780630e89341c1461047757600080fd5b8062fdd58e1461039057806301ffc9a7146103c357806302fe5305146103f3575b600080fd5b34801561039c57600080fd5b506103b06103ab366004614dc0565b610c5f565b6040519081526020015b60405180910390f35b3480156103cf57600080fd5b506103e36103de366004614e02565b610cfb565b60405190151581526020016103ba565b3480156103ff57600080fd5b5061041361040e366004614ef9565b610d20565b005b34801561042157600080fd5b50610413610430366004614f35565b610dd2565b34801561044157600080fd5b5061044a610fed565b6040516103ba9190614faa565b34801561046357600080fd5b5061044a610472366004614fbd565b61107b565b34801561048357600080fd5b5061044a61049236600461503a565b61124e565b3480156104a357600080fd5b5061044a604051806040016040528060018152602001603160f81b81525081565b3480156104d057600080fd5b506104136104df3660046150e7565b611401565b3480156104f057600080fd5b506006546103b0565b34801561050557600080fd5b506103b061051436600461503a565b60009081526020819052604090206001015490565b34801561053557600080fd5b50610549610544366004615181565b61149f565b604080516001600160a01b0390931683526020830191909152016103ba565b34801561057457600080fd5b506103b0610583366004614f35565b6001600160a01b031660009081526007602052604090205490565b3480156105aa57600080fd5b506104136105b93660046151a3565b611561565b3480156105ca57600080fd5b506104136105d9366004615250565b61160a565b3480156105ea57600080fd5b50466103b0565b3480156105fd57600080fd5b5061041361060c366004615250565b61163c565b34801561061d57600080fd5b5061041361062c366004615280565b6116ca565b34801561063d57600080fd5b5061041361179f565b6104136106543660046152bc565b611835565b34801561066557600080fd5b5061067961067436600461534d565b611ed6565b6040516103ba919061544a565b34801561069257600080fd5b506015546106a6906001600160a01b031681565b6040516001600160a01b0390911681526020016103ba565b3480156106ca57600080fd5b506103e36106d936600461503a565b611fff565b3480156106ea57600080fd5b506104136106f9366004614f35565b61201e565b34801561070a57600080fd5b50600a546106a6906001600160a01b031681565b34801561072a57600080fd5b5061078d610739366004615181565b60136020908152600092835260408084209091529082529020805460018201546002830154600384015460048501546005860154600690960154949593946001600160a01b03938416949390921692909187565b6040805197885260208801969096526001600160a01b0394851695870195909552929091166060850152608084015260a083015260c082015260e0016103ba565b3480156107da57600080fd5b5060055460ff166103e3565b3480156107f257600080fd5b506103e3610801366004614f35565b60126020526000908152604090205460ff1681565b34801561082257600080fd5b5061041361083136600461545d565b6121ab565b34801561084257600080fd5b506104136108513660046154d2565b612200565b34801561086257600080fd5b506108a561087136600461503a565b6010602052600090815260409020546001600160a01b03811690600160a01b810462ffffff1690600160b81b900460ff1683565b604080516001600160a01b03909416845262ffffff90921660208401521515908201526060016103ba565b3480156108dc57600080fd5b50610413612242565b3480156108f157600080fd5b506103b0600080516020615e5783398151915281565b34801561091357600080fd5b50610413610922366004614f35565b6122d6565b34801561093357600080fd5b506106a6610942366004615181565b612418565b34801561095357600080fd5b506103e3610962366004615250565b612430565b34801561097357600080fd5b5061044a612459565b34801561098857600080fd5b50610413610997366004615528565b612466565b6104136109aa366004615560565b6125e0565b3480156109bb57600080fd5b506103b0600081565b3480156109d057600080fd5b506104136109df3660046155fa565b612c47565b6104136109f2366004615560565b612c59565b348015610a0357600080fd5b50610413610a1236600461562d565b613065565b348015610a2357600080fd5b506106a6610a3236600461503a565b6011602052600090815260409020546001600160a01b031681565b348015610a5957600080fd5b506103b0610a6836600461503a565b6131d1565b348015610a7957600080fd5b506106a6610a8836600461503a565b600c602052600090815260409020546001600160a01b031681565b348015610aaf57600080fd5b50600b546106a6906001600160a01b031681565b348015610acf57600080fd5b50610413610ade366004614f35565b6131e8565b348015610aef57600080fd5b50610413610afe366004615659565b613300565b348015610b0f57600080fd5b506106a6610b1e36600461503a565b6000908152600c60205260409020546001600160a01b031690565b348015610b4557600080fd5b506103b0600080516020615eb783398151915281565b348015610b6757600080fd5b50610413610b76366004615250565b613430565b348015610b8757600080fd5b506103b0600080516020615e9783398151915281565b348015610ba957600080fd5b506103e3610bb836600461569e565b613458565b348015610bc957600080fd5b50610413610bd8366004615250565b613528565b348015610be957600080fd5b50610413610bf83660046156cc565b6135ee565b348015610c0957600080fd5b50610413610c18366004615734565b613645565b348015610c2957600080fd5b506103b0600080516020615e7783398151915281565b348015610c4b57600080fd5b506009546106a6906001600160a01b031681565b60006001600160a01b038316610cd05760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636a4731c560e11b1480610cf55750610cf5826139c4565b600a546001600160a01b0316610d346139cf565b6001600160a01b031614610d5a5760405162461bcd60e51b8152600401610cc790615769565b610d74600080516020615e778339815191526109626139cf565b610d905760405162461bcd60e51b8152600401610cc790615769565b610daa600080516020615e578339815191526109626139cf565b610dc65760405162461bcd60e51b8152600401610cc790615790565b610dcf816139de565b50565b6009546001600160a01b0316610de66139cf565b6001600160a01b031614610e0c5760405162461bcd60e51b8152600401610cc7906157b6565b610e1960006109626139cf565b610e355760405162461bcd60e51b8152600401610cc7906157b6565b6009546001600160a01b0316610e496139cf565b6001600160a01b031614610e6f5760405162461bcd60e51b8152600401610cc7906157da565b610e7c60006109626139cf565b610e985760405162461bcd60e51b8152600401610cc7906157da565b600a80546001600160a01b038381166001600160a01b0319831681179093551690610ed290600080516020615e778339815191529061160a565b600a54610ef790600080516020615e57833981519152906001600160a01b031661160a565b600a54610f1c90600080516020615eb7833981519152906001600160a01b031661160a565b600a54610f4190600080516020615e97833981519152906001600160a01b031661160a565b610f59600080516020615e7783398151915282613430565b610f71600080516020615e5783398151915282613430565b610f89600080516020615eb783398151915282613430565b610fa1600080516020615e9783398151915282613430565b600a54604080516001600160a01b03808516825290921660208301527fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c91015b60405180910390a15050565b600e8054610ffa906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611026906157fd565b80156110735780601f1061104857610100808354040283529160200191611073565b820191906000526020600020905b81548152906001019060200180831161105657829003601f168201915b505050505081565b60408051606081810183526001600160a01b038816600081815260076020908152908590205484528301529181018690526110b987828787876139f1565b61110f5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cc7565b6001600160a01b038716600090815260076020526040902054611133906001615848565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061118390899033908a90615860565b60405180910390a1600080306001600160a01b0316888a6040516020016111ab929190615895565b60408051601f19818403018152908290526111c5916158cc565b6000604051808303816000865af19150503d8060008114611202576040519150601f19603f3d011682016040523d82523d6000602084013e611207565b606091505b5091509150816112425760405162461bcd60e51b8152600401610cc79060208082526004908201526319985a5b60e21b604082015260600190565b98975050505050505050565b6000818152600c60205260409020546060906001600160a01b03166112a95760405162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b6044820152606401610cc7565b6000828152600d6020526040812080546112c2906157fd565b80601f01602080910402602001604051908101604052809291908181526020018280546112ee906157fd565b801561133b5780601f106113105761010080835404028352916020019161133b565b820191906000526020600020905b81548152906001019060200180831161131e57829003601f168201915b505050505090506000815111156113eb576000838152600d602052604090208054611365906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054611391906157fd565b80156113de5780601f106113b3576101008083540402835291602001916113de565b820191906000526020600020905b8154815290600101906020018083116113c157829003601f168201915b5050505050915050919050565b6113f483613abf565b9392505050565b50919050565b61141b600080516020615eb78339815191526109626139cf565b61148d5760405162461bcd60e51b815260206004820152603860248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f68617665206d696e74657220726f6c6520746f206d696e7400000000000000006064820152608401610cc7565b61149984848484613b53565b50505050565b6000828152601060209081526040808320815160608101835290546001600160a01b0381168252600160a01b810462ffffff1693820193909352600160b81b90920460ff16158015918301919091528291906115235780516020820151909350612710906115129062ffffff16866158e8565b61151c9190615907565b9150611559565b6000858152600c60205260409020546001600160a01b0316925061271061154c856101f46158e8565b6115569190615907565b91505b509250929050565b6115696139cf565b6001600160a01b0316856001600160a01b0316148061158f575061158f85610bb86139cf565b6115f65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cc7565b6116038585858585613cb9565b5050505050565b60008281526020819052604090206001015461162d816116286139cf565b613e71565b6116378383613ed5565b505050565b6116446139cf565b6001600160a01b0316816001600160a01b0316146116bc5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610cc7565b6116c68282613ef7565b5050565b816116d36139cf565b6000828152600c60205260409020546001600160a01b0390811691161461170c5760405162461bcd60e51b8152600401610cc790615790565b611726600080516020615e578339815191526109626139cf565b6117425760405162461bcd60e51b8152600401610cc790615790565b6000838152600d60209081526040909120835161176192850190614d12565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516117929190614faa565b60405180910390a2505050565b6117b9600080516020615e978339815191526109626139cf565b61182b5760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610cc7565b611833613f19565b565b6000868152601160205260409020546001600160a01b0316806118825760405162461bcd60e51b81526020600482015260056024820152644e5f455f4d60d81b6044820152606401610cc7565b6000878152601360209081526040808320888452825291829020825160e0810184528154815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154909216606082015260048201546080820152600582015460a0820181905260069092015460c082015290851080159061190d57508060c001518511155b6119415760405162461bcd60e51b8152602060048201526005602482015264495f525f4960d81b6044820152606401610cc7565b600085876119538b633b9aca006158e8565b61195d9190615848565b61196b90633b9aca006158e8565b6119759190615848565b6000818152600c60205260409020549091506001600160a01b0316156119c35760405162461bcd60e51b81526020600482015260036024820152621157d560ea1b6044820152606401610cc7565b60008260c00151116119fd5760405162461bcd60e51b8152602060048201526003602482015262495f5360e81b6044820152606401610cc7565b816080015160011415611a6157611a1261369a565b6001600160a01b031682604001516001600160a01b031614611a5c5760405162461bcd60e51b815260206004820152600360248201526210d7d560ea1b6044820152606401610cc7565b611c96565b816080015160021415611c4d5760608201516001600160a01b038116611a8657600080fd5b6000855111611ac15760405162461bcd60e51b81526020600482015260076024820152661357cdcc8c57d560ca1b6044820152606401610cc7565b806000611ace8782613fb2565b9050611ad861369a565b6040516331a9108f60e11b8152600481018390526001600160a01b0391821691841690636352211e90602401602060405180830381865afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190615929565b6001600160a01b031614611b855760405162461bcd60e51b81526020600482015260076024820152664e5f4f5f37323160c81b6044820152606401610cc7565b6001600160a01b038316600090815260146020908152604080832084845290915290205460ff1615611bdd5760405162461bcd60e51b81526020600482015260016024820152604d60f81b6044820152606401610cc7565b6001600160a01b03831660009081526014602090815260408083208484528252909120805460ff19166001179055850151341015611c455760405162461bcd60e51b815260206004820152600560248201526426afa82fa760d91b6044820152606401610cc7565b505050611c96565b816080015160031415611c96578160200151341015611c965760405162461bcd60e51b815260206004820152600560248201526404d5f505f560dc1b6044820152606401610cc7565b600a546000828152600c6020526040902080546001600160a01b0319166001600160a01b03909216919091179055845115611d24576000818152600d602090815260409091208651611cea92880190614d12565b50807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b86604051611d1b9190614faa565b60405180910390a25b611d318882600187613ffe565b602082015115611e82573415611e8257601554604051636d12dce160e01b815260206004820152600c60248201526b524f434b5f5055525f46454560a01b60448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa158015611dab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcf9190615946565b90506000612710611de083346158e8565b611dea9190615907565b905060006001600160a01b038716611e02833461595f565b604051600081818185875af1925050503d8060008114611e3e576040519150601f19603f3d011682016040523d82523d6000602084013e611e43565b606091505b5050905080611e7d5760405162461bcd60e51b8152600401610cc7906020808252600490820152631190525360e21b604082015260600190565b505050505b604080516001600160a01b038a1681526020810183905260018183015290517f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee9079181900360600190a1505050505050505050565b60608151835114611f3b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610cc7565b600083516001600160401b03811115611f5657611f56614e1f565b604051908082528060200260200182016040528015611f7f578160200160208202803683370190505b50905060005b8451811015611ff757611fca858281518110611fa357611fa3615976565b6020026020010151858381518110611fbd57611fbd615976565b6020026020010151610c5f565b828281518110611fdc57611fdc615976565b6020908102919091010152611ff08161598c565b9050611f85565b509392505050565b6000818152600c60205260408120546001600160a01b03161515610cf5565b600260085414156120715760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc7565b60026008556009546001600160a01b031661208a6139cf565b6001600160a01b0316146120b05760405162461bcd60e51b8152600401610cc7906157b6565b6120bd60006109626139cf565b6120d95760405162461bcd60e51b8152600401610cc7906157b6565b600047116121165760405162461bcd60e51b815260206004820152600a60248201526909c9ea8be8a9c9eaa8e960b31b6044820152606401610cc7565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114612163576040519150601f19603f3d011682016040523d82523d6000602084013e612168565b606091505b50509050806121a25760405162461bcd60e51b8152600401610cc7906020808252600490820152631190525360e21b604082015260600190565b50506001600855565b6121b36139cf565b6001600160a01b0316836001600160a01b031614806121d957506121d983610bb86139cf565b6121f55760405162461bcd60e51b8152600401610cc7906159a7565b6116378383836140e1565b826122096139cf565b6000828152600c60205260409020546001600160a01b039081169116146116035760405162461bcd60e51b8152600401610cc790615790565b61225c600080516020615e978339815191526109626139cf565b6122ce5760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610cc7565b611833614279565b6009546001600160a01b03166122ea6139cf565b6001600160a01b0316146123105760405162461bcd60e51b8152600401610cc7906157b6565b61231d60006109626139cf565b6123395760405162461bcd60e51b8152600401610cc7906157b6565b6009546001600160a01b031661234d6139cf565b6001600160a01b0316146123735760405162461bcd60e51b8152600401610cc7906157da565b61238060006109626139cf565b61239c5760405162461bcd60e51b8152600401610cc7906157da565b600980546001600160a01b038381166001600160a01b03198316811790935516906123c99060009061160a565b6123d4600082613430565b600954604080516001600160a01b03808516825290921660208301527f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f9101610fe1565b60008281526001602052604081206113f490836142f5565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600f8054610ffa906157fd565b600a546001600160a01b031661247a6139cf565b6001600160a01b0316146124a05760405162461bcd60e51b8152600401610cc790615769565b6124ba600080516020615e778339815191526109626139cf565b6124d65760405162461bcd60e51b8152600401610cc790615769565b6124f0600080516020615e578339815191526109626139cf565b61252a5760405162461bcd60e51b815260206004820152600b60248201526a2727aa2fa1a922a0aa27a960a91b6044820152606401610cc7565b6127108111156125675760405162461bcd60e51b81526020600482015260086024820152670a89e9ebe90928e960c31b6044820152606401610cc7565b604080516060810182526001600160a01b03938416815262ffffff928316602080830191825260018385019081526000978852601090915292909520905181549551925194166001600160b81b031990951694909417600160a01b91909216021760ff60b81b1916600160b81b91151591909102179055565b6000828152601160205260409020546001600160a01b03161561262b5760405162461bcd60e51b8152602060048201526003602482015262455f4d60e81b6044820152606401610cc7565b60608101516001600160a01b031660009081526012602052604090205460ff161561267e5760405162461bcd60e51b8152602060048201526003602482015262455f4d60e81b6044820152606401610cc7565b805160021461269f5760405162461bcd60e51b8152600401610cc7906159f0565b80608001516002146126c35760405162461bcd60e51b8152600401610cc7906159f0565b6020810151156126e55760405162461bcd60e51b8152600401610cc7906159f0565b8060a001516002146127095760405162461bcd60e51b8152600401610cc7906159f0565b61271281614301565b61272e5760405162461bcd60e51b8152600401610cc7906159f0565b601554604051636d12dce160e01b815260206004820152601860248201527f494e49545f494d4f5f4e46545f484f4c4445525f53495a45000000000000000060448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa1580156127a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cd9190615946565b905080156127ea576127e0816001615848565b60c08401526127f3565b6101f560c08401525b60008360a001518460c00151612809919061595f565b612814906001615848565b9050600081116128365760405162461bcd60e51b8152600401610cc7906159f0565b604051636d12dce160e01b815260206004820152600c60248201526b494e49545f494d4f5f46454560a01b60448201526000906001600160a01b03851690636d12dce190606401602060405180830381865afa15801561289a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128be9190615946565b90508015612905576128d082826158e8565b3410156129055760405162461bcd60e51b815260206004820152600360248201526224afa360e91b6044820152606401610cc7565b600a54600087815260116020908152604080832080546001600160a01b03199081166001600160a01b0396871617909155601383528184208a51855283528184208a5181558a8401516001828101919091558b8401516002830180549189169185169190911790556060808d015160038401805491909916941684179097556080808d0151600484015560a0808e0151600585015560c0808f015160069095019490945593875260128652848720805460ff1916909217909155835160e081018552868152948501869052928401859052948301849052908201839052810182905291820152600a60009054906101000a90046001600160a01b031681604001906001600160a01b031690816001600160a01b031681525050600181608001818152505060018160a001818152505060018160c00181815250506000816020018181525050600081606001906001600160a01b031690816001600160a01b03168152505060018160000181815250508060136000898152602001908152602001600020600083600001518152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506080820151816004015560a0820151816005015560c0820151816006015590505060008160a00151826000015189633b9aca00612b4891906158e8565b612b529190615848565b612b6090633b9aca006158e8565b612b6a9190615848565b600a546000828152600c6020908152604080832080546001600160a01b0319166001600160a01b0390951694909417909355858301518351918201909352908152919250612bbc918390600190613ffe565b60408281015181516001600160a01b0390911681526020810183905260018183015290517f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee9079181900360600190a16040518881527f49669a69295acda27baba0ea29247e02f517f3450c77bd52c362870cfb7ceac49060200160405180910390a15050505050505050565b6116c6612c526139cf565b83836143ef565b6000828152601160205260409020546001600160a01b0316612ca55760405162461bcd60e51b81526020600482015260056024820152644e5f455f4d60d81b6044820152606401610cc7565b60008281526013602090815260408083208451845290915290206006015415612cf65760405162461bcd60e51b815260206004820152600360248201526222afad60e91b6044820152606401610cc7565b612cfe61369a565b6000838152601160205260409020546001600160a01b03908116911614612d375760405162461bcd60e51b8152600401610cc790615a0e565b612d4081614301565b612d755760405162461bcd60e51b8152602060048201526006602482015265495f5a4f4e4560d01b6044820152606401610cc7565b806080015160021480612d8c575080608001516003145b612dc35760405162461bcd60e51b8152602060048201526008602482015267494e565f5459504560c01b6044820152606401610cc7565b806080015160021415612e59576000828152601360209081526040808320600280855292529091206004015414612e0c5760405162461bcd60e51b8152600401610cc7906159f0565b60608101516000838152601360209081526040808320600284529091529020600301546001600160a01b03908116911614612e595760405162461bcd60e51b8152600401610cc7906159f0565b601554604051636d12dce160e01b815260206004820152600c60248201526b494e49545f494d4f5f46454560a01b60448201526001600160a01b03909116906000908290636d12dce190606401602060405180830381865afa158015612ec3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee79190615946565b90508015612f56578260a001518360c00151612f03919061595f565b612f0e906001615848565b612f1890826158e8565b341015612f565760405162461bcd60e51b815260206004820152600c60248201526b4d4953535f494e495f46454560a01b6044820152606401610cc7565b60008481526013602090815260408083208651845282529182902085518082559186015160018201819055838701516002830180546001600160a01b038084166001600160a01b03199283161790925560608a01516003860180549382169390921692909217905560808901516004850181905560a08a01516005860181905560c08b0151600690960186905596517fb8033036b5cd4a496e1a16b0f2fd490dc18c2ce1c7c969b4c8f6f84fc3f6b97297613057978d97939690959194919297885260208801969096526040870194909452606086019290925260808501526001600160a01b0390811660a08501521660c083015260e08201526101000190565b60405180910390a150505050565b61306d61369a565b6000848152601160205260409020546001600160a01b039081169116146130a65760405162461bcd60e51b8152600401610cc790615a0e565b60008381526013602090815260408083208584529091529020600601546130f55760405162461bcd60e51b815260206004820152600360248201526224afad60e91b6044820152606401610cc7565b60008381526013602090815260408083208584529091529020600401546002148061313c575060008381526013602090815260408083208584529091529020600401546003145b61316e5760405162461bcd60e51b815260206004820152600360248201526224afad60e91b6044820152606401610cc7565b600083815260136020908152604080832085845282529182902060010183905581518581529081018490529081018290527f95f65f2fc932b553231b4290f85999ae60ac9e82086414d2281a129723b1e76a9060600160405180910390a1505050565b6000818152600160205260408120610cf5906144d0565b600a546001600160a01b03166131fc6139cf565b6001600160a01b0316146132225760405162461bcd60e51b8152600401610cc790615769565b61323c600080516020615e778339815191526109626139cf565b6132585760405162461bcd60e51b8152600401610cc790615769565b600b546001600160a01b03828116911614156132a65760405162461bcd60e51b815260206004820152600d60248201526c141493d61657d2539590531251609a1b6044820152606401610cc7565b600b80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ffc15895015d07bcb2ae0459d79c7bfb40d36feedb31f55cc34e3ef404c86c5779101610fe1565b600a546001600160a01b03166133146139cf565b6001600160a01b03161461333a5760405162461bcd60e51b8152600401610cc790615769565b613354600080516020615e778339815191526109626139cf565b6133705760405162461bcd60e51b8152600401610cc790615769565b6001600160a01b0382166133b95760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa0a2222922a9a99760811b6044820152606401610cc7565b6133d1600080516020615e5783398151915283613ed5565b6133e9600080516020615eb783398151915283613ed5565b60005b815181101561163757600082828151811061340957613409615976565b6020026020010151905061341d84826144da565b50806134288161598c565b9150506133ec565b60008281526020819052604090206001015461344e816116286139cf565b6116378383613ef7565b600b546000906001600160a01b0316156134fa57600b5460405163c455279160e01b81526001600160a01b03858116600483015291821691841690829063c455279190602401602060405180830381865afa1580156134bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134df9190615929565b6001600160a01b031614156134f8576001915050610cf5565b505b6001600160a01b0380841660009081526003602090815260408083209386168352929052205460ff166113f4565b61353061369a565b6000838152601160205260409020546001600160a01b039081169116146135695760405162461bcd60e51b8152600401610cc790615a0e565b6001600160a01b03811661358f5760405162461bcd60e51b8152600401610cc790615a0e565b60008281526011602090815260409182902080546001600160a01b0319166001600160a01b0385169081179091558251858152918201527fdd9fea2fe1361d546c2bb487b53ae58d9745b2e73cf28408f5da6ad65d7ba3c19101610fe1565b6135f66139cf565b6001600160a01b0316856001600160a01b0316148061361c575061361c85610bb86139cf565b6136385760405162461bcd60e51b8152600401610cc7906159a7565b611603858585858561454b565b61364d6139cf565b6001600160a01b0316836001600160a01b03161480613673575061367383610bb86139cf565b61368f5760405162461bcd60e51b8152600401610cc7906159a7565b611637838383614677565b6000333014156136f157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506136f49050565b50335b90565b6137018282612430565b6116c6576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556137386139cf565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006113f4836001600160a01b038416614787565b606060006137a08360026158e8565b6137ab906002615848565b6001600160401b038111156137c2576137c2614e1f565b6040519080825280601f01601f1916602001820160405280156137ec576020820181803683370190505b509050600360fc1b8160008151811061380757613807615976565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061383657613836615976565b60200101906001600160f81b031916908160001a905350600061385a8460026158e8565b613865906001615848565b90505b60018111156138dd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061389957613899615976565b1a60f81b8282815181106138af576138af615976565b60200101906001600160f81b031916908160001a90535060049490941c936138d681615a2b565b9050613868565b5083156113f45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cc7565b6139368282612430565b156116c6576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916905561396b6139cf565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006113f4836001600160a01b0384166147d6565b6000610cf5826148c9565b60006139d961369a565b905090565b80516116c6906004906020840190614d12565b60006001600160a01b038616613a355760405162461bcd60e51b815260206004820152600960248201526824a72fa9a4a3a722a960b91b6044820152606401610cc7565b6001613a48613a4387614909565b614986565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613a96573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b606060048054613ace906157fd565b80601f0160208091040260200160405190810160405280929190818152602001828054613afa906157fd565b8015613b475780601f10613b1c57610100808354040283529160200191613b47565b820191906000526020600020905b815481529060010190602001808311613b2a57829003601f168201915b50505050509050919050565b6001600160a01b038416613b795760405162461bcd60e51b8152600401610cc790615a42565b8151835114613b9a5760405162461bcd60e51b8152600401610cc790615a83565b6000613ba46139cf565b9050613bb5816000878787876149b6565b60005b8451811015613c5157838181518110613bd357613bd3615976565b602002602001015160026000878481518110613bf157613bf1615976565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613c399190615848565b90915550819050613c498161598c565b915050613bb8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613ca2929190615acb565b60405180910390a4611603816000878787876149c4565b8151835114613cda5760405162461bcd60e51b8152600401610cc790615a83565b6001600160a01b038416613d005760405162461bcd60e51b8152600401610cc790615af0565b6000613d0a6139cf565b9050613d1a8187878787876149b6565b60005b8451811015613e03576000858281518110613d3a57613d3a615976565b602002602001015190506000858381518110613d5857613d58615976565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015613da95760405162461bcd60e51b8152600401610cc790615b35565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613de8908490615848565b9250508190555050505080613dfc9061598c565b9050613d1d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613e53929190615acb565b60405180910390a4613e698187878787876149c4565b505050505050565b613e7b8282612430565b6116c657613e93816001600160a01b03166014613791565b613e9e836020613791565b604051602001613eaf929190615b7f565b60408051601f198184030181529082905262461bcd60e51b8252610cc791600401614faa565b613edf82826136f7565b6000828152600160205260409020611637908261377c565b613f01828261392c565b600082815260016020526040902061163790826139af565b60055460ff16613f625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cc7565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613f956139cf565b6040516001600160a01b03909116815260200160405180910390a1565b6000613fbf826020615848565b83511015613ff55760405162461bcd60e51b815260206004820152600360248201526227a7a960e91b6044820152606401610cc7565b50016020015190565b6001600160a01b0384166140245760405162461bcd60e51b8152600401610cc790615a42565b600061402e6139cf565b905061404f8160008761404088614b20565b61404988614b20565b876149b6565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290614081908490615848565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461160381600087878787614b6b565b6001600160a01b0383166141075760405162461bcd60e51b8152600401610cc790615bf4565b80518251146141285760405162461bcd60e51b8152600401610cc790615a83565b60006141326139cf565b9050614152818560008686604051806020016040528060008152506149b6565b60005b835181101561421a57600084828151811061417257614172615976565b60200260200101519050600084838151811061419057614190615976565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156141e15760405162461bcd60e51b8152600401610cc790615c37565b60009283526002602090815260408085206001600160a01b038b16865290915290922091039055806142128161598c565b915050614155565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161426b929190615acb565b60405180910390a450505050565b60055460ff16156142bf5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cc7565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613f956139cf565b60006113f48383614c26565b6000816080015160021415801561431d57508160800151600314155b1561432a57506000919050565b8151633b9aca001115806143465750633b9aca008260a0015110155b806143595750633b9aca008260c0015110155b1561436657506000919050565b60c0820151156143e75781608001516002141561439c5760608201516001600160a01b031661439757506000919050565b6143ba565b8160800151600314156143ba5760208201516143ba57506000919050565b8160c001518260a0015111806143d2575060a0820151155b156143df57506000919050565b506001919050565b506000919050565b816001600160a01b0316836001600160a01b031614156144635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610cc7565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610cf5825490565b806144e36139cf565b6000828152600c60205260409020546001600160a01b0390811691161461451c5760405162461bcd60e51b8152600401610cc790615790565b506000908152600c6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0384166145715760405162461bcd60e51b8152600401610cc790615af0565b600061457b6139cf565b905061458c81878761404088614b20565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156145cf5760405162461bcd60e51b8152600401610cc790615b35565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061460e908490615848565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461466e828888888888614b6b565b50505050505050565b6001600160a01b03831661469d5760405162461bcd60e51b8152600401610cc790615bf4565b60006146a76139cf565b90506146d7818560006146b987614b20565b6146c287614b20565b604051806020016040528060008152506149b6565b60008381526002602090815260408083206001600160a01b03881684529091529020548281101561471a5760405162461bcd60e51b8152600401610cc790615c37565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60008181526001830160205260408120546147ce57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610cf5565b506000610cf5565b600081815260018301602052604081205480156148bf5760006147fa60018361595f565b855490915060009061480e9060019061595f565b905081811461487357600086600001828154811061482e5761482e615976565b906000526020600020015490508087600001848154811061485157614851615976565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061488457614884615c7b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610cf5565b6000915050610cf5565b60006001600160e01b03198216636cdb3d1360e11b14806148fa57506001600160e01b031982166303a24d0760e21b145b80610cf55750610cf582614c50565b6000604051806060016040528060258152602001615e326025913980516020918201208351848301516040808701518051908601209051614969950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061499160065490565b60405161190160f01b6020820152602281019190915260428101839052606201614969565b613e69868686868686614c75565b6001600160a01b0384163b15613e695760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614a089089908990889088908890600401615c91565b6020604051808303816000875af1925050508015614a43575060408051601f3d908101601f19168201909252614a4091810190615ce3565b60015b614af057614a4f615d00565b806308c379a01415614a895750614a64615d1b565b80614a6f5750614a8b565b8060405162461bcd60e51b8152600401610cc79190614faa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610cc7565b6001600160e01b0319811663bc197c8160e01b1461466e5760405162461bcd60e51b8152600401610cc790615da4565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110614b5a57614b5a615976565b602090810291909101015292915050565b6001600160a01b0384163b15613e695760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614baf9089908990889088908890600401615dec565b6020604051808303816000875af1925050508015614bea575060408051601f3d908101601f19168201909252614be791810190615ce3565b60015b614bf657614a4f615d00565b6001600160e01b0319811663f23a6e6160e01b1461466e5760405162461bcd60e51b8152600401610cc790615da4565b6000826000018281548110614c3d57614c3d615976565b9060005260206000200154905092915050565b60006001600160e01b03198216635a05180f60e01b1480610cf55750610cf582614cdd565b60055460ff1615613e695760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610cc7565b60006001600160e01b03198216637965db0b60e01b1480610cf557506301ffc9a760e01b6001600160e01b0319831614610cf5565b828054614d1e906157fd565b90600052602060002090601f016020900481019282614d405760008555614d86565b82601f10614d5957805160ff1916838001178555614d86565b82800160010185558215614d86579182015b82811115614d86578251825591602001919060010190614d6b565b50614d92929150614d96565b5090565b5b80821115614d925760008155600101614d97565b6001600160a01b0381168114610dcf57600080fd5b60008060408385031215614dd357600080fd5b8235614dde81614dab565b946020939093013593505050565b6001600160e01b031981168114610dcf57600080fd5b600060208284031215614e1457600080fd5b81356113f481614dec565b634e487b7160e01b600052604160045260246000fd5b60e081018181106001600160401b0382111715614e5457614e54614e1f565b60405250565b601f8201601f191681016001600160401b0381118282101715614e7f57614e7f614e1f565b6040525050565b600082601f830112614e9757600080fd5b81356001600160401b03811115614eb057614eb0614e1f565b604051614ec7601f8301601f191660200182614e5a565b818152846020838601011115614edc57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215614f0b57600080fd5b81356001600160401b03811115614f2157600080fd5b614f2d84828501614e86565b949350505050565b600060208284031215614f4757600080fd5b81356113f481614dab565b60005b83811015614f6d578181015183820152602001614f55565b838111156114995750506000910152565b60008151808452614f96816020860160208601614f52565b601f01601f19169290920160200192915050565b6020815260006113f46020830184614f7e565b600080600080600060a08688031215614fd557600080fd5b8535614fe081614dab565b945060208601356001600160401b03811115614ffb57600080fd5b61500788828901614e86565b9450506040860135925060608601359150608086013560ff8116811461502c57600080fd5b809150509295509295909350565b60006020828403121561504c57600080fd5b5035919050565b60006001600160401b0382111561506c5761506c614e1f565b5060051b60200190565b600082601f83011261508757600080fd5b8135602061509482615053565b6040516150a18282614e5a565b83815260059390931b85018201928281019150868411156150c157600080fd5b8286015b848110156150dc57803583529183019183016150c5565b509695505050505050565b600080600080608085870312156150fd57600080fd5b843561510881614dab565b935060208501356001600160401b038082111561512457600080fd5b61513088838901615076565b9450604087013591508082111561514657600080fd5b61515288838901615076565b9350606087013591508082111561516857600080fd5b5061517587828801614e86565b91505092959194509250565b6000806040838503121561519457600080fd5b50508035926020909101359150565b600080600080600060a086880312156151bb57600080fd5b85356151c681614dab565b945060208601356151d681614dab565b935060408601356001600160401b03808211156151f257600080fd5b6151fe89838a01615076565b9450606088013591508082111561521457600080fd5b61522089838a01615076565b9350608088013591508082111561523657600080fd5b5061524388828901614e86565b9150509295509295909350565b6000806040838503121561526357600080fd5b82359150602083013561527581614dab565b809150509250929050565b6000806040838503121561529357600080fd5b8235915060208301356001600160401b038111156152b057600080fd5b61155685828601614e86565b60008060008060008060c087890312156152d557600080fd5b8635955060208701356152e781614dab565b9450604087013593506060870135925060808701356001600160401b038082111561531157600080fd5b61531d8a838b01614e86565b935060a089013591508082111561533357600080fd5b5061534089828a01614e86565b9150509295509295509295565b6000806040838503121561536057600080fd5b82356001600160401b038082111561537757600080fd5b818501915085601f83011261538b57600080fd5b8135602061539882615053565b6040516153a58282614e5a565b83815260059390931b85018201928281019150898411156153c557600080fd5b948201945b838610156153ec5785356153dd81614dab565b825294820194908201906153ca565b9650508601359250508082111561540257600080fd5b5061155685828601615076565b600081518084526020808501945080840160005b8381101561543f57815187529582019590820190600101615423565b509495945050505050565b6020815260006113f4602083018461540f565b60008060006060848603121561547257600080fd5b833561547d81614dab565b925060208401356001600160401b038082111561549957600080fd5b6154a587838801615076565b935060408601359150808211156154bb57600080fd5b506154c886828701615076565b9150509250925092565b600080600080608085870312156154e857600080fd5b84356154f381614dab565b9350602085013592506040850135915060608501356001600160401b0381111561551c57600080fd5b61517587828801614e86565b60008060006060848603121561553d57600080fd5b83359250602084013561554f81614dab565b929592945050506040919091013590565b60008082840361010081121561557557600080fd5b8335925060e0601f198201121561558b57600080fd5b5060405161559881614e35565b602084013581526040840135602082015260608401356155b781614dab565b604082015260808401356155ca81614dab565b8060608301525060a0840135608082015260c084013560a082015260e084013560c0820152809150509250929050565b6000806040838503121561560d57600080fd5b823561561881614dab565b91506020830135801515811461527557600080fd5b60008060006060848603121561564257600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561566c57600080fd5b823561567781614dab565b915060208301356001600160401b0381111561569257600080fd5b61155685828601615076565b600080604083850312156156b157600080fd5b82356156bc81614dab565b9150602083013561527581614dab565b600080600080600060a086880312156156e457600080fd5b85356156ef81614dab565b945060208601356156ff81614dab565b9350604086013592506060860135915060808601356001600160401b0381111561572857600080fd5b61524388828901614e86565b60008060006060848603121561574957600080fd5b833561575481614dab565b95602085013595506040909401359392505050565b6020808252600d908201526c27a7262cafa7a822a920aa27a960991b604082015260600190565b6020808252600c908201526b27a7262cafa1a922a0aa27a960a11b604082015260600190565b6020808252600a908201526927a7262cafa0a226a4a760b11b604082015260600190565b6020808252600990820152682727aa2fa0a226a4a760b91b604082015260600190565b600181811c9082168061581157607f821691505b602082108114156113fb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561585b5761585b615832565b500190565b6001600160a01b0384811682528316602082015260606040820181905260009061588c90830184614f7e565b95945050505050565b600083516158a7818460208801614f52565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516158de818460208701614f52565b9190910192915050565b600081600019048311821515161561590257615902615832565b500290565b60008261592457634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561593b57600080fd5b81516113f481614dab565b60006020828403121561595857600080fd5b5051919050565b60008282101561597157615971615832565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156159a0576159a0615832565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526004908201526324afad1960e11b604082015260600190565b602080825260039082015262495f4160e81b604082015260600190565b600081615a3a57615a3a615832565b506000190190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b604081526000615ade604083018561540f565b828103602084015261588c818561540f565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615bb7816017850160208801614f52565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615be8816028840160208801614f52565b01602801949350505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0386811682528516602082015260a060408201819052600090615cbd9083018661540f565b8281036060840152615ccf818661540f565b905082810360808401526112428185614f7e565b600060208284031215615cf557600080fd5b81516113f481614dec565b600060033d11156136f45760046000803e5060005160e01c90565b600060443d1015615d295790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615d5857505050505090565b8285019150815181811115615d705750505050505090565b843d8701016020828501011115615d8a5750505050505090565b615d9960208286010187614e5a565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615e2690830184614f7e565b97965050505050505056fe4d6574615472616e73616374696f6e286e6f6e63652c66726f6d2c7369676e617475726529828634d95e775031b9ff576b159a8509d3053581a8c9c4d7d86899e0afcd882f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92965d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220694ca6e25055a5cdbed990c1c416e0d4792b577e8230e528d866f8df8562f79964736f6c634300080c0033

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

00000000000000000000000025ba272695b064f33b843c32834f847255ff25dc000000000000000000000000f287d98a7b0823a49cfd20e250a251b97561c6ad00000000000000000000000046396fbadafd9354a13edd57e4f5173d3df0748a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001a4d65746176657273657320706f776572656420627920526f76650000000000000000000000000000000000000000000000000000000000000000000000000003524d730000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : admin (address): 0x25BA272695b064f33b843C32834f847255ff25DC
Arg [1] : operator (address): 0xf287d98a7B0823a49Cfd20e250a251B97561c6Ad
Arg [2] : _parameterAdd (address): 0x46396FbADAFD9354a13EDd57E4f5173D3df0748a
Arg [3] : name (string): Metaverses powered by Rove
Arg [4] : symbol (string): RMs

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000025ba272695b064f33b843c32834f847255ff25dc
Arg [1] : 000000000000000000000000f287d98a7b0823a49cfd20e250a251b97561c6ad
Arg [2] : 00000000000000000000000046396fbadafd9354a13edd57e4f5173d3df0748a
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [6] : 4d65746176657273657320706f776572656420627920526f7665000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 524d730000000000000000000000000000000000000000000000000000000000


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.