ETH Price: $3,095.36 (-1.24%)

Contract

0xc86d45d130cD16d08664941cE4166f3d716A3D05
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040148391532022-05-25 1:58:59910 days ago1653443939IN
 Create: PropsComicUpgradeable
0 ETH0.2422884145.58817167

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PropsComicUpgradeable

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 30 : PropsComicUpgradeable.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.4;

//  ==========  External imports    ==========

import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol";

import "@thirdweb-dev/contracts/openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol";
import "@thirdweb-dev/contracts/feature/interface/IOwnable.sol";
import "@thirdweb-dev/contracts/lib/MerkleProof.sol";

//  ==========  Internal imports    ==========

import "../interfaces/IAllowlist.sol";
import "../interfaces/IConfig.sol";
import "../interfaces/IPropsContract.sol";
import "../interfaces/IPropsAccessRegistry.sol";

contract PropsComicUpgradeable is
    Initializable,
    IOwnable,
    IAllowlist,
    IConfig,
    IPropsContract,
    ReentrancyGuardUpgradeable,
    PausableUpgradeable,
    ERC2771ContextUpgradeable,
    MulticallUpgradeable,
    AccessControlEnumerableUpgradeable,
    ERC721EnumerableUpgradeable
{
    using StringsUpgradeable for uint256;
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.Bytes32Set;
    using ECDSAUpgradeable for bytes32;

    //////////////////////////////////////////////
    // State Vars
    /////////////////////////////////////////////

    bytes32 private constant MODULE_TYPE = bytes32("PropsComic");
    uint256 private constant VERSION = 1;

    uint256 private nextTokenId;
    mapping(address => uint256) public minted;
    mapping(address => mapping(uint256 => uint256)) public mintedByAllowlist;

    mapping(uint256 => uint256) public typeByTokenId;

    bytes32 private constant CONTRACT_ADMIN_ROLE =
        keccak256("CONTRACT_ADMIN_ROLE");
    bytes32 private constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 private constant PRODUCER_ROLE = keccak256("PRODUCER_ROLE");
    // @dev reserving space for 10 more roles
    bytes32[32] private __gap;

    string private baseURI_;
    string public contractURI;
    address private _owner;
    address private accessRegistry;
    address public project;
    address public receivingWallet;
    address public signatureVerifier;
    address[] private trustedForwarders;

    Allowlists public allowlists;
    Config public config;

    //////////////////////////////////////////////
    // Errors
    /////////////////////////////////////////////

    error AllowlistInactive();
    error MintQuantityInvalid();
    error MerkleProofInvalid();
    error MintClosed();
    error MintZeroQuantity();
    error InsufficientFunds();

    //////////////////////////////////////////////
    // Events
    /////////////////////////////////////////////

    event Minted(address indexed account, string tokens);
    event Fused(address indexed account, string tokens);

    //////////////////////////////////////////////
    // Init
    /////////////////////////////////////////////

    function initialize(
        address _defaultAdmin,
        string memory _name,
        string memory _symbol,
        string memory _baseURI,
        address[] memory _trustedForwarders,
        address _receivingWallet,
        address _accessRegistry
    ) public initializer {
        __ReentrancyGuard_init();
        __ERC2771Context_init(_trustedForwarders);
        __ERC721_init(_name, _symbol);

        receivingWallet = _receivingWallet;
        _owner = _defaultAdmin;
        accessRegistry = _accessRegistry;
        baseURI_ = _baseURI;

        _setupRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);
        _setRoleAdmin(CONTRACT_ADMIN_ROLE, DEFAULT_ADMIN_ROLE);
        _setRoleAdmin(PRODUCER_ROLE, CONTRACT_ADMIN_ROLE);
        _setRoleAdmin(MINTER_ROLE, PRODUCER_ROLE);

        nextTokenId = 1;

        // call registry add here
        // add default admin entry to registry
        IPropsAccessRegistry(accessRegistry).add(_defaultAdmin, address(this));
    }

    /*///////////////////////////////////////////////////////////////
                      Generic contract logic
  //////////////////////////////////////////////////////////////*/

    /// @dev Returns the type of the contract.
    function contractType() external pure returns (bytes32) {
        return MODULE_TYPE;
    }

    /// @dev Returns the version of the contract.
    function contractVersion() external pure returns (uint8) {
        return uint8(VERSION);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return hasRole(DEFAULT_ADMIN_ROLE, _owner) ? _owner : address(0);
    }

    /*///////////////////////////////////////////////////////////////
                      ERC 165 / 721 logic
  //////////////////////////////////////////////////////////////*/

    /**
     * @dev see {IERC721Metadata}
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(_tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return
            string(
                abi.encodePacked(
                    baseURI_,
                    typeByTokenId[_tokenId].toString(),
                    ".json"
                )
            );
    }

    /**
     * @dev see {IERC165-supportsInterface}
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(
            AccessControlEnumerableUpgradeable,
            ERC721EnumerableUpgradeable
        )
        returns (bool)
    {
        return
            super.supportsInterface(interfaceId) ||
            type(IERC2981Upgradeable).interfaceId == interfaceId;
    }

    function mint(
        uint256[] calldata _quantities,
        bytes32[][] calldata _proofs,
        uint256[] calldata _allotments,
        uint256[] calldata _allowlistIds
    ) external payable nonReentrant {
        require(
            isTrustedForwarder(msg.sender) || _msgSender() == tx.origin,
            "BOT"
        );
        require(isUniqueArray(_allowlistIds), "Duplicate Allowlist Values");
        uint256 _cost = 0;
        uint256 _quantity = 0;

        for (uint256 i = 0; i < _quantities.length; i++) {
            _quantity += _quantities[i];

            // @dev Require could save .029kb
            revertOnInactiveList(_allowlistIds[i]);
            revertOnAllocationCheckFailure(
                msg.sender,
                _allowlistIds[i],
                mintedByAllowlist[msg.sender][_allowlistIds[i]],
                _quantities[i],
                _allotments[i],
                _proofs[i]
            );
            _cost += allowlists.lists[_allowlistIds[i]].price * _quantities[i];
        }

        require(
            nextTokenId + _quantity - 1 <= config.mintConfig.maxSupply,
            "Exceeded max supply."
        );

        if (_cost > msg.value) revert InsufficientFunds();
        payable(receivingWallet).transfer(msg.value);

        // mint _quantity tokens
        string memory tokensMinted = "";
        unchecked {
            //for each quantity index
            for (uint256 i = 0; i < _quantities.length; i++) {
                //for each quantity in that index
                mintedByAllowlist[address(msg.sender)][
                    _allowlistIds[i]
                ] += _quantities[i];
                for (uint256 j = 0; j < _quantities[i]; j++) {
                    tokensMinted = string(
                        abi.encodePacked(
                            tokensMinted,
                            nextTokenId.toString(),
                            ","
                        )
                    );
                    typeByTokenId[nextTokenId] = allowlists
                        .lists[_allowlistIds[i]]
                        .tokenPool;
                    _safeMint(msg.sender, nextTokenId);
                    nextTokenId++;
                }
            }
        }
        emit Minted(msg.sender, tokensMinted);
    }

    function airdrop(address[] calldata __to, uint256[] calldata __quantities)
        external
        minRole(MINTER_ROLE)
    {
        for (uint256 i = 0; i < __to.length; i++) {
            for (uint256 j = 0; j < __quantities[i]; j++) {
                _safeMint(__to[i], nextTokenId);
                nextTokenId++;
            }
        }
    }

    function fuse(
        uint256[] memory __inputTokenIDs,
        uint256[] memory __outputTokenTypeIDs,
        bytes memory signature
    ) external {
        require(
            ECDSAUpgradeable.recover(
                keccak256(
                    abi.encodePacked(
                        msg.sender,
                        __inputTokenIDs,
                        __outputTokenTypeIDs
                    )
                ).toEthSignedMessageHash(),
                signature
            ) == signatureVerifier,
            "Invalid Signature"
        );
        for (uint256 i = 0; i < __inputTokenIDs.length; i++) {
            burn(__inputTokenIDs[i]);
        }
        string memory tokensMinted = "";
        for (uint256 i = 0; i < __outputTokenTypeIDs.length; i++) {
            tokensMinted = string(
                abi.encodePacked(tokensMinted, nextTokenId.toString(), ",")
            );
            typeByTokenId[nextTokenId] = __outputTokenTypeIDs[i];
            _safeMint(msg.sender, nextTokenId);
            nextTokenId++;
        }

        emit Fused(msg.sender, tokensMinted);
    }

    function revertOnInactiveList(uint256 _allowlistId) internal view {
        if (
            paused() ||
            block.timestamp < allowlists.lists[_allowlistId].startTime ||
            block.timestamp > allowlists.lists[_allowlistId].endTime ||
            !allowlists.lists[_allowlistId].isActive
        ) revert AllowlistInactive();
    }

    // @dev +~0.695kb
    function revertOnAllocationCheckFailure(
        address _address,
        uint256 _allowlistId,
        uint256 _minted,
        uint256 _quantity,
        uint256 _alloted,
        bytes32[] calldata _proof
    ) internal view {
        if (_quantity == 0) revert MintZeroQuantity();
        Allowlist storage allowlist = allowlists.lists[_allowlistId];
        if (_quantity + _minted > allowlist.maxMintPerWallet)
            revert MintQuantityInvalid();
        if (allowlist.typedata != bytes32(0)) {
            if (_quantity > _alloted || ((_quantity + _minted) > _alloted))
                revert MintQuantityInvalid();
            (bool validMerkleProof, ) = MerkleProof
                .verify(
                    _proof,
                    allowlist.typedata,
                    keccak256(abi.encodePacked(_address, _alloted))
                );
            if (!validMerkleProof) revert MerkleProofInvalid();
        }
    }

    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Burnable: caller is not owner nor approved"
        );
        _burn(tokenId);
    }

    /*///////////////////////////////////////////////////////////////
                      Allowlist Logic
  //////////////////////////////////////////////////////////////*/

    function setAllowlists(Allowlist[] calldata _allowlists)
        external
        minRole(PRODUCER_ROLE)
    {
        allowlists.count = _allowlists.length;
        for (uint256 i = 0; i < _allowlists.length; i++) {
            allowlists.lists[i] = _allowlists[i];
        }
    }

    function updateAllowlistByIndex(Allowlist calldata _allowlist, uint256 i)
        external
        minRole(PRODUCER_ROLE)
    {
        allowlists.lists[i] = _allowlist;
    }

    function addAllowlist(Allowlist calldata _allowlist)
        external
        minRole(PRODUCER_ROLE)
    {
        allowlists.lists[allowlists.count] = _allowlist;
        allowlists.count++;
    }

    /*///////////////////////////////////////////////////////////////
                      Getters
  //////////////////////////////////////////////////////////////*/

    /// @dev Returns the allowlist at the given uid.
    function getAllowlistById(uint256 _allowlistId)
        external
        view
        returns (Allowlist memory allowlist)
    {
        allowlist = allowlists.lists[_allowlistId];
    }

    /// @dev Returns the number of minted tokens for sender by allowlist.
    function getMintedByAllowlist(uint256 _allowlistId)
        external
        view
        returns (uint256 minted_)
    {
        minted_ = mintedByAllowlist[msg.sender][_allowlistId];
    }

    /*///////////////////////////////////////////////////////////////
                      Setters
  //////////////////////////////////////////////////////////////*/

    function setReceivingWallet(address _address)
        external
        minRole(CONTRACT_ADMIN_ROLE)
    {
        receivingWallet = _address;
    }

    function setSignatureVerifier(address _address)
        external
        minRole(CONTRACT_ADMIN_ROLE)
    {
        signatureVerifier = _address;
    }

    function setConfig(Config calldata _config)
        external
        minRole(PRODUCER_ROLE)
    {
        config = _config;
    }

    /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
    function setOwner(address _newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(hasRole(DEFAULT_ADMIN_ROLE, _newOwner), "!ADMIN");
        address _prevOwner = _owner;
        _owner = _newOwner;

        emit OwnerUpdated(_prevOwner, _newOwner);
    }

    /// @dev Lets a contract admin set the URI for contract-level metadata.
    function setContractURI(string calldata _uri)
        external
        minRole(CONTRACT_ADMIN_ROLE)
    {
        contractURI = _uri;
    }

    /// @dev Lets a contract admin set the URI for the baseURI.
    function setBaseURI(string calldata _baseURI)
        external
        minRole(CONTRACT_ADMIN_ROLE)
    {
        baseURI_ = _baseURI;
    }

    /// @dev Lets a contract admin set the address for the access registry.
    function setAccessRegistry(address _accessRegistry)
        external
        minRole(CONTRACT_ADMIN_ROLE)
    {
        accessRegistry = _accessRegistry;
    }

    /// @dev Lets a contract admin set the address for the parent project.
    function setProject(address _project) external minRole(PRODUCER_ROLE) {
        project = _project;
    }

    /*///////////////////////////////////////////////////////////////
                      Miscellaneous / Overrides
  //////////////////////////////////////////////////////////////*/

    function pause() external minRole(MINTER_ROLE) {
        _pause();
    }

    function unpause() external minRole(MINTER_ROLE) {
        _unpause();
    }

    function grantRole(bytes32 role, address account)
        public
        virtual
        override(AccessControlUpgradeable, IAccessControlUpgradeable)
        minRole(CONTRACT_ADMIN_ROLE)
    {
        if (!hasRole(role, account)) {
            super._grantRole(role, account);
            IPropsAccessRegistry(accessRegistry).add(account, address(this));
        }
    }

    function revokeRole(bytes32 role, address account)
        public
        virtual
        override(AccessControlUpgradeable, IAccessControlUpgradeable)
        minRole(CONTRACT_ADMIN_ROLE)
    {
        if (hasRole(role, account)) {
            // @dev ya'll can't take your own admin role, fool.
            if (role == DEFAULT_ADMIN_ROLE && account == owner()) revert();
            // #TODO check if it still adds roles (enumerable)!
            super._revokeRole(role, account);
            IPropsAccessRegistry(accessRegistry).remove(account, address(this));
        }
    }

    function isUniqueArray(uint256[] calldata _array)
        internal
        pure
        returns (bool)
    {
        for (uint256 i = 0; i < _array.length; i++) {
            for (uint256 j = 0; j < _array.length; j++) {
                if (_array[i] == _array[j] && i != j) return false;
            }
        }
        return true;
    }

    /**
     * @dev Check if minimum role for function is required.
     */
    modifier minRole(bytes32 _role) {
        require(_hasMinRole(_role), "Not authorized");
        _;
    }

    function hasMinRole(bytes32 _role) public view virtual returns (bool) {
        return _hasMinRole(_role);
    }

    function _hasMinRole(bytes32 _role) internal view returns (bool) {
        // @dev does account have role?
        if (hasRole(_role, _msgSender())) return true;
        // @dev are we checking against default admin?
        if (_role == DEFAULT_ADMIN_ROLE) return false;
        // @dev walk up tree to check if user has role admin role
        return _hasMinRole(getRoleAdmin(_role));
    }

    // /// @dev See {ERC721-_beforeTokenTransfer}.
    // function _beforeTokenTransfer(
    //     address from,
    //     address to,
    //     uint256 tokenId
    // ) internal virtual override(ERC721AUpgradeable) {
    //     super._beforeTokenTransfer(from, to, tokenId);
    // }

    function _msgSender()
        internal
        view
        virtual
        override(ContextUpgradeable, ERC2771ContextUpgradeable)
        returns (address sender)
    {
        return ERC2771ContextUpgradeable._msgSender();
    }

    function _msgData()
        internal
        view
        virtual
        override(ContextUpgradeable, ERC2771ContextUpgradeable)
        returns (bytes calldata)
    {
        return ERC2771ContextUpgradeable._msgData();
    }

    uint256[49] private ___gap;
}

