ETH Price: $3,323.78 (-2.67%)
Gas: 8.53 Gwei

Contract

0x5D26CE1cB6F9fF7F07638cB3a170bc8a774b98DA
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040143060052022-03-02 6:32:221000 days ago1646202742IN
 Create: ERC721ProjectImpl
0 ETH0.1810700535.82687198

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC721ProjectImpl

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 34 : ERC721ProjectImpl.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

/// @title: My Project

import "./core/ERC721/ERC721ProjectUpgradeable.sol";

contract ERC721ProjectImpl is ERC721ProjectUpgradeable {
    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() initializer {}

    function initialize(string memory _name, string memory _symbol) public initializer {
        _initialize(_name, _symbol);
    }
}

File 2 of 34 : ERC721ProjectUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";

import "../../access/AdminControlUpgradeable.sol";
import "./ERC721ProjectCoreUpgradeable.sol";

/**
 * @dev ERC721Project implementation
 */
abstract contract ERC721ProjectUpgradeable is
    Initializable,
    AdminControlUpgradeable,
    ERC721Upgradeable,
    ERC721ProjectCoreUpgradeable,
    UUPSUpgradeable
{
    function _initialize(string memory _name, string memory _symbol) internal initializer {
        __AdminControl_init();
        __ERC721_init(_name, _symbol);
        __ERC721ProjectCore_init();
        __UUPSUpgradeable_init();
    }

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

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        _approveTransfer(from, to, tokenId);
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev See {IProjectCore-registerManager}.
     */
    function registerManager(
        address manager,
        string calldata baseURI,
        bool baseURIIdentical
    ) external override adminRequired nonBlacklistRequired(manager) {
        _registerManager(manager, baseURI, baseURIIdentical);
    }

    /**
     * @dev See {IProjectCore-unregisterManager}.
     */
    function unregisterManager(address manager) external override adminRequired {
        _unregisterManager(manager);
    }

    /**
     * @dev See {IProjectCore-blacklistManager}.
     */
    function blacklistManager(address manager) external override adminRequired {
        _blacklistManager(manager);
    }

    /**
     * @dev See {IProjectCore-managerSetBaseTokenURI}.
     */
    function managerSetBaseTokenURI(string calldata uri, bool identical) external override managerRequired {
        _managerSetBaseTokenURI(uri, identical);
    }

    /**
     * @dev See {IProjectCore-managerSetTokenURIPrefix}.
     */
    function managerSetTokenURIPrefix(string calldata prefix) external override managerRequired {
        _managerSetTokenURIPrefix(prefix);
    }

    /**
     * @dev See {IProjectCore-managerSetTokenURI}.
     */
    function managerSetTokenURI(uint256 tokenId, string calldata uri) external override managerRequired {
        _managerSetTokenURI(tokenId, uri);
    }

    /**
     * @dev See {IProjectCore-managerSetTokenURI}.
     */
    function managerSetTokenURI(uint256[] calldata tokenIds, string[] calldata uris) external override managerRequired {
        require(tokenIds.length == uris.length, "Invalid input");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _managerSetTokenURI(tokenIds[i], uris[i]);
        }
    }

    /**
     * @dev See {IProjectCore-setBaseTokenURI}.
     */
    function setBaseTokenURI(string calldata uri) external override adminRequired {
        _setBaseTokenURI(uri);
    }

    /**
     * @dev See {IProjectCore-setTokenURIPrefix}.
     */
    function setTokenURIPrefix(string calldata prefix) external override adminRequired {
        _setTokenURIPrefix(prefix);
    }

    /**
     * @dev See {IProjectCore-setTokenURI}.
     */
    function setTokenURI(uint256 tokenId, string calldata uri) external override adminRequired {
        _setTokenURI(tokenId, uri);
    }

    /**
     * @dev See {IProjectCore-setTokenURI}.
     */
    function setTokenURI(uint256[] calldata tokenIds, string[] calldata uris) external override adminRequired {
        require(tokenIds.length == uris.length, "Invalid input");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _setTokenURI(tokenIds[i], uris[i]);
        }
    }

    /**
     * @dev See {IProjectCore-setMintPermissions}.
     */
    function setMintPermissions(address manager, address permissions) external override adminRequired {
        _setMintPermissions(manager, permissions);
    }

    /**
     * @dev See {IERC721ProjectCore-adminMint}.
     */
    function adminMint(address to, string calldata uri)
        external
        virtual
        override
        nonReentrant
        adminRequired
        returns (uint256)
    {
        return _adminMint(to, uri);
    }

    /**
     * @dev See {IERC721ProjectCore-adminMintBatch}.
     */
    function adminMintBatch(address[] calldata recipients, string[] calldata uris)
        external
        virtual
        override
        nonReentrant
        adminRequired
        returns (uint256[] memory tokenIds)
    {
        require(recipients.length == uris.length, "Invalid input");
        tokenIds = new uint256[](recipients.length);
        for (uint16 i = 0; i < recipients.length; i++) {
            tokenIds[i] = _adminMint(recipients[i], uris[i]);
        }
        return tokenIds;
    }

    /**
     * @dev See {IERC721ProjectCore-adminMintBatch}.
     */
    function adminMintBatch(address to, string[] calldata uris)
        external
        virtual
        override
        nonReentrant
        adminRequired
        returns (uint256[] memory tokenIds)
    {
        tokenIds = new uint256[](uris.length);
        for (uint256 i = 0; i < uris.length; i++) {
            tokenIds[i] = _adminMint(to, uris[i]);
        }
        return tokenIds;
    }

    /**
     * @dev Mint token with no manager
     */
    function _adminMint(address to, string memory uri) internal virtual returns (uint256 tokenId) {
        _tokenCount++;
        tokenId = _tokenCount;

        // Track the manager that minted the token
        _tokensManager[tokenId] = address(this);

        _safeMint(to, tokenId);

        if (bytes(uri).length > 0) {
            _tokenURIs[tokenId] = uri;
        }

        // Call post mint
        _postMintBase(to, tokenId);
        return tokenId;
    }

    /**
     * @dev See {IERC721ProjectCore-managerMint}.
     */
    function managerMint(address to, string calldata uri)
        external
        virtual
        override
        nonReentrant
        managerRequired
        returns (uint256)
    {
        return _managerMint(to, uri);
    }

    /**
     * @dev See {IERC721ProjectCore-managerMintBatch}.
     */
    function managerMintBatch(address[] calldata recipients, string[] calldata uris)
        external
        virtual
        override
        nonReentrant
        managerRequired
        returns (uint256[] memory tokenIds)
    {
        require(recipients.length == uris.length, "Invalid input");
        tokenIds = new uint256[](recipients.length);
        for (uint16 i = 0; i < recipients.length; i++) {
            tokenIds[i] = _managerMint(recipients[i], uris[i]);
        }
        return tokenIds;
    }

    /**
     * @dev See {IERC721ProjectCore-managerMintBatch}.
     */
    function managerMintBatch(address to, string[] calldata uris)
        external
        virtual
        override
        nonReentrant
        managerRequired
        returns (uint256[] memory tokenIds)
    {
        tokenIds = new uint256[](uris.length);
        for (uint256 i = 0; i < uris.length; i++) {
            tokenIds[i] = _managerMint(to, uris[i]);
        }
    }

    /**
     * @dev Mint token via manager
     */
    function _managerMint(address to, string memory uri) internal virtual returns (uint256 tokenId) {
        _tokenCount++;
        tokenId = _tokenCount;

        _checkMintPermissions(to, tokenId);

        // Track the manager that minted the token
        _tokensManager[tokenId] = msg.sender;

        _safeMint(to, tokenId);

        if (bytes(uri).length > 0) {
            _tokenURIs[tokenId] = uri;
        }

        // Call post mint
        _postMintManager(to, tokenId);
        return tokenId;
    }

    /**
     * @dev See {IERC721ProjectCore-tokenManager}.
     */
    function tokenManager(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "Nonexistent token");
        return _tokenManager(tokenId);
    }

    /**
     * @dev See {IERC721ProjectCore-burn}.
     */
    function burn(uint256 tokenId) public virtual override nonReentrant {
        require(_isApprovedOrOwner(msg.sender, tokenId), "Caller is not owner nor approved");
        address owner = ownerOf(tokenId);
        _burn(tokenId);
        _postBurn(owner, tokenId);
    }

    /**
     * @dev See {IProjectCore-setDefaultRoyalties}.
     */
    function setDefaultRoyalty(address receiver, uint256 royaltyBPs) external override adminRequired {
        _setDefaultRoyalty(receiver, royaltyBPs);
    }

    /**
     * @dev See {IProjectCore-setTokenRoyalties}.
     */
    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint256 royaltyBPs
    ) external override adminRequired {
        _setTokenRoyalty(tokenId, receiver, royaltyBPs);
    }

    /**
     * @dev See {IProjectCore-setContractURI}
     */
    function setContractURI(string memory _uri) external override adminRequired {
        _setContractURI(_uri);
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _tokenURI(tokenId);
    }

    function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}

    uint256[50] private __gap;
}

File 3 of 34 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 4 of 34 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 5 of 34 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate that the this implementation remains valid after an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 6 of 34 : AdminControlUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "./IAdminControlUpgradeable.sol";

abstract contract AdminControlUpgradeable is
    Initializable,
    OwnableUpgradeable,
    IAdminControlUpgradeable,
    ERC165Upgradeable
{
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;

    // Track registered admins
    EnumerableSetUpgradeable.AddressSet private _admins;

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __AdminControl_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
        __ERC165_init_unchained();
        __AdminControl_init_unchained();
    }

    function __AdminControl_init_unchained() internal initializer {}

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

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(isAdmin(_msgSender()), "AdminControl: Must be owner or admin");
        _;
    }

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint256 i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (_admins.add(admin)) {
            emit AdminApproved(admin, msg.sender);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.remove(admin)) {
            emit AdminRevoked(admin, msg.sender);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public view override returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

    uint256[49] private __gap;
}

File 7 of 34 : ERC721ProjectCoreUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

import "../../managers/ERC721/IERC721ProjectApproveTransferManager.sol";
import "../../managers/ERC721/IERC721ProjectBurnableManager.sol";
import "../../permissions/ERC721/IERC721ProjectMintPermissions.sol";
import "./IERC721ProjectCoreUpgradeable.sol";
import "../project-base/ProjectCoreUpgradeable.sol";

/**
 * @dev Core ERC721 project implementation
 */
abstract contract ERC721ProjectCoreUpgradeable is Initializable, ProjectCoreUpgradeable, IERC721ProjectCoreUpgradeable {
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;

    uint256 _tokenCount;

    /**
     * @dev initializer
     */
    function __ERC721ProjectCore_init() internal initializer {
        __ProjectCore_init_unchained();
        __ReentrancyGuard_init_unchained();
        __ERC165_init_unchained();
        __ERC721ProjectCore_init_unchained();
    }

    function __ERC721ProjectCore_init_unchained() internal initializer {}

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

    /**
     * @dev totalSupply
     */
    function totalSupply() public view override returns (uint256) {
        return _tokenCount;
    }

    /**
     * @dev See {IProjectCore-managerSetApproveTransfer}.
     */
    function managerSetApproveTransfer(bool enabled) external override managerRequired {
        require(
            !enabled ||
                ERC165CheckerUpgradeable.supportsInterface(
                    msg.sender,
                    type(IERC721ProjectApproveTransferManager).interfaceId
                ),
            "Manager must implement IERC721ProjectApproveTransferManager"
        );
        if (_managerApproveTransfers[msg.sender] != enabled) {
            _managerApproveTransfers[msg.sender] = enabled;
            emit ManagerApproveTransferUpdated(msg.sender, enabled);
        }
    }

    /**
     * @dev Set mint permissions for an manager
     */
    function _setMintPermissions(address manager, address permissions) internal {
        require(_managers.contains(manager), "ProjectCore: Invalid manager");
        require(
            permissions == address(0x0) ||
                ERC165CheckerUpgradeable.supportsInterface(
                    permissions,
                    type(IERC721ProjectMintPermissions).interfaceId
                ),
            "Invalid address"
        );
        if (_managerPermissions[manager] != permissions) {
            _managerPermissions[manager] = permissions;
            emit MintPermissionsUpdated(manager, permissions, msg.sender);
        }
    }

    /**
     * Check if an manager can mint
     */
    function _checkMintPermissions(address to, uint256 tokenId) internal {
        if (_managerPermissions[msg.sender] != address(0x0)) {
            IERC721ProjectMintPermissions(_managerPermissions[msg.sender]).approveMint(msg.sender, to, tokenId);
        }
    }

    /**
     * Override for post mint actions
     */
    function _postMintBase(address, uint256) internal virtual {}

    /**
     * Override for post mint actions
     */
    function _postMintManager(address, uint256) internal virtual {}

    /**
     * Post-burning callback and metadata cleanup
     */
    function _postBurn(address owner, uint256 tokenId) internal virtual {
        // Callback to originating manager if needed
        if (_tokensManager[tokenId] != address(this)) {
            if (
                ERC165CheckerUpgradeable.supportsInterface(
                    _tokensManager[tokenId],
                    type(IERC721ProjectBurnableManager).interfaceId
                )
            ) {
                IERC721ProjectBurnableManager(_tokensManager[tokenId]).onBurn(owner, tokenId);
            }
        }
        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
        // Delete token origin manager tracking
        delete _tokensManager[tokenId];
    }

    /**
     * Approve a transfer
     */
    function _approveTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal {
        if (_managerApproveTransfers[_tokensManager[tokenId]]) {
            require(
                IERC721ProjectApproveTransferManager(_tokensManager[tokenId]).approveTransfer(from, to, tokenId),
                "ERC721Project: Manager approval failure"
            );
        }
    }

    uint256[49] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 11 of 34 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

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

File 12 of 34 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 13 of 34 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 15 of 34 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @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 16 of 34 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 17 of 34 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 18 of 34 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 19 of 34 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

File 21 of 34 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 22 of 34 : IAdminControlUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";

/**
 * @dev Interface for admin control
 */
interface IAdminControlUpgradeable is IERC165Upgradeable {
    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);
}

