Contract 0x1EDEc4992FF273c6f14ab720EF46c6Ea7CB1240a

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe6a75905528da914eac1b37bcb53fc2c8180aad31f1edfc94c27d9a904471b02Set Approval For...364399882022-12-05 3:49:452 days 22 hrs ago0x20197bef251be2a7932dcd7cb2b341c8e31e095e IN  0x1edec4992ff273c6f14ab720ef46c6ea7cb1240a0 MATIC0.000818165326 30.87066849
0x5c1a9b4846fa783520ce2acfdca8639ccc89b8233059c3fb667d9a11105fe803Set Approval For...354044362022-11-09 17:38:2428 days 8 hrs ago0x20197bef251be2a7932dcd7cb2b341c8e31e095e IN  0x1edec4992ff273c6f14ab720ef46c6ea7cb1240a0 MATIC0.039538198516 816.651833456
0x171ca374a1ff5a511b7524cbd447b9b1dd2611a8a369538eb2445d533cfd8b73Safe Transfer Fr...350342092022-10-31 17:00:4337 days 9 hrs ago0xf3908923a362f9f4282223b7b5aca411b4365689 IN  0x1edec4992ff273c6f14ab720ef46c6ea7cb1240a0 MATIC0.0098979382 148.270390689
0x54b7639fdd63f50035c0c11acdbda336c08c4b249c890cb9b5b70924c1f04253Mint350339632022-10-31 16:52:1537 days 9 hrs ago0xf3908923a362f9f4282223b7b5aca411b4365689 IN  0x1edec4992ff273c6f14ab720ef46c6ea7cb1240a0 MATIC0.004110325586 105.15837967
0x2dc22a3b902d49d217673354372c3bc5287d6aed4533c7de1be94da2bcda2789Set Approval For...338684342022-10-03 6:43:1765 days 19 hrs ago0x91c65f404714ac389b38335ccca4a876a8669d32 IN  0x1edec4992ff273c6f14ab720ef46c6ea7cb1240a0 MATIC0.00145497 30.000000016
0x39cbf5d04811f1dfd30cf2617fde8e93c27a364d0b949cf9f1b5e909279c88e70x60a06040338613272022-10-03 2:34:4165 days 23 hrs ago0x361aad4b274ccb5bcc60316ff8db46c3cc753ccf IN  Create: Prompt0 MATIC0.08890638003830.000000013
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Prompt

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 14 : Prompt.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@opengsn/contracts/src/BaseRelayRecipient.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) internal _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 {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: address zero is not a valid owner"
        );
        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 token owner or 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: caller is not token owner or 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

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

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

        _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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _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);

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

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

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * 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);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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;
    }
}

abstract contract ERC1155URIStorage is ERC1155 {
    using Strings for uint256;

    // Optional base URI
    string private _baseURI = "";

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the concatenation of the `_baseURI`
     * and the token-specific uri if the latter is set
     *
     * This enables the following behaviors:
     *
     * - if `_tokenURIs[tokenId]` is set, then the result is the concatenation
     *   of `_baseURI` and `_tokenURIs[tokenId]` (keep in mind that `_baseURI`
     *   is empty per default);
     *
     * - if `_tokenURIs[tokenId]` is NOT set then we fallback to `super.uri()`
     *   which in most cases will contain `ERC1155._uri`;
     *
     * - if `_tokenURIs[tokenId]` is NOT set, and if the parents do not have a
     *   uri value set, then the result is empty.
     */
    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory tokenURI = _tokenURIs[tokenId];

        // If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked).
        return
            bytes(tokenURI).length > 0
                ? string(abi.encodePacked(_baseURI, tokenURI))
                : super.uri(tokenId);
    }

    /**
     * @dev Sets `tokenURI` as the tokenURI of `tokenId`.
     */
    function _setURI(uint256 tokenId, string memory tokenURI) internal virtual {
        _tokenURIs[tokenId] = tokenURI;
        emit URI(uri(tokenId), tokenId);
    }

    /**
     * @dev Sets `baseURI` as the `_baseURI` for all tokens
     */
    function _setBaseURI(string memory baseURI) internal virtual {
        _baseURI = baseURI;
    }
}

/**
 * @title Prompt ERC-1155
 */