File 2 of 30 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721Upgradeable.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * @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[46] private __gap;
}

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

pragma solidity ^0.8.0;

import "./IAccessControlEnumerableUpgradeable.sol";
import "./AccessControlUpgradeable.sol";
import "../utils/structs/EnumerableSetUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable {
    function __AccessControlEnumerable_init() internal onlyInitializing {
    }

    function __AccessControlEnumerable_init_unchained() internal onlyInitializing {
    }
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;

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

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

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

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

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

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

    /**
     * @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 4 of 30 : 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 5 of 30 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

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

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

    /**
     * @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 6 of 30 : MulticallUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Multicall.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract MulticallUpgradeable is Initializable {
    function __Multicall_init() internal onlyInitializing {
    }

    function __Multicall_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = _functionDelegateCall(address(this), data[i]);
        }
        return results;
    }

    /**
     * @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 7 of 30 : 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 8 of 30 : IERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 30 : EnumerableSetUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 10 of 30 : ECDSAUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../StringsUpgradeable.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSAUpgradeable {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 30 : ERC2771ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (metatx/ERC2771Context.sol)

pragma solidity ^0.8.11;

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

/**
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771ContextUpgradeable is Initializable, ContextUpgradeable {
    mapping(address => bool) private _trustedForwarder;

    function __ERC2771Context_init(address[] memory trustedForwarder) internal onlyInitializing {
        __Context_init_unchained();
        __ERC2771Context_init_unchained(trustedForwarder);
    }

    function __ERC2771Context_init_unchained(address[] memory trustedForwarder) internal onlyInitializing {
        for (uint256 i = 0; i < trustedForwarder.length; i++) {
            _trustedForwarder[trustedForwarder[i]] = true;
        }
    }

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

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }

    uint256[49] private __gap;
}

File 12 of 30 : IOwnable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

interface IOwnable {
    /// @dev Returns the owner of the contract.
    function owner() external view returns (address);

    /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin.
    function setOwner(address _newOwner) external;

    /// @dev Emitted when a new Owner is set.
    event OwnerUpdated(address prevOwner, address newOwner);
}

File 13 of 30 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// Modified from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.3.0/contracts/utils/cryptography/MerkleProof.sol
// Copied from https://github.com/ensdomains/governance/blob/master/contracts/MerkleProof.sol

pragma solidity ^0.8.11;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * Source: https://github.com/ensdomains/governance/blob/master/contracts/MerkleProof.sol
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool, uint256) {
        bytes32 computedHash = leaf;
        uint256 index = 0;

        for (uint256 i = 0; i < proof.length; i++) {
            index *= 2;
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
                index += 1;
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return (computedHash == root, index);
    }
}

File 14 of 30 : IAllowlist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface IAllowlist {

    struct Allowlist {
       bytes32 typedata;
       bool isActive;
       string metadataUri;
       string name;
       uint256 price;
       uint256 maxMintPerWallet;
       uint256 tokenPool;
       uint256 startTime;
       uint256 endTime;
   }

   struct Allowlists {
     uint256 currentStartId;
     uint256 count;
     mapping(uint256 => Allowlist) lists;
   }

}

File 15 of 30 : IConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/// @author: @props

/**
 * @dev
 */
interface IConfig {

    /**
    * @dev Retool that - legacy
    */
    // enum Extensions {
    //     Allowlist,
    //     Royalty,
    //     Split
    // }

    /**
    * @dev
    */
    struct Config {
        Mint mintConfig;
        Token tokenConfig;
    }

    /**
    * @dev
    */
    struct Mint {
        bool isActive;
        uint256 startTime;
        uint256 endTime;
        uint256 maxSupply;
        uint256 maxPerWallet;
        uint256 maxPerTxn;
        uint256 price;
    }

    /**
    * @dev
    */
    struct Token {
        string metadataUri;
    }

}

File 16 of 30 : IPropsContract.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

interface IPropsContract {
    /// @dev Returns the module type of the contract.
    function contractType() external pure returns (bytes32);

    /// @dev Returns the version of the contract.
    function contractVersion() external pure returns (uint8);

    /// @dev Returns the metadata URI of the contract.
    function contractURI() external view returns (string memory);

    /**
     *  @dev Sets contract URI for the storefront-level metadata of the contract.
     *       Only module admin can call this function.
     */
    function setContractURI(string calldata _uri) external;
}

File 17 of 30 : IPropsAccessRegistry.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

interface IPropsAccessRegistry {
    /// @dev Adds role access entry in access registry.
    function add(address _account, address _deployment) external;

    /// @dev Reduces/Removes role access entry in access registry.
    function remove(address _account, address _deployment) external;
}

File 18 of 30 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 overridden 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 19 of 30 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 20 of 30 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

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.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * 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 prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

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

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // 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, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 21 of 30 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 22 of 30 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 23 of 30 : 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 24 of 30 : 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 25 of 30 : 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 26 of 30 : 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 27 of 30 : 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 28 of 30 : IAccessControlEnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";

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

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