File 23 of 34 : IERC721ProjectApproveTransferManager.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * Implement this if you want your manager to approve a transfer
 */
interface IERC721ProjectApproveTransferManager is IERC165 {
    /**
     * @dev Set whether or not the project will check the manager for approval of token transfer
     */
    function setApproveTransfer(address project, bool enabled) external;

    /**
     * @dev Called by project contract to approve a transfer
     */
    function approveTransfer(
        address from,
        address to,
        uint256 tokenId
    ) external returns (bool);
}

File 24 of 34 : IERC721ProjectBurnableManager.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Your manager is required to implement this interface if it wishes
 * to receive the onBurn callback whenever a token the manager created is
 * burned
 */
interface IERC721ProjectBurnableManager is IERC165 {
    /**
     * @dev callback handler for burn events
     */
    function onBurn(address owner, uint256 tokenId) external;
}

File 25 of 34 : IERC721ProjectMintPermissions.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721Project compliant manager contracts.
 */
interface IERC721ProjectMintPermissions is IERC165 {
    /**
     * @dev get approval to mint
     */
    function approveMint(
        address manager,
        address to,
        uint256 tokenId
    ) external;
}

File 26 of 34 : IERC721ProjectCoreUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "../project-base/IProjectCoreUpgradeable.sol";

/**
 * @dev Core ERC721 project interface
 */
interface IERC721ProjectCoreUpgradeable is IProjectCoreUpgradeable {
    /**
     * @dev totalSupply
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev mint a token with no manager. Can only be called by an admin. set uri to empty string to use default uri.
     * Returns tokenId minted
     */
    function adminMint(address to, string calldata uri) external returns (uint256);

    /**
     * @dev batch mint a token with no manager. Can only be called by an admin.
     * Returns tokenId minted
     */
    function adminMintBatch(address[] calldata recipients, string[] calldata uris) external returns (uint256[] memory);

    /**
     * @dev batch mint a token with no manager. Can only be called by an admin.
     * Returns tokenId minted
     */
    function adminMintBatch(address to, string[] calldata uris) external returns (uint256[] memory);

    /**
     * @dev mint a token. Can only be called by a registered manager. set uri to "" to use default uri
     * Returns tokenId minted
     */
    function managerMint(address to, string calldata uri) external returns (uint256);

    /**
     * @dev batch mint a token. Can only be called by a registered manager.
     * Returns tokenIds minted
     */
    function managerMintBatch(address[] calldata recipients, string[] calldata uris)
        external
        returns (uint256[] memory);

    /**
     * @dev batch mint a token. Can only be called by a registered manager.
     * Returns tokenId minted
     */
    function managerMintBatch(address to, string[] calldata uris) external returns (uint256[] memory);

    /**
     * @dev burn a token. Can only be called by token owner or approved address.
     * On burn, calls back to the registered manager's onBurn method
     */
    function burn(uint256 tokenId) external;
}

File 27 of 34 : ProjectCoreUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165CheckerUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

import "../../managers/project-token-uri-manager/IProjectTokenURIManager.sol";
import "./IProjectCoreUpgradeable.sol";
import "../ERC2981/ERC2981Upgradeable.sol";

/**
 * @dev Core project implementation
 */
abstract contract ProjectCoreUpgradeable is
    Initializable,
    ERC165Upgradeable,
    ERC2981Upgradeable,
    IProjectCoreUpgradeable,
    ReentrancyGuardUpgradeable
{
    using StringsUpgradeable for uint256;
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;
    using AddressUpgradeable for address;

    // Track registered managers data
    EnumerableSetUpgradeable.AddressSet internal _managers;
    EnumerableSetUpgradeable.AddressSet internal _blacklistedManagers;
    mapping(address => address) internal _managerPermissions;
    mapping(address => bool) internal _managerApproveTransfers;

    // For tracking which manager a token was minted by
    mapping(uint256 => address) internal _tokensManager;

    // The baseURI for a given manager
    mapping(address => string) private _managerBaseURI;
    mapping(address => bool) private _managerBaseURIIdentical;

    // The prefix for any tokens with a uri configured
    mapping(address => string) private _managerURIPrefix;

    // Mapping for individual token URIs
    mapping(uint256 => string) internal _tokenURIs;
    string internal _contractURI;

    /**
     * @dev initializer
     */
    function __ProjectCore_init() internal initializer {
        __ERC2981_init_unchained();
        __ERC165_init_unchained();
        __ReentrancyGuard_init_unchained();
        __ProjectCore_init_unchained();
    }

    function __ProjectCore_init_unchained() internal initializer {}

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

    /**
     * @dev Only allows registered managers to call the specified function
     */
    modifier managerRequired() {
        require(_managers.contains(msg.sender), "Must be registered manager");
        _;
    }

    /**
     * @dev Only allows non-blacklisted managers
     */
    modifier nonBlacklistRequired(address manager) {
        require(!_blacklistedManagers.contains(manager), "Manager blacklisted");
        _;
    }

    /**
     * @dev See {IProjectCore-contractURI}.
     */
    function contractURI() external view override returns (string memory) {
        return _contractURI;
    }

    /**
     * @dev See {IProjectCore-getManagers}.
     */
    function getManagers() external view override returns (address[] memory managers) {
        managers = new address[](_managers.length());
        for (uint256 i = 0; i < _managers.length(); i++) {
            managers[i] = _managers.at(i);
        }
        return managers;
    }

    /**
     * @dev Register an manager
     */
    function _registerManager(
        address manager,
        string calldata baseURI,
        bool baseURIIdentical
    ) internal {
        require(manager != address(this), "Project: Invalid");
        require(manager.isContract(), "Project: Manager must be a contract");
        if (_managers.add(manager)) {
            _managerBaseURI[manager] = baseURI;
            _managerBaseURIIdentical[manager] = baseURIIdentical;
            emit ManagerRegistered(manager, msg.sender);
        }
    }

    /**
     * @dev Unregister an manager
     */
    function _unregisterManager(address manager) internal {
        if (_managers.remove(manager)) {
            emit ManagerUnregistered(manager, msg.sender);
        }
    }

    /**
     * @dev Blacklist an manager
     */
    function _blacklistManager(address manager) internal {
        require(manager != address(this), "Cannot blacklist yourself");
        if (_managers.remove(manager)) {
            emit ManagerUnregistered(manager, msg.sender);
        }
        if (_blacklistedManagers.add(manager)) {
            emit ManagerBlacklisted(manager, msg.sender);
        }
    }

    /**
     * @dev Set base token uri for an manager
     */
    function _managerSetBaseTokenURI(string calldata uri, bool identical) internal {
        _managerBaseURI[msg.sender] = uri;
        _managerBaseURIIdentical[msg.sender] = identical;
    }

    /**
     * @dev Set token uri prefix for an manager
     */
    function _managerSetTokenURIPrefix(string calldata prefix) internal {
        _managerURIPrefix[msg.sender] = prefix;
    }

    /**
     * @dev Set token uri for a token of an manager
     */
    function _managerSetTokenURI(uint256 tokenId, string calldata uri) internal {
        require(_tokensManager[tokenId] == msg.sender, "Invalid token");
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Set base token uri for tokens with no manager
     */
    function _setBaseTokenURI(string memory uri) internal {
        _managerBaseURI[address(this)] = uri;
    }

    /**
     * @dev Set token uri prefix for tokens with no manager
     */
    function _setTokenURIPrefix(string calldata prefix) internal {
        _managerURIPrefix[address(this)] = prefix;
    }

    /**
     * @dev Set token uri for a token with no manager
     */
    function _setTokenURI(uint256 tokenId, string calldata uri) internal {
        require(_tokensManager[tokenId] == address(this), "Invalid token");
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Retrieve a token's URI
     */
    function _tokenURI(uint256 tokenId) internal view returns (string memory) {
        address manager = _tokensManager[tokenId];
        require(!_blacklistedManagers.contains(manager), "Manager blacklisted");

        // 1. if tokenURI is stored in this contract, use it with managerURIPrefix if any
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            if (bytes(_managerURIPrefix[manager]).length != 0) {
                return string(abi.encodePacked(_managerURIPrefix[manager], _tokenURIs[tokenId]));
            }
            return _tokenURIs[tokenId];
        }

        // 2. if URI is controlled by manager, retrieve it from manager
        if (ERC165CheckerUpgradeable.supportsInterface(manager, type(IProjectTokenURIManager).interfaceId)) {
            return IProjectTokenURIManager(manager).tokenURI(address(this), tokenId);
        }

        // 3. use managerBaseURI with id or not
        if (!_managerBaseURIIdentical[manager]) {
            return string(abi.encodePacked(_managerBaseURI[manager], tokenId.toString()));
        } else {
            return _managerBaseURI[manager];
        }
    }

    /**
     * Get token manager
     */
    function _tokenManager(uint256 tokenId) internal view returns (address manager) {
        manager = _tokensManager[tokenId];

        require(manager != address(this), "No manager for token");
        require(!_blacklistedManagers.contains(manager), "Manager blacklisted");

        return manager;
    }

    function _setContractURI(string memory uri) internal {
        _contractURI = uri;
        emit ContractURISet(uri);
    }

    uint256[41] private __gap;
}

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

pragma solidity ^0.8.0;

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

File 29 of 34 : IProjectCoreUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";
import "../ERC2981/IERC2981Upgradeable.sol";

/**
 * @dev Core project interface
 */
interface IProjectCoreUpgradeable is IERC165Upgradeable, IERC2981Upgradeable {
    event ManagerRegistered(address indexed manager, address indexed sender);
    event ManagerUnregistered(address indexed manager, address indexed sender);
    event ManagerBlacklisted(address indexed manager, address indexed sender);
    event MintPermissionsUpdated(address indexed manager, address indexed permissions, address indexed sender);
    event RoyaltiesUpdated(uint256 indexed tokenId, address payable[] receivers, uint256[] basisPoints);
    event DefaultRoyaltiesUpdated(address payable[] receivers, uint256[] basisPoints);
    event ManagerRoyaltiesUpdated(address indexed manager, address payable[] receivers, uint256[] basisPoints);
    event ManagerApproveTransferUpdated(address indexed manager, bool enabled);
    event ContractURISet(string uri);

    /**
     * @dev gets contract level URI. see https://docs.opensea.io/docs/contract-level-metadata
     */
    function contractURI() external view returns (string memory);

    /**
     * @dev gets address of all managers
     */
    function getManagers() external view returns (address[] memory);

    /**
     * @dev add an manager.  Can only be called by contract owner or admin.
     * manager address must point to a contract implementing IProjectManager.
     * Returns True if newly added, False if already added.
     */
    function registerManager(
        address manager,
        string calldata baseURI,
        bool baseURIIdentical
    ) external;

    /**
     * @dev add an manager.  Can only be called by contract owner or admin.
     * Returns True if removed, False if already removed.
     */
    function unregisterManager(address manager) external;

    /**
     * @dev blacklist an manager.  Can only be called by contract owner or admin.
     * This function will destroy all ability to reference the metadata of any tokens created
     * by the specified manager. It will also unregister the manager if needed.
     * Returns True if removed, False if already removed.
     */
    function blacklistManager(address manager) external;

    /**
     * @dev set the baseTokenURI of an manager.  Can only be called by manager.
     * For tokens with no uri configured, tokenURI will return "uri+tokenId"
     */
    function managerSetBaseTokenURI(string calldata uri, bool identical) external;

    /**
     * @dev set the common prefix of an manager.  Can only be called by manager.
     * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI"
     * Useful if you want to use ipfs/arweave
     */
    function managerSetTokenURIPrefix(string calldata prefix) external;

    /**
     * @dev set the tokenURI of a token manager.  Can only be called by manager that minted token.
     */
    function managerSetTokenURI(uint256 tokenId, string calldata uri) external;

    /**
     * @dev set the tokenURI of a token manager for multiple tokens.  Can only be called by manager that minted token.
     */
    function managerSetTokenURI(uint256[] calldata tokenId, string[] calldata uri) external;

    /**
     * @dev set the baseTokenURI for tokens with no manager.  Can only be called by owner/admin.
     * For tokens with no uri configured, tokenURI will return "uri+tokenId"
     */
    function setBaseTokenURI(string calldata uri) external;

    /**
     * @dev set the common prefix for tokens with no manager.  Can only be called by owner/admin.
     * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI"
     * Useful if you want to use ipfs/arweave
     */
    function setTokenURIPrefix(string calldata prefix) external;

    /**
     * @dev set the tokenURI of a token with no manager.  Can only be called by owner/admin.
     */
    function setTokenURI(uint256 tokenId, string calldata uri) external;

    /**
     * @dev set the tokenURI of multiple tokens with no manager.  Can only be called by owner/admin.
     */
    function setTokenURI(uint256[] calldata tokenIds, string[] calldata uris) external;

    /**
     * @dev set a permissions contract for an manager.  Used to control minting.
     */
    function setMintPermissions(address manager, address permissions) external;

    /**
     * @dev Configure so transfers of tokens created by the caller (must be manager) gets approval
     * from the manager before transferring
     */
    function managerSetApproveTransfer(bool enabled) external;

    /**
     * @dev get the manager of a given token
     */
    function tokenManager(uint256 tokenId) external view returns (address);

    /**
     * @dev Set default royalty
     */
    function setDefaultRoyalty(address receiver, uint256 royaltyBPs) external;

    /**
     * @dev Set royalty for specifically token
     */
    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint256 royaltyBPs
    ) external;

    /**
     * @dev Set Contract URI, see https://docs.opensea.io/docs/contract-level-metadata
     */
    function setContractURI(string memory _uri) external;
}