contract Prompt is
    ERC1155,
    ERC1155URIStorage,
    ReentrancyGuard,
    BaseRelayRecipient,
    Pausable
{
    using Address for address;

    enum Role {
        UNAUTHORIZED,
        ADMIN
    }

    // maps to the owner of each token ID
    mapping(uint256 => address) public tokenOwners;
    uint256 public tokenOwnerCount;
    // roots
    mapping(uint256 => bytes32) private roots;
    // maps to lock / unlock states
    mapping(uint256 => bool) public lockable;
    // ACL
    mapping(address => Role) private permissions;

    event Authorised(uint256 indexed tokenId, address owner);
    event MintedMultipleAddresses(
        address[] indexed accounts,
        uint256 tokenId,
        uint256 amount
    );

    constructor(address _forwarder) public {
        _setTrustedForwarder(_forwarder);

        permissions[_msgSender()] = Role.ADMIN;
    }

    /// @notice authorise to issue a token
    function authorise(
        string memory _tokenURI,
        bytes32 _root,
        uint256 _initialAmount
    ) external nonReentrant whenNotPaused {
        require(_initialAmount > 0, "Initial amount must be greater than zero");
        tokenOwnerCount += 1;
        tokenOwners[tokenOwnerCount] = _msgSender();

        // first mint
        _mint(_msgSender(), tokenOwnerCount, _initialAmount, "");
        _setURI(tokenOwnerCount, _tokenURI);
        roots[tokenOwnerCount] = _root;

        lockable[tokenOwnerCount] = true;

        emit Authorised(tokenOwnerCount, _msgSender());
    }

    /// @notice mint tokens
    /// @param to recipient to be received
    /// @param id token ID
    /// @param value amount of the token to be minted
    /// @param data aux data
    function mint(
        address to,
        uint256 id,
        uint256 value,
        bytes memory data
    ) external nonReentrant whenNotPaused {
        require(tokenOwners[id] == _msgSender(), "Not authorised to mint");
        _mint(to, id, value, data);
    }

    /// @notice mint tokens to multiple accounts at the same time
    /// @param accounts recipient to be received
    /// @param id token ID
    /// @param value amount of the token to be minted
    function push(
        address[] memory accounts,
        uint256 id,
        uint256 value
    ) external nonReentrant whenNotPaused {
        require(tokenOwners[id] == _msgSender(), "Not authorised to mint");

        for (uint256 i = 0; i < accounts.length; ++i) {
            // bypass pre/post transfers checks
            _balances[id][accounts[i]] += value;
            emit TransferSingle(
                _msgSender(),
                address(0),
                accounts[i],
                id,
                value
            );
        }
    }

    /// @notice authorise to issue a token in batch
    function authoriseBatch(
        string[] memory _tokenURI,
        bytes32[] memory _root,
        uint256 _initialAmount
    ) external nonReentrant whenNotPaused {
        require(_initialAmount > 0, "Initial amount must be greater than zero");
        require(_tokenURI.length == _root.length, "Invalid length");

        for (uint256 i = 0; i < _tokenURI.length; i++) {
            tokenOwnerCount += 1;
            tokenOwners[tokenOwnerCount] = _msgSender();

            // first mint
            _mint(_msgSender(), tokenOwnerCount, _initialAmount, "");
            _setURI(tokenOwnerCount, _tokenURI[i]);
            roots[tokenOwnerCount] = _root[i];

            emit Authorised(tokenOwnerCount, _msgSender());
        }
    }

    /// @notice mint tokens in batch
    /// @param to recipient to be received
    /// @param ids token ID(s)
    /// @param values amount of the token to be minted(s)
    /// @param data aux data
    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) external nonReentrant whenNotPaused {
        for (uint256 i = 0; i < ids.length; i++) {
            require(
                tokenOwners[ids[i]] == _msgSender(),
                "Not authorised to mint"
            );
        }
        _mintBatch(to, ids, values, data);
    }

    /// @notice looks for token's owner in batch
    /// @param ids token ID(s)
    function tokenOwnersBatch(uint256[] memory ids)
        external
        view
        returns (address[] memory)
    {
        address[] memory owners = new address[](ids.length);

        for (uint256 i = 0; i < ids.length; ++i) {
            owners[i] = tokenOwners[ids[i]];
        }

        return owners;
    }

    /// @notice burn tokens
    /// @param owner owner of the token
    /// @param id token ID
    /// @param value amount of the token to be burned
    function burn(
        address owner,
        uint256 id,
        uint256 value
    ) external nonReentrant {
        _burn(owner, id, value);
    }

    /// @notice burn tokens in batch
    /// @param owner owner of the token
    /// @param ids token IDs
    /// @param values amount of the token to be burned
    function burnBatch(
        address owner,
        uint256[] memory ids,
        uint256[] memory values
    ) external nonReentrant {
        _burnBatch(owner, ids, values);
    }

    /// @notice return the token URI
    /// @param tokenId token ID
    function uri(uint256 tokenId)
        public
        view
        virtual
        override(ERC1155, ERC1155URIStorage)
        returns (string memory)
    {
        return ERC1155URIStorage.uri(tokenId);
    }

    /// @notice reveal a word by given proof
    /// @param _proof proof generated off-chain
    /// @param _tokenId token ID
    /// @param _index index of the word
    /// @param _word word to check
    function revealWord(
        bytes32[] memory _proof,
        uint256 _tokenId,
        uint256 _index,
        string memory _word
    ) external view returns (bool) {
        bool holded = false;
        if (balanceOf(_msgSender(), _tokenId) > 0) {
            holded = true;
        }
        bytes32 leaf = keccak256(abi.encodePacked(holded, _index, _word));
        return MerkleProof.verify(_proof, roots[_tokenId], leaf);
    }

    /// @notice lock the token to not be transfered
    /// @param tokenId token ID
    function lock(uint256 tokenId) external onlyAdmin {
        lockable[tokenId] = true;
    }

    /// @notice unlock the token
    /// @param tokenId token ID
    function unlock(uint256 tokenId) external onlyAdmin {
        lockable[tokenId] = false;
    }

    // give a specific permission to the given address
    function grant(address _address, Role _role) external onlyAdmin {
        require(_address != _msgSender(), "You cannot grant yourself");
        permissions[_address] = _role;
    }

    // remove any permission binded to the given address
    function revoke(address _address) external onlyAdmin {
        require(_address != _msgSender(), "You cannot revoke yourself");
        permissions[_address] = Role.UNAUTHORIZED;
    }

    function setPaused(bool _paused) external onlyAdmin {
        if (_paused) {
            _pause();
        } else {
            _unpause();
        }
    }

    function versionRecipient() public pure override returns (string memory) {
        return "2.2.5";
    }

    function _msgSender()
        internal
        view
        override(Context, BaseRelayRecipient)
        returns (address sender)
    {
        sender = BaseRelayRecipient._msgSender();
    }

    function _msgData()
        internal
        view
        override(Context, BaseRelayRecipient)
        returns (bytes calldata)
    {
        return BaseRelayRecipient._msgData();
    }

    modifier onlyAdmin() {
        require(
            permissions[_msgSender()] == Role.ADMIN,
            "Caller is not the admin"
        );
        _;
    }

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

        for (uint256 i = 0; i < ids.length; i++) {
            if (
                to != address(this) &&
                from != address(0) &&
                to != address(0) &&
                permissions[to] != Role.ADMIN &&
                permissions[from] != Role.ADMIN &&
                permissions[operator] != Role.ADMIN
            ) {
                require(
                    lockable[ids[i]] == false,
                    "Not allow to be transfered"
                );
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 6 of 14 : 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 7 of 14 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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 8 of 14 : BaseRelayRecipient.sol
// SPDX-License-Identifier: MIT
// solhint-disable no-inline-assembly
pragma solidity >=0.6.9;

import "./interfaces/IRelayRecipient.sol";

/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /*
     * Forwarder singleton we accept calls from
     */
    address private _trustedForwarder;

    function trustedForwarder() public virtual view returns (address){
        return _trustedForwarder;
    }

    function _setTrustedForwarder(address _forwarder) internal {
        _trustedForwarder = _forwarder;
    }

    function isTrustedForwarder(address forwarder) public virtual override view returns(bool) {
        return forwarder == _trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal override virtual view returns (address ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96,calldataload(sub(calldatasize(),20)))
            }
        } else {
            ret = msg.sender;
        }
    }

    /**
     * return the msg.data of this call.
     * if the call came through our trusted forwarder, then the real sender was appended as the last 20 bytes
     * of the msg.data - so this method will strip those 20 bytes off.
     * otherwise (if the call was made directly and not through the forwarder), return `msg.data`
     * should be used in the contract instead of msg.data, where this difference matters.
     */
    function _msgData() internal override virtual view returns (bytes calldata ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            return msg.data[0:msg.data.length-20];
        } else {
            return msg.data;
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 11 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 14 : IRelayRecipient.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal virtual view returns (address);

    /**
     * return the msg.data of this call.
     * if the call came through our trusted forwarder, then the real sender was appended as the last 20 bytes
     * of the msg.data - so this method will strip those 20 bytes off.
     * otherwise (if the call was made directly and not through the forwarder), return `msg.data`
     * should be used in the contract instead of msg.data, where this difference matters.
     */
    function _msgData() internal virtual view returns (bytes calldata);

    function versionRecipient() external virtual view returns (string memory);
}

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":"_forwarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Authorised","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintedMultipleAddresses","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"uint256","name":"_initialAmount","type":"uint256"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_tokenURI","type":"string[]"},{"internalType":"bytes32[]","name":"_root","type":"bytes32[]"},{"internalType":"uint256","name":"_initialAmount","type":"uint256"}],"name":"authoriseBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","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":"owner","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":"_address","type":"address"},{"internalType":"enum Prompt.Role","name":"_role","type":"uint8"}],"name":"grant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","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":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"push","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_word","type":"string"}],"name":"revealWord","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","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":"tokenOwnerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"tokenOwnersBatch","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