File 29 of 30 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

    /**
     * @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 30 of 30 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"AllowlistInactive","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"MerkleProofInvalid","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintQuantityInvalid","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"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":"account","type":"address"},{"indexed":false,"internalType":"string","name":"tokens","type":"string"}],"name":"Fused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"string","name":"tokens","type":"string"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"_allowlist","type":"tuple"}],"name":"addAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"__to","type":"address[]"},{"internalType":"uint256[]","name":"__quantities","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlists","outputs":[{"internalType":"uint256","name":"currentStartId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"components":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTxn","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct IConfig.Mint","name":"mintConfig","type":"tuple"},{"components":[{"internalType":"string","name":"metadataUri","type":"string"}],"internalType":"struct IConfig.Token","name":"tokenConfig","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractType","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractVersion","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"__inputTokenIDs","type":"uint256[]"},{"internalType":"uint256[]","name":"__outputTokenTypeIDs","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"fuse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistId","type":"uint256"}],"name":"getAllowlistById","outputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"allowlist","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistId","type":"uint256"}],"name":"getMintedByAllowlist","outputs":[{"internalType":"uint256","name":"minted_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"}],"name":"hasMinRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_defaultAdmin","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address[]","name":"_trustedForwarders","type":"address[]"},{"internalType":"address","name":"_receivingWallet","type":"address"},{"internalType":"address","name":"_accessRegistry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_proofs","type":"bytes32[][]"},{"internalType":"uint256[]","name":"_allotments","type":"uint256[]"},{"internalType":"uint256[]","name":"_allowlistIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedByAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"project","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receivingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"_accessRegistry","type":"address"}],"name":"setAccessRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist[]","name":"_allowlists","type":"tuple[]"}],"name":"setAllowlists","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":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTxn","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct IConfig.Mint","name":"mintConfig","type":"tuple"},{"components":[{"internalType":"string","name":"metadataUri","type":"string"}],"internalType":"struct IConfig.Token","name":"tokenConfig","type":"tuple"}],"internalType":"struct IConfig.Config","name":"_config","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_project","type":"address"}],"name":"setProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setReceivingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSignatureVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"","type":"uint256"}],"name":"typeByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"_allowlist","type":"tuple"},{"internalType":"uint256","name":"i","type":"uint256"}],"name":"updateAllowlistByIndex","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50615f4080620000216000396000f3fe6080604052600436106103975760003560e01c8063806feae3116101dc578063ac9650d811610102578063d547741f116100a0578063e985e9c51161006f578063e985e9c514610b54578063f60ca60d14610b9e578063fb108ea614610bbf578063fde919f614610bdf57600080fd5b8063d547741f14610ad1578063dd1ea32f14610af1578063e08a660514610b1f578063e8a3d48514610b3f57600080fd5b8063b88d4fde116100dc578063b88d4fde14610a3e578063c87b56dd14610a5e578063ca15c87314610a7e578063cb2ef6f714610a9e57600080fd5b8063ac9650d8146109d1578063b3738dfc146109fe578063b522ecff14610a1e57600080fd5b806391d148541161017a5780639ef44ead116101495780639ef44ead14610960578063a0a8e46014610980578063a217fddf1461099c578063a22cb465146109b157600080fd5b806391d14854146108d1578063938e3d7b14610918578063942593991461093857806395d89b411461094b57600080fd5b806387b63e3a116101b657806387b63e3a146108435780638b81a7ee1461087c5780638da5cb5b1461089c5780639010d07c146108b157600080fd5b8063806feae3146107ee57806383de187b1461080e5780638456cb591461082e57600080fd5b806342966c68116102c157806363906d0d1161025f57806370a082311161022e57806370a082311461076a578063738170a41461078a57806379502c55146107ab5780637a535498146107ce57600080fd5b806363906d0d146106d857806364274fef1461070a578063666f8ca41461072a578063672434821461074a57600080fd5b8063572b6c051161029b578063572b6c051461063a5780635c975abb146106735780636182ff531461068b5780636352211e146106b857600080fd5b806342966c68146105da5780634f6ccce7146105fa57806355f804b31461061a57600080fd5b806323b872dd1161033957806336568abe1161030857806336568abe1461054c5780633b6fda591461056c5780633f4ba83a146105a557806342842e0e146105ba57600080fd5b806323b872dd146104bb578063248a9ca3146104db5780632f2ff15d1461050c5780632f745c591461052c57600080fd5b8063095ea7b311610375578063095ea7b31461042b57806313af40351461044d57806318160ddd1461046d5780631e7269c51461048d57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004614e00565b610c00565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610c2c565b6040516103c89190614e75565b3480156103ff57600080fd5b5061041361040e366004614e88565b610cbf565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b610446366004614eb8565b610d5b565b005b34801561045957600080fd5b5061044b610468366004614ee2565b610e83565b34801561047957600080fd5b506101c5545b6040519081526020016103c8565b34801561049957600080fd5b5061047f6104a8366004614ee2565b6101f66020526000908152604090205481565b3480156104c757600080fd5b5061044b6104d6366004614efd565b610f78565b3480156104e757600080fd5b5061047f6104f6366004614e88565b600090815261012d602052604090206001015490565b34801561051857600080fd5b5061044b610527366004614f39565b611006565b34801561053857600080fd5b5061047f610547366004614eb8565b6110fc565b34801561055857600080fd5b5061044b610567366004614f39565b6111a5565b34801561057857600080fd5b5061047f610587366004614eb8565b6101f760209081526000928352604080842090915290825290205481565b3480156105b157600080fd5b5061044b611241565b3480156105c657600080fd5b5061044b6105d5366004614efd565b6112b3565b3480156105e657600080fd5b5061044b6105f5366004614e88565b6112ce565b34801561060657600080fd5b5061047f610615366004614e88565b611354565b34801561062657600080fd5b5061044b610635366004614f65565b6113fa565b34801561064657600080fd5b506103bc610655366004614ee2565b6001600160a01b031660009081526097602052604090205460ff1690565b34801561067f57600080fd5b5060655460ff166103bc565b34801561069757600080fd5b506106ab6106a6366004614e88565b611462565b6040516103c89190614fd7565b3480156106c457600080fd5b506104136106d3366004614e88565b61164b565b3480156106e457600080fd5b5061022154610222546106f5919082565b604080519283526020830191909152016103c8565b34801561071657600080fd5b5061044b61072536600461508d565b6116d7565b34801561073657600080fd5b5061044b610745366004614ee2565b611760565b34801561075657600080fd5b5061044b610765366004615117565b6117d9565b34801561077657600080fd5b5061047f610785366004614ee2565b6118e5565b34801561079657600080fd5b5061021e54610413906001600160a01b031681565b3480156107b757600080fd5b506107c0611980565b6040516103c8929190615183565b3480156107da57600080fd5b5061044b6107e9366004615336565b611a74565b3480156107fa57600080fd5b5061044b6108093660046153be565b611c9a565b34801561081a57600080fd5b5061044b610829366004615400565b611d64565b34801561083a57600080fd5b5061044b611dd9565b34801561084f57600080fd5b5061047f61085e366004614e88565b3360009081526101f760209081526040808320938352929052205490565b34801561088857600080fd5b5061044b61089736600461543c565b611e48565b3480156108a857600080fd5b50610413611eea565b3480156108bd57600080fd5b506104136108cc366004615471565b611f45565b3480156108dd57600080fd5b506103bc6108ec366004614f39565b600091825261012d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561092457600080fd5b5061044b610933366004614f65565b611f65565b61044b610946366004615493565b611fc7565b34801561095757600080fd5b506103e66124b4565b34801561096c57600080fd5b5061044b61097b3660046155b9565b6124c4565b34801561098c57600080fd5b50604051600181526020016103c8565b3480156109a857600080fd5b5061047f600081565b3480156109bd57600080fd5b5061044b6109cc3660046156a6565b6126ba565b3480156109dd57600080fd5b506109f16109ec3660046153be565b6126cc565b6040516103c891906156dd565b348015610a0a57600080fd5b506103bc610a19366004614e88565b6127c1565b348015610a2a57600080fd5b5061044b610a39366004614ee2565b6127cc565b348015610a4a57600080fd5b5061044b610a5936600461573f565b612845565b348015610a6a57600080fd5b506103e6610a79366004614e88565b6128d4565b348015610a8a57600080fd5b5061047f610a99366004614e88565b6129a6565b348015610aaa57600080fd5b507f50726f7073436f6d69630000000000000000000000000000000000000000000061047f565b348015610add57600080fd5b5061044b610aec366004614f39565b6129be565b348015610afd57600080fd5b5061047f610b0c366004614e88565b6101f86020526000908152604090205481565b348015610b2b57600080fd5b5061044b610b3a366004614ee2565b612ab2565b348015610b4b57600080fd5b506103e6612b2b565b348015610b6057600080fd5b506103bc610b6f3660046157a7565b6001600160a01b0391821660009081526101966020908152604080832093909416825291909152205460ff1690565b348015610baa57600080fd5b5061021d54610413906001600160a01b031681565b348015610bcb57600080fd5b5061044b610bda366004614ee2565b612bba565b348015610beb57600080fd5b5061021f54610413906001600160a01b031681565b6000610c0b82612c45565b80610c26575063152a902d60e11b6001600160e01b03198316145b92915050565b60606101918054610c3c906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610c68906157d1565b8015610cb55780601f10610c8a57610100808354040283529160200191610cb5565b820191906000526020600020905b815481529060010190602001808311610c9857829003601f168201915b5050505050905090565b600081815261019360205260408120546001600160a01b0316610d3e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815261019560205260409020546001600160a01b031690565b6000610d668261164b565b9050806001600160a01b0316836001600160a01b03161415610dd45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d35565b806001600160a01b0316610de6612c6a565b6001600160a01b03161480610e025750610e0281610b6f612c6a565b610e745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d35565b610e7e8383612c74565b505050565b6000610e8e81612ce3565b6001600160a01b03821660009081527fa581b17bfc4d6578e300cafbf34fd2dc1fef0270d8c73f88a99dcde2859a6639602052604090205460ff16610f155760405162461bcd60e51b815260206004820152600660248201527f2141444d494e00000000000000000000000000000000000000000000000000006044820152606401610d35565b61021b80546001600160a01b038481166001600160a01b031983168117909355604080519190921680825260208201939093527f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76910160405180910390a1505050565b610f89610f83612c6a565b82612cf4565b610ffb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b610e7e838383612ded565b600080516020615f1483398151915261101e81612faf565b61105b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b600083815261012d602090815260408083206001600160a01b038616845290915290205460ff16610e7e576110908383612ff3565b61021c546040516352c28fab60e01b81526001600160a01b038481166004830152306024830152909116906352c28fab906044015b600060405180830381600087803b1580156110df57600080fd5b505af11580156110f3573d6000803e3d6000fd5b50505050505050565b6000611107836118e5565b821061117b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d35565b506001600160a01b039190911660009081526101c360209081526040808320938352929052205490565b6111ad612c6a565b6001600160a01b0316816001600160a01b0316146112335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d35565b61123d8282613016565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661126b81612faf565b6112a85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b6112b0613039565b50565b610e7e83838360405180602001604052806000815250612845565b6112d9610f83612c6a565b61134b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610d35565b6112b0816130db565b60006113606101c55490565b82106113d45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d35565b6101c582815481106113e8576113e8615806565b90600052602060002001549050919050565b600080516020615f1483398151915261141281612faf565b61144f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61145c6102198484614cdd565b50505050565b6114b660405180610120016040528060008019168152602001600015158152602001606081526020016060815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000828152610223602090815260409182902082516101208101845281548152600182015460ff1615159281019290925260028101805492939192918401916114fe906157d1565b80601f016020809104026020016040519081016040528092919081815260200182805461152a906157d1565b80156115775780601f1061154c57610100808354040283529160200191611577565b820191906000526020600020905b81548152906001019060200180831161155a57829003601f168201915b50505050508152602001600382018054611590906157d1565b80601f01602080910402602001604051908101604052809291908181526020018280546115bc906157d1565b80156116095780601f106115de57610100808354040283529160200191611609565b820191906000526020600020905b8154815290600101906020018083116115ec57829003601f168201915b50505050508152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b600081815261019360205260408120546001600160a01b031680610c265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d35565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a861170181612faf565b61173e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b60008281526102236020526040902083906117598282615976565b5050505050565b600080516020615f1483398151915261177881612faf565b6117b55760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021c80546001600160a01b0319166001600160a01b0392909216919091179055565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661180381612faf565b6118405760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b60005b848110156118dd5760005b84848381811061186057611860615806565b905060200201358110156118ca576118a187878481811061188357611883615806565b90506020020160208101906118989190614ee2565b6101f554613184565b6101f580549060006118b283615a29565b919050555080806118c290615a29565b91505061184e565b50806118d581615a29565b915050611843565b505050505050565b60006001600160a01b0382166119635760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d35565b506001600160a01b03166000908152610194602052604090205490565b6040805160e081018252610224805460ff16151582526102255460208084019190915261022654838501526102275460608401526102285460808401526102295460a084015261022a5460c0840152835190810190935261022b805492939192829082906119ed906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611a19906157d1565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b505050505081525050905082565b61021f546040516001600160a01b0390911690611b0790611b0190611aa190339088908890602001615a77565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b8361319e565b6001600160a01b031614611b5d5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606401610d35565b60005b8351811015611b9d57611b8b848281518110611b7e57611b7e615806565b60200260200101516112ce565b80611b9581615a29565b915050611b60565b50604080516020810190915260008082525b8351811015611c525781611bc56101f5546131c2565b604051602001611bd6929190615aa4565b6040516020818303038152906040529150838181518110611bf957611bf9615806565b60200260200101516101f860006101f554815260200190815260200160002081905550611c29336101f554613184565b6101f58054906000611c3a83615a29565b91905055508080611c4a90615a29565b915050611baf565b50336001600160a01b03167f6bed6bbded8053806d92fb7bc101a8967966561ff2864c66c92b461499c47e5682604051611c8c9190614e75565b60405180910390a250505050565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611cc481612faf565b611d015760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61022282905560005b8281101561145c57838382818110611d2457611d24615806565b9050602002810190611d369190615adf565b600082815261022360205260409020611d4f8282615976565b50819050611d5c81615a29565b915050611d0a565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611d8e81612faf565b611dcb5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b8161022461145c8282615bc9565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e0381612faf565b611e405760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b6112b06132c0565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611e7281612faf565b611eaf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b610222546000908152610223602052604090208290611ece8282615976565b50506102228054906000611ee183615a29565b91905055505050565b61021b546001600160a01b031660009081527fa581b17bfc4d6578e300cafbf34fd2dc1fef0270d8c73f88a99dcde2859a6639602052604081205460ff16611f325750600090565b61021b546001600160a01b03165b905090565b600082815261015f60205260408120611f5e9083613349565b9392505050565b600080516020615f14833981519152611f7d81612faf565b611fba5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61145c61021a8484614cdd565b6002600154141561201a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d35565b60026001553360009081526097602052604090205460ff168061204c575032612041612c6a565b6001600160a01b0316145b61207e5760405162461bcd60e51b81526020600482015260036024820152621093d560ea1b6044820152606401610d35565b6120888282613355565b6120d45760405162461bcd60e51b815260206004820152601a60248201527f4475706c696361746520416c6c6f776c6973742056616c7565730000000000006044820152606401610d35565b60008060005b89811015612253578a8a828181106120f4576120f4615806565b90506020020135826121069190615c46565b915061212985858381811061211d5761211d615806565b905060200201356133ea565b6121df3386868481811061213f5761213f615806565b3360009081526101f7602090815260408220920293909301359290915089898781811061216e5761216e615806565b905060200201358152602001908152602001600020548e8e8681811061219657612196615806565b905060200201358b8b878181106121af576121af615806565b905060200201358e8e888181106121c8576121c8615806565b90506020028101906121da9190615c5e565b613464565b8a8a828181106121f1576121f1615806565b90506020020135610221600201600087878581811061221257612212615806565b905060200201358152602001908152602001600020600401546122359190615ca8565b61223f9084615c46565b92508061224b81615a29565b9150506120da565b50610227546101f55460019061226a908490615c46565b6122749190615cc7565b11156122c25760405162461bcd60e51b815260206004820152601460248201527f4578636565646564206d617820737570706c792e0000000000000000000000006044820152606401610d35565b348211156122e35760405163356680b760e01b815260040160405180910390fd5b61021e546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561231d573d6000803e3d6000fd5b50604080516020810190915260008082525b8a811015612461578b8b8281811061234957612349615806565b3360009081526101f7602090815260408220920293909301359290915088888581811061237857612378615806565b9050602002013581526020019081526020016000206000828254019250508190555060005b8c8c838181106123af576123af615806565b9050602002013581101561245857826123ca6101f5546131c2565b6040516020016123db929190615aa4565b60408051601f198184030181529190529250610223600088888581811061240457612404615806565b905060200201358152602001908152602001600020600601546101f860006101f554815260200190815260200160002081905550612445336101f554613184565b6101f5805460019081019091550161239d565b5060010161232f565b50336001600160a01b03167f0c1b180fbb60448c5491c5ddc7c3a923854214b9ff70f90a7821333338971f928260405161249b9190614e75565b60405180910390a2505060018055505050505050505050565b60606101928054610c3c906157d1565b60006124d060016135ad565b905080156124e8576000805461ff0019166101001790555b6124f06136c8565b6124f98461373d565b61250387876137b9565b61021e80546001600160a01b038086166001600160a01b03199283161790925561021b80548b841690831617905561021c805492851692909116919091179055845161255790610219906020880190614d61565b5061256360008961382e565b61257c600080516020615f148339815191526000613838565b6125b47f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8600080516020615f14833981519152613838565b6125fe7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a67f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8613838565b60016101f55561021c546040516352c28fab60e01b81526001600160a01b038a81166004830152306024830152909116906352c28fab90604401600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b5050505080156126b0576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61123d6126c5612c6a565b8383613884565b60608167ffffffffffffffff8111156126e7576126e76151f0565b60405190808252806020026020018201604052801561271a57816020015b60608152602001906001900390816127055790505b50905060005b828110156127ba5761278a3085858481811061273e5761273e615806565b90506020028101906127509190615829565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061395492505050565b82828151811061279c5761279c615806565b602002602001018190525080806127b290615a29565b915050612720565b5092915050565b6000610c2682612faf565b600080516020615f148339815191526127e481612faf565b6128215760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021e80546001600160a01b0319166001600160a01b0392909216919091179055565b612856612850612c6a565b83612cf4565b6128c85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b61145c84848484613a5f565b600081815261019360205260409020546060906001600160a01b03166129625760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d35565b60008281526101f860205260409020546102199061297f906131c2565b604051602001612990929190615cde565b6040516020818303038152906040529050919050565b600081815261015f60205260408120610c2690613add565b600080516020615f148339815191526129d681612faf565b612a135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b600083815261012d602090815260408083206001600160a01b038616845290915290205460ff1615610e7e5782158015612a655750612a50611eea565b6001600160a01b0316826001600160a01b0316145b15612a6f57600080fd5b612a798383613016565b61021c54604051637f7c149160e01b81526001600160a01b03848116600483015230602483015290911690637f7c1491906044016110c5565b600080516020615f14833981519152612aca81612faf565b612b075760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021f80546001600160a01b0319166001600160a01b0392909216919091179055565b61021a8054612b39906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612b65906157d1565b8015612bb25780601f10612b8757610100808354040283529160200191612bb2565b820191906000526020600020905b815481529060010190602001808311612b9557829003601f168201915b505050505081565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8612be481612faf565b612c215760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610c265750610c2682613ae7565b6000611f40613b27565b60008181526101956020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612caa8261164b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112b081612cef612c6a565b613b51565b600081815261019360205260408120546001600160a01b0316612d6e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d35565b6000612d798361164b565b9050806001600160a01b0316846001600160a01b03161480612dc157506001600160a01b038082166000908152610196602090815260408083209388168352929052205460ff165b80612de55750836001600160a01b0316612dda84610cbf565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e008261164b565b6001600160a01b031614612e7c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d35565b6001600160a01b038216612ede5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d35565b612ee9838383613bd2565b612ef4600082612c74565b6001600160a01b038316600090815261019460205260408120805460019290612f1e908490615cc7565b90915550506001600160a01b038216600090815261019460205260408120805460019290612f4d908490615c46565b90915550506000818152610193602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612fbd826108ec612c6a565b15612fca57506001919050565b81612fd757506000919050565b600082815261012d6020526040902060010154610c2690612faf565b612ffd8282613c8c565b600082815261015f60205260409020610e7e9082613d31565b6130208282613d46565b600082815261015f60205260409020610e7e9082613de9565b60655460ff1661308b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d35565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6130be612c6a565b6040516001600160a01b03909116815260200160405180910390a1565b60006130e68261164b565b90506130f481600084613bd2565b6130ff600083612c74565b6001600160a01b038116600090815261019460205260408120805460019290613129908490615cc7565b90915550506000828152610193602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61123d828260405180602001604052806000815250613dfe565b60008060006131ad8585613e7c565b915091506131ba81613eec565b509392505050565b6060816131e65750506040805180820190915260018152600360fc1b602082015290565b8160005b811561321057806131fa81615a29565b91506132099050600a83615d9f565b91506131ea565b60008167ffffffffffffffff81111561322b5761322b6151f0565b6040519080825280601f01601f191660200182016040528015613255576020820181803683370190505b5090505b8415612de55761326a600183615cc7565b9150613277600a86615db3565b613282906030615c46565b60f81b81838151811061329757613297615806565b60200101906001600160f81b031916908160001a9053506132b9600a86615d9f565b9450613259565b60655460ff16156133135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d35565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130be612c6a565b6000611f5e83836140a7565b6000805b828110156133e05760005b838110156133cd5784848281811061337e5761337e615806565b9050602002013585858481811061339757613397615806565b905060200201351480156133ab5750808214155b156133bb57600092505050610c26565b806133c581615a29565b915050613364565b50806133d881615a29565b915050613359565b5060019392505050565b60655460ff168061340c57506000818152610223602052604090206007015442105b8061342857506000818152610223602052604090206008015442115b8061344657506000818152610223602052604090206001015460ff16155b156112b0576040516347cc82cd60e01b815260040160405180910390fd5b836134825760405163b562e8dd60e01b815260040160405180910390fd5b60008681526102236020526040902060058101546134a08787615c46565b11156134bf57604051631f43edc360e11b815260040160405180910390fd5b8054156126b057838511806134dc5750836134da8787615c46565b115b156134fa57604051631f43edc360e11b815260040160405180910390fd5b600061358184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050855460405190925061356691508d908a9060200160609290921b6bffffffffffffffffffffffff19168252601482015260340190565b604051602081830303815290604052805190602001206140d1565b509050806135a25760405163c8ac23c360e01b815260040160405180910390fd5b505050505050505050565b60008054610100900460ff161561363b578160ff1660011480156135d05750303b155b6136335760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d35565b506000919050565b60005460ff8084169116106136a95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d35565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166137335760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b61373b61419f565b565b600054610100900460ff166137a85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b6137b0614210565b6112b08161427b565b600054610100900460ff166138245760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b61123d828261434e565b61123d8282612ff3565b600082815261012d6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b816001600160a01b0316836001600160a01b031614156138e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d35565b6001600160a01b0383811660008181526101966020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60606001600160a01b0383163b6139d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610d35565b600080846001600160a01b0316846040516139ee9190615dc7565b600060405180830381855af49150503d8060008114613a29576040519150601f19603f3d011682016040523d82523d6000602084013e613a2e565b606091505b5091509150613a568282604051806060016040528060278152602001615eed602791396143e2565b95945050505050565b613a6a848484612ded565b613a768484848461441b565b61145c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b6000610c26825490565b60006001600160e01b031982166380ac58cd60e01b1480613b1857506001600160e01b03198216635b5e139f60e01b145b80610c265750610c268261456b565b3360009081526097602052604081205460ff1615613b4c575060131936013560601c90565b503390565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff1661123d57613b90816001600160a01b03166014614590565b613b9b836020614590565b604051602001613bac929190615dd9565b60408051601f198184030181529082905262461bcd60e51b8252610d3591600401614e75565b6001600160a01b038316613c2f57613c2a816101c5805460008381526101c660205260408120829055600182018355919091527f818f40e4590a6f2c3ec1caee0533b9960911937d8dd67c8f1447b1392a84f2530155565b613c52565b816001600160a01b0316836001600160a01b031614613c5257613c528382614739565b6001600160a01b038216613c6957610e7e816147db565b826001600160a01b0316826001600160a01b031614610e7e57610e7e8282614890565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff1661123d57600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613ced612c6a565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611f5e836001600160a01b0384166148d6565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff161561123d57600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff19169055613da5612c6a565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000611f5e836001600160a01b038416614925565b613e088383614a18565b613e15600084848461441b565b610e7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b600080825160411415613eb35760208301516040840151606085015160001a613ea787828585614b69565b94509450505050613ee5565b825160401415613edd5760208301516040840151613ed2868383614c56565b935093505050613ee5565b506000905060025b9250929050565b6000816004811115613f0057613f00615e5a565b1415613f095750565b6001816004811115613f1d57613f1d615e5a565b1415613f6b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d35565b6002816004811115613f7f57613f7f615e5a565b1415613fcd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d35565b6003816004811115613fe157613fe1615e5a565b141561403a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d35565b600481600481111561404e5761404e615e5a565b14156112b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d35565b60008260000182815481106140be576140be615806565b9060005260206000200154905092915050565b6000808281805b8751811015614193576140ec600283615ca8565b9150600088828151811061410257614102615806565b60200260200101519050808411614144576040805160208101869052908101829052606001604051602081830303815290604052805190602001209350614180565b604080516020810183905290810185905260600160405160208183030381529060405280519060200120935060018361417d9190615c46565b92505b508061418b81615a29565b9150506140d8565b50941495939450505050565b600054610100900460ff1661420a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b60018055565b600054610100900460ff1661373b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b600054610100900460ff166142e65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b60005b815181101561123d5760016097600084848151811061430a5761430a615806565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061434681615a29565b9150506142e9565b600054610100900460ff166143b95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b81516143cd90610191906020850190614d61565b508051610e7e90610192906020840190614d61565b606083156143f1575081611f5e565b8251156144015782518084602001fd5b8160405162461bcd60e51b8152600401610d359190614e75565b60006001600160a01b0384163b1561456057836001600160a01b031663150b7a02614444612c6a565b8786866040518563ffffffff1660e01b81526004016144669493929190615e70565b6020604051808303816000875af19250505080156144a1575060408051601f3d908101601f1916820190925261449e91810190615ea2565b60015b614546573d8080156144cf576040519150601f19603f3d011682016040523d82523d6000602084013e6144d4565b606091505b50805161453e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612de5565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b1480610c265750610c2682614ca8565b6060600061459f836002615ca8565b6145aa906002615c46565b67ffffffffffffffff8111156145c2576145c26151f0565b6040519080825280601f01601f1916602001820160405280156145ec576020820181803683370190505b509050600360fc1b8160008151811061460757614607615806565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061463657614636615806565b60200101906001600160f81b031916908160001a905350600061465a846002615ca8565b614665906001615c46565b90505b60018111156146ea577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106146a6576146a6615806565b1a60f81b8282815181106146bc576146bc615806565b60200101906001600160f81b031916908160001a90535060049490941c936146e381615ebf565b9050614668565b508315611f5e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d35565b60006001614746846118e5565b6147509190615cc7565b60008381526101c460205260409020549091508082146147a6576001600160a01b03841660009081526101c36020908152604080832085845282528083205484845281842081905583526101c490915290208190555b5060009182526101c4602090815260408084208490556001600160a01b0390941683526101c381528383209183525290812055565b6101c5546000906147ee90600190615cc7565b60008381526101c660205260408120546101c5805493945090928490811061481857614818615806565b90600052602060002001549050806101c5838154811061483a5761483a615806565b60009182526020808320909101929092558281526101c690915260408082208490558582528120556101c580548061487457614874615ed6565b6001900381819060005260206000200160009055905550505050565b600061489b836118e5565b6001600160a01b0390931660009081526101c36020908152604080832086845282528083208590559382526101c49052919091209190915550565b600081815260018301602052604081205461491d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c26565b506000610c26565b60008181526001830160205260408120548015614a0e576000614949600183615cc7565b855490915060009061495d90600190615cc7565b90508181146149c257600086600001828154811061497d5761497d615806565b90600052602060002001549050808760000184815481106149a0576149a0615806565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806149d3576149d3615ed6565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c26565b6000915050610c26565b6001600160a01b038216614a6e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d35565b600081815261019360205260409020546001600160a01b031615614ad45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d35565b614ae060008383613bd2565b6001600160a01b038216600090815261019460205260408120805460019290614b0a908490615c46565b90915550506000818152610193602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614ba05750600090506003614c4d565b8460ff16601b14158015614bb857508460ff16601c14155b15614bc95750600090506004614c4d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614c1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614c4657600060019250925050614c4d565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681614c8c60ff86901c601b615c46565b9050614c9a87828885614b69565b935093505050935093915050565b60006001600160e01b03198216637965db0b60e01b1480610c2657506301ffc9a760e01b6001600160e01b0319831614610c26565b828054614ce9906157d1565b90600052602060002090601f016020900481019282614d0b5760008555614d51565b82601f10614d245782800160ff19823516178555614d51565b82800160010185558215614d51579182015b82811115614d51578235825591602001919060010190614d36565b50614d5d929150614dd5565b5090565b828054614d6d906157d1565b90600052602060002090601f016020900481019282614d8f5760008555614d51565b82601f10614da857805160ff1916838001178555614d51565b82800160010185558215614d51579182015b82811115614d51578251825591602001919060010190614dba565b5b80821115614d5d5760008155600101614dd6565b6001600160e01b0319811681146112b057600080fd5b600060208284031215614e1257600080fd5b8135611f5e81614dea565b60005b83811015614e38578181015183820152602001614e20565b8381111561145c5750506000910152565b60008151808452614e61816020860160208601614e1d565b601f01601f19169290920160200192915050565b602081526000611f5e6020830184614e49565b600060208284031215614e9a57600080fd5b5035919050565b80356001600160a01b03811681146136c357600080fd5b60008060408385031215614ecb57600080fd5b614ed483614ea1565b946020939093013593505050565b600060208284031215614ef457600080fd5b611f5e82614ea1565b600080600060608486031215614f1257600080fd5b614f1b84614ea1565b9250614f2960208501614ea1565b9150604084013590509250925092565b60008060408385031215614f4c57600080fd5b82359150614f5c60208401614ea1565b90509250929050565b60008060208385031215614f7857600080fd5b823567ffffffffffffffff80821115614f9057600080fd5b818501915085601f830112614fa457600080fd5b813581811115614fb357600080fd5b866020828501011115614fc557600080fd5b60209290920196919550909350505050565b602081528151602082015260006020830151614ff7604084018215159052565b506040830151610120806060850152615014610140850183614e49565b91506060850151601f198584030160808601526150318382614e49565b925050608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100818187015280870151838701525050508091505092915050565b6000610120828403121561508757600080fd5b50919050565b600080604083850312156150a057600080fd5b823567ffffffffffffffff8111156150b757600080fd5b6150c385828601615074565b95602094909401359450505050565b60008083601f8401126150e457600080fd5b50813567ffffffffffffffff8111156150fc57600080fd5b6020830191508360208260051b8501011115613ee557600080fd5b6000806000806040858703121561512d57600080fd5b843567ffffffffffffffff8082111561514557600080fd5b615151888389016150d2565b9096509450602087013591508082111561516a57600080fd5b50615177878288016150d2565b95989497509550505050565b60006101008451151583526020850151602084015260408501516040840152606085015160608401526080850151608084015260a085015160a084015260c085015160c08401528060e084015283516020828501526151e6610120850182614e49565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561522f5761522f6151f0565b604052919050565b600067ffffffffffffffff821115615251576152516151f0565b5060051b60200190565b600082601f83011261526c57600080fd5b8135602061528161527c83615237565b615206565b82815260059290921b840181019181810190868411156152a057600080fd5b8286015b848110156152bb57803583529183019183016152a4565b509695505050505050565b600082601f8301126152d757600080fd5b813567ffffffffffffffff8111156152f1576152f16151f0565b615304601f8201601f1916602001615206565b81815284602083860101111561531957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534b57600080fd5b833567ffffffffffffffff8082111561536357600080fd5b61536f8783880161525b565b9450602086013591508082111561538557600080fd5b6153918783880161525b565b935060408601359150808211156153a757600080fd5b506153b4868287016152c6565b9150509250925092565b600080602083850312156153d157600080fd5b823567ffffffffffffffff8111156153e857600080fd5b6153f4858286016150d2565b90969095509350505050565b60006020828403121561541257600080fd5b813567ffffffffffffffff81111561542957600080fd5b82016101008185031215611f5e57600080fd5b60006020828403121561544e57600080fd5b813567ffffffffffffffff81111561546557600080fd5b612de584828501615074565b6000806040838503121561548457600080fd5b50508035926020909101359150565b6000806000806000806000806080898b0312156154af57600080fd5b883567ffffffffffffffff808211156154c757600080fd5b6154d38c838d016150d2565b909a50985060208b01359150808211156154ec57600080fd5b6154f88c838d016150d2565b909850965060408b013591508082111561551157600080fd5b61551d8c838d016150d2565b909650945060608b013591508082111561553657600080fd5b506155438b828c016150d2565b999c989b5096995094979396929594505050565b600082601f83011261556857600080fd5b8135602061557861527c83615237565b82815260059290921b8401810191818101908684111561559757600080fd5b8286015b848110156152bb576155ac81614ea1565b835291830191830161559b565b600080600080600080600060e0888a0312156155d457600080fd5b6155dd88614ea1565b9650602088013567ffffffffffffffff808211156155fa57600080fd5b6156068b838c016152c6565b975060408a013591508082111561561c57600080fd5b6156288b838c016152c6565b965060608a013591508082111561563e57600080fd5b61564a8b838c016152c6565b955060808a013591508082111561566057600080fd5b5061566d8a828b01615557565b93505061567c60a08901614ea1565b915061568a60c08901614ea1565b905092959891949750929550565b80151581146112b057600080fd5b600080604083850312156156b957600080fd5b6156c283614ea1565b915060208301356156d281615698565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561573257603f19888603018452615720858351614e49565b94509285019290850190600101615704565b5092979650505050505050565b6000806000806080858703121561575557600080fd5b61575e85614ea1565b935061576c60208601614ea1565b925060408501359150606085013567ffffffffffffffff81111561578f57600080fd5b61579b878288016152c6565b91505092959194509250565b600080604083850312156157ba57600080fd5b6157c383614ea1565b9150614f5c60208401614ea1565b600181811c908216806157e557607f821691505b6020821081141561508757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008135610c2681615698565b6000808335601e1984360301811261584057600080fd5b83018035915067ffffffffffffffff82111561585b57600080fd5b602001915036819003821315613ee557600080fd5b601f821115610e7e57600081815260208120601f850160051c810160208610156158975750805b601f850160051c820191505b818110156118dd578281556001016158a3565b67ffffffffffffffff8311156158ce576158ce6151f0565b6158e2836158dc83546157d1565b83615870565b6000601f84116001811461591657600085156158fe5750838201355b600019600387901b1c1916600186901b178355611759565b600083815260209020601f19861690835b828110156159475786850135825560209485019460019092019101615927565b50868210156159645760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813581556159a26159896020840161581c565b6001830160ff1981541660ff8315151681178255505050565b6159af6040830183615829565b6159bd8183600286016158b6565b50506159cc6060830183615829565b6159da8183600386016158b6565b50506080820135600482015560a0820135600582015560c0820135600682015560e0820135600782015561010082013560088201555050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415615a3d57615a3d615a13565b5060010190565b60008151602080840160005b83811015615a6c57815187529582019590820190600101615a50565b509495945050505050565b6bffffffffffffffffffffffff198460601b1681526000613a56615a9e6014840186615a44565b84615a44565b60008351615ab6818460208801614e1d565b835190830190615aca818360208801614e1d565b600b60fa1b9101908152600101949350505050565b6000823561011e19833603018112615af657600080fd5b9190910192915050565b615b0a8283615829565b67ffffffffffffffff811115615b2257615b226151f0565b615b3681615b3085546157d1565b85615870565b6000601f821160018114615b6a5760008315615b525750838201355b600019600385901b1c1916600184901b1785556118dd565b600085815260209020601f19841690835b82811015615b9b5786850135825560209485019460019092019101615b7b565b5084821015615bb85760001960f88660031b161c19848701351681555b50505050600190811b019091555050565b8135615bd481615698565b815460ff191660ff82151516178255506020820135600182015560408201356002820155606082013560038201556080820135600482015560a0820135600582015560c0820135600682015560e0820135601e19833603018112615c3757600080fd5b610e7e81840160078401615b00565b60008219821115615c5957615c59615a13565b500190565b6000808335601e19843603018112615c7557600080fd5b83018035915067ffffffffffffffff821115615c9057600080fd5b6020019150600581901b3603821315613ee557600080fd5b6000816000190483118215151615615cc257615cc2615a13565b500290565b600082821015615cd957615cd9615a13565b500390565b6000808454615cec816157d1565b60018281168015615d045760018114615d1557615d44565b60ff19841687528287019450615d44565b8860005260208060002060005b85811015615d3b5781548a820152908401908201615d22565b50505082870194505b505050508351615d58818360208801614e1d565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b600082615dae57615dae615d89565b500490565b600082615dc257615dc2615d89565b500690565b60008251615af6818460208701614e1d565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615e11816017850160208801614e1d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615e4e816028840160208801614e1d565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526151e66080830184614e49565b600060208284031215615eb457600080fd5b8151611f5e81614dea565b600081615ece57615ece615a13565b506000190190565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65642ce8d04a9c35987429af538825cd2438cc5c5bb5dc427955f84daaa3ea105016a164736f6c634300080c000a

Deployed Bytecode

0x6080604052600436106103975760003560e01c8063806feae3116101dc578063ac9650d811610102578063d547741f116100a0578063e985e9c51161006f578063e985e9c514610b54578063f60ca60d14610b9e578063fb108ea614610bbf578063fde919f614610bdf57600080fd5b8063d547741f14610ad1578063dd1ea32f14610af1578063e08a660514610b1f578063e8a3d48514610b3f57600080fd5b8063b88d4fde116100dc578063b88d4fde14610a3e578063c87b56dd14610a5e578063ca15c87314610a7e578063cb2ef6f714610a9e57600080fd5b8063ac9650d8146109d1578063b3738dfc146109fe578063b522ecff14610a1e57600080fd5b806391d148541161017a5780639ef44ead116101495780639ef44ead14610960578063a0a8e46014610980578063a217fddf1461099c578063a22cb465146109b157600080fd5b806391d14854146108d1578063938e3d7b14610918578063942593991461093857806395d89b411461094b57600080fd5b806387b63e3a116101b657806387b63e3a146108435780638b81a7ee1461087c5780638da5cb5b1461089c5780639010d07c146108b157600080fd5b8063806feae3146107ee57806383de187b1461080e5780638456cb591461082e57600080fd5b806342966c68116102c157806363906d0d1161025f57806370a082311161022e57806370a082311461076a578063738170a41461078a57806379502c55146107ab5780637a535498146107ce57600080fd5b806363906d0d146106d857806364274fef1461070a578063666f8ca41461072a578063672434821461074a57600080fd5b8063572b6c051161029b578063572b6c051461063a5780635c975abb146106735780636182ff531461068b5780636352211e146106b857600080fd5b806342966c68146105da5780634f6ccce7146105fa57806355f804b31461061a57600080fd5b806323b872dd1161033957806336568abe1161030857806336568abe1461054c5780633b6fda591461056c5780633f4ba83a146105a557806342842e0e146105ba57600080fd5b806323b872dd146104bb578063248a9ca3146104db5780632f2ff15d1461050c5780632f745c591461052c57600080fd5b8063095ea7b311610375578063095ea7b31461042b57806313af40351461044d57806318160ddd1461046d5780631e7269c51461048d57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004614e00565b610c00565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610c2c565b6040516103c89190614e75565b3480156103ff57600080fd5b5061041361040e366004614e88565b610cbf565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b610446366004614eb8565b610d5b565b005b34801561045957600080fd5b5061044b610468366004614ee2565b610e83565b34801561047957600080fd5b506101c5545b6040519081526020016103c8565b34801561049957600080fd5b5061047f6104a8366004614ee2565b6101f66020526000908152604090205481565b3480156104c757600080fd5b5061044b6104d6366004614efd565b610f78565b3480156104e757600080fd5b5061047f6104f6366004614e88565b600090815261012d602052604090206001015490565b34801561051857600080fd5b5061044b610527366004614f39565b611006565b34801561053857600080fd5b5061047f610547366004614eb8565b6110fc565b34801561055857600080fd5b5061044b610567366004614f39565b6111a5565b34801561057857600080fd5b5061047f610587366004614eb8565b6101f760209081526000928352604080842090915290825290205481565b3480156105b157600080fd5b5061044b611241565b3480156105c657600080fd5b5061044b6105d5366004614efd565b6112b3565b3480156105e657600080fd5b5061044b6105f5366004614e88565b6112ce565b34801561060657600080fd5b5061047f610615366004614e88565b611354565b34801561062657600080fd5b5061044b610635366004614f65565b6113fa565b34801561064657600080fd5b506103bc610655366004614ee2565b6001600160a01b031660009081526097602052604090205460ff1690565b34801561067f57600080fd5b5060655460ff166103bc565b34801561069757600080fd5b506106ab6106a6366004614e88565b611462565b6040516103c89190614fd7565b3480156106c457600080fd5b506104136106d3366004614e88565b61164b565b3480156106e457600080fd5b5061022154610222546106f5919082565b604080519283526020830191909152016103c8565b34801561071657600080fd5b5061044b61072536600461508d565b6116d7565b34801561073657600080fd5b5061044b610745366004614ee2565b611760565b34801561075657600080fd5b5061044b610765366004615117565b6117d9565b34801561077657600080fd5b5061047f610785366004614ee2565b6118e5565b34801561079657600080fd5b5061021e54610413906001600160a01b031681565b3480156107b757600080fd5b506107c0611980565b6040516103c8929190615183565b3480156107da57600080fd5b5061044b6107e9366004615336565b611a74565b3480156107fa57600080fd5b5061044b6108093660046153be565b611c9a565b34801561081a57600080fd5b5061044b610829366004615400565b611d64565b34801561083a57600080fd5b5061044b611dd9565b34801561084f57600080fd5b5061047f61085e366004614e88565b3360009081526101f760209081526040808320938352929052205490565b34801561088857600080fd5b5061044b61089736600461543c565b611e48565b3480156108a857600080fd5b50610413611eea565b3480156108bd57600080fd5b506104136108cc366004615471565b611f45565b3480156108dd57600080fd5b506103bc6108ec366004614f39565b600091825261012d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561092457600080fd5b5061044b610933366004614f65565b611f65565b61044b610946366004615493565b611fc7565b34801561095757600080fd5b506103e66124b4565b34801561096c57600080fd5b5061044b61097b3660046155b9565b6124c4565b34801561098c57600080fd5b50604051600181526020016103c8565b3480156109a857600080fd5b5061047f600081565b3480156109bd57600080fd5b5061044b6109cc3660046156a6565b6126ba565b3480156109dd57600080fd5b506109f16109ec3660046153be565b6126cc565b6040516103c891906156dd565b348015610a0a57600080fd5b506103bc610a19366004614e88565b6127c1565b348015610a2a57600080fd5b5061044b610a39366004614ee2565b6127cc565b348015610a4a57600080fd5b5061044b610a5936600461573f565b612845565b348015610a6a57600080fd5b506103e6610a79366004614e88565b6128d4565b348015610a8a57600080fd5b5061047f610a99366004614e88565b6129a6565b348015610aaa57600080fd5b507f50726f7073436f6d69630000000000000000000000000000000000000000000061047f565b348015610add57600080fd5b5061044b610aec366004614f39565b6129be565b348015610afd57600080fd5b5061047f610b0c366004614e88565b6101f86020526000908152604090205481565b348015610b2b57600080fd5b5061044b610b3a366004614ee2565b612ab2565b348015610b4b57600080fd5b506103e6612b2b565b348015610b6057600080fd5b506103bc610b6f3660046157a7565b6001600160a01b0391821660009081526101966020908152604080832093909416825291909152205460ff1690565b348015610baa57600080fd5b5061021d54610413906001600160a01b031681565b348015610bcb57600080fd5b5061044b610bda366004614ee2565b612bba565b348015610beb57600080fd5b5061021f54610413906001600160a01b031681565b6000610c0b82612c45565b80610c26575063152a902d60e11b6001600160e01b03198316145b92915050565b60606101918054610c3c906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610c68906157d1565b8015610cb55780601f10610c8a57610100808354040283529160200191610cb5565b820191906000526020600020905b815481529060010190602001808311610c9857829003601f168201915b5050505050905090565b600081815261019360205260408120546001600160a01b0316610d3e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815261019560205260409020546001600160a01b031690565b6000610d668261164b565b9050806001600160a01b0316836001600160a01b03161415610dd45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d35565b806001600160a01b0316610de6612c6a565b6001600160a01b03161480610e025750610e0281610b6f612c6a565b610e745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d35565b610e7e8383612c74565b505050565b6000610e8e81612ce3565b6001600160a01b03821660009081527fa581b17bfc4d6578e300cafbf34fd2dc1fef0270d8c73f88a99dcde2859a6639602052604090205460ff16610f155760405162461bcd60e51b815260206004820152600660248201527f2141444d494e00000000000000000000000000000000000000000000000000006044820152606401610d35565b61021b80546001600160a01b038481166001600160a01b031983168117909355604080519190921680825260208201939093527f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76910160405180910390a1505050565b610f89610f83612c6a565b82612cf4565b610ffb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b610e7e838383612ded565b600080516020615f1483398151915261101e81612faf565b61105b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b600083815261012d602090815260408083206001600160a01b038616845290915290205460ff16610e7e576110908383612ff3565b61021c546040516352c28fab60e01b81526001600160a01b038481166004830152306024830152909116906352c28fab906044015b600060405180830381600087803b1580156110df57600080fd5b505af11580156110f3573d6000803e3d6000fd5b50505050505050565b6000611107836118e5565b821061117b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d35565b506001600160a01b039190911660009081526101c360209081526040808320938352929052205490565b6111ad612c6a565b6001600160a01b0316816001600160a01b0316146112335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d35565b61123d8282613016565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661126b81612faf565b6112a85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b6112b0613039565b50565b610e7e83838360405180602001604052806000815250612845565b6112d9610f83612c6a565b61134b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610d35565b6112b0816130db565b60006113606101c55490565b82106113d45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d35565b6101c582815481106113e8576113e8615806565b90600052602060002001549050919050565b600080516020615f1483398151915261141281612faf565b61144f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61145c6102198484614cdd565b50505050565b6114b660405180610120016040528060008019168152602001600015158152602001606081526020016060815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000828152610223602090815260409182902082516101208101845281548152600182015460ff1615159281019290925260028101805492939192918401916114fe906157d1565b80601f016020809104026020016040519081016040528092919081815260200182805461152a906157d1565b80156115775780601f1061154c57610100808354040283529160200191611577565b820191906000526020600020905b81548152906001019060200180831161155a57829003601f168201915b50505050508152602001600382018054611590906157d1565b80601f01602080910402602001604051908101604052809291908181526020018280546115bc906157d1565b80156116095780601f106115de57610100808354040283529160200191611609565b820191906000526020600020905b8154815290600101906020018083116115ec57829003601f168201915b50505050508152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b600081815261019360205260408120546001600160a01b031680610c265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d35565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a861170181612faf565b61173e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b60008281526102236020526040902083906117598282615976565b5050505050565b600080516020615f1483398151915261177881612faf565b6117b55760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021c80546001600160a01b0319166001600160a01b0392909216919091179055565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661180381612faf565b6118405760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b60005b848110156118dd5760005b84848381811061186057611860615806565b905060200201358110156118ca576118a187878481811061188357611883615806565b90506020020160208101906118989190614ee2565b6101f554613184565b6101f580549060006118b283615a29565b919050555080806118c290615a29565b91505061184e565b50806118d581615a29565b915050611843565b505050505050565b60006001600160a01b0382166119635760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d35565b506001600160a01b03166000908152610194602052604090205490565b6040805160e081018252610224805460ff16151582526102255460208084019190915261022654838501526102275460608401526102285460808401526102295460a084015261022a5460c0840152835190810190935261022b805492939192829082906119ed906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611a19906157d1565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b505050505081525050905082565b61021f546040516001600160a01b0390911690611b0790611b0190611aa190339088908890602001615a77565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b8361319e565b6001600160a01b031614611b5d5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606401610d35565b60005b8351811015611b9d57611b8b848281518110611b7e57611b7e615806565b60200260200101516112ce565b80611b9581615a29565b915050611b60565b50604080516020810190915260008082525b8351811015611c525781611bc56101f5546131c2565b604051602001611bd6929190615aa4565b6040516020818303038152906040529150838181518110611bf957611bf9615806565b60200260200101516101f860006101f554815260200190815260200160002081905550611c29336101f554613184565b6101f58054906000611c3a83615a29565b91905055508080611c4a90615a29565b915050611baf565b50336001600160a01b03167f6bed6bbded8053806d92fb7bc101a8967966561ff2864c66c92b461499c47e5682604051611c8c9190614e75565b60405180910390a250505050565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611cc481612faf565b611d015760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61022282905560005b8281101561145c57838382818110611d2457611d24615806565b9050602002810190611d369190615adf565b600082815261022360205260409020611d4f8282615976565b50819050611d5c81615a29565b915050611d0a565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611d8e81612faf565b611dcb5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b8161022461145c8282615bc9565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e0381612faf565b611e405760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b6112b06132c0565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8611e7281612faf565b611eaf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b610222546000908152610223602052604090208290611ece8282615976565b50506102228054906000611ee183615a29565b91905055505050565b61021b546001600160a01b031660009081527fa581b17bfc4d6578e300cafbf34fd2dc1fef0270d8c73f88a99dcde2859a6639602052604081205460ff16611f325750600090565b61021b546001600160a01b03165b905090565b600082815261015f60205260408120611f5e9083613349565b9392505050565b600080516020615f14833981519152611f7d81612faf565b611fba5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b61145c61021a8484614cdd565b6002600154141561201a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d35565b60026001553360009081526097602052604090205460ff168061204c575032612041612c6a565b6001600160a01b0316145b61207e5760405162461bcd60e51b81526020600482015260036024820152621093d560ea1b6044820152606401610d35565b6120888282613355565b6120d45760405162461bcd60e51b815260206004820152601a60248201527f4475706c696361746520416c6c6f776c6973742056616c7565730000000000006044820152606401610d35565b60008060005b89811015612253578a8a828181106120f4576120f4615806565b90506020020135826121069190615c46565b915061212985858381811061211d5761211d615806565b905060200201356133ea565b6121df3386868481811061213f5761213f615806565b3360009081526101f7602090815260408220920293909301359290915089898781811061216e5761216e615806565b905060200201358152602001908152602001600020548e8e8681811061219657612196615806565b905060200201358b8b878181106121af576121af615806565b905060200201358e8e888181106121c8576121c8615806565b90506020028101906121da9190615c5e565b613464565b8a8a828181106121f1576121f1615806565b90506020020135610221600201600087878581811061221257612212615806565b905060200201358152602001908152602001600020600401546122359190615ca8565b61223f9084615c46565b92508061224b81615a29565b9150506120da565b50610227546101f55460019061226a908490615c46565b6122749190615cc7565b11156122c25760405162461bcd60e51b815260206004820152601460248201527f4578636565646564206d617820737570706c792e0000000000000000000000006044820152606401610d35565b348211156122e35760405163356680b760e01b815260040160405180910390fd5b61021e546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561231d573d6000803e3d6000fd5b50604080516020810190915260008082525b8a811015612461578b8b8281811061234957612349615806565b3360009081526101f7602090815260408220920293909301359290915088888581811061237857612378615806565b9050602002013581526020019081526020016000206000828254019250508190555060005b8c8c838181106123af576123af615806565b9050602002013581101561245857826123ca6101f5546131c2565b6040516020016123db929190615aa4565b60408051601f198184030181529190529250610223600088888581811061240457612404615806565b905060200201358152602001908152602001600020600601546101f860006101f554815260200190815260200160002081905550612445336101f554613184565b6101f5805460019081019091550161239d565b5060010161232f565b50336001600160a01b03167f0c1b180fbb60448c5491c5ddc7c3a923854214b9ff70f90a7821333338971f928260405161249b9190614e75565b60405180910390a2505060018055505050505050505050565b60606101928054610c3c906157d1565b60006124d060016135ad565b905080156124e8576000805461ff0019166101001790555b6124f06136c8565b6124f98461373d565b61250387876137b9565b61021e80546001600160a01b038086166001600160a01b03199283161790925561021b80548b841690831617905561021c805492851692909116919091179055845161255790610219906020880190614d61565b5061256360008961382e565b61257c600080516020615f148339815191526000613838565b6125b47f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8600080516020615f14833981519152613838565b6125fe7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a67f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8613838565b60016101f55561021c546040516352c28fab60e01b81526001600160a01b038a81166004830152306024830152909116906352c28fab90604401600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b5050505080156126b0576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61123d6126c5612c6a565b8383613884565b60608167ffffffffffffffff8111156126e7576126e76151f0565b60405190808252806020026020018201604052801561271a57816020015b60608152602001906001900390816127055790505b50905060005b828110156127ba5761278a3085858481811061273e5761273e615806565b90506020028101906127509190615829565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061395492505050565b82828151811061279c5761279c615806565b602002602001018190525080806127b290615a29565b915050612720565b5092915050565b6000610c2682612faf565b600080516020615f148339815191526127e481612faf565b6128215760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021e80546001600160a01b0319166001600160a01b0392909216919091179055565b612856612850612c6a565b83612cf4565b6128c85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d35565b61145c84848484613a5f565b600081815261019360205260409020546060906001600160a01b03166129625760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d35565b60008281526101f860205260409020546102199061297f906131c2565b604051602001612990929190615cde565b6040516020818303038152906040529050919050565b600081815261015f60205260408120610c2690613add565b600080516020615f148339815191526129d681612faf565b612a135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b600083815261012d602090815260408083206001600160a01b038616845290915290205460ff1615610e7e5782158015612a655750612a50611eea565b6001600160a01b0316826001600160a01b0316145b15612a6f57600080fd5b612a798383613016565b61021c54604051637f7c149160e01b81526001600160a01b03848116600483015230602483015290911690637f7c1491906044016110c5565b600080516020615f14833981519152612aca81612faf565b612b075760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021f80546001600160a01b0319166001600160a01b0392909216919091179055565b61021a8054612b39906157d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612b65906157d1565b8015612bb25780601f10612b8757610100808354040283529160200191612bb2565b820191906000526020600020905b815481529060010190602001808311612b9557829003601f168201915b505050505081565b7f8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8612be481612faf565b612c215760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610d35565b5061021d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610c265750610c2682613ae7565b6000611f40613b27565b60008181526101956020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612caa8261164b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112b081612cef612c6a565b613b51565b600081815261019360205260408120546001600160a01b0316612d6e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d35565b6000612d798361164b565b9050806001600160a01b0316846001600160a01b03161480612dc157506001600160a01b038082166000908152610196602090815260408083209388168352929052205460ff165b80612de55750836001600160a01b0316612dda84610cbf565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e008261164b565b6001600160a01b031614612e7c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d35565b6001600160a01b038216612ede5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d35565b612ee9838383613bd2565b612ef4600082612c74565b6001600160a01b038316600090815261019460205260408120805460019290612f1e908490615cc7565b90915550506001600160a01b038216600090815261019460205260408120805460019290612f4d908490615c46565b90915550506000818152610193602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612fbd826108ec612c6a565b15612fca57506001919050565b81612fd757506000919050565b600082815261012d6020526040902060010154610c2690612faf565b612ffd8282613c8c565b600082815261015f60205260409020610e7e9082613d31565b6130208282613d46565b600082815261015f60205260409020610e7e9082613de9565b60655460ff1661308b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d35565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6130be612c6a565b6040516001600160a01b03909116815260200160405180910390a1565b60006130e68261164b565b90506130f481600084613bd2565b6130ff600083612c74565b6001600160a01b038116600090815261019460205260408120805460019290613129908490615cc7565b90915550506000828152610193602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61123d828260405180602001604052806000815250613dfe565b60008060006131ad8585613e7c565b915091506131ba81613eec565b509392505050565b6060816131e65750506040805180820190915260018152600360fc1b602082015290565b8160005b811561321057806131fa81615a29565b91506132099050600a83615d9f565b91506131ea565b60008167ffffffffffffffff81111561322b5761322b6151f0565b6040519080825280601f01601f191660200182016040528015613255576020820181803683370190505b5090505b8415612de55761326a600183615cc7565b9150613277600a86615db3565b613282906030615c46565b60f81b81838151811061329757613297615806565b60200101906001600160f81b031916908160001a9053506132b9600a86615d9f565b9450613259565b60655460ff16156133135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d35565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130be612c6a565b6000611f5e83836140a7565b6000805b828110156133e05760005b838110156133cd5784848281811061337e5761337e615806565b9050602002013585858481811061339757613397615806565b905060200201351480156133ab5750808214155b156133bb57600092505050610c26565b806133c581615a29565b915050613364565b50806133d881615a29565b915050613359565b5060019392505050565b60655460ff168061340c57506000818152610223602052604090206007015442105b8061342857506000818152610223602052604090206008015442115b8061344657506000818152610223602052604090206001015460ff16155b156112b0576040516347cc82cd60e01b815260040160405180910390fd5b836134825760405163b562e8dd60e01b815260040160405180910390fd5b60008681526102236020526040902060058101546134a08787615c46565b11156134bf57604051631f43edc360e11b815260040160405180910390fd5b8054156126b057838511806134dc5750836134da8787615c46565b115b156134fa57604051631f43edc360e11b815260040160405180910390fd5b600061358184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050855460405190925061356691508d908a9060200160609290921b6bffffffffffffffffffffffff19168252601482015260340190565b604051602081830303815290604052805190602001206140d1565b509050806135a25760405163c8ac23c360e01b815260040160405180910390fd5b505050505050505050565b60008054610100900460ff161561363b578160ff1660011480156135d05750303b155b6136335760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d35565b506000919050565b60005460ff8084169116106136a95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d35565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff166137335760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b61373b61419f565b565b600054610100900460ff166137a85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b6137b0614210565b6112b08161427b565b600054610100900460ff166138245760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b61123d828261434e565b61123d8282612ff3565b600082815261012d6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b816001600160a01b0316836001600160a01b031614156138e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d35565b6001600160a01b0383811660008181526101966020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60606001600160a01b0383163b6139d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610d35565b600080846001600160a01b0316846040516139ee9190615dc7565b600060405180830381855af49150503d8060008114613a29576040519150601f19603f3d011682016040523d82523d6000602084013e613a2e565b606091505b5091509150613a568282604051806060016040528060278152602001615eed602791396143e2565b95945050505050565b613a6a848484612ded565b613a768484848461441b565b61145c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b6000610c26825490565b60006001600160e01b031982166380ac58cd60e01b1480613b1857506001600160e01b03198216635b5e139f60e01b145b80610c265750610c268261456b565b3360009081526097602052604081205460ff1615613b4c575060131936013560601c90565b503390565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff1661123d57613b90816001600160a01b03166014614590565b613b9b836020614590565b604051602001613bac929190615dd9565b60408051601f198184030181529082905262461bcd60e51b8252610d3591600401614e75565b6001600160a01b038316613c2f57613c2a816101c5805460008381526101c660205260408120829055600182018355919091527f818f40e4590a6f2c3ec1caee0533b9960911937d8dd67c8f1447b1392a84f2530155565b613c52565b816001600160a01b0316836001600160a01b031614613c5257613c528382614739565b6001600160a01b038216613c6957610e7e816147db565b826001600160a01b0316826001600160a01b031614610e7e57610e7e8282614890565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff1661123d57600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613ced612c6a565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611f5e836001600160a01b0384166148d6565b600082815261012d602090815260408083206001600160a01b038516845290915290205460ff161561123d57600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff19169055613da5612c6a565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000611f5e836001600160a01b038416614925565b613e088383614a18565b613e15600084848461441b565b610e7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b600080825160411415613eb35760208301516040840151606085015160001a613ea787828585614b69565b94509450505050613ee5565b825160401415613edd5760208301516040840151613ed2868383614c56565b935093505050613ee5565b506000905060025b9250929050565b6000816004811115613f0057613f00615e5a565b1415613f095750565b6001816004811115613f1d57613f1d615e5a565b1415613f6b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d35565b6002816004811115613f7f57613f7f615e5a565b1415613fcd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d35565b6003816004811115613fe157613fe1615e5a565b141561403a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d35565b600481600481111561404e5761404e615e5a565b14156112b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d35565b60008260000182815481106140be576140be615806565b9060005260206000200154905092915050565b6000808281805b8751811015614193576140ec600283615ca8565b9150600088828151811061410257614102615806565b60200260200101519050808411614144576040805160208101869052908101829052606001604051602081830303815290604052805190602001209350614180565b604080516020810183905290810185905260600160405160208183030381529060405280519060200120935060018361417d9190615c46565b92505b508061418b81615a29565b9150506140d8565b50941495939450505050565b600054610100900460ff1661420a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b60018055565b600054610100900460ff1661373b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b600054610100900460ff166142e65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b60005b815181101561123d5760016097600084848151811061430a5761430a615806565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061434681615a29565b9150506142e9565b600054610100900460ff166143b95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610d35565b81516143cd90610191906020850190614d61565b508051610e7e90610192906020840190614d61565b606083156143f1575081611f5e565b8251156144015782518084602001fd5b8160405162461bcd60e51b8152600401610d359190614e75565b60006001600160a01b0384163b1561456057836001600160a01b031663150b7a02614444612c6a565b8786866040518563ffffffff1660e01b81526004016144669493929190615e70565b6020604051808303816000875af19250505080156144a1575060408051601f3d908101601f1916820190925261449e91810190615ea2565b60015b614546573d8080156144cf576040519150601f19603f3d011682016040523d82523d6000602084013e6144d4565b606091505b50805161453e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612de5565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b1480610c265750610c2682614ca8565b6060600061459f836002615ca8565b6145aa906002615c46565b67ffffffffffffffff8111156145c2576145c26151f0565b6040519080825280601f01601f1916602001820160405280156145ec576020820181803683370190505b509050600360fc1b8160008151811061460757614607615806565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061463657614636615806565b60200101906001600160f81b031916908160001a905350600061465a846002615ca8565b614665906001615c46565b90505b60018111156146ea577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106146a6576146a6615806565b1a60f81b8282815181106146bc576146bc615806565b60200101906001600160f81b031916908160001a90535060049490941c936146e381615ebf565b9050614668565b508315611f5e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d35565b60006001614746846118e5565b6147509190615cc7565b60008381526101c460205260409020549091508082146147a6576001600160a01b03841660009081526101c36020908152604080832085845282528083205484845281842081905583526101c490915290208190555b5060009182526101c4602090815260408084208490556001600160a01b0390941683526101c381528383209183525290812055565b6101c5546000906147ee90600190615cc7565b60008381526101c660205260408120546101c5805493945090928490811061481857614818615806565b90600052602060002001549050806101c5838154811061483a5761483a615806565b60009182526020808320909101929092558281526101c690915260408082208490558582528120556101c580548061487457614874615ed6565b6001900381819060005260206000200160009055905550505050565b600061489b836118e5565b6001600160a01b0390931660009081526101c36020908152604080832086845282528083208590559382526101c49052919091209190915550565b600081815260018301602052604081205461491d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c26565b506000610c26565b60008181526001830160205260408120548015614a0e576000614949600183615cc7565b855490915060009061495d90600190615cc7565b90508181146149c257600086600001828154811061497d5761497d615806565b90600052602060002001549050808760000184815481106149a0576149a0615806565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806149d3576149d3615ed6565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c26565b6000915050610c26565b6001600160a01b038216614a6e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d35565b600081815261019360205260409020546001600160a01b031615614ad45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d35565b614ae060008383613bd2565b6001600160a01b038216600090815261019460205260408120805460019290614b0a908490615c46565b90915550506000818152610193602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614ba05750600090506003614c4d565b8460ff16601b14158015614bb857508460ff16601c14155b15614bc95750600090506004614c4d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614c1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614c4657600060019250925050614c4d565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681614c8c60ff86901c601b615c46565b9050614c9a87828885614b69565b935093505050935093915050565b60006001600160e01b03198216637965db0b60e01b1480610c2657506301ffc9a760e01b6001600160e01b0319831614610c26565b828054614ce9906157d1565b90600052602060002090601f016020900481019282614d0b5760008555614d51565b82601f10614d245782800160ff19823516178555614d51565b82800160010185558215614d51579182015b82811115614d51578235825591602001919060010190614d36565b50614d5d929150614dd5565b5090565b828054614d6d906157d1565b90600052602060002090601f016020900481019282614d8f5760008555614d51565b82601f10614da857805160ff1916838001178555614d51565b82800160010185558215614d51579182015b82811115614d51578251825591602001919060010190614dba565b5b80821115614d5d5760008155600101614dd6565b6001600160e01b0319811681146112b057600080fd5b600060208284031215614e1257600080fd5b8135611f5e81614dea565b60005b83811015614e38578181015183820152602001614e20565b8381111561145c5750506000910152565b60008151808452614e61816020860160208601614e1d565b601f01601f19169290920160200192915050565b602081526000611f5e6020830184614e49565b600060208284031215614e9a57600080fd5b5035919050565b80356001600160a01b03811681146136c357600080fd5b60008060408385031215614ecb57600080fd5b614ed483614ea1565b946020939093013593505050565b600060208284031215614ef457600080fd5b611f5e82614ea1565b600080600060608486031215614f1257600080fd5b614f1b84614ea1565b9250614f2960208501614ea1565b9150604084013590509250925092565b60008060408385031215614f4c57600080fd5b82359150614f5c60208401614ea1565b90509250929050565b60008060208385031215614f7857600080fd5b823567ffffffffffffffff80821115614f9057600080fd5b818501915085601f830112614fa457600080fd5b813581811115614fb357600080fd5b866020828501011115614fc557600080fd5b60209290920196919550909350505050565b602081528151602082015260006020830151614ff7604084018215159052565b506040830151610120806060850152615014610140850183614e49565b91506060850151601f198584030160808601526150318382614e49565b925050608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100818187015280870151838701525050508091505092915050565b6000610120828403121561508757600080fd5b50919050565b600080604083850312156150a057600080fd5b823567ffffffffffffffff8111156150b757600080fd5b6150c385828601615074565b95602094909401359450505050565b60008083601f8401126150e457600080fd5b50813567ffffffffffffffff8111156150fc57600080fd5b6020830191508360208260051b8501011115613ee557600080fd5b6000806000806040858703121561512d57600080fd5b843567ffffffffffffffff8082111561514557600080fd5b615151888389016150d2565b9096509450602087013591508082111561516a57600080fd5b50615177878288016150d2565b95989497509550505050565b60006101008451151583526020850151602084015260408501516040840152606085015160608401526080850151608084015260a085015160a084015260c085015160c08401528060e084015283516020828501526151e6610120850182614e49565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561522f5761522f6151f0565b604052919050565b600067ffffffffffffffff821115615251576152516151f0565b5060051b60200190565b600082601f83011261526c57600080fd5b8135602061528161527c83615237565b615206565b82815260059290921b840181019181810190868411156152a057600080fd5b8286015b848110156152bb57803583529183019183016152a4565b509695505050505050565b600082601f8301126152d757600080fd5b813567ffffffffffffffff8111156152f1576152f16151f0565b615304601f8201601f1916602001615206565b81815284602083860101111561531957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534b57600080fd5b833567ffffffffffffffff8082111561536357600080fd5b61536f8783880161525b565b9450602086013591508082111561538557600080fd5b6153918783880161525b565b935060408601359150808211156153a757600080fd5b506153b4868287016152c6565b9150509250925092565b600080602083850312156153d157600080fd5b823567ffffffffffffffff8111156153e857600080fd5b6153f4858286016150d2565b90969095509350505050565b60006020828403121561541257600080fd5b813567ffffffffffffffff81111561542957600080fd5b82016101008185031215611f5e57600080fd5b60006020828403121561544e57600080fd5b813567ffffffffffffffff81111561546557600080fd5b612de584828501615074565b6000806040838503121561548457600080fd5b50508035926020909101359150565b6000806000806000806000806080898b0312156154af57600080fd5b883567ffffffffffffffff808211156154c757600080fd5b6154d38c838d016150d2565b909a50985060208b01359150808211156154ec57600080fd5b6154f88c838d016150d2565b909850965060408b013591508082111561551157600080fd5b61551d8c838d016150d2565b909650945060608b013591508082111561553657600080fd5b506155438b828c016150d2565b999c989b5096995094979396929594505050565b600082601f83011261556857600080fd5b8135602061557861527c83615237565b82815260059290921b8401810191818101908684111561559757600080fd5b8286015b848110156152bb576155ac81614ea1565b835291830191830161559b565b600080600080600080600060e0888a0312156155d457600080fd5b6155dd88614ea1565b9650602088013567ffffffffffffffff808211156155fa57600080fd5b6156068b838c016152c6565b975060408a013591508082111561561c57600080fd5b6156288b838c016152c6565b965060608a013591508082111561563e57600080fd5b61564a8b838c016152c6565b955060808a013591508082111561566057600080fd5b5061566d8a828b01615557565b93505061567c60a08901614ea1565b915061568a60c08901614ea1565b905092959891949750929550565b80151581146112b057600080fd5b600080604083850312156156b957600080fd5b6156c283614ea1565b915060208301356156d281615698565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561573257603f19888603018452615720858351614e49565b94509285019290850190600101615704565b5092979650505050505050565b6000806000806080858703121561575557600080fd5b61575e85614ea1565b935061576c60208601614ea1565b925060408501359150606085013567ffffffffffffffff81111561578f57600080fd5b61579b878288016152c6565b91505092959194509250565b600080604083850312156157ba57600080fd5b6157c383614ea1565b9150614f5c60208401614ea1565b600181811c908216806157e557607f821691505b6020821081141561508757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008135610c2681615698565b6000808335601e1984360301811261584057600080fd5b83018035915067ffffffffffffffff82111561585b57600080fd5b602001915036819003821315613ee557600080fd5b601f821115610e7e57600081815260208120601f850160051c810160208610156158975750805b601f850160051c820191505b818110156118dd578281556001016158a3565b67ffffffffffffffff8311156158ce576158ce6151f0565b6158e2836158dc83546157d1565b83615870565b6000601f84116001811461591657600085156158fe5750838201355b600019600387901b1c1916600186901b178355611759565b600083815260209020601f19861690835b828110156159475786850135825560209485019460019092019101615927565b50868210156159645760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813581556159a26159896020840161581c565b6001830160ff1981541660ff8315151681178255505050565b6159af6040830183615829565b6159bd8183600286016158b6565b50506159cc6060830183615829565b6159da8183600386016158b6565b50506080820135600482015560a0820135600582015560c0820135600682015560e0820135600782015561010082013560088201555050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415615a3d57615a3d615a13565b5060010190565b60008151602080840160005b83811015615a6c57815187529582019590820190600101615a50565b509495945050505050565b6bffffffffffffffffffffffff198460601b1681526000613a56615a9e6014840186615a44565b84615a44565b60008351615ab6818460208801614e1d565b835190830190615aca818360208801614e1d565b600b60fa1b9101908152600101949350505050565b6000823561011e19833603018112615af657600080fd5b9190910192915050565b615b0a8283615829565b67ffffffffffffffff811115615b2257615b226151f0565b615b3681615b3085546157d1565b85615870565b6000601f821160018114615b6a5760008315615b525750838201355b600019600385901b1c1916600184901b1785556118dd565b600085815260209020601f19841690835b82811015615b9b5786850135825560209485019460019092019101615b7b565b5084821015615bb85760001960f88660031b161c19848701351681555b50505050600190811b019091555050565b8135615bd481615698565b815460ff191660ff82151516178255506020820135600182015560408201356002820155606082013560038201556080820135600482015560a0820135600582015560c0820135600682015560e0820135601e19833603018112615c3757600080fd5b610e7e81840160078401615b00565b60008219821115615c5957615c59615a13565b500190565b6000808335601e19843603018112615c7557600080fd5b83018035915067ffffffffffffffff821115615c9057600080fd5b6020019150600581901b3603821315613ee557600080fd5b6000816000190483118215151615615cc257615cc2615a13565b500290565b600082821015615cd957615cd9615a13565b500390565b6000808454615cec816157d1565b60018281168015615d045760018114615d1557615d44565b60ff19841687528287019450615d44565b8860005260208060002060005b85811015615d3b5781548a820152908401908201615d22565b50505082870194505b505050508351615d58818360208801614e1d565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b600082615dae57615dae615d89565b500490565b600082615dc257615dc2615d89565b500690565b60008251615af6818460208701614e1d565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615e11816017850160208801614e1d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615e4e816028840160208801614e1d565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526151e66080830184614e49565b600060208284031215615eb457600080fd5b8151611f5e81614dea565b600081615ece57615ece615a13565b506000190190565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65642ce8d04a9c35987429af538825cd2438cc5c5bb5dc427955f84daaa3ea105016a164736f6c634300080c000a

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.