File 30 of 34 : IERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";

///
/// @dev Interface for the NFT Royalty Standard
///
interface IERC2981Upgradeable is IERC165Upgradeable {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);

    /// @notice Informs callers that this contract supports ERC2981
    /// @dev If `_registerInterface(_INTERFACE_ID_ERC2981)` is called
    ///      in the initializer, this should be automatic
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @return `true` if the contract implements
    ///         `_INTERFACE_ID_ERC2981` and `false` otherwise
    function supportsInterface(bytes4 interfaceID) external view override returns (bool);
}

File 31 of 34 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 32 of 34 : ERC165CheckerUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165CheckerUpgradeable {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165Upgradeable).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165Upgradeable.supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}

File 33 of 34 : IProjectTokenURIManager.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Implement this if you want your manager to have overloadable URI's
 */
interface IProjectTokenURIManager is IERC165 {
    /**
     * Get the uri for a given project/tokenId
     */
    function tokenURI(address project, uint256 tokenId) external view returns (string memory);
}

File 34 of 34 : ERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";

import "./IERC2981Upgradeable.sol";

abstract contract ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable {
    struct Royalty {
        address receiver;
        uint256 bps;
    }

    // bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

    // token id -> royalty
    mapping(uint256 => Royalty) public royaltyMap;
    address public defaultRoyaltyReceiver;
    uint256 public defaultRoyaltyBPs;

    event RoyaltySet(uint256 indexed tokenId, address receiver, uint256 royaltyBPs);
    event DefaultRoyaltySet(address receiver, uint256 royaltyBPs);

    modifier onlyValidRoyalty(address _receiver, uint256 _royaltyBPs) {
        require(_receiver != address(0), "_receiver can not be 0x0");
        require(_royaltyBPs <= 10000, "_royaltyBPs should less than 10000");
        _;
    }

    function __ERC2981_init() internal initializer {
        __ERC165_init_unchained();
        __ERC2981_init_unchained();
    }

    function __ERC2981_init_unchained() internal initializer {}

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        Royalty memory royalty = royaltyMap[_tokenId];
        receiver = royalty.receiver;
        uint256 bps = royalty.bps;
        // if this token not set specifically, use default settings
        if (receiver == address(0)) {
            receiver = defaultRoyaltyReceiver;
            bps = defaultRoyaltyBPs;
        }
        // if default is not set either, royaltyAmount is 0
        royaltyAmount = (_salePrice * bps) / 10000;
    }

    function _setTokenRoyalty(
        uint256 _id,
        address _receiver,
        uint256 _royaltyBPs
    ) internal onlyValidRoyalty(_receiver, _royaltyBPs) {
        royaltyMap[_id] = Royalty({receiver: _receiver, bps: _royaltyBPs});
        emit RoyaltySet(_id, _receiver, _royaltyBPs);
    }

    // all tokens that not set specifically can use default royalty
    function _setDefaultRoyalty(address _receiver, uint256 _royaltyBPs)
        internal
        onlyValidRoyalty(_receiver, _royaltyBPs)
    {
        defaultRoyaltyReceiver = _receiver;
        defaultRoyaltyBPs = _royaltyBPs;
        emit DefaultRoyaltySet(_receiver, _royaltyBPs);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * ERC165 bytes to add to interface array - set in parent contract
     * implementing this standard
     *
     * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
     * bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
     * _registerInterface(_INTERFACE_ID_ERC2981);
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC2981Upgradeable, ERC165Upgradeable)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981Upgradeable).interfaceId ||
            interfaceId == _INTERFACE_ID_ERC2981 ||
            super.supportsInterface(interfaceId);
    }

    uint256[46] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"ContractURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"DefaultRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltyBPs","type":"uint256"}],"name":"DefaultRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ManagerApproveTransferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ManagerBlacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ManagerRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"ManagerRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ManagerUnregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"manager","type":"address"},{"indexed":true,"internalType":"address","name":"permissions","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"MintPermissionsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"RoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltyBPs","type":"uint256"}],"name":"RoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"adminMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"adminMintBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"adminMintBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"blacklistManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyBPs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getManagers","outputs":[{"internalType":"address[]","name":"managers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"managerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"managerMintBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"managerMintBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"managerSetApproveTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"bool","name":"identical","type":"bool"}],"name":"managerSetBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"managerSetTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"managerSetTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"managerSetTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"baseURIIdentical","type":"bool"}],"name":"registerManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyMap","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyBPs","type":"uint256"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"permissions","type":"address"}],"name":"setMintPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyBPs","type":"uint256"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"unregisterManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523060601b6080523480156200001857600080fd5b50600054610100900460ff16620000365760005460ff161562000040565b62000040620000ee565b620000a85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000d4576000805460ff1961ff0019909116610100171660011790555b8015620000e7576000805461ff00191690555b506200011b565b600062000106306200010c60201b6200286c1760201c565b15905090565b6001600160a01b03163b151590565b60805160601c615a01620001566000396000818161110a0152818161118f0152818161141a0152818161149f01526115d50152615a016000f3fe6080604052600436106103605760003560e01c8063715018a6116101c6578063ada4a768116100f7578063e95b526b11610095578063f0cdc4991161006f578063f0cdc499146109f4578063f229c67014610a14578063f2fde38b14610a34578063f4072dc214610a5457610360565b8063e95b526b1461099e578063e985e9c5146109be578063e9c5d7b9146109de57610360565b8063d8d045b4116100d1578063d8d045b414610929578063e461aa2314610949578063e492bf8d14610969578063e8a3d4851461098957610360565b8063ada4a768146108c9578063b88d4fde146108e9578063c87b56dd1461090957610360565b806399e0dd7c11610164578063a24db95d1161013e578063a24db95d14610834578063a6e9d54614610854578063a8d088bb14610894578063aafb2d44146108a957610360565b806399e0dd7c146107d4578063a0b91cb0146107f4578063a22cb4651461081457610360565b80638da5cb5b116101a05780638da5cb5b14610761578063938e3d7b1461077f57806395d89b411461079f5780639713c807146107b457610360565b8063715018a6146106ff57806372839f1e1461071457806388d5786c1461074157610360565b80633659cfe6116102a057806352d1902d1161023e5780636352211e116102185780636352211e1461067f5780636502abea1461069f5780636d73e669146106bf57806370a08231146106df57610360565b806352d1902d1461062a5780635919c74b1461063f5780635d986cd31461065f57610360565b80634ac824e11161027a5780634ac824e1146105b75780634cd88b76146105d75780634f1ef286146105f7578063522543d11461060a57610360565b80633659cfe61461055757806342842e0e1461057757806342966c681461059757610360565b806318160ddd1161030d5780632a55205a116102e75780632a55205a146104b65780632d345670146104f557806330176e131461051557806331ae450b1461053557610360565b806318160ddd1461045657806323b872dd1461047657806324d7806c1461049657610360565b8063095ea7b31161033e578063095ea7b3146103f457806312d9e9a014610416578063162094c41461043657610360565b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc575b600080fd5b34801561037157600080fd5b5061038561038036600461522d565b610a74565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a87565b604051610391919061564d565b3480156103c857600080fd5b506103dc6103d73660046153ee565b610b19565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f36600461514b565b610bb3565b005b34801561042257600080fd5b50610414610431366004615174565b610cc9565b34801561044257600080fd5b5061041461045136600461542a565b610dd3565b34801561046257600080fd5b50610194545b604051908152602001610391565b34801561048257600080fd5b50610414610491366004614f2f565b610e03565b3480156104a257600080fd5b506103856104b1366004614ee3565b610e7e565b3480156104c257600080fd5b506104d66104d136600461545b565b610eb7565b604080516001600160a01b039093168352602083019190915201610391565b34801561050157600080fd5b50610414610510366004614ee3565b610f28565b34801561052157600080fd5b50610414610530366004615265565b610fcc565b34801561054157600080fd5b5061054a611034565b60405161039191906155c8565b34801561056357600080fd5b50610414610572366004614ee3565b6110ff565b34801561058357600080fd5b50610414610592366004614f2f565b611278565b3480156105a357600080fd5b506104146105b23660046153ee565b611293565b3480156105c357600080fd5b506104146105d2366004614ee3565b61135b565b3480156105e357600080fd5b506104146105f2366004615397565b611389565b610414610605366004615057565b61140f565b34801561061657600080fd5b50610414610625366004615265565b611578565b34801561063657600080fd5b506104686115c8565b34801561064b57600080fd5b5061046861065a3660046150a3565b61168d565b34801561066b57600080fd5b5061041461067a36600461542a565b61174a565b34801561068b57600080fd5b506103dc61069a3660046153ee565b61179b565b3480156106ab57600080fd5b506103dc6106ba3660046153ee565b611812565b3480156106cb57600080fd5b506104146106da366004614ee3565b611873565b3480156106eb57600080fd5b506104686106fa366004614ee3565b611916565b34801561070b57600080fd5b5061041461199d565b34801561072057600080fd5b5061073461072f366004614fd0565b611a03565b6040516103919190615615565b34801561074d57600080fd5b5061041461075c3660046151dd565b611bac565b34801561076d57600080fd5b506033546001600160a01b03166103dc565b34801561078b57600080fd5b5061041461079a3660046152fa565b611cf1565b3480156107ab57600080fd5b506103af611d1f565b3480156107c057600080fd5b506104146107cf366004615406565b611d2e565b3480156107e057600080fd5b506104146107ef366004615265565b611d5e565b34801561080057600080fd5b5061073461080f366004615174565b611d8d565b34801561082057600080fd5b5061041461082f366004615021565b611f99565b34801561084057600080fd5b5061041461084f3660046150e7565b611fa4565b34801561086057600080fd5b506104d661086f3660046153ee565b60fc60205260009081526040902080546001909101546001600160a01b039091169082565b3480156108a057600080fd5b5061054a612025565b3480156108b557600080fd5b506104146108c4366004615174565b6120ef565b3480156108d557600080fd5b506104146108e4366004614ee3565b6121d1565b3480156108f557600080fd5b50610414610904366004614f6a565b6121ff565b34801561091557600080fd5b506103af6109243660046153ee565b612281565b34801561093557600080fd5b5061041461094436600461514b565b6122e5565b34801561095557600080fd5b5060fd546103dc906001600160a01b031681565b34801561097557600080fd5b506104146109843660046152a5565b612314565b34801561099557600080fd5b506103af612365565b3480156109aa57600080fd5b506107346109b9366004615174565b612375565b3480156109ca57600080fd5b506103856109d9366004614efd565b612547565b3480156109ea57600080fd5b5061046860fe5481565b348015610a0057600080fd5b50610414610a0f366004614efd565b612577565b348015610a2057600080fd5b50610468610a2f3660046150a3565b6125a6565b348015610a4057600080fd5b50610414610a4f366004614ee3565b612676565b348015610a6057600080fd5b50610734610a6f366004614fd0565b61273e565b6000610a7f8261287b565b90505b919050565b606060ca8054610a9690615878565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac290615878565b8015610b0f5780601f10610ae457610100808354040283529160200191610b0f565b820191906000526020600020905b815481529060010190602001808311610af257829003601f168201915b5050505050905090565b600081815260cc60205260408120546001600160a01b0316610b975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260ce60205260409020546001600160a01b031690565b6000610bbe8261179b565b9050806001600160a01b0316836001600160a01b03161415610c2c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8e565b336001600160a01b0382161480610c485750610c4881336109d9565b610cba5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8e565b610cc483836128a0565b505050565b610cd561015f3361290e565b610d0f5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b828114610d4e5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b60005b83811015610dcc57610dba858583818110610d7c57634e487b7160e01b600052603260045260246000fd5b90506020020135848484818110610da357634e487b7160e01b600052603260045260246000fd5b9050602002810190610db5919061574c565b612933565b80610dc4816158cf565b915050610d51565b5050505050565b610ddc336104b1565b610df85760405162461bcd60e51b8152600401610b8e906156bd565b610cc48383836129a4565b610e0d33826129fb565b610e735760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610b8e565b610cc4838383612ad2565b6000816001600160a01b0316610e9c6033546001600160a01b031690565b6001600160a01b03161480610a7f5750610a7f60978361290e565b600082815260fc60209081526040808320815180830190925280546001600160a01b0316808352600190910154928201839052929183610f06575060fd5460fe546001600160a01b0390911693505b612710610f138287615816565b610f1d9190615802565b925050509250929050565b6033546001600160a01b03163314610f825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b610f8d609782612c79565b15610fc95760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a35b50565b610fd5336104b1565b610ff15760405162461bcd60e51b8152600401610b8e906156bd565b61103082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c8e92505050565b5050565b60606110406097612caf565b67ffffffffffffffff81111561106657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108f578160200160208202803683370190505b50905060005b61109f6097612caf565b8110156110fb576110b1609782612cb9565b8282815181106110d157634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806110f3816158cf565b915050611095565b5090565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561118d5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b8e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111e87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146112535760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b8e565b61125c81612cc5565b60408051600080825260208201909252610fc991839190612d1f565b610cc4838383604051806020016040528060008152506121ff565b600261012d5414156112d55760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556112e533826129fb565b6113315760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610b8e565b600061133c8261179b565b905061134782612ebf565b6113518183612f67565b5050600161012d55565b611364336104b1565b6113805760405162461bcd60e51b8152600401610b8e906156bd565b610fc981613083565b600054610100900460ff166113a45760005460ff16156113a8565b303b155b6113c45760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156113ef576000805460ff1961ff0019909116610100171660011790555b6113f9838361316e565b8015610cc4576000805461ff0019169055505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561149d5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b8e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166114f87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115635760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b8e565b61156c82612cc5565b61103082826001612d1f565b61158461015f3361290e565b6115be5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b61103082826131f6565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116685760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b8e565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6000600261012d5414156116d15760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556116e0336104b1565b6116fc5760405162461bcd60e51b8152600401610b8e906156bd565b61173c8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321192505050565b600161012d55949350505050565b61175661015f3361290e565b6117905760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b610cc4838383612933565b600081815260cc60205260408120546001600160a01b031680610a7f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8e565b600081815260cc60205260408120546001600160a01b031661186a5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610b8e565b610a7f82613285565b6033546001600160a01b031633146118cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b6118d860978261333d565b15610fc95760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a350565b60006001600160a01b0382166119815760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8e565b506001600160a01b0316600090815260cd602052604090205490565b6033546001600160a01b031633146119f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b611a016000613352565b565b6060600261012d541415611a475760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55611a5961015f3361290e565b611a935760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b8167ffffffffffffffff811115611aba57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ae3578160200160208202803683370190505b50905060005b82811015611b9e57611b6185858584818110611b1557634e487b7160e01b600052603260045260246000fd5b9050602002810190611b27919061574c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133a492505050565b828281518110611b8157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611b96816158cf565b915050611ae9565b50600161012d559392505050565b611bb861015f3361290e565b611bf25760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b801580611c0b5750611c0b33634ce6d51160e11b6133f4565b611c7d5760405162461bcd60e51b815260206004820152603b60248201527f4d616e61676572206d75737420696d706c656d656e742049455243373231507260448201527f6f6a656374417070726f76655472616e736665724d616e6167657200000000006064820152608401610b8e565b336000908152610164602052604090205460ff16151581151514610fc9573360008181526101646020908152604091829020805460ff191685151590811790915591519182527fe47f635a589f28dfbd63e4f968448214c1516b874d0ec067c1a451790c36ac10910160405180910390a250565b611cfa336104b1565b611d165760405162461bcd60e51b8152600401610b8e906156bd565b610fc981613410565b606060cb8054610a9690615878565b611d37336104b1565b611d535760405162461bcd60e51b8152600401610b8e906156bd565b610cc483838361345f565b611d67336104b1565b611d835760405162461bcd60e51b8152600401610b8e906156bd565b611030828261359e565b6060600261012d541415611dd15760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55611de0336104b1565b611dfc5760405162461bcd60e51b8152600401610b8e906156bd565b838214611e3b5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b8367ffffffffffffffff811115611e6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e8b578160200160208202803683370190505b50905060005b61ffff8116851115611f8a57611f4986868361ffff16818110611ec457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ed99190614ee3565b85858461ffff16818110611efd57634e487b7160e01b600052603260045260246000fd5b9050602002810190611f0f919061574c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321192505050565b828261ffff1681518110611f6d57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611f82816158ad565b915050611e91565b50600161012d55949350505050565b6110303383836135b9565b611fad336104b1565b611fc95760405162461bcd60e51b8152600401610b8e906156bd565b83611fd66101618261290e565b156120195760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b610dcc85858585613688565b606061203261015f612caf565b67ffffffffffffffff81111561205857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612081578160200160208202803683370190505b50905060005b61209261015f612caf565b8110156110fb576120a561015f82612cb9565b8282815181106120c557634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806120e7816158cf565b915050612087565b6120f8336104b1565b6121145760405162461bcd60e51b8152600401610b8e906156bd565b8281146121535760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b60005b83811015610dcc576121bf85858381811061218157634e487b7160e01b600052603260045260246000fd5b905060200201358484848181106121a857634e487b7160e01b600052603260045260246000fd5b90506020028101906121ba919061574c565b6129a4565b806121c9816158cf565b915050612156565b6121da336104b1565b6121f65760405162461bcd60e51b8152600401610b8e906156bd565b610fc9816137cd565b61220933836129fb565b61226f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610b8e565b61227b84848484613817565b50505050565b600081815260cc60205260409020546060906001600160a01b03166122dc5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610b8e565b610a7f82613895565b6122ee336104b1565b61230a5760405162461bcd60e51b8152600401610b8e906156bd565b6110308282613b56565b61232061015f3361290e565b61235a5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b610cc4838383613c6d565b606061016a8054610a9690615878565b6060600261012d5414156123b95760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556123cb61015f3361290e565b6124055760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b8382146124445760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b8367ffffffffffffffff81111561246b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612494578160200160208202803683370190505b50905060005b61ffff8116851115611f8a5761250686868361ffff168181106124cd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124e29190614ee3565b85858461ffff16818110611b1557634e487b7160e01b600052603260045260246000fd5b828261ffff168151811061252a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061253f816158ad565b91505061249a565b6001600160a01b03808316600090815260cf602090815260408083209385168352929052205460ff165b92915050565b612580336104b1565b61259c5760405162461bcd60e51b8152600401610b8e906156bd565b6110308282613cac565b6000600261012d5414156125ea5760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556125fc61015f3361290e565b6126365760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b61173c8484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133a492505050565b6033546001600160a01b031633146126d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b6001600160a01b0381166127355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8e565b610fc981613352565b6060600261012d5414156127825760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55612791336104b1565b6127ad5760405162461bcd60e51b8152600401610b8e906156bd565b8167ffffffffffffffff8111156127d457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156127fd578160200160208202803683370190505b50905060005b82811015611b9e5761282f85858584818110611efd57634e487b7160e01b600052603260045260246000fd5b82828151811061284f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612864816158cf565b915050612803565b6001600160a01b03163b151590565b60006001600160e01b03198216633ed69c8960e01b1480610a7f5750610a7f82613df2565b600081815260ce6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128d58261179b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b600083815261016560205260409020546001600160a01b0316331461298a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b6044820152606401610b8e565b60008381526101696020526040902061227b908383614cb1565b600083815261016560205260409020546001600160a01b0316301461298a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b6044820152606401610b8e565b600081815260cc60205260408120546001600160a01b0316612a745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8e565b6000612a7f8361179b565b9050806001600160a01b0316846001600160a01b03161480612aba5750836001600160a01b0316612aaf84610b19565b6001600160a01b0316145b80612aca5750612aca8185612547565b949350505050565b826001600160a01b0316612ae58261179b565b6001600160a01b031614612b495760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b8e565b6001600160a01b038216612bab5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8e565b612bb6838383613e17565b612bc16000826128a0565b6001600160a01b038316600090815260cd60205260408120805460019290612bea908490615835565b90915550506001600160a01b038216600090815260cd60205260408120805460019290612c189084906157ea565b9091555050600081815260cc602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610cc4565b600061292c836001600160a01b038416613e22565b30600090815261016660209081526040909120825161103092840190614d31565b6000610a7f825490565b600061292c8383613f3f565b6033546001600160a01b03163314610fc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612d5757612d5283613f77565b610cc4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d9057600080fd5b505afa925050508015612dc0575060408051601f3d908101601f19168201909252612dbd91810190615215565b60015b612e325760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610b8e565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612eb35760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610b8e565b50610cc4838383614025565b6000612eca8261179b565b9050612ed881600084613e17565b612ee36000836128a0565b6001600160a01b038116600090815260cd60205260408120805460019290612f0c908490615835565b9091555050600082815260cc602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611030565b600081815261016560205260409020546001600160a01b0316301461302a5760008181526101656020526040902054612fb0906001600160a01b03166311686e4b60e21b6133f4565b1561302a5760008181526101656020526040908190205490516311686e4b60e21b81526001600160a01b03848116600483015260248201849052909116906345a1b92c90604401600060405180830381600087803b15801561301157600080fd5b505af1158015613025573d6000803e3d6000fd5b505050505b600081815261016960205260409020805461304490615878565b1590506130635760008181526101696020526040812061306391614da5565b60009081526101656020526040902080546001600160a01b031916905550565b6001600160a01b0381163014156130dc5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420626c61636b6c69737420796f757273656c66000000000000006044820152606401610b8e565b6130e861015f82612c79565b156131245760405133906001600160a01b038316907f605ecd285af8d775a646fccb959e452c9fcbc3fb990969d941a79d5e91c9ff0c90600090a35b6131306101618261333d565b15610fc95760405133906001600160a01b038316907f884ad0bc819ed270213c85246d940694ab55524886b6427934dc3a268974ecf590600090a350565b600054610100900460ff166131895760005460ff161561318d565b303b155b6131a95760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156131d4576000805460ff1961ff0019909116610100171660011790555b6131dc61404a565b6131e683836140e4565b6131ee614115565b6113f961418b565b33600090815261016860205260409020610cc4908383614cb1565b610194805460009182613223836158cf565b90915550506101945460008181526101656020526040902080546001600160a01b03191630179055905061325783826141b2565b81511561328057600081815261016960209081526040909120835161327e92850190614d31565b505b612571565b600081815261016560205260409020546001600160a01b0316308114156132ee5760405162461bcd60e51b815260206004820152601460248201527f4e6f206d616e6167657220666f7220746f6b656e0000000000000000000000006044820152606401610b8e565b6132fa6101618261290e565b15610a825760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b600061292c836001600160a01b0384166141cc565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6101948054600091826133b6836158cf565b91905055506101945490506133cb838261421b565b60008181526101656020526040902080546001600160a01b0319163317905561325783826141b2565b60006133ff836142b9565b801561292c575061292c83836142ec565b80516134249061016a906020840190614d31565b507faf497693a87db12ca89131a31edbb3db4bb5702dfb284e8ae7427d185f09112d81604051613454919061564d565b60405180910390a150565b81816001600160a01b0382166134b75760405162461bcd60e51b815260206004820152601860248201527f5f72656365697665722063616e206e6f742062652030783000000000000000006044820152606401610b8e565b6127108111156135145760405162461bcd60e51b815260206004820152602260248201527f5f726f79616c74794250732073686f756c64206c657373207468616e20313030604482015261030360f41b6064820152608401610b8e565b6040805180820182526001600160a01b03868116808352602080840188815260008b815260fc8352869020945185546001600160a01b031916941693909317845591516001909301929092558251918252810185905286917f49018ca4b3b4f0c8442e69b201303bb7f7919a14033768ce71ad07ba63a348a3910160405180910390a25050505050565b30600090815261016860205260409020610cc4908383614cb1565b816001600160a01b0316836001600160a01b0316141561361b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8e565b6001600160a01b03838116600081815260cf6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384163014156136e15760405162461bcd60e51b815260206004820152601060248201527f50726f6a6563743a20496e76616c6964000000000000000000000000000000006044820152606401610b8e565b6001600160a01b0384163b6137445760405162461bcd60e51b815260206004820152602360248201527f50726f6a6563743a204d616e61676572206d757374206265206120636f6e74726044820152621858dd60ea1b6064820152608401610b8e565b61375061015f8561333d565b1561227b576001600160a01b038416600090815261016660205260409020613779908484614cb1565b506001600160a01b03841660008181526101676020526040808220805460ff1916851515179055513392917f8fc18cc172f74c81235145b7927190d2bd0e351fc45bfb17bb572593273cef2191a350505050565b6137d961015f82612c79565b15610fc95760405133906001600160a01b038316907f605ecd285af8d775a646fccb959e452c9fcbc3fb990969d941a79d5e91c9ff0c90600090a350565b613822848484612ad2565b61382e848484846143ea565b61227b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b600081815261016560205260409020546060906001600160a01b03166138bd6101618261290e565b156139005760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b600083815261016960205260409020805461391a90615878565b159050613a38576001600160a01b038116600090815261016860205260409020805461394590615878565b159050613998576001600160a01b0381166000908152610168602090815260408083208684526101698352928190209051613981939201615581565b604051602081830303815290604052915050610a82565b60008381526101696020526040902080546139b290615878565b80601f01602080910402602001604051908101604052809291908181526020018280546139de90615878565b8015613a2b5780601f10613a0057610100808354040283529160200191613a2b565b820191906000526020600020905b815481529060010190602001808311613a0e57829003601f168201915b5050505050915050610a82565b613a498163e9dc637560e01b6133f4565b15613ad85760405163e9dc637560e01b8152306004820152602481018490526001600160a01b0382169063e9dc63759060440160006040518083038186803b158015613a9457600080fd5b505afa158015613aa8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613ad0919081019061532d565b915050610a82565b6001600160a01b0381166000908152610167602052604090205460ff16613b2c576001600160a01b038116600090815261016660205260409020613b1b84614542565b60405160200161398192919061555c565b6001600160a01b03811660009081526101666020526040902080546139b290615878565b50919050565b81816001600160a01b038216613bae5760405162461bcd60e51b815260206004820152601860248201527f5f72656365697665722063616e206e6f742062652030783000000000000000006044820152606401610b8e565b612710811115613c0b5760405162461bcd60e51b815260206004820152602260248201527f5f726f79616c74794250732073686f756c64206c657373207468616e20313030604482015261030360f41b6064820152608401610b8e565b60fd80546001600160a01b0319166001600160a01b03861690811790915560fe84905560408051918252602082018590527fd85b7816dca44c313f0fdadd9567f99f3620a2fac7c21a8a7872e1ac4d10fe55910160405180910390a150505050565b33600090815261016660205260409020613c88908484614cb1565b5033600090815261016760205260409020805460ff19169115159190911790555050565b613cb861015f8361290e565b613d045760405162461bcd60e51b815260206004820152601c60248201527f50726f6a656374436f72653a20496e76616c6964206d616e61676572000000006044820152606401610b8e565b6001600160a01b0381161580613d265750613d2681631e05385b60e31b6133f4565b613d725760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610b8e565b6001600160a01b0382811660009081526101636020526040902054811690821614611030576001600160a01b038281166000818152610163602052604080822080546001600160a01b031916948616948517905551339392917f6a835c4fcf7e0d398db3762332fdaa1471814ad39f1e2d6d0b3fdabf8efee3e091a45050565b60006001600160e01b031982166328dfb2fd60e01b1480610a7f5750610a7f82614675565b612d528383836146b5565b60008181526001830160205260408120548015613f35576000613e46600183615835565b8554909150600090613e5a90600190615835565b9050818114613edb576000866000018281548110613e8857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613eb957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613efa57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612571565b6000915050612571565b6000826000018281548110613f6457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6001600160a01b0381163b613fe45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610b8e565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b61402e836147dc565b60008251118061403b5750805b15610cc45761227b838361481c565b600054610100900460ff166140655760005460ff1615614069565b303b155b6140855760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156140b0576000805460ff1961ff0019909116610100171660011790555b6140b861418b565b6140c0614910565b6140c861418b565b6140d0614940565b8015610fc9576000805461ff001916905550565b600054610100900460ff1661410b5760405162461bcd60e51b8152600401610b8e90615701565b61103082826149b9565b600054610100900460ff166141305760005460ff1615614134565b303b155b6141505760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff1615801561417b576000805460ff1961ff0019909116610100171660011790555b614183614940565b6140c0614a07565b600054610100900460ff16611a015760405162461bcd60e51b8152600401610b8e90615701565b611030828260405180602001604052806000815250614a36565b600081815260018301602052604081205461421357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155612571565b506000612571565b33600090815261016360205260409020546001600160a01b03161561103057336000818152610163602052604090819020549051631e05385b60e31b815260048101929092526001600160a01b03848116602484015260448301849052169063f029c2d890606401600060405180830381600087803b15801561429d57600080fd5b505af11580156142b1573d6000803e3d6000fd5b505050505050565b60006142cc826301ffc9a760e01b6142ec565b8015610a7f57506142e5826001600160e01b03196142ec565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b179052905160009190829081906001600160a01b0387169061753090614368908690615540565b6000604051808303818686fa925050503d80600081146143a4576040519150601f19603f3d011682016040523d82523d6000602084013e6143a9565b606091505b50915091506020815110156143c45760009350505050612571565b8180156143e05750808060200190518101906143e091906151f9565b9695505050505050565b60006001600160a01b0384163b1561453757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061442e903390899088908890600401615596565b602060405180830381600087803b15801561444857600080fd5b505af1925050508015614478575060408051601f3d908101601f1916820190925261447591810190615249565b60015b61451d573d8080156144a6576040519150601f19603f3d011682016040523d82523d6000602084013e6144ab565b606091505b5080516145155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612aca565b506001949350505050565b60608161456757506040805180820190915260018152600360fc1b6020820152610a82565b8160005b8115614591578061457b816158cf565b915061458a9050600a83615802565b915061456b565b60008167ffffffffffffffff8111156145ba57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156145e4576020820181803683370190505b5090505b8415612aca576145f9600183615835565b9150614606600a866158ea565b6146119060306157ea565b60f81b81838151811061463457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061466e600a86615802565b94506145e8565b60006001600160e01b03198216632baae9fd60e01b14806146a657506001600160e01b0319821663152a902d60e11b145b80610a7f5750610a7f82614ab4565b600081815261016560209081526040808320546001600160a01b0316835261016490915290205460ff1615610cc4576000818152610165602052604090819020549051638258080560e01b81526001600160a01b03858116600483015284811660248301526044820184905290911690638258080590606401602060405180830381600087803b15801561474857600080fd5b505af115801561475c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061478091906151f9565b610cc45760405162461bcd60e51b815260206004820152602760248201527f45524337323150726f6a6563743a204d616e6167657220617070726f76616c206044820152666661696c75726560c81b6064820152608401610b8e565b6147e581613f77565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6148845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610b8e565b600080846001600160a01b03168460405161489f9190615540565b600060405180830381855af49150503d80600081146148da576040519150601f19603f3d011682016040523d82523d6000602084013e6148df565b606091505b5091509150614907828260405180606001604052806027815260200161598560279139614af4565b95945050505050565b600054610100900460ff166149375760405162461bcd60e51b8152600401610b8e90615701565b611a0133613352565b600054610100900460ff1661495b5760005460ff161561495f565b303b155b61497b5760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156140d0576000805460ff1961ff0019909116610100171660011790558015610fc9576000805461ff001916905550565b600054610100900460ff166149e05760405162461bcd60e51b8152600401610b8e90615701565b81516149f39060ca906020850190614d31565b508051610cc49060cb906020840190614d31565b600054610100900460ff16614a2e5760405162461bcd60e51b8152600401610b8e90615701565b600161012d55565b614a408383614b2d565b614a4d60008484846143ea565b610cc45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b60006001600160e01b031982166380ac58cd60e01b1480614ae557506001600160e01b03198216635b5e139f60e01b145b80610a7f5750610a7f82614c7c565b60608315614b0357508161292c565b825115614b135782518084602001fd5b8160405162461bcd60e51b8152600401610b8e919061564d565b6001600160a01b038216614b835760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8e565b600081815260cc60205260409020546001600160a01b031615614be85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8e565b614bf460008383613e17565b6001600160a01b038216600090815260cd60205260408120805460019290614c1d9084906157ea565b9091555050600081815260cc602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611030565b60006001600160e01b03198216632a9f3abf60e11b1480610a7f57506301ffc9a760e01b6001600160e01b0319831614610a7f565b828054614cbd90615878565b90600052602060002090601f016020900481019282614cdf5760008555614d25565b82601f10614cf85782800160ff19823516178555614d25565b82800160010185558215614d25579182015b82811115614d25578235825591602001919060010190614d0a565b506110fb929150614ddd565b828054614d3d90615878565b90600052602060002090601f016020900481019282614d5f5760008555614d25565b82601f10614d7857805160ff1916838001178555614d25565b82800160010185558215614d25579182015b82811115614d25578251825591602001919060010190614d8a565b508054614db190615878565b6000825580601f10614dc35750610fc9565b601f016020900490600052602060002090810190610fc991905b5b808211156110fb5760008155600101614dde565b80356001600160a01b0381168114610a8257600080fd5b60008083601f840112614e1a578182fd5b50813567ffffffffffffffff811115614e31578182fd5b6020830191508360208083028501011115614e4b57600080fd5b9250929050565b600082601f830112614e62578081fd5b8135614e75614e70826157c2565b615791565b818152846020838601011115614e89578283fd5b816020850160208301379081016020019190915292915050565b60008083601f840112614eb4578182fd5b50813567ffffffffffffffff811115614ecb578182fd5b602083019150836020828501011115614e4b57600080fd5b600060208284031215614ef4578081fd5b61292c82614df2565b60008060408385031215614f0f578081fd5b614f1883614df2565b9150614f2660208401614df2565b90509250929050565b600080600060608486031215614f43578081fd5b614f4c84614df2565b9250614f5a60208501614df2565b9150604084013590509250925092565b60008060008060808587031215614f7f578081fd5b614f8885614df2565b9350614f9660208601614df2565b925060408501359150606085013567ffffffffffffffff811115614fb8578182fd5b614fc487828801614e52565b91505092959194509250565b600080600060408486031215614fe4578283fd5b614fed84614df2565b9250602084013567ffffffffffffffff811115615008578283fd5b61501486828701614e09565b9497909650939450505050565b60008060408385031215615033578182fd5b61503c83614df2565b9150602083013561504c81615940565b809150509250929050565b60008060408385031215615069578182fd5b61507283614df2565b9150602083013567ffffffffffffffff81111561508d578182fd5b61509985828601614e52565b9150509250929050565b6000806000604084860312156150b7578081fd5b6150c084614df2565b9250602084013567ffffffffffffffff8111156150db578182fd5b61501486828701614ea3565b600080600080606085870312156150fc578182fd5b61510585614df2565b9350602085013567ffffffffffffffff811115615120578283fd5b61512c87828801614ea3565b909450925050604085013561514081615940565b939692955090935050565b6000806040838503121561515d578182fd5b61516683614df2565b946020939093013593505050565b60008060008060408587031215615189578182fd5b843567ffffffffffffffff808211156151a0578384fd5b6151ac88838901614e09565b909650945060208701359150808211156151c4578384fd5b506151d187828801614e09565b95989497509550505050565b6000602082840312156151ee578081fd5b813561292c81615940565b60006020828403121561520a578081fd5b815161292c81615940565b600060208284031215615226578081fd5b5051919050565b60006020828403121561523e578081fd5b813561292c8161594e565b60006020828403121561525a578081fd5b815161292c8161594e565b60008060208385031215615277578182fd5b823567ffffffffffffffff81111561528d578283fd5b61529985828601614ea3565b90969095509350505050565b6000806000604084860312156152b9578081fd5b833567ffffffffffffffff8111156152cf578182fd5b6152db86828701614ea3565b90945092505060208401356152ef81615940565b809150509250925092565b60006020828403121561530b578081fd5b813567ffffffffffffffff811115615321578182fd5b612aca84828501614e52565b60006020828403121561533e578081fd5b815167ffffffffffffffff811115615354578182fd5b8201601f81018413615364578182fd5b8051615372614e70826157c2565b818152856020838501011115615386578384fd5b61490782602083016020860161584c565b600080604083850312156153a9578182fd5b823567ffffffffffffffff808211156153c0578384fd5b6153cc86838701614e52565b935060208501359150808211156153e1578283fd5b5061509985828601614e52565b6000602082840312156153ff578081fd5b5035919050565b60008060006060848603121561541a578081fd5b83359250614f5a60208501614df2565b60008060006040848603121561543e578081fd5b83359250602084013567ffffffffffffffff8111156150db578182fd5b6000806040838503121561546d578182fd5b50508035926020909101359150565b6000815180845261549481602086016020860161584c565b601f01601f19169290920160200192915050565b8054600090600281046001808316806154c257607f831692505b60208084108214156154e257634e487b7160e01b86526022600452602486fd5b8180156154f6576001811461550757615534565b60ff19861689528489019650615534565b60008881526020902060005b8681101561552c5781548b820152908501908301615513565b505084890196505b50505050505092915050565b6000825161555281846020870161584c565b9190910192915050565b600061556882856154a8565b835161557881836020880161584c565b01949350505050565b6000612aca61559083866154a8565b846154a8565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143e0608083018461547c565b6020808252825182820181905260009190848201906040850190845b818110156156095783516001600160a01b0316835292840192918401916001016155e4565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561560957835183529284019291840191600101615631565b60006020825261292c602083018461547c565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201527f647920696e697469616c697a6564000000000000000000000000000000000000606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000808335601e19843603018112615762578283fd5b83018035915067ffffffffffffffff82111561577c578283fd5b602001915036819003821315614e4b57600080fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156157ba576157ba61592a565b604052919050565b600067ffffffffffffffff8211156157dc576157dc61592a565b50601f01601f191660200190565b600082198211156157fd576157fd6158fe565b500190565b60008261581157615811615914565b500490565b6000816000190483118215151615615830576158306158fe565b500290565b600082821015615847576158476158fe565b500390565b60005b8381101561586757818101518382015260200161584f565b8381111561227b5750506000910152565b60028104600182168061588c57607f821691505b60208210811415613b5057634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156158c5576158c56158fe565b6001019392505050565b60006000198214156158e3576158e36158fe565b5060010190565b6000826158f9576158f9615914565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610fc957600080fd5b6001600160e01b031981168114610fc957600080fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65644d7573742062652072656769737465726564206d616e61676572000000000000a26469706673582212201ad40a6e917b97023dc76742a8bfaa42b5734a08c749c1ad11248567d142134b64736f6c63430008020033