60a06040819052600060808190526200001b916003916200010f565b503480156200002957600080fd5b5060405162003586380380620035868339810160408190526200004c91620001b5565b6001600555600680546001600160a81b0319166001600160a01b0383161790556001600b60006200007c620000bd565b6001600160a01b031681526020810191909152604001600020805460ff191660018381811115620000b157620000b1620001e7565b0217905550506200023a565b6000620000d4620000d960201b620012521760201c565b905090565b600060143610801590620000f757506006546001600160a01b031633145b156200010a575060131936013560601c90565b503390565b8280546200011d90620001fd565b90600052602060002090601f0160209004810192826200014157600085556200018c565b82601f106200015c57805160ff19168380011785556200018c565b828001600101855582156200018c579182015b828111156200018c5782518255916020019190600101906200016f565b506200019a9291506200019e565b5090565b5b808211156200019a57600081556001016200019f565b600060208284031215620001c857600080fd5b81516001600160a01b0381168114620001e057600080fd5b9392505050565b634e487b7160e01b600052602160045260246000fd5b600181811c908216806200021257607f821691505b602082108114156200023457634e487b7160e01b600052602260045260246000fd5b50919050565b61333c806200024a6000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80636b20c45411610104578063db0f3310116100a2578063e985e9c511610071578063e985e9c51461042e578063f242432a1461046a578063f5298aca1461047d578063f8a14f461461049057600080fd5b8063db0f3310146103ec578063dd467064146103f5578063e2dbe6cd14610408578063e810d1c31461041b57600080fd5b80637da0a877116100de5780637da0a87714610371578063a22cb46514610396578063ae233120146103a9578063daceb9f5146103cc57600080fd5b80636b20c45414610338578063731133e91461034b57806374a8f1031461035e57600080fd5b80632eb2c2d6116101715780634e1273f41161014b5780634e1273f4146102d1578063572b6c05146102f15780635c975abb146103135780636198e3391461032557600080fd5b80632eb2c2d61461028a578063486ff0cd1461029d5780634cbbcb5f146102be57600080fd5b806316c38b3c116101ad57806316c38b3c1461023c5780631b52868d146102515780631f7fdffa14610264578063263d600c1461027757600080fd5b8062fdd58e146101d357806301ffc9a7146101f95780630e89341c1461021c575b600080fd5b6101e66101e1366004612392565b6104b9565b6040519081526020015b60405180910390f35b61020c6102073660046123d2565b61054f565b60405190151581526020016101f0565b61022f61022a3660046123ef565b6105a1565b6040516101f09190612460565b61024f61024a366004612483565b6105ac565b005b61024f61025f36600461249e565b61061e565b61024f610272366004612622565b61071d565b61024f6102853660046126ba565b6107eb565b61024f610298366004612707565b610938565b604080518082019091526005815264322e322e3560d81b602082015261022f565b61024f6102cc36600461281d565b610996565b6102e46102df366004612854565b610af7565b6040516101f091906128f2565b61020c6102ff366004612905565b6006546001600160a01b0391821691161490565b600654600160a01b900460ff1661020c565b61024f6103333660046123ef565b610c20565b61024f610346366004612920565b610c91565b61024f610359366004612993565b610cce565b61024f61036c366004612905565b610d4b565b6006546001600160a01b03165b6040516001600160a01b0390911681526020016101f0565b61024f6103a43660046129e7565b610e2e565b61020c6103b73660046123ef565b600a6020526000908152604090205460ff1681565b6103df6103da366004612a1a565b610e44565b6040516101f09190612a56565b6101e660085481565b61024f6104033660046123ef565b610f1a565b61024f610416366004612aa3565b610f8e565b61020c610429366004612b8a565b611151565b61020c61043c366004612be7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61024f610478366004612c11565b6111c8565b61024f61048b366004612c75565b61121f565b61037e61049e3660046123ef565b6007602052600090815260409020546001600160a01b031681565b60006001600160a01b0383166105295760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061058057506001600160e01b031982166303a24d0760e21b145b8061059b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606061059b82611287565b6001600b60006105ba611367565b6001600160a01b0316815260208101919091526040016000205460ff1660018111156105e8576105e8612ca8565b146106055760405162461bcd60e51b815260040161052090612cbe565b801561061657610613611376565b50565b6106136113d7565b6001600b600061062c611367565b6001600160a01b0316815260208101919091526040016000205460ff16600181111561065a5761065a612ca8565b146106775760405162461bcd60e51b815260040161052090612cbe565b61067f611367565b6001600160a01b0316826001600160a01b031614156106e05760405162461bcd60e51b815260206004820152601960248201527f596f752063616e6e6f74206772616e7420796f757273656c66000000000000006044820152606401610520565b6001600160a01b0382166000908152600b60205260409020805482919060ff19166001838181111561071457610714612ca8565b02179055505050565b600260055414156107405760405162461bcd60e51b815260040161052090612cf5565b600260055561074d611415565b60005b83518110156107d357610761611367565b6001600160a01b03166007600086848151811061078057610780612d2c565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146107c15760405162461bcd60e51b815260040161052090612d42565b806107cb81612d88565b915050610750565b506107e084848484611464565b505060016005555050565b6002600554141561080e5760405162461bcd60e51b815260040161052090612cf5565b600260055561081b611415565b6000811161083b5760405162461bcd60e51b815260040161052090612da3565b60016008600082825461084e9190612deb565b9091555061085c9050611367565b600854600090815260076020526040902080546001600160a01b0319166001600160a01b03929092169190911790556108af610896611367565b60085483604051806020016040528060008152506115c9565b6108bb600854846116ab565b60088054600090815260096020908152604080832086905583548352600a9091529020805460ff19166001179055547f87c00c50e802917355d27a9b0cf9cc1236a7d91ee9a4ed5e3065fbb50b82cfd8610913611367565b6040516001600160a01b03909116815260200160405180910390a25050600160055550565b610940611367565b6001600160a01b0316856001600160a01b0316148061096657506109668561043c611367565b6109825760405162461bcd60e51b815260040161052090612e03565b61098f858585858561170f565b5050505050565b600260055414156109b95760405162461bcd60e51b815260040161052090612cf5565b60026005556109c6611415565b6109ce611367565b6000838152600760205260409020546001600160a01b03908116911614610a075760405162461bcd60e51b815260040161052090612d42565b60005b83518110156107e057816000808581526020019081526020016000206000868481518110610a3a57610a3a612d2c565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254610a719190612deb565b92505081905550838181518110610a8a57610a8a612d2c565b60200260200101516001600160a01b031660006001600160a01b0316610aae611367565b6001600160a01b03166000805160206132e78339815191528686604051610adf929190918252602082015260400190565b60405180910390a4610af081612d88565b9050610a0a565b60608151835114610b5c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610520565b600083516001600160401b03811115610b7757610b776124d9565b604051908082528060200260200182016040528015610ba0578160200160208202803683370190505b50905060005b8451811015610c1857610beb858281518110610bc457610bc4612d2c565b6020026020010151858381518110610bde57610bde612d2c565b60200260200101516104b9565b828281518110610bfd57610bfd612d2c565b6020908102919091010152610c1181612d88565b9050610ba6565b509392505050565b6001600b6000610c2e611367565b6001600160a01b0316815260208101919091526040016000205460ff166001811115610c5c57610c5c612ca8565b14610c795760405162461bcd60e51b815260040161052090612cbe565b6000908152600a60205260409020805460ff19169055565b60026005541415610cb45760405162461bcd60e51b815260040161052090612cf5565b6002600555610cc48383836118c4565b5050600160055550565b60026005541415610cf15760405162461bcd60e51b815260040161052090612cf5565b6002600555610cfe611415565b610d06611367565b6000848152600760205260409020546001600160a01b03908116911614610d3f5760405162461bcd60e51b815260040161052090612d42565b6107e0848484846115c9565b6001600b6000610d59611367565b6001600160a01b0316815260208101919091526040016000205460ff166001811115610d8757610d87612ca8565b14610da45760405162461bcd60e51b815260040161052090612cbe565b610dac611367565b6001600160a01b0316816001600160a01b03161415610e0d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74207265766f6b6520796f757273656c660000000000006044820152606401610520565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b610e40610e39611367565b8383611a69565b5050565b6060600082516001600160401b03811115610e6157610e616124d9565b604051908082528060200260200182016040528015610e8a578160200160208202803683370190505b50905060005b8351811015610f135760076000858381518110610eaf57610eaf612d2c565b6020026020010151815260200190815260200160002060009054906101000a90046001600160a01b0316828281518110610eeb57610eeb612d2c565b6001600160a01b0390921660209283029190910190910152610f0c81612d88565b9050610e90565b5092915050565b6001600b6000610f28611367565b6001600160a01b0316815260208101919091526040016000205460ff166001811115610f5657610f56612ca8565b14610f735760405162461bcd60e51b815260040161052090612cbe565b6000908152600a60205260409020805460ff19166001179055565b60026005541415610fb15760405162461bcd60e51b815260040161052090612cf5565b6002600555610fbe611415565b60008111610fde5760405162461bcd60e51b815260040161052090612da3565b81518351146110205760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b6044820152606401610520565b60005b83518110156107e05760016008600082825461103f9190612deb565b9091555061104d9050611367565b600854600090815260076020526040902080546001600160a01b0319166001600160a01b03929092169190911790556110a0611087611367565b60085484604051806020016040528060008152506115c9565b6110c56008548583815181106110b8576110b8612d2c565b60200260200101516116ab565b8281815181106110d7576110d7612d2c565b6020026020010151600960006008548152602001908152602001600020819055506008547f87c00c50e802917355d27a9b0cf9cc1236a7d91ee9a4ed5e3065fbb50b82cfd8611124611367565b6040516001600160a01b03909116815260200160405180910390a28061114981612d88565b915050611023565b60008080611166611160611367565b876104b9565b1115611170575060015b600081858560405160200161118793929190612e6d565b6040516020818303038152906040528051906020012090506111bd87600960008981526020019081526020016000205483611b4a565b979650505050505050565b6111d0611367565b6001600160a01b0316856001600160a01b031614806111f657506111f68561043c611367565b6112125760405162461bcd60e51b815260040161052090612e03565b61098f8585858585611b60565b600260055414156112425760405162461bcd60e51b815260040161052090612cf5565b6002600555610cc4838383611c91565b60006014361080159061126f57506006546001600160a01b031633145b15611281575060131936013560601c90565b50335b90565b6000818152600460205260408120805460609291906112a590612e9f565b80601f01602080910402602001604051908101604052809291908181526020018280546112d190612e9f565b801561131e5780601f106112f35761010080835404028352916020019161131e565b820191906000526020600020905b81548152906001019060200180831161130157829003601f168201915b50505050509050600081511161133c5761133783611da2565b611360565b600381604051602001611350929190612eda565b6040516020818303038152906040525b9392505050565b6000611371611252565b905090565b61137e611415565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113ba611367565b6040516001600160a01b03909116815260200160405180910390a1565b6113df611e36565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113ba611367565b600654600160a01b900460ff16156114625760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610520565b565b6001600160a01b03841661148a5760405162461bcd60e51b815260040161052090612f81565b81518351146114ab5760405162461bcd60e51b815260040161052090612fc2565b60006114b5611367565b90506114c681600087878787611e86565b60005b8451811015611561578381815181106114e4576114e4612d2c565b602002602001015160008087848151811061150157611501612d2c565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546115499190612deb565b9091555081905061155981612d88565b9150506114c9565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516115b292919061300a565b60405180910390a461098f8160008787878761200a565b6001600160a01b0384166115ef5760405162461bcd60e51b815260040161052090612f81565b60006115f9611367565b9050600061160685612166565b9050600061161385612166565b905061162483600089858589611e86565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290611654908490612deb565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716916000805160206132e7833981519152910160405180910390a46116a2836000898989896121b1565b50505050505050565b600082815260046020908152604090912082516116ca928401906122dd565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b6116f6846105a1565b6040516117039190612460565b60405180910390a25050565b81518351146117305760405162461bcd60e51b815260040161052090612fc2565b6001600160a01b0384166117565760405162461bcd60e51b81526004016105209061302f565b6000611760611367565b9050611770818787878787611e86565b60005b845181101561185657600085828151811061179057611790612d2c565b6020026020010151905060008583815181106117ae576117ae612d2c565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156117fe5760405162461bcd60e51b815260040161052090613074565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061183b908490612deb565b925050819055505050508061184f90612d88565b9050611773565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516118a692919061300a565b60405180910390a46118bc81878787878761200a565b505050505050565b6001600160a01b0383166118ea5760405162461bcd60e51b8152600401610520906130be565b805182511461190b5760405162461bcd60e51b815260040161052090612fc2565b6000611915611367565b905061193581856000868660405180602001604052806000815250611e86565b60005b83518110156119fa57600084828151811061195557611955612d2c565b60200260200101519050600084838151811061197357611973612d2c565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156119c35760405162461bcd60e51b815260040161052090613101565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806119f281612d88565b915050611938565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611a4b92919061300a565b60405180910390a46040805160208101909152600090525b50505050565b816001600160a01b0316836001600160a01b03161415611add5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610520565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600082611b57858461226c565b14949350505050565b6001600160a01b038416611b865760405162461bcd60e51b81526004016105209061302f565b6000611b90611367565b90506000611b9d85612166565b90506000611baa85612166565b9050611bba838989858589611e86565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015611bfb5760405162461bcd60e51b815260040161052090613074565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611c38908490612deb565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816916000805160206132e7833981519152910160405180910390a4611c86848a8a8a8a8a6121b1565b505050505050505050565b6001600160a01b038316611cb75760405162461bcd60e51b8152600401610520906130be565b6000611cc1611367565b90506000611cce84612166565b90506000611cdb84612166565b9050611cfb83876000858560405180602001604052806000815250611e86565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015611d3c5760405162461bcd60e51b815260040161052090613101565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816916000805160206132e7833981519152910160405180910390a46040805160208101909152600090526116a2565b606060028054611db190612e9f565b80601f0160208091040260200160405190810160405280929190818152602001828054611ddd90612e9f565b8015611e2a5780601f10611dff57610100808354040283529160200191611e2a565b820191906000526020600020905b815481529060010190602001808311611e0d57829003601f168201915b50505050509050919050565b600654600160a01b900460ff166114625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610520565b60005b83518110156116a2576001600160a01b0385163014801590611eb357506001600160a01b03861615155b8015611ec757506001600160a01b03851615155b8015611f00575060016001600160a01b0386166000908152600b602052604090205460ff166001811115611efd57611efd612ca8565b14155b8015611f39575060016001600160a01b0387166000908152600b602052604090205460ff166001811115611f3657611f36612ca8565b14155b8015611f72575060016001600160a01b0388166000908152600b602052604090205460ff166001811115611f6f57611f6f612ca8565b14155b15611ff857600a6000858381518110611f8d57611f8d612d2c565b60209081029190910181015182528101919091526040016000205460ff1615611ff85760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420616c6c6f7720746f206265207472616e7366657265640000000000006044820152606401610520565b8061200281612d88565b915050611e89565b6001600160a01b0384163b156118bc5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061204e9089908990889088908890600401613145565b6020604051808303816000875af1925050508015612089575060408051601f3d908101601f19168201909252612086918101906131a3565b60015b612136576120956131c0565b806308c379a014156120cf57506120aa6131db565b806120b557506120d1565b8060405162461bcd60e51b81526004016105209190612460565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610520565b6001600160e01b0319811663bc197c8160e01b146116a25760405162461bcd60e51b815260040161052090613264565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106121a0576121a0612d2c565b602090810291909101015292915050565b6001600160a01b0384163b156118bc5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906121f590899089908890889088906004016132ac565b6020604051808303816000875af1925050508015612230575060408051601f3d908101601f1916820190925261222d918101906131a3565b60015b61223c576120956131c0565b6001600160e01b0319811663f23a6e6160e01b146116a25760405162461bcd60e51b815260040161052090613264565b600081815b8451811015610c185761229d8286838151811061229057612290612d2c565b60200260200101516122b1565b9150806122a981612d88565b915050612271565b60008183106122cd576000828152602084905260409020611360565b5060009182526020526040902090565b8280546122e990612e9f565b90600052602060002090601f01602090048101928261230b5760008555612351565b82601f1061232457805160ff1916838001178555612351565b82800160010185558215612351579182015b82811115612351578251825591602001919060010190612336565b5061235d929150612361565b5090565b5b8082111561235d5760008155600101612362565b80356001600160a01b038116811461238d57600080fd5b919050565b600080604083850312156123a557600080fd5b6123ae83612376565b946020939093013593505050565b6001600160e01b03198116811461061357600080fd5b6000602082840312156123e457600080fd5b8135611360816123bc565b60006020828403121561240157600080fd5b5035919050565b60005b8381101561242357818101518382015260200161240b565b83811115611a635750506000910152565b6000815180845261244c816020860160208601612408565b601f01601f19169290920160200192915050565b6020815260006113606020830184612434565b8035801515811461238d57600080fd5b60006020828403121561249557600080fd5b61136082612473565b600080604083850312156124b157600080fd5b6124ba83612376565b91506020830135600281106124ce57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612514576125146124d9565b6040525050565b60006001600160401b03821115612534576125346124d9565b5060051b60200190565b600082601f83011261254f57600080fd5b8135602061255c8261251b565b60405161256982826124ef565b83815260059390931b850182019282810191508684111561258957600080fd5b8286015b848110156125a4578035835291830191830161258d565b509695505050505050565b600082601f8301126125c057600080fd5b81356001600160401b038111156125d9576125d96124d9565b6040516125f0601f8301601f1916602001826124ef565b81815284602083860101111561260557600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806080858703121561263857600080fd5b61264185612376565b935060208501356001600160401b038082111561265d57600080fd5b6126698883890161253e565b9450604087013591508082111561267f57600080fd5b61268b8883890161253e565b935060608701359150808211156126a157600080fd5b506126ae878288016125af565b91505092959194509250565b6000806000606084860312156126cf57600080fd5b83356001600160401b038111156126e557600080fd5b6126f1868287016125af565b9660208601359650604090950135949350505050565b600080600080600060a0868803121561271f57600080fd5b61272886612376565b945061273660208701612376565b935060408601356001600160401b038082111561275257600080fd5b61275e89838a0161253e565b9450606088013591508082111561277457600080fd5b61278089838a0161253e565b9350608088013591508082111561279657600080fd5b506127a3888289016125af565b9150509295509295909350565b600082601f8301126127c157600080fd5b813560206127ce8261251b565b6040516127db82826124ef565b83815260059390931b85018201928281019150868411156127fb57600080fd5b8286015b848110156125a45761281081612376565b83529183019183016127ff565b60008060006060848603121561283257600080fd5b83356001600160401b0381111561284857600080fd5b6126f1868287016127b0565b6000806040838503121561286757600080fd5b82356001600160401b038082111561287e57600080fd5b61288a868387016127b0565b935060208501359150808211156128a057600080fd5b506128ad8582860161253e565b9150509250929050565b600081518084526020808501945080840160005b838110156128e7578151875295820195908201906001016128cb565b509495945050505050565b60208152600061136060208301846128b7565b60006020828403121561291757600080fd5b61136082612376565b60008060006060848603121561293557600080fd5b61293e84612376565b925060208401356001600160401b038082111561295a57600080fd5b6129668783880161253e565b9350604086013591508082111561297c57600080fd5b506129898682870161253e565b9150509250925092565b600080600080608085870312156129a957600080fd5b6129b285612376565b9350602085013592506040850135915060608501356001600160401b038111156129db57600080fd5b6126ae878288016125af565b600080604083850312156129fa57600080fd5b612a0383612376565b9150612a1160208401612473565b90509250929050565b600060208284031215612a2c57600080fd5b81356001600160401b03811115612a4257600080fd5b612a4e8482850161253e565b949350505050565b6020808252825182820181905260009190848201906040850190845b81811015612a975783516001600160a01b031683529284019291840191600101612a72565b50909695505050505050565b600080600060608486031215612ab857600080fd5b83356001600160401b0380821115612acf57600080fd5b818601915086601f830112612ae357600080fd5b81356020612af08261251b565b604051612afd82826124ef565b83815260059390931b850182019282810191508a841115612b1d57600080fd5b8286015b84811015612b5557803586811115612b395760008081fd5b612b478d86838b01016125af565b845250918301918301612b21565b5097505087013592505080821115612b6c57600080fd5b50612b798682870161253e565b925050604084013590509250925092565b60008060008060808587031215612ba057600080fd5b84356001600160401b0380821115612bb757600080fd5b612bc38883890161253e565b9550602087013594506040870135935060608701359150808211156126a157600080fd5b60008060408385031215612bfa57600080fd5b612c0383612376565b9150612a1160208401612376565b600080600080600060a08688031215612c2957600080fd5b612c3286612376565b9450612c4060208701612376565b9350604086013592506060860135915060808601356001600160401b03811115612c6957600080fd5b6127a3888289016125af565b600080600060608486031215612c8a57600080fd5b612c9384612376565b95602085013595506040909401359392505050565b634e487b7160e01b600052602160045260246000fd5b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260169082015275139bdd08185d5d1a1bdc9a5cd959081d1bc81b5a5b9d60521b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612d9c57612d9c612d72565b5060010190565b60208082526028908201527f496e697469616c20616d6f756e74206d7573742062652067726561746572207460408201526768616e207a65726f60c01b606082015260800190565b60008219821115612dfe57612dfe612d72565b500190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60008151612e63818560208601612408565b9290920192915050565b83151560f81b815282600182015260008251612e90816021850160208701612408565b91909101602101949350505050565b600181811c90821680612eb357607f821691505b60208210811415612ed457634e487b7160e01b600052602260045260246000fd5b50919050565b600080845481600182811c915080831680612ef657607f831692505b6020808410821415612f1657634e487b7160e01b86526022600452602486fd5b818015612f2a5760018114612f3b57612f68565b60ff19861689528489019650612f68565b60008b81526020902060005b86811015612f605781548b820152908501908301612f47565b505084890196505b505050505050612f788185612e51565b95945050505050565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60408152600061301d60408301856128b7565b8281036020840152612f7881856128b7565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613171908301866128b7565b828103606084015261318381866128b7565b905082810360808401526131978185612434565b98975050505050505050565b6000602082840312156131b557600080fd5b8151611360816123bc565b600060033d11156112845760046000803e5060005160e01c90565b600060443d10156131e95790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561321857505050505090565b82850191508151818111156132305750505050505090565b843d870101602082850101111561324a5750505050505090565b613259602082860101876124ef565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906111bd9083018461243456fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212202dd1ebc39c8cab3bc9d8e292481976f5510c0947e0079f7db3f70426cb5f92d664736f6c634300080a0033000000000000000000000000da78a11fd57af7be2edd804840ea7f4c2a38801d

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

000000000000000000000000da78a11fd57af7be2edd804840ea7f4c2a38801d

-----Decoded View---------------
Arg [0] : _forwarder (address): 0xda78a11fd57af7be2edd804840ea7f4c2a38801d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000da78a11fd57af7be2edd804840ea7f4c2a38801d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.