Deployed Bytecode

0x6080604052600436106103605760003560e01c8063715018a6116101c6578063ada4a768116100f7578063e95b526b11610095578063f0cdc4991161006f578063f0cdc499146109f4578063f229c67014610a14578063f2fde38b14610a34578063f4072dc214610a5457610360565b8063e95b526b1461099e578063e985e9c5146109be578063e9c5d7b9146109de57610360565b8063d8d045b4116100d1578063d8d045b414610929578063e461aa2314610949578063e492bf8d14610969578063e8a3d4851461098957610360565b8063ada4a768146108c9578063b88d4fde146108e9578063c87b56dd1461090957610360565b806399e0dd7c11610164578063a24db95d1161013e578063a24db95d14610834578063a6e9d54614610854578063a8d088bb14610894578063aafb2d44146108a957610360565b806399e0dd7c146107d4578063a0b91cb0146107f4578063a22cb4651461081457610360565b80638da5cb5b116101a05780638da5cb5b14610761578063938e3d7b1461077f57806395d89b411461079f5780639713c807146107b457610360565b8063715018a6146106ff57806372839f1e1461071457806388d5786c1461074157610360565b80633659cfe6116102a057806352d1902d1161023e5780636352211e116102185780636352211e1461067f5780636502abea1461069f5780636d73e669146106bf57806370a08231146106df57610360565b806352d1902d1461062a5780635919c74b1461063f5780635d986cd31461065f57610360565b80634ac824e11161027a5780634ac824e1146105b75780634cd88b76146105d75780634f1ef286146105f7578063522543d11461060a57610360565b80633659cfe61461055757806342842e0e1461057757806342966c681461059757610360565b806318160ddd1161030d5780632a55205a116102e75780632a55205a146104b65780632d345670146104f557806330176e131461051557806331ae450b1461053557610360565b806318160ddd1461045657806323b872dd1461047657806324d7806c1461049657610360565b8063095ea7b31161033e578063095ea7b3146103f457806312d9e9a014610416578063162094c41461043657610360565b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc575b600080fd5b34801561037157600080fd5b5061038561038036600461522d565b610a74565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a87565b604051610391919061564d565b3480156103c857600080fd5b506103dc6103d73660046153ee565b610b19565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f36600461514b565b610bb3565b005b34801561042257600080fd5b50610414610431366004615174565b610cc9565b34801561044257600080fd5b5061041461045136600461542a565b610dd3565b34801561046257600080fd5b50610194545b604051908152602001610391565b34801561048257600080fd5b50610414610491366004614f2f565b610e03565b3480156104a257600080fd5b506103856104b1366004614ee3565b610e7e565b3480156104c257600080fd5b506104d66104d136600461545b565b610eb7565b604080516001600160a01b039093168352602083019190915201610391565b34801561050157600080fd5b50610414610510366004614ee3565b610f28565b34801561052157600080fd5b50610414610530366004615265565b610fcc565b34801561054157600080fd5b5061054a611034565b60405161039191906155c8565b34801561056357600080fd5b50610414610572366004614ee3565b6110ff565b34801561058357600080fd5b50610414610592366004614f2f565b611278565b3480156105a357600080fd5b506104146105b23660046153ee565b611293565b3480156105c357600080fd5b506104146105d2366004614ee3565b61135b565b3480156105e357600080fd5b506104146105f2366004615397565b611389565b610414610605366004615057565b61140f565b34801561061657600080fd5b50610414610625366004615265565b611578565b34801561063657600080fd5b506104686115c8565b34801561064b57600080fd5b5061046861065a3660046150a3565b61168d565b34801561066b57600080fd5b5061041461067a36600461542a565b61174a565b34801561068b57600080fd5b506103dc61069a3660046153ee565b61179b565b3480156106ab57600080fd5b506103dc6106ba3660046153ee565b611812565b3480156106cb57600080fd5b506104146106da366004614ee3565b611873565b3480156106eb57600080fd5b506104686106fa366004614ee3565b611916565b34801561070b57600080fd5b5061041461199d565b34801561072057600080fd5b5061073461072f366004614fd0565b611a03565b6040516103919190615615565b34801561074d57600080fd5b5061041461075c3660046151dd565b611bac565b34801561076d57600080fd5b506033546001600160a01b03166103dc565b34801561078b57600080fd5b5061041461079a3660046152fa565b611cf1565b3480156107ab57600080fd5b506103af611d1f565b3480156107c057600080fd5b506104146107cf366004615406565b611d2e565b3480156107e057600080fd5b506104146107ef366004615265565b611d5e565b34801561080057600080fd5b5061073461080f366004615174565b611d8d565b34801561082057600080fd5b5061041461082f366004615021565b611f99565b34801561084057600080fd5b5061041461084f3660046150e7565b611fa4565b34801561086057600080fd5b506104d661086f3660046153ee565b60fc60205260009081526040902080546001909101546001600160a01b039091169082565b3480156108a057600080fd5b5061054a612025565b3480156108b557600080fd5b506104146108c4366004615174565b6120ef565b3480156108d557600080fd5b506104146108e4366004614ee3565b6121d1565b3480156108f557600080fd5b50610414610904366004614f6a565b6121ff565b34801561091557600080fd5b506103af6109243660046153ee565b612281565b34801561093557600080fd5b5061041461094436600461514b565b6122e5565b34801561095557600080fd5b5060fd546103dc906001600160a01b031681565b34801561097557600080fd5b506104146109843660046152a5565b612314565b34801561099557600080fd5b506103af612365565b3480156109aa57600080fd5b506107346109b9366004615174565b612375565b3480156109ca57600080fd5b506103856109d9366004614efd565b612547565b3480156109ea57600080fd5b5061046860fe5481565b348015610a0057600080fd5b50610414610a0f366004614efd565b612577565b348015610a2057600080fd5b50610468610a2f3660046150a3565b6125a6565b348015610a4057600080fd5b50610414610a4f366004614ee3565b612676565b348015610a6057600080fd5b50610734610a6f366004614fd0565b61273e565b6000610a7f8261287b565b90505b919050565b606060ca8054610a9690615878565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac290615878565b8015610b0f5780601f10610ae457610100808354040283529160200191610b0f565b820191906000526020600020905b815481529060010190602001808311610af257829003601f168201915b5050505050905090565b600081815260cc60205260408120546001600160a01b0316610b975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260ce60205260409020546001600160a01b031690565b6000610bbe8261179b565b9050806001600160a01b0316836001600160a01b03161415610c2c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8e565b336001600160a01b0382161480610c485750610c4881336109d9565b610cba5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8e565b610cc483836128a0565b505050565b610cd561015f3361290e565b610d0f5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b828114610d4e5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b60005b83811015610dcc57610dba858583818110610d7c57634e487b7160e01b600052603260045260246000fd5b90506020020135848484818110610da357634e487b7160e01b600052603260045260246000fd5b9050602002810190610db5919061574c565b612933565b80610dc4816158cf565b915050610d51565b5050505050565b610ddc336104b1565b610df85760405162461bcd60e51b8152600401610b8e906156bd565b610cc48383836129a4565b610e0d33826129fb565b610e735760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610b8e565b610cc4838383612ad2565b6000816001600160a01b0316610e9c6033546001600160a01b031690565b6001600160a01b03161480610a7f5750610a7f60978361290e565b600082815260fc60209081526040808320815180830190925280546001600160a01b0316808352600190910154928201839052929183610f06575060fd5460fe546001600160a01b0390911693505b612710610f138287615816565b610f1d9190615802565b925050509250929050565b6033546001600160a01b03163314610f825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b610f8d609782612c79565b15610fc95760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a35b50565b610fd5336104b1565b610ff15760405162461bcd60e51b8152600401610b8e906156bd565b61103082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c8e92505050565b5050565b60606110406097612caf565b67ffffffffffffffff81111561106657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108f578160200160208202803683370190505b50905060005b61109f6097612caf565b8110156110fb576110b1609782612cb9565b8282815181106110d157634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806110f3816158cf565b915050611095565b5090565b306001600160a01b037f0000000000000000000000005d26ce1cb6f9ff7f07638cb3a170bc8a774b98da16141561118d5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b8e565b7f0000000000000000000000005d26ce1cb6f9ff7f07638cb3a170bc8a774b98da6001600160a01b03166111e87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146112535760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b8e565b61125c81612cc5565b60408051600080825260208201909252610fc991839190612d1f565b610cc4838383604051806020016040528060008152506121ff565b600261012d5414156112d55760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556112e533826129fb565b6113315760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610b8e565b600061133c8261179b565b905061134782612ebf565b6113518183612f67565b5050600161012d55565b611364336104b1565b6113805760405162461bcd60e51b8152600401610b8e906156bd565b610fc981613083565b600054610100900460ff166113a45760005460ff16156113a8565b303b155b6113c45760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156113ef576000805460ff1961ff0019909116610100171660011790555b6113f9838361316e565b8015610cc4576000805461ff0019169055505050565b306001600160a01b037f0000000000000000000000005d26ce1cb6f9ff7f07638cb3a170bc8a774b98da16141561149d5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b8e565b7f0000000000000000000000005d26ce1cb6f9ff7f07638cb3a170bc8a774b98da6001600160a01b03166114f87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115635760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b8e565b61156c82612cc5565b61103082826001612d1f565b61158461015f3361290e565b6115be5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b61103082826131f6565b6000306001600160a01b037f0000000000000000000000005d26ce1cb6f9ff7f07638cb3a170bc8a774b98da16146116685760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b8e565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6000600261012d5414156116d15760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556116e0336104b1565b6116fc5760405162461bcd60e51b8152600401610b8e906156bd565b61173c8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321192505050565b600161012d55949350505050565b61175661015f3361290e565b6117905760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b610cc4838383612933565b600081815260cc60205260408120546001600160a01b031680610a7f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8e565b600081815260cc60205260408120546001600160a01b031661186a5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610b8e565b610a7f82613285565b6033546001600160a01b031633146118cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b6118d860978261333d565b15610fc95760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a350565b60006001600160a01b0382166119815760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8e565b506001600160a01b0316600090815260cd602052604090205490565b6033546001600160a01b031633146119f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b611a016000613352565b565b6060600261012d541415611a475760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55611a5961015f3361290e565b611a935760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b8167ffffffffffffffff811115611aba57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ae3578160200160208202803683370190505b50905060005b82811015611b9e57611b6185858584818110611b1557634e487b7160e01b600052603260045260246000fd5b9050602002810190611b27919061574c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133a492505050565b828281518110611b8157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611b96816158cf565b915050611ae9565b50600161012d559392505050565b611bb861015f3361290e565b611bf25760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b801580611c0b5750611c0b33634ce6d51160e11b6133f4565b611c7d5760405162461bcd60e51b815260206004820152603b60248201527f4d616e61676572206d75737420696d706c656d656e742049455243373231507260448201527f6f6a656374417070726f76655472616e736665724d616e6167657200000000006064820152608401610b8e565b336000908152610164602052604090205460ff16151581151514610fc9573360008181526101646020908152604091829020805460ff191685151590811790915591519182527fe47f635a589f28dfbd63e4f968448214c1516b874d0ec067c1a451790c36ac10910160405180910390a250565b611cfa336104b1565b611d165760405162461bcd60e51b8152600401610b8e906156bd565b610fc981613410565b606060cb8054610a9690615878565b611d37336104b1565b611d535760405162461bcd60e51b8152600401610b8e906156bd565b610cc483838361345f565b611d67336104b1565b611d835760405162461bcd60e51b8152600401610b8e906156bd565b611030828261359e565b6060600261012d541415611dd15760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55611de0336104b1565b611dfc5760405162461bcd60e51b8152600401610b8e906156bd565b838214611e3b5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b8367ffffffffffffffff811115611e6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e8b578160200160208202803683370190505b50905060005b61ffff8116851115611f8a57611f4986868361ffff16818110611ec457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ed99190614ee3565b85858461ffff16818110611efd57634e487b7160e01b600052603260045260246000fd5b9050602002810190611f0f919061574c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321192505050565b828261ffff1681518110611f6d57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611f82816158ad565b915050611e91565b50600161012d55949350505050565b6110303383836135b9565b611fad336104b1565b611fc95760405162461bcd60e51b8152600401610b8e906156bd565b83611fd66101618261290e565b156120195760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b610dcc85858585613688565b606061203261015f612caf565b67ffffffffffffffff81111561205857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612081578160200160208202803683370190505b50905060005b61209261015f612caf565b8110156110fb576120a561015f82612cb9565b8282815181106120c557634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806120e7816158cf565b915050612087565b6120f8336104b1565b6121145760405162461bcd60e51b8152600401610b8e906156bd565b8281146121535760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b60005b83811015610dcc576121bf85858381811061218157634e487b7160e01b600052603260045260246000fd5b905060200201358484848181106121a857634e487b7160e01b600052603260045260246000fd5b90506020028101906121ba919061574c565b6129a4565b806121c9816158cf565b915050612156565b6121da336104b1565b6121f65760405162461bcd60e51b8152600401610b8e906156bd565b610fc9816137cd565b61220933836129fb565b61226f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610b8e565b61227b84848484613817565b50505050565b600081815260cc60205260409020546060906001600160a01b03166122dc5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610b8e565b610a7f82613895565b6122ee336104b1565b61230a5760405162461bcd60e51b8152600401610b8e906156bd565b6110308282613b56565b61232061015f3361290e565b61235a5760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b610cc4838383613c6d565b606061016a8054610a9690615878565b6060600261012d5414156123b95760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556123cb61015f3361290e565b6124055760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b8382146124445760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610b8e565b8367ffffffffffffffff81111561246b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612494578160200160208202803683370190505b50905060005b61ffff8116851115611f8a5761250686868361ffff168181106124cd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124e29190614ee3565b85858461ffff16818110611b1557634e487b7160e01b600052603260045260246000fd5b828261ffff168151811061252a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061253f816158ad565b91505061249a565b6001600160a01b03808316600090815260cf602090815260408083209385168352929052205460ff165b92915050565b612580336104b1565b61259c5760405162461bcd60e51b8152600401610b8e906156bd565b6110308282613cac565b6000600261012d5414156125ea5760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d556125fc61015f3361290e565b6126365760405162461bcd60e51b815260206004820152601a60248201526000805160206159ac8339815191526044820152606401610b8e565b61173c8484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133a492505050565b6033546001600160a01b031633146126d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b6001600160a01b0381166127355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8e565b610fc981613352565b6060600261012d5414156127825760405162461bcd60e51b815260206004820152601f60248201526000805160206159658339815191526044820152606401610b8e565b600261012d55612791336104b1565b6127ad5760405162461bcd60e51b8152600401610b8e906156bd565b8167ffffffffffffffff8111156127d457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156127fd578160200160208202803683370190505b50905060005b82811015611b9e5761282f85858584818110611efd57634e487b7160e01b600052603260045260246000fd5b82828151811061284f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612864816158cf565b915050612803565b6001600160a01b03163b151590565b60006001600160e01b03198216633ed69c8960e01b1480610a7f5750610a7f82613df2565b600081815260ce6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128d58261179b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b600083815261016560205260409020546001600160a01b0316331461298a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b6044820152606401610b8e565b60008381526101696020526040902061227b908383614cb1565b600083815261016560205260409020546001600160a01b0316301461298a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b6044820152606401610b8e565b600081815260cc60205260408120546001600160a01b0316612a745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8e565b6000612a7f8361179b565b9050806001600160a01b0316846001600160a01b03161480612aba5750836001600160a01b0316612aaf84610b19565b6001600160a01b0316145b80612aca5750612aca8185612547565b949350505050565b826001600160a01b0316612ae58261179b565b6001600160a01b031614612b495760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b8e565b6001600160a01b038216612bab5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8e565b612bb6838383613e17565b612bc16000826128a0565b6001600160a01b038316600090815260cd60205260408120805460019290612bea908490615835565b90915550506001600160a01b038216600090815260cd60205260408120805460019290612c189084906157ea565b9091555050600081815260cc602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610cc4565b600061292c836001600160a01b038416613e22565b30600090815261016660209081526040909120825161103092840190614d31565b6000610a7f825490565b600061292c8383613f3f565b6033546001600160a01b03163314610fc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8e565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612d5757612d5283613f77565b610cc4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d9057600080fd5b505afa925050508015612dc0575060408051601f3d908101601f19168201909252612dbd91810190615215565b60015b612e325760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610b8e565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612eb35760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610b8e565b50610cc4838383614025565b6000612eca8261179b565b9050612ed881600084613e17565b612ee36000836128a0565b6001600160a01b038116600090815260cd60205260408120805460019290612f0c908490615835565b9091555050600082815260cc602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611030565b600081815261016560205260409020546001600160a01b0316301461302a5760008181526101656020526040902054612fb0906001600160a01b03166311686e4b60e21b6133f4565b1561302a5760008181526101656020526040908190205490516311686e4b60e21b81526001600160a01b03848116600483015260248201849052909116906345a1b92c90604401600060405180830381600087803b15801561301157600080fd5b505af1158015613025573d6000803e3d6000fd5b505050505b600081815261016960205260409020805461304490615878565b1590506130635760008181526101696020526040812061306391614da5565b60009081526101656020526040902080546001600160a01b031916905550565b6001600160a01b0381163014156130dc5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420626c61636b6c69737420796f757273656c66000000000000006044820152606401610b8e565b6130e861015f82612c79565b156131245760405133906001600160a01b038316907f605ecd285af8d775a646fccb959e452c9fcbc3fb990969d941a79d5e91c9ff0c90600090a35b6131306101618261333d565b15610fc95760405133906001600160a01b038316907f884ad0bc819ed270213c85246d940694ab55524886b6427934dc3a268974ecf590600090a350565b600054610100900460ff166131895760005460ff161561318d565b303b155b6131a95760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156131d4576000805460ff1961ff0019909116610100171660011790555b6131dc61404a565b6131e683836140e4565b6131ee614115565b6113f961418b565b33600090815261016860205260409020610cc4908383614cb1565b610194805460009182613223836158cf565b90915550506101945460008181526101656020526040902080546001600160a01b03191630179055905061325783826141b2565b81511561328057600081815261016960209081526040909120835161327e92850190614d31565b505b612571565b600081815261016560205260409020546001600160a01b0316308114156132ee5760405162461bcd60e51b815260206004820152601460248201527f4e6f206d616e6167657220666f7220746f6b656e0000000000000000000000006044820152606401610b8e565b6132fa6101618261290e565b15610a825760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b600061292c836001600160a01b0384166141cc565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6101948054600091826133b6836158cf565b91905055506101945490506133cb838261421b565b60008181526101656020526040902080546001600160a01b0319163317905561325783826141b2565b60006133ff836142b9565b801561292c575061292c83836142ec565b80516134249061016a906020840190614d31565b507faf497693a87db12ca89131a31edbb3db4bb5702dfb284e8ae7427d185f09112d81604051613454919061564d565b60405180910390a150565b81816001600160a01b0382166134b75760405162461bcd60e51b815260206004820152601860248201527f5f72656365697665722063616e206e6f742062652030783000000000000000006044820152606401610b8e565b6127108111156135145760405162461bcd60e51b815260206004820152602260248201527f5f726f79616c74794250732073686f756c64206c657373207468616e20313030604482015261030360f41b6064820152608401610b8e565b6040805180820182526001600160a01b03868116808352602080840188815260008b815260fc8352869020945185546001600160a01b031916941693909317845591516001909301929092558251918252810185905286917f49018ca4b3b4f0c8442e69b201303bb7f7919a14033768ce71ad07ba63a348a3910160405180910390a25050505050565b30600090815261016860205260409020610cc4908383614cb1565b816001600160a01b0316836001600160a01b0316141561361b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8e565b6001600160a01b03838116600081815260cf6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384163014156136e15760405162461bcd60e51b815260206004820152601060248201527f50726f6a6563743a20496e76616c6964000000000000000000000000000000006044820152606401610b8e565b6001600160a01b0384163b6137445760405162461bcd60e51b815260206004820152602360248201527f50726f6a6563743a204d616e61676572206d757374206265206120636f6e74726044820152621858dd60ea1b6064820152608401610b8e565b61375061015f8561333d565b1561227b576001600160a01b038416600090815261016660205260409020613779908484614cb1565b506001600160a01b03841660008181526101676020526040808220805460ff1916851515179055513392917f8fc18cc172f74c81235145b7927190d2bd0e351fc45bfb17bb572593273cef2191a350505050565b6137d961015f82612c79565b15610fc95760405133906001600160a01b038316907f605ecd285af8d775a646fccb959e452c9fcbc3fb990969d941a79d5e91c9ff0c90600090a350565b613822848484612ad2565b61382e848484846143ea565b61227b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b600081815261016560205260409020546060906001600160a01b03166138bd6101618261290e565b156139005760405162461bcd60e51b815260206004820152601360248201527213585b9859d95c88189b1858dadb1a5cdd1959606a1b6044820152606401610b8e565b600083815261016960205260409020805461391a90615878565b159050613a38576001600160a01b038116600090815261016860205260409020805461394590615878565b159050613998576001600160a01b0381166000908152610168602090815260408083208684526101698352928190209051613981939201615581565b604051602081830303815290604052915050610a82565b60008381526101696020526040902080546139b290615878565b80601f01602080910402602001604051908101604052809291908181526020018280546139de90615878565b8015613a2b5780601f10613a0057610100808354040283529160200191613a2b565b820191906000526020600020905b815481529060010190602001808311613a0e57829003601f168201915b5050505050915050610a82565b613a498163e9dc637560e01b6133f4565b15613ad85760405163e9dc637560e01b8152306004820152602481018490526001600160a01b0382169063e9dc63759060440160006040518083038186803b158015613a9457600080fd5b505afa158015613aa8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613ad0919081019061532d565b915050610a82565b6001600160a01b0381166000908152610167602052604090205460ff16613b2c576001600160a01b038116600090815261016660205260409020613b1b84614542565b60405160200161398192919061555c565b6001600160a01b03811660009081526101666020526040902080546139b290615878565b50919050565b81816001600160a01b038216613bae5760405162461bcd60e51b815260206004820152601860248201527f5f72656365697665722063616e206e6f742062652030783000000000000000006044820152606401610b8e565b612710811115613c0b5760405162461bcd60e51b815260206004820152602260248201527f5f726f79616c74794250732073686f756c64206c657373207468616e20313030604482015261030360f41b6064820152608401610b8e565b60fd80546001600160a01b0319166001600160a01b03861690811790915560fe84905560408051918252602082018590527fd85b7816dca44c313f0fdadd9567f99f3620a2fac7c21a8a7872e1ac4d10fe55910160405180910390a150505050565b33600090815261016660205260409020613c88908484614cb1565b5033600090815261016760205260409020805460ff19169115159190911790555050565b613cb861015f8361290e565b613d045760405162461bcd60e51b815260206004820152601c60248201527f50726f6a656374436f72653a20496e76616c6964206d616e61676572000000006044820152606401610b8e565b6001600160a01b0381161580613d265750613d2681631e05385b60e31b6133f4565b613d725760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610b8e565b6001600160a01b0382811660009081526101636020526040902054811690821614611030576001600160a01b038281166000818152610163602052604080822080546001600160a01b031916948616948517905551339392917f6a835c4fcf7e0d398db3762332fdaa1471814ad39f1e2d6d0b3fdabf8efee3e091a45050565b60006001600160e01b031982166328dfb2fd60e01b1480610a7f5750610a7f82614675565b612d528383836146b5565b60008181526001830160205260408120548015613f35576000613e46600183615835565b8554909150600090613e5a90600190615835565b9050818114613edb576000866000018281548110613e8857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613eb957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613efa57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612571565b6000915050612571565b6000826000018281548110613f6457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6001600160a01b0381163b613fe45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610b8e565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b61402e836147dc565b60008251118061403b5750805b15610cc45761227b838361481c565b600054610100900460ff166140655760005460ff1615614069565b303b155b6140855760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156140b0576000805460ff1961ff0019909116610100171660011790555b6140b861418b565b6140c0614910565b6140c861418b565b6140d0614940565b8015610fc9576000805461ff001916905550565b600054610100900460ff1661410b5760405162461bcd60e51b8152600401610b8e90615701565b61103082826149b9565b600054610100900460ff166141305760005460ff1615614134565b303b155b6141505760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff1615801561417b576000805460ff1961ff0019909116610100171660011790555b614183614940565b6140c0614a07565b600054610100900460ff16611a015760405162461bcd60e51b8152600401610b8e90615701565b611030828260405180602001604052806000815250614a36565b600081815260018301602052604081205461421357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155612571565b506000612571565b33600090815261016360205260409020546001600160a01b03161561103057336000818152610163602052604090819020549051631e05385b60e31b815260048101929092526001600160a01b03848116602484015260448301849052169063f029c2d890606401600060405180830381600087803b15801561429d57600080fd5b505af11580156142b1573d6000803e3d6000fd5b505050505050565b60006142cc826301ffc9a760e01b6142ec565b8015610a7f57506142e5826001600160e01b03196142ec565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b179052905160009190829081906001600160a01b0387169061753090614368908690615540565b6000604051808303818686fa925050503d80600081146143a4576040519150601f19603f3d011682016040523d82523d6000602084013e6143a9565b606091505b50915091506020815110156143c45760009350505050612571565b8180156143e05750808060200190518101906143e091906151f9565b9695505050505050565b60006001600160a01b0384163b1561453757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061442e903390899088908890600401615596565b602060405180830381600087803b15801561444857600080fd5b505af1925050508015614478575060408051601f3d908101601f1916820190925261447591810190615249565b60015b61451d573d8080156144a6576040519150601f19603f3d011682016040523d82523d6000602084013e6144ab565b606091505b5080516145155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612aca565b506001949350505050565b60608161456757506040805180820190915260018152600360fc1b6020820152610a82565b8160005b8115614591578061457b816158cf565b915061458a9050600a83615802565b915061456b565b60008167ffffffffffffffff8111156145ba57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156145e4576020820181803683370190505b5090505b8415612aca576145f9600183615835565b9150614606600a866158ea565b6146119060306157ea565b60f81b81838151811061463457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061466e600a86615802565b94506145e8565b60006001600160e01b03198216632baae9fd60e01b14806146a657506001600160e01b0319821663152a902d60e11b145b80610a7f5750610a7f82614ab4565b600081815261016560209081526040808320546001600160a01b0316835261016490915290205460ff1615610cc4576000818152610165602052604090819020549051638258080560e01b81526001600160a01b03858116600483015284811660248301526044820184905290911690638258080590606401602060405180830381600087803b15801561474857600080fd5b505af115801561475c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061478091906151f9565b610cc45760405162461bcd60e51b815260206004820152602760248201527f45524337323150726f6a6563743a204d616e6167657220617070726f76616c206044820152666661696c75726560c81b6064820152608401610b8e565b6147e581613f77565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6148845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610b8e565b600080846001600160a01b03168460405161489f9190615540565b600060405180830381855af49150503d80600081146148da576040519150601f19603f3d011682016040523d82523d6000602084013e6148df565b606091505b5091509150614907828260405180606001604052806027815260200161598560279139614af4565b95945050505050565b600054610100900460ff166149375760405162461bcd60e51b8152600401610b8e90615701565b611a0133613352565b600054610100900460ff1661495b5760005460ff161561495f565b303b155b61497b5760405162461bcd60e51b8152600401610b8e90615660565b600054610100900460ff161580156140d0576000805460ff1961ff0019909116610100171660011790558015610fc9576000805461ff001916905550565b600054610100900460ff166149e05760405162461bcd60e51b8152600401610b8e90615701565b81516149f39060ca906020850190614d31565b508051610cc49060cb906020840190614d31565b600054610100900460ff16614a2e5760405162461bcd60e51b8152600401610b8e90615701565b600161012d55565b614a408383614b2d565b614a4d60008484846143ea565b610cc45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b8e565b60006001600160e01b031982166380ac58cd60e01b1480614ae557506001600160e01b03198216635b5e139f60e01b145b80610a7f5750610a7f82614c7c565b60608315614b0357508161292c565b825115614b135782518084602001fd5b8160405162461bcd60e51b8152600401610b8e919061564d565b6001600160a01b038216614b835760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8e565b600081815260cc60205260409020546001600160a01b031615614be85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8e565b614bf460008383613e17565b6001600160a01b038216600090815260cd60205260408120805460019290614c1d9084906157ea565b9091555050600081815260cc602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611030565b60006001600160e01b03198216632a9f3abf60e11b1480610a7f57506301ffc9a760e01b6001600160e01b0319831614610a7f565b828054614cbd90615878565b90600052602060002090601f016020900481019282614cdf5760008555614d25565b82601f10614cf85782800160ff19823516178555614d25565b82800160010185558215614d25579182015b82811115614d25578235825591602001919060010190614d0a565b506110fb929150614ddd565b828054614d3d90615878565b90600052602060002090601f016020900481019282614d5f5760008555614d25565b82601f10614d7857805160ff1916838001178555614d25565b82800160010185558215614d25579182015b82811115614d25578251825591602001919060010190614d8a565b508054614db190615878565b6000825580601f10614dc35750610fc9565b601f016020900490600052602060002090810190610fc991905b5b808211156110fb5760008155600101614dde565b80356001600160a01b0381168114610a8257600080fd5b60008083601f840112614e1a578182fd5b50813567ffffffffffffffff811115614e31578182fd5b6020830191508360208083028501011115614e4b57600080fd5b9250929050565b600082601f830112614e62578081fd5b8135614e75614e70826157c2565b615791565b818152846020838601011115614e89578283fd5b816020850160208301379081016020019190915292915050565b60008083601f840112614eb4578182fd5b50813567ffffffffffffffff811115614ecb578182fd5b602083019150836020828501011115614e4b57600080fd5b600060208284031215614ef4578081fd5b61292c82614df2565b60008060408385031215614f0f578081fd5b614f1883614df2565b9150614f2660208401614df2565b90509250929050565b600080600060608486031215614f43578081fd5b614f4c84614df2565b9250614f5a60208501614df2565b9150604084013590509250925092565b60008060008060808587031215614f7f578081fd5b614f8885614df2565b9350614f9660208601614df2565b925060408501359150606085013567ffffffffffffffff811115614fb8578182fd5b614fc487828801614e52565b91505092959194509250565b600080600060408486031215614fe4578283fd5b614fed84614df2565b9250602084013567ffffffffffffffff811115615008578283fd5b61501486828701614e09565b9497909650939450505050565b60008060408385031215615033578182fd5b61503c83614df2565b9150602083013561504c81615940565b809150509250929050565b60008060408385031215615069578182fd5b61507283614df2565b9150602083013567ffffffffffffffff81111561508d578182fd5b61509985828601614e52565b9150509250929050565b6000806000604084860312156150b7578081fd5b6150c084614df2565b9250602084013567ffffffffffffffff8111156150db578182fd5b61501486828701614ea3565b600080600080606085870312156150fc578182fd5b61510585614df2565b9350602085013567ffffffffffffffff811115615120578283fd5b61512c87828801614ea3565b909450925050604085013561514081615940565b939692955090935050565b6000806040838503121561515d578182fd5b61516683614df2565b946020939093013593505050565b60008060008060408587031215615189578182fd5b843567ffffffffffffffff808211156151a0578384fd5b6151ac88838901614e09565b909650945060208701359150808211156151c4578384fd5b506151d187828801614e09565b95989497509550505050565b6000602082840312156151ee578081fd5b813561292c81615940565b60006020828403121561520a578081fd5b815161292c81615940565b600060208284031215615226578081fd5b5051919050565b60006020828403121561523e578081fd5b813561292c8161594e565b60006020828403121561525a578081fd5b815161292c8161594e565b60008060208385031215615277578182fd5b823567ffffffffffffffff81111561528d578283fd5b61529985828601614ea3565b90969095509350505050565b6000806000604084860312156152b9578081fd5b833567ffffffffffffffff8111156152cf578182fd5b6152db86828701614ea3565b90945092505060208401356152ef81615940565b809150509250925092565b60006020828403121561530b578081fd5b813567ffffffffffffffff811115615321578182fd5b612aca84828501614e52565b60006020828403121561533e578081fd5b815167ffffffffffffffff811115615354578182fd5b8201601f81018413615364578182fd5b8051615372614e70826157c2565b818152856020838501011115615386578384fd5b61490782602083016020860161584c565b600080604083850312156153a9578182fd5b823567ffffffffffffffff808211156153c0578384fd5b6153cc86838701614e52565b935060208501359150808211156153e1578283fd5b5061509985828601614e52565b6000602082840312156153ff578081fd5b5035919050565b60008060006060848603121561541a578081fd5b83359250614f5a60208501614df2565b60008060006040848603121561543e578081fd5b83359250602084013567ffffffffffffffff8111156150db578182fd5b6000806040838503121561546d578182fd5b50508035926020909101359150565b6000815180845261549481602086016020860161584c565b601f01601f19169290920160200192915050565b8054600090600281046001808316806154c257607f831692505b60208084108214156154e257634e487b7160e01b86526022600452602486fd5b8180156154f6576001811461550757615534565b60ff19861689528489019650615534565b60008881526020902060005b8681101561552c5781548b820152908501908301615513565b505084890196505b50505050505092915050565b6000825161555281846020870161584c565b9190910192915050565b600061556882856154a8565b835161557881836020880161584c565b01949350505050565b6000612aca61559083866154a8565b846154a8565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143e0608083018461547c565b6020808252825182820181905260009190848201906040850190845b818110156156095783516001600160a01b0316835292840192918401916001016155e4565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561560957835183529284019291840191600101615631565b60006020825261292c602083018461547c565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201527f647920696e697469616c697a6564000000000000000000000000000000000000606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000808335601e19843603018112615762578283fd5b83018035915067ffffffffffffffff82111561577c578283fd5b602001915036819003821315614e4b57600080fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156157ba576157ba61592a565b604052919050565b600067ffffffffffffffff8211156157dc576157dc61592a565b50601f01601f191660200190565b600082198211156157fd576157fd6158fe565b500190565b60008261581157615811615914565b500490565b6000816000190483118215151615615830576158306158fe565b500290565b600082821015615847576158476158fe565b500390565b60005b8381101561586757818101518382015260200161584f565b8381111561227b5750506000910152565b60028104600182168061588c57607f821691505b60208210811415613b5057634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156158c5576158c56158fe565b6001019392505050565b60006000198214156158e3576158e36158fe565b5060010190565b6000826158f9576158f9615914565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610fc957600080fd5b6001600160e01b031981168114610fc957600080fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65644d7573742062652072656769737465726564206d616e61676572000000000000a26469706673582212201ad40a6e917b97023dc76742a8bfaa42b5734a08c749c1ad11248567d142134b64736f6c63430008020033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.