MATIC Price: $0.709378 (-0.61%)
Gas: 30 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Create Token548216452024-03-19 0:23:3160 days ago1710807811IN
0x8D86e2A8...78D74328D
0 MATIC0.0865905630.40000012
Create Token543892522024-03-07 22:36:3372 days ago1709850993IN
0x8D86e2A8...78D74328D
0 MATIC0.2617303791.24593058
Create Token543266582024-03-06 8:28:3273 days ago1709713712IN
0x8D86e2A8...78D74328D
0 MATIC0.30180228105.22086936
Create Token531976412024-02-06 15:40:56102 days ago1707234056IN
0x8D86e2A8...78D74328D
0 MATIC0.3532368123.15309063
Create Token530990732024-02-04 2:56:44104 days ago1707015404IN
0x8D86e2A8...78D74328D
0 MATIC0.1004132735.25269276
Create Token529643022024-01-31 14:22:35108 days ago1706710955IN
0x8D86e2A8...78D74328D
0 MATIC0.46787049163.11781157
Create Token508511202023-12-07 13:18:45163 days ago1701955125IN
0x8D86e2A8...78D74328D
0 MATIC0.53078429186.34563416
Create Token457438022023-07-31 14:50:39292 days ago1690815039IN
0x8D86e2A8...78D74328D
0 MATIC0.29812311104.69364797
Create Token444444212023-06-28 16:43:06325 days ago1687970586IN
0x8D86e2A8...78D74328D
0 MATIC0.79107791277.80631144
Create Token428518212023-05-18 10:49:30366 days ago1684406970IN
0x8D86e2A8...78D74328D
0 MATIC0.36780639129.16473215
Create Token422248202023-05-02 17:59:55382 days ago1683050395IN
0x8D86e2A8...78D74328D
0 MATIC0.53972032189.53356313
Create Token404667722023-03-17 22:22:53428 days ago1679091773IN
0x8D86e2A8...78D74328D
0 MATIC0.39413141138.41177868
Create Token398889242023-03-02 18:30:15443 days ago1677781815IN
0x8D86e2A8...78D74328D
0 MATIC0.324512113.96030882
Create Token398888752023-03-02 18:28:31443 days ago1677781711IN
0x8D86e2A8...78D74328D
0 MATIC0.32841564115.33359559
Create Token398887562023-03-02 18:23:47443 days ago1677781427IN
0x8D86e2A8...78D74328D
0 MATIC0.35202128123.62034108
Create Token398886602023-03-02 18:19:29443 days ago1677781169IN
0x8D86e2A8...78D74328D
0 MATIC0.3495248122.74571323
Create Token398885842023-03-02 18:16:23443 days ago1677780983IN
0x8D86e2A8...78D74328D
0 MATIC0.37184444130.58610185
Create Token398883892023-03-02 18:08:28443 days ago1677780508IN
0x8D86e2A8...78D74328D
0 MATIC0.34725385121.95128802
Create Token398883282023-03-02 18:06:18443 days ago1677780378IN
0x8D86e2A8...78D74328D
0 MATIC0.3469015121.8275471
Create Token398719602023-03-02 7:34:37443 days ago1677742477IN
0x8D86e2A8...78D74328D
0 MATIC0.40978566143.90744577
Create Token398501272023-03-01 17:46:05444 days ago1677692765IN
0x8D86e2A8...78D74328D
0 MATIC0.59092095207.51806071
Create Token397033402023-02-25 18:16:14448 days ago1677348974IN
0x8D86e2A8...78D74328D
0 MATIC0.30908932108.54425778
Create Token395964452023-02-22 18:29:44451 days ago1677090584IN
0x8D86e2A8...78D74328D
0 MATIC0.51266009180.03689315
Create Token395929562023-02-22 16:14:52451 days ago1677082492IN
0x8D86e2A8...78D74328D
0 MATIC0.63048654221.4172646
Create Token395890232023-02-22 13:45:18451 days ago1677073518IN
0x8D86e2A8...78D74328D
0 MATIC0.7409483260.20974949
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
548216452024-03-19 0:23:3160 days ago1710807811
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
543892522024-03-07 22:36:3372 days ago1709850993
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
543266582024-03-06 8:28:3273 days ago1709713712
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
531976412024-02-06 15:40:56102 days ago1707234056
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
530990732024-02-04 2:56:44104 days ago1707015404
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
529643022024-01-31 14:22:35108 days ago1706710955
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
508511202023-12-07 13:18:45163 days ago1701955125
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
457438022023-07-31 14:50:39292 days ago1690815039
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
444444212023-06-28 16:43:06325 days ago1687970586
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
428518212023-05-18 10:49:30366 days ago1684406970
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
422248202023-05-02 17:59:55382 days ago1683050395
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
404667722023-03-17 22:22:53428 days ago1679091773
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398889242023-03-02 18:30:15443 days ago1677781815
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398888752023-03-02 18:28:31443 days ago1677781711
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398887562023-03-02 18:23:47443 days ago1677781427
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398886602023-03-02 18:19:29443 days ago1677781169
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398885842023-03-02 18:16:23443 days ago1677780983
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398883892023-03-02 18:08:28443 days ago1677780508
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398883282023-03-02 18:06:18443 days ago1677780378
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398719602023-03-02 7:34:37443 days ago1677742477
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
398501272023-03-01 17:46:05444 days ago1677692765
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
397033402023-02-25 18:16:14448 days ago1677348974
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
395964452023-02-22 18:29:44451 days ago1677090584
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
395929562023-02-22 16:14:52451 days ago1677082492
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
395890232023-02-22 13:45:18451 days ago1677073518
0x8D86e2A8...78D74328D
 Contract Creation0 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC721LuxyPrivateFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../ERC721/ERC721LuxyPrivate.sol";

contract ERC721LuxyPrivateFactory is Ownable {
    event Create721LuxyContract(address erc721);

    constructor() {}

    function createToken(
        string memory _name,
        string memory _symbol,
        string memory _baseURI,
        address[] memory _minters,
        bool _ischangeable,
        uint256 _maxSupply,
        uint _salt
    ) external {
        address luxy721PrivateToken = deployProxy(
            getData(_name, _symbol, _baseURI, _minters, _ischangeable,_maxSupply),
            _salt
        );
        ERC721LuxyPrivate token = ERC721LuxyPrivate(luxy721PrivateToken);
        token.__ERC721LuxyPrivate_init(_name, _symbol, _baseURI, _minters,_ischangeable,_maxSupply);
        token.transferOwnership(_msgSender());
        emit Create721LuxyContract(luxy721PrivateToken);
    }

    //deploying Luxy1155 contract with create2
    function deployProxy(bytes memory data, uint salt)
        internal
        returns (address proxy)
    {
        bytes memory bytecode = getCreationBytecode(data);
        assembly {
            proxy := create2(0, add(bytecode, 0x20), mload(bytecode), salt)
            if iszero(extcodesize(proxy)) {
                revert(0, 0)
            }
        }
    }

    //adding  unnecessary constructor arguments to Luxy1155 bytecode, to get less change for collision on contract address
    function getCreationBytecode(bytes memory _data)
        internal
        pure
        returns (bytes memory)
    {
        return
            abi.encodePacked(
                type(ERC721LuxyPrivate).creationCode,
                abi.encode(_data)
            );
    }

    //returns address that contract with such arguments will be deployed on
    function getAddress(
        string memory _name,
        string memory _symbol,
        string memory _baseURI,
        address[] memory _minters,
        bool _ischangeable,
        uint256 _maxSupply,
        uint _salt
    ) public view returns (address) {
        bytes memory bytecode;
        bytecode = getCreationBytecode(
            getData(_name, _symbol, _baseURI, _minters,_ischangeable,_maxSupply)
        );

        bytes32 hash = keccak256(
            abi.encodePacked(
                bytes1(0xff),
                address(this),
                _salt,
                keccak256(bytecode)
            )
        );

        return address(uint160(uint256(hash)));
    }

    function getData(
        string memory _name,
        string memory _symbol,
        string memory _baseURI,
        address[] memory _minters,
        bool _ischangeable,
        uint256 _maxSupply
    ) internal pure returns (bytes memory) {
        return
            abi.encodeWithSelector(
                ERC721LuxyPrivate.__ERC721LuxyPrivate_init.selector,
                _name,
                _symbol,
                _baseURI,
                _minters,
                _ischangeable,
                _maxSupply
            );
    }
}

File 2 of 29 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 2 of 29 : ERC721LuxyPrivate.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "../../RoyaltiesV1Luxy.sol";
import "../ERC1271/ERC1271.sol";
import "../ERC2981/IERC2981.sol";

contract ERC721LuxyPrivate is
    ERC721URIStorageUpgradeable,
    ERC721EnumerableUpgradeable,
    ERC721BurnableUpgradeable,
    OwnableUpgradeable,
    RoyaltiesV1Luxy
{
    using CountersUpgradeable for CountersUpgradeable.Counter;
    CountersUpgradeable.Counter private _tokenIds;
    mapping(address => bool) private approvedMinters;

    // Base URI
    string public baseURI;
    bool public isChangeable;
    uint256 public maxSupply;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721LuxyPrivate_init(
        string memory name_,
        string memory symbol_,
        string memory baseURI_,
        address[] memory minters_,
        bool isChangeable_,
        uint256 maxSupply_
    ) external initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
        _setInitialMinters(minters_);
        __ERC721Enumerable_init_unchained();
        __Ownable_init_unchained();
        _setBaseURI(baseURI_);
        _setChangeable(isChangeable_);
        _setMaxSupply(maxSupply_);
    }

    function __ERC721LuxyPrivate_init_unchained(string memory baseURI_ ,address[] memory minters_, bool isChangeable_, uint256 maxSupply_)
        internal
        initializer
    {
        _setInitialMinters(minters_);
        _setBaseURI(baseURI_);
        _setChangeable(isChangeable_);
        _setMaxSupply(maxSupply_);
    }

    function mint(
        address payable _recipient,
        string memory _metadata,
        LibPart.Part[] memory _royalties
    ) external returns (uint256) {
        require(
            _isApprovedMinterorOwner(_msgSender()),
            "Sender must be an approved minter or owner"
        );
        uint256 itemId = _tokenIds.current();
        if(maxSupply != 0){
            require(itemId < maxSupply, "ERC721: minting above the total supply");
        }
        _safeMint(_recipient, itemId);
        _setTokenURI(itemId, _metadata);
        _setRoyalties(itemId, _royalties);
        _tokenIds.increment();
        return itemId;
    }

    function setApprovedMinter(address _minter, bool _approved)
        external
        onlyOwner
    {
        approvedMinters[_minter] = _approved;
    }

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

    /**
     * @dev External function to allow base URI changes when necessary.
     */
    function setBaseURI(string memory baseURI_) external onlyOwner {
        require(isChangeable, "Base URI is not changeable.");
        _setBaseURI(baseURI_);
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI}.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        baseURI = baseURI_;
    }

    /**
     * @dev Internal function to set changeability of BaseURI for NFT drops.
     */
    function _setChangeable(bool isChangeable_) internal virtual {
        isChangeable = isChangeable_;
    }

    function _setMaxSupply(uint256 maxSupply_) internal virtual {
        maxSupply = maxSupply_;
    }

    /**
     * @dev Internal function to set changeability of BaseURI for NFT drops.
     */
    function _setInitialMinters(address[] memory minters) internal virtual {
        //initializing base minters list
        for (uint256 i = 0; i < minters.length; i++) {
            approvedMinters[minters[i]] = true;
        }
    }

    /**
     * @dev Base URI for computing {tokenURI}. The resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`.
     * See {ERC721Upgradeable-_baseURI}.
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721Upgradeable, ERC721URIStorageUpgradeable)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function getMaxSupply() public view returns (uint256) {
        require(maxSupply > 0, "There is no MaxSupply for this collection.");
        return maxSupply;
    }

    /**
     * @dev See {ERC721EnumerableUpgradeable-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721Upgradeable, ERC721EnumerableUpgradeable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev See {ERC721URIStorageUpgradeable-_burn}.
     */
    function _burn(uint256 tokenId)
        internal
        override(ERC721Upgradeable, ERC721URIStorageUpgradeable)
    {
        super._burn(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedMinterorOwner(address minter)
        internal
        view
        virtual
        returns (bool)
    {
        if (minter == owner()) return true;
        require(minter != address(0));
        return approvedMinters[minter];
    }

    uint256[100] private __gap;
}

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

pragma solidity ^0.8.0;

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

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

File 2 of 29 : ERC721URIStorageUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable {
    function __ERC721URIStorage_init() internal onlyInitializing {
    }

    function __ERC721URIStorage_init_unchained() internal onlyInitializing {
    }
    using StringsUpgradeable for uint256;

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

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }

    /**
     * @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 2 of 29 : 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 2 of 29 : ERC721BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721BurnableUpgradeable is Initializable, ContextUpgradeable, ERC721Upgradeable {
    function __ERC721Burnable_init() internal onlyInitializing {
    }

    function __ERC721Burnable_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    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);
    }

    /**
     * @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 2 of 29 : CountersUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 2 of 29 : RoyaltiesV1Luxy.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./LibPart.sol";
import "./tokens/ERC2981/IERC2981.sol";
import "./exchange/lib/LibBP.sol";

//InterfaceID = 0x25292224
abstract contract RoyaltiesV1Luxy is IERC2981 {
    using LibBP for uint256;
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);
    event RoyaltieAccountUpdate(
        uint256 tokenId,
        uint256 index,
        address previousAccount,
        address newAccount
    );
    mapping(uint256 => LibPart.Part[]) internal royalties;

    function getRoyalties(uint256 id)
        public
        view
        virtual
        returns (LibPart.Part[] memory)
    {
        return royalties[id];
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(royalties[_tokenId].length != 0, "Royalties not set yet");
        require(
            royalties[_tokenId].length == 1,
            "Multiples Royalties is not supported by EIP2981, use LuxyRoyaltiesV1"
        );
        require(
            royalties[_tokenId][0].value <= 9800,
            "Royalties are too high (>98%)"
        );
        royaltyAmount = _salePrice.bp(royalties[_tokenId][0].value);
        receiver = royalties[_tokenId][0].account;
    }


    //Not deployed yet current InterfaceID is 0x25292224
    // function calcRoyaltiesInterfaceId() external pure returns (bytes4) {
    //     return type(RoyaltiesV1Luxy).interfaceId;
    // }

    function _setRoyalties(uint256 _id, LibPart.Part[] memory _royalties)
        internal
    {
        require(royalties[_id].length == 0, "Royalties already set");
        for (uint256 i = 0; i < _royalties.length; i++) {
            require(
                _royalties[i].account != address(0x0),
                "Recipient should be present"
            );
            require(
                _royalties[i].value != 0,
                "Royalty value should be positive"
            );
            royalties[_id].push(_royalties[i]);
        }
        emit RoyaltiesSet(_id, _royalties);
    }

    function _updateAccount(
        uint256 _id,
        address _from,
        address _to
    ) internal {
        uint256 length = royalties[_id].length;
        address previousAccount = address(0x0);
        uint256 index = 0;
        for (uint256 i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                previousAccount = royalties[_id][i].account;
                index = i;
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
        require(
            previousAccount != address(0x0),
            "Account not found, are you using the correct wallet?"
        );
        emit RoyaltieAccountUpdate(
            _id,
            index,
            previousAccount,
            royalties[_id][index].account
        );
    }

    uint256[50] private __gap;
}

File 2 of 29 : ERC1271.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/interfaces/IERC1271Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol";

abstract contract ERC1271Upgradeable is EIP712Upgradeable {
    using ECDSAUpgradeable for bytes32;

    bytes4 public constant ERC1271_INTERFACE_ID = 0xfb855dc9; // this.isValidSignature.selector

    bytes4 public constant ERC1271_RETURN_VALID_SIGNATURE = 0x1626ba7e;
    bytes4 public constant ERC1271_RETURN_INVALID_SIGNATURE = 0x00000000;
    string constant CONTRACT_SIGNATURE_ERROR =
        "contract signature verification error";
    string constant SIGNATURE_ERROR = "signature verification error";

    function __ERC1271Upgradeable_init(
        string memory name,
        string memory version
    ) internal initializer {
        __EIP712_init_unchained(name, version);
        __ERC1271Upgradeable_init_unchained();
    }

    function __ERC1271Upgradeable_init_unchained() internal initializer {}

    function isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }

    function returnIsValidSignatureMagicNumber(bool isValid)
        internal
        pure
        returns (bytes4)
    {
        return
            isValid
                ? ERC1271_RETURN_VALID_SIGNATURE
                : ERC1271_RETURN_INVALID_SIGNATURE;
    }

    function _validate(
        address signer,
        bytes32 structHash,
        bytes memory signature
    ) internal view {
        bytes32 hash = _hashTypedDataV4(structHash);
        if (isContract(signer)) {
            require(
                IERC1271Upgradeable(signer).isValidSignature(hash, signature) ==
                    ERC1271_RETURN_VALID_SIGNATURE,
                CONTRACT_SIGNATURE_ERROR
            );
        } else {
            require(hash.recover(signature) == signer, SIGNATURE_ERROR);
        }
    }

    uint256[50] private __gap;
}

File 2 of 29 : IERC2981.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 2 of 29 : 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 2 of 29 : 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 2 of 29 : 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 2 of 29 : 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 2 of 29 : 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 2 of 29 : 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 2 of 29 : 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 2 of 29 : LibPart.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library LibPart {
    bytes32 public constant TYPE_HASH =
        keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }
}

File 2 of 29 : LibBP.sol
/*
                            __;φφφβ‰₯,,β•“β•“,__
                           _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,_
                           Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘_
                           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–’_
                          _░░░░░░░░░░░░░░░░╬▒░░_
    _≀,                    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘Ξ΅
    _Ξ£β–‘β‰₯_                   `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘_
     _Ο†β–‘β–‘                     β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘
       β–‘β–‘β–‘,                    `β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–‘β–‘___
       _β–‘β–‘β–‘β–‘β–‘β‰₯,                 _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β‰₯, _
       β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘,_                _ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯,_
      ▐░░░░░░░░░░░                 Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’,
       β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[             _;β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
       \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘»;;--,,. _  ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
       _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†,,
         _"β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘"=β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
            Ξ£β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_    `β•™Ξ΄β–‘β–‘β–‘β–‘Ξ“"  ²β–‘Ξ“_
         ,Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_
       _Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘β‰₯_
      ,β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β‰₯
     ,β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β• β–’β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–‘β–‘β–‘β–‘β–‘β‰₯
    _β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–’β–‘β–‘β–‘β–‘β–‘
    Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ο†β–‘β–‘Ξ“'β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_ β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘[
    β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘_  β””β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
    _β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’"^     _7β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
     _`β•šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š²_          \β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“
         ____                _`β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘Ξ“β•™`
                               _"Ο†β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•š_
                                 _ `""²βΏ""

        β–ˆβ–ˆβ•—         β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘    β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•    β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ•”β•      β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• 
        β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—       β•šβ–ˆβ–ˆβ•”β•  
        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—       β–ˆβ–ˆβ•‘   
        β•šβ•β•β•β•β•β•β•     β•šβ•β•β•β•β•β•     β•šβ•β•  β•šβ•β•       β•šβ•β•   
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";

library LibBP {
    using SafeMathUpgradeable for uint256;

    function bp(uint256 value, uint256 bpValue)
        internal
        pure
        returns (uint256)
    {
        return value.mul(bpValue).div(uint256(10000));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 2 of 29 : IERC1271Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271Upgradeable {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 2 of 29 : draft-EIP712Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712Upgradeable is Initializable {
    /* solhint-disable var-name-mixedcase */
    bytes32 private _HASHED_NAME;
    bytes32 private _HASHED_VERSION;
    bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    function __EIP712_init(string memory name, string memory version) internal onlyInitializing {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712NameHash() internal virtual view returns (bytes32) {
        return _HASHED_NAME;
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712VersionHash() internal virtual view returns (bytes32) {
        return _HASHED_VERSION;
    }

    /**
     * @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 2 of 29 : 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));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"erc721","type":"address"}],"name":"Create721LuxyContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address[]","name":"_minters","type":"address[]"},{"internalType":"bool","name":"_ischangeable","type":"bool"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address[]","name":"_minters","type":"address[]"},{"internalType":"bool","name":"_ischangeable","type":"bool"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613d5d8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063715018a611610050578063715018a6146100b05780638da5cb5b146100b8578063f2fde38b146100c957600080fd5b8063394e21d01461006c5780635a5acb931461009b575b600080fd5b61007f61007a36600461070d565b6100dc565b6040516001600160a01b03909116815260200160405180910390f35b6100ae6100a936600461070d565b610176565b005b6100ae6102e4565b6000546001600160a01b031661007f565b6100ae6100d73660046106ec565b61034f565b600060606100f66100f18a8a8a8a8a8a610431565b6104c1565b8051602091820120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b6bffffffffffffffffffffffff191660218201526035810196909652605580870192909252805180870390920182526075909501909452835193019290922098975050505050505050565b600061018f610189898989898989610431565b8361052a565b6040517f70c14f6e00000000000000000000000000000000000000000000000000000000815290915081906001600160a01b038216906370c14f6e906101e3908c908c908c908c908c908c90600401610847565b600060405180830381600087803b1580156101fd57600080fd5b505af1158015610211573d6000803e3d6000fd5b50505050806001600160a01b031663f2fde38b61022b3390565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561028457600080fd5b505af1158015610298573d6000803e3d6000fd5b50506040516001600160a01b03851681527f06211b9852468ad64c02207ad8100cf1a32182ed6ed3bad1e1133e06227307519250602001905060405180910390a1505050505050505050565b6000546001600160a01b031633146103435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61034d6000610556565b565b6000546001600160a01b031633146103a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033a565b6001600160a01b0381166104255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033a565b61042e81610556565b50565b60606370c14f6e60e01b87878787878760405160240161045696959493929190610847565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509695505050505050565b6060604051806020016104d3906105be565b601f1982820381018352601f9091011660408190526104f6908490602001610834565b60408051601f19818403018152908290526105149291602001610805565b6040516020818303038152906040529050919050565b600080610536846104c1565b9050828151602083016000f59150813b61054f57600080fd5b5092915050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6133b48061097483390190565b80356001600160a01b03811681146105e257600080fd5b919050565b600082601f8301126105f7578081fd5b8135602067ffffffffffffffff82111561061357610613610944565b8160051b6106228282016108e3565b83815282810190868401838801850189101561063c578687fd5b8693505b8584101561066557610651816105cb565b835260019390930192918401918401610640565b50979650505050505050565b803580151581146105e257600080fd5b600082601f830112610691578081fd5b813567ffffffffffffffff8111156106ab576106ab610944565b6106be601f8201601f19166020016108e3565b8181528460208386010111156106d2578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156106fd578081fd5b610706826105cb565b9392505050565b600080600080600080600060e0888a031215610727578283fd5b873567ffffffffffffffff8082111561073e578485fd5b61074a8b838c01610681565b985060208a013591508082111561075f578485fd5b61076b8b838c01610681565b975060408a0135915080821115610780578485fd5b61078c8b838c01610681565b965060608a01359150808211156107a1578485fd5b506107ae8a828b016105e7565b9450506107bd60808901610671565b925060a0880135915060c0880135905092959891949750929550565b600081518084526107f1816020860160208601610914565b601f01601f19169290920160200192915050565b60008351610817818460208801610914565b83519083019061082b818360208801610914565b01949350505050565b60208152600061070660208301846107d9565b60c08152600061085a60c08301896107d9565b60208382038185015261086d828a6107d9565b9150838203604085015261088182896107d9565b84810360608601528751808252828901935090820190845b818110156108be5784516001600160a01b031683529383019391830191600101610899565b5050861515608086015292506108d2915050565b8260a0830152979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561090c5761090c610944565b604052919050565b60005b8381101561092f578181015183820152602001610917565b8381111561093e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfe608060405234801561001057600080fd5b50613394806100206000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103f7578063d5abeb011461040a578063e985e9c514610414578063f2fde38b1461045057600080fd5b8063a22cb465146103a3578063ab9772ac146103b6578063b88d4fde146103c4578063bb3bafd6146103d757600080fd5b806370c528cf116100de57806370c528cf1461036e578063715018a6146103815780638da5cb5b1461038957806395d89b411461039b57600080fd5b80636c0360eb1461034057806370a082311461034857806370c14f6e1461035b57600080fd5b80632a55205a1161017c5780634c0f38c21161014b5780634c0f38c2146102ff5780634f6ccce71461030757806355f804b31461031a5780636352211e1461032d57600080fd5b80632a55205a146102945780632f745c59146102c657806342842e0e146102d957806342966c68146102ec57600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806318160ddd1461025c57806323b872dd1461026e57806329ec16dd1461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004612ee4565b610463565b60405190151581526020015b60405180910390f35b61020f610543565b6040516101fe919061314f565b61022f61022a366004613010565b6105d5565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004612eb9565b61066f565b005b60cb545b6040519081526020016101fe565b61025a61027c366004612dc8565b6107a1565b61025a61028f366004612e85565b610829565b6102a76102a2366004613028565b6108b0565b604080516001600160a01b0390931683526020830191909152016101fe565b6102606102d4366004612eb9565b610afe565b61025a6102e7366004612dc8565b610ba6565b61025a6102fa366004613010565b610bc1565b610260610c48565b610260610315366004613010565b610cca565b61025a610328366004612f1c565b610d7c565b61022f61033b366004613010565b610e33565b61020f610ebe565b610260610356366004612c62565b610f4d565b61025a610369366004612f4f565b610fe7565b61026061037c366004612c7e565b61110a565b61025a61124d565b61012d546001600160a01b031661022f565b61020f6112b4565b61025a6103b1366004612e85565b6112c3565b610195546101f29060ff1681565b61025a6103d2366004612e08565b6112d2565b6103ea6103e5366004613010565b611360565b6040516101fe919061313c565b61020f610405366004613010565b6113f5565b6102606101965481565b6101f2610422366004612d90565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b61025a61045e366004612c62565b611400565b60006001600160e01b031982167f916e8f8c0000000000000000000000000000000000000000000000000000000014806104c657506001600160e01b031982167fc87b56dd00000000000000000000000000000000000000000000000000000000145b806104fa57506001600160e01b031982167f79f154c400000000000000000000000000000000000000000000000000000000145b8061052e57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b8061053d575061053d826114e0565b92915050565b60606065805461055290613287565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90613287565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166106535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b600061067a82610e33565b9050806001600160a01b0316836001600160a01b031614156107045760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161064a565b336001600160a01b038216148061072057506107208133610422565b6107925760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161064a565b61079c838361151e565b505050565b6107ac335b8261158c565b61081e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161064a565b61079c83838361167f565b61012d546001600160a01b031633146108845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b0391909116600090815261019360205260409020805460ff1916911515919091179055565b600082815261015f6020526040812054819061090e5760405162461bcd60e51b815260206004820152601560248201527f526f79616c74696573206e6f7420736574207965740000000000000000000000604482015260640161064a565b600084815261015f60205260409020546001146109ba5760405162461bcd60e51b8152602060048201526044602482018190527f4d756c7469706c657320526f79616c74696573206973206e6f7420737570706f908201527f7274656420627920454950323938312c20757365204c757879526f79616c746960648201527f6573563100000000000000000000000000000000000000000000000000000000608482015260a40161064a565b600084815261015f60205260408120805461264892906109ea57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160a01b90046bffffffffffffffffffffffff161115610a595760405162461bcd60e51b815260206004820152601d60248201527f526f79616c746965732061726520746f6f206869676820283e39382529000000604482015260640161064a565b600084815261015f602052604081208054610ab19290610a8957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001548490600160a01b90046bffffffffffffffffffffffff16611857565b600085815261015f60205260408120805492935091610ae057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031694909350915050565b6000610b0983610f4d565b8210610b7d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161064a565b506001600160a01b0391909116600090815260c960209081526040808320938352929052205490565b61079c838383604051806020016040528060008152506112d2565b610bca336107a6565b610c3c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161064a565b610c4581611876565b50565b6000806101965411610cc25760405162461bcd60e51b815260206004820152602a60248201527f5468657265206973206e6f204d6178537570706c7920666f722074686973206360448201527f6f6c6c656374696f6e2e00000000000000000000000000000000000000000000606482015260840161064a565b506101965490565b6000610cd560cb5490565b8210610d495760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161064a565b60cb8281548110610d6a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61012d546001600160a01b03163314610dd75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6101955460ff16610e2a5760405162461bcd60e51b815260206004820152601b60248201527f4261736520555249206973206e6f74206368616e676561626c652e0000000000604482015260640161064a565b610c458161187f565b6000818152606760205260408120546001600160a01b03168061053d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161064a565b6101948054610ecc90613287565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef890613287565b8015610f455780601f10610f1a57610100808354040283529160200191610f45565b820191906000526020600020905b815481529060010190602001808311610f2857829003601f168201915b505050505081565b60006001600160a01b038216610fcb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161064a565b506001600160a01b031660009081526068602052604090205490565b600054610100900460ff166110025760005460ff1615611006565b303b155b6110785760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161064a565b600054610100900460ff1615801561109a576000805461ffff19166101011790555b6110a2611893565b6110aa611893565b6110b487876118fe565b6110bd84611990565b6110c5611893565b6110cd611a07565b6110d68561187f565b610195805460ff19168415151790556110ef8261019655565b8015611101576000805461ff00191690555b50505050505050565b600061111533611a7b565b6111875760405162461bcd60e51b815260206004820152602a60248201527f53656e646572206d75737420626520616e20617070726f766564206d696e746560448201527f72206f72206f776e657200000000000000000000000000000000000000000000606482015260840161064a565b60006111936101925490565b905061019654600014611218576101965481106112185760405162461bcd60e51b815260206004820152602660248201527f4552433732313a206d696e74696e672061626f76652074686520746f74616c2060448201527f737570706c790000000000000000000000000000000000000000000000000000606482015260840161064a565b6112228582611ae4565b61122c8185611afe565b6112368184611ba7565b61124561019280546001019055565b949350505050565b61012d546001600160a01b031633146112a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6112b26000611df0565b565b60606066805461055290613287565b6112ce338383611e43565b5050565b6112dc338361158c565b61134e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161064a565b61135a84848484611f12565b50505050565b606061015f6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156113ea57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1681830152825260019092019101611396565b505050509050919050565b606061053d82611f90565b61012d546001600160a01b0316331461145b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b0381166114d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161064a565b610c4581611df0565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061053d575061053d8261210e565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061155382610e33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166116055760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161064a565b600061161083610e33565b9050806001600160a01b0316846001600160a01b0316148061164b5750836001600160a01b0316611640846105d5565b6001600160a01b0316145b8061124557506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611245565b826001600160a01b031661169282610e33565b6001600160a01b03161461170e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161064a565b6001600160a01b0382166117895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161064a565b6117948383836121a9565b61179f60008261151e565b6001600160a01b03831660009081526068602052604081208054600192906117c8908490613244565b90915550506001600160a01b03821660009081526068602052604081208054600192906117f69084906131f9565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061186f61271061186985856121b4565b906121c0565b9392505050565b610c45816121cc565b80516112ce90610194906020840190612a8f565b600054610100900460ff166112b25760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b600054610100900460ff166119695760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b815161197c906065906020850190612a8f565b50805161079c906066906020840190612a8f565b60005b81518110156112ce57600161019360008484815181106119c357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806119ff816132c2565b915050611993565b600054610100900460ff16611a725760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b6112b233611df0565b6000611a9061012d546001600160a01b031690565b6001600160a01b0316826001600160a01b03161415611ab157506001919050565b6001600160a01b038216611ac457600080fd5b506001600160a01b03166000908152610193602052604090205460ff1690565b6112ce82826040518060200160405280600081525061220c565b6000828152606760205260409020546001600160a01b0316611b885760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161064a565b6000828152609760209081526040909120825161079c92840190612a8f565b600082815261015f602052604090205415611c045760405162461bcd60e51b815260206004820152601560248201527f526f79616c7469657320616c7265616479207365740000000000000000000000604482015260640161064a565b60005b8151811015611db25760006001600160a01b0316828281518110611c3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161415611c9e5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015260640161064a565b818181518110611cbe57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516bffffffffffffffffffffffff1660001415611d285760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604482015260640161064a565b600083815261015f602052604090208251839083908110611d5957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516bffffffffffffffffffffffff16600160a01b026001600160a01b039091161791015580611daa816132c2565b915050611c07565b507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051611de4929190613162565b60405180910390a15050565b61012d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611ea55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161064a565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f1d84848461167f565b611f298484848461228a565b61135a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b6000818152606760205260409020546060906001600160a01b031661201d5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161064a565b6000828152609760205260408120805461203690613287565b80601f016020809104026020016040519081016040528092919081815260200182805461206290613287565b80156120af5780601f10612084576101008083540402835291602001916120af565b820191906000526020600020905b81548152906001019060200180831161209257829003601f168201915b5050505050905060006120c06123e2565b90508051600014156120d3575092915050565b8151156121055780826040516020016120ed9291906130d1565b60405160208183030381529060405292505050919050565b611245846123f2565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061217157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061053d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461053d565b61079c8383836124da565b600061186f8284613225565b600061186f8284613211565b6121d581612592565b600081815260976020526040902080546121ee90613287565b159050610c45576000818152609760205260408120610c4591612b13565b6122168383612639565b612223600084848461228a565b61079c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b60006001600160a01b0384163b156123d757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122ce903390899088908890600401613100565b602060405180830381600087803b1580156122e857600080fd5b505af1925050508015612318575060408051601f3d908101601f1916820190925261231591810190612f00565b60015b6123bd573d808015612346576040519150601f19603f3d011682016040523d82523d6000602084013e61234b565b606091505b5080516123b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611245565b506001949350505050565b6060610194805461055290613287565b6000818152606760205260409020546060906001600160a01b031661247f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161064a565b60006124896123e2565b905060008151116124a9576040518060200160405280600081525061186f565b806124b384612787565b6040516020016124c49291906130d1565b6040516020818303038152906040529392505050565b6001600160a01b038316612535576125308160cb8054600083815260cc60205260408120829055600182018355919091527fa7ce836d032b2bf62b7e2097a8e0a6d8aeb35405ad15271e96d3b0188a1d06fb0155565b612558565b816001600160a01b0316836001600160a01b0316146125585761255883826128d5565b6001600160a01b03821661256f5761079c81612972565b826001600160a01b0316826001600160a01b03161461079c5761079c8282612a4b565b600061259d82610e33565b90506125ab816000846121a9565b6125b660008361151e565b6001600160a01b03811660009081526068602052604081208054600192906125df908490613244565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661268f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161064a565b6000818152606760205260409020546001600160a01b0316156126f45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161064a565b612700600083836121a9565b6001600160a01b03821660009081526068602052604081208054600192906127299084906131f9565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816127c757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127f157806127db816132c2565b91506127ea9050600a83613211565b91506127cb565b60008167ffffffffffffffff81111561281a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612844576020820181803683370190505b5090505b841561124557612859600183613244565b9150612866600a866132dd565b6128719060306131f9565b60f81b81838151811061289457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128ce600a86613211565b9450612848565b600060016128e284610f4d565b6128ec9190613244565b600083815260ca602052604090205490915080821461293f576001600160a01b038416600090815260c960209081526040808320858452825280832054848452818420819055835260ca90915290208190555b50600091825260ca602090815260408084208490556001600160a01b03909416835260c981528383209183525290812055565b60cb5460009061298490600190613244565b600083815260cc602052604081205460cb80549394509092849081106129ba57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060cb83815481106129e957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260cc909152604080822084905585825281205560cb805480612a2f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a5683610f4d565b6001600160a01b03909316600090815260c960209081526040808320868452825280832085905593825260ca9052919091209190915550565b828054612a9b90613287565b90600052602060002090601f016020900481019282612abd5760008555612b03565b82601f10612ad657805160ff1916838001178555612b03565b82800160010185558215612b03579182015b82811115612b03578251825591602001919060010190612ae8565b50612b0f929150612b49565b5090565b508054612b1f90613287565b6000825580601f10612b2f575050565b601f016020900490600052602060002090810190610c4591905b5b80821115612b0f5760008155600101612b4a565b600067ffffffffffffffff831115612b7857612b7861331d565b612b8b601f8401601f19166020016131a4565b9050828152838383011115612b9f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612bc6578081fd5b81356020612bdb612bd6836131d5565b6131a4565b80838252828201915082860187848660051b8901011115612bfa578586fd5b855b85811015612c21578135612c0f81613333565b84529284019290840190600101612bfc565b5090979650505050505050565b80358015158114612c3e57600080fd5b919050565b600082601f830112612c53578081fd5b61186f83833560208501612b5e565b600060208284031215612c73578081fd5b813561186f81613333565b600080600060608486031215612c92578182fd5b8335612c9d81613333565b925060208481013567ffffffffffffffff80821115612cba578485fd5b612cc688838901612c43565b9450604091508187013581811115612cdc578485fd5b87019050601f81018813612cee578384fd5b8035612cfc612bd6826131d5565b8082825285820191508584018b878560061b8701011115612d1b578788fd5b8794505b83851015612d7f5785818d031215612d35578788fd5b612d3d61317b565b8135612d4881613333565b8152818801356bffffffffffffffffffffffff81168114612d6757898afd5b81890152835260019490940193918601918501612d1f565b508096505050505050509250925092565b60008060408385031215612da2578182fd5b8235612dad81613333565b91506020830135612dbd81613333565b809150509250929050565b600080600060608486031215612ddc578283fd5b8335612de781613333565b92506020840135612df781613333565b929592945050506040919091013590565b60008060008060808587031215612e1d578081fd5b8435612e2881613333565b93506020850135612e3881613333565b925060408501359150606085013567ffffffffffffffff811115612e5a578182fd5b8501601f81018713612e6a578182fd5b612e7987823560208401612b5e565b91505092959194509250565b60008060408385031215612e97578182fd5b8235612ea281613333565b9150612eb060208401612c2e565b90509250929050565b60008060408385031215612ecb578182fd5b8235612ed681613333565b946020939093013593505050565b600060208284031215612ef5578081fd5b813561186f81613348565b600060208284031215612f11578081fd5b815161186f81613348565b600060208284031215612f2d578081fd5b813567ffffffffffffffff811115612f43578182fd5b61124584828501612c43565b60008060008060008060c08789031215612f67578384fd5b863567ffffffffffffffff80821115612f7e578586fd5b612f8a8a838b01612c43565b97506020890135915080821115612f9f578586fd5b612fab8a838b01612c43565b96506040890135915080821115612fc0578586fd5b612fcc8a838b01612c43565b95506060890135915080821115612fe1578384fd5b50612fee89828a01612bb6565b935050612ffd60808801612c2e565b915060a087013590509295509295509295565b600060208284031215613021578081fd5b5035919050565b6000806040838503121561303a578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561309a57815180516001600160a01b031688528301516bffffffffffffffffffffffff16838801526040909601959082019060010161305c565b509495945050505050565b600081518084526130bd81602086016020860161325b565b601f01601f19169290920160200192915050565b600083516130e381846020880161325b565b8351908301906130f781836020880161325b565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261313260808301846130a5565b9695505050505050565b60208152600061186f6020830184613049565b60208152600061186f60208301846130a5565b8281526040602082015260006112456040830184613049565b6040805190810167ffffffffffffffff8111828210171561319e5761319e61331d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156131cd576131cd61331d565b604052919050565b600067ffffffffffffffff8211156131ef576131ef61331d565b5060051b60200190565b6000821982111561320c5761320c6132f1565b500190565b60008261322057613220613307565b500490565b600081600019048311821515161561323f5761323f6132f1565b500290565b600082821015613256576132566132f1565b500390565b60005b8381101561327657818101518382015260200161325e565b8381111561135a5750506000910152565b600181811c9082168061329b57607f821691505b602082108114156132bc57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132d6576132d66132f1565b5060010190565b6000826132ec576132ec613307565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4557600080fd5b6001600160e01b031981168114610c4557600080fdfea2646970667358221220502c2006d035a127f8df7b5dcb4df4a7b8c2aa7700c330779536b7f976adbdb964736f6c63430008040033a2646970667358221220205fecd591205255d94b2a2641a680da5ce72ce8e1dd5a965fe2d3e0c711879964736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063715018a611610050578063715018a6146100b05780638da5cb5b146100b8578063f2fde38b146100c957600080fd5b8063394e21d01461006c5780635a5acb931461009b575b600080fd5b61007f61007a36600461070d565b6100dc565b6040516001600160a01b03909116815260200160405180910390f35b6100ae6100a936600461070d565b610176565b005b6100ae6102e4565b6000546001600160a01b031661007f565b6100ae6100d73660046106ec565b61034f565b600060606100f66100f18a8a8a8a8a8a610431565b6104c1565b8051602091820120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b6bffffffffffffffffffffffff191660218201526035810196909652605580870192909252805180870390920182526075909501909452835193019290922098975050505050505050565b600061018f610189898989898989610431565b8361052a565b6040517f70c14f6e00000000000000000000000000000000000000000000000000000000815290915081906001600160a01b038216906370c14f6e906101e3908c908c908c908c908c908c90600401610847565b600060405180830381600087803b1580156101fd57600080fd5b505af1158015610211573d6000803e3d6000fd5b50505050806001600160a01b031663f2fde38b61022b3390565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561028457600080fd5b505af1158015610298573d6000803e3d6000fd5b50506040516001600160a01b03851681527f06211b9852468ad64c02207ad8100cf1a32182ed6ed3bad1e1133e06227307519250602001905060405180910390a1505050505050505050565b6000546001600160a01b031633146103435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61034d6000610556565b565b6000546001600160a01b031633146103a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033a565b6001600160a01b0381166104255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033a565b61042e81610556565b50565b60606370c14f6e60e01b87878787878760405160240161045696959493929190610847565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509695505050505050565b6060604051806020016104d3906105be565b601f1982820381018352601f9091011660408190526104f6908490602001610834565b60408051601f19818403018152908290526105149291602001610805565b6040516020818303038152906040529050919050565b600080610536846104c1565b9050828151602083016000f59150813b61054f57600080fd5b5092915050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6133b48061097483390190565b80356001600160a01b03811681146105e257600080fd5b919050565b600082601f8301126105f7578081fd5b8135602067ffffffffffffffff82111561061357610613610944565b8160051b6106228282016108e3565b83815282810190868401838801850189101561063c578687fd5b8693505b8584101561066557610651816105cb565b835260019390930192918401918401610640565b50979650505050505050565b803580151581146105e257600080fd5b600082601f830112610691578081fd5b813567ffffffffffffffff8111156106ab576106ab610944565b6106be601f8201601f19166020016108e3565b8181528460208386010111156106d2578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156106fd578081fd5b610706826105cb565b9392505050565b600080600080600080600060e0888a031215610727578283fd5b873567ffffffffffffffff8082111561073e578485fd5b61074a8b838c01610681565b985060208a013591508082111561075f578485fd5b61076b8b838c01610681565b975060408a0135915080821115610780578485fd5b61078c8b838c01610681565b965060608a01359150808211156107a1578485fd5b506107ae8a828b016105e7565b9450506107bd60808901610671565b925060a0880135915060c0880135905092959891949750929550565b600081518084526107f1816020860160208601610914565b601f01601f19169290920160200192915050565b60008351610817818460208801610914565b83519083019061082b818360208801610914565b01949350505050565b60208152600061070660208301846107d9565b60c08152600061085a60c08301896107d9565b60208382038185015261086d828a6107d9565b9150838203604085015261088182896107d9565b84810360608601528751808252828901935090820190845b818110156108be5784516001600160a01b031683529383019391830191600101610899565b5050861515608086015292506108d2915050565b8260a0830152979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561090c5761090c610944565b604052919050565b60005b8381101561092f578181015183820152602001610917565b8381111561093e576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfe608060405234801561001057600080fd5b50613394806100206000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103f7578063d5abeb011461040a578063e985e9c514610414578063f2fde38b1461045057600080fd5b8063a22cb465146103a3578063ab9772ac146103b6578063b88d4fde146103c4578063bb3bafd6146103d757600080fd5b806370c528cf116100de57806370c528cf1461036e578063715018a6146103815780638da5cb5b1461038957806395d89b411461039b57600080fd5b80636c0360eb1461034057806370a082311461034857806370c14f6e1461035b57600080fd5b80632a55205a1161017c5780634c0f38c21161014b5780634c0f38c2146102ff5780634f6ccce71461030757806355f804b31461031a5780636352211e1461032d57600080fd5b80632a55205a146102945780632f745c59146102c657806342842e0e146102d957806342966c68146102ec57600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806318160ddd1461025c57806323b872dd1461026e57806329ec16dd1461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004612ee4565b610463565b60405190151581526020015b60405180910390f35b61020f610543565b6040516101fe919061314f565b61022f61022a366004613010565b6105d5565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004612eb9565b61066f565b005b60cb545b6040519081526020016101fe565b61025a61027c366004612dc8565b6107a1565b61025a61028f366004612e85565b610829565b6102a76102a2366004613028565b6108b0565b604080516001600160a01b0390931683526020830191909152016101fe565b6102606102d4366004612eb9565b610afe565b61025a6102e7366004612dc8565b610ba6565b61025a6102fa366004613010565b610bc1565b610260610c48565b610260610315366004613010565b610cca565b61025a610328366004612f1c565b610d7c565b61022f61033b366004613010565b610e33565b61020f610ebe565b610260610356366004612c62565b610f4d565b61025a610369366004612f4f565b610fe7565b61026061037c366004612c7e565b61110a565b61025a61124d565b61012d546001600160a01b031661022f565b61020f6112b4565b61025a6103b1366004612e85565b6112c3565b610195546101f29060ff1681565b61025a6103d2366004612e08565b6112d2565b6103ea6103e5366004613010565b611360565b6040516101fe919061313c565b61020f610405366004613010565b6113f5565b6102606101965481565b6101f2610422366004612d90565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b61025a61045e366004612c62565b611400565b60006001600160e01b031982167f916e8f8c0000000000000000000000000000000000000000000000000000000014806104c657506001600160e01b031982167fc87b56dd00000000000000000000000000000000000000000000000000000000145b806104fa57506001600160e01b031982167f79f154c400000000000000000000000000000000000000000000000000000000145b8061052e57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b8061053d575061053d826114e0565b92915050565b60606065805461055290613287565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90613287565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166106535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b600061067a82610e33565b9050806001600160a01b0316836001600160a01b031614156107045760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161064a565b336001600160a01b038216148061072057506107208133610422565b6107925760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161064a565b61079c838361151e565b505050565b6107ac335b8261158c565b61081e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161064a565b61079c83838361167f565b61012d546001600160a01b031633146108845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b0391909116600090815261019360205260409020805460ff1916911515919091179055565b600082815261015f6020526040812054819061090e5760405162461bcd60e51b815260206004820152601560248201527f526f79616c74696573206e6f7420736574207965740000000000000000000000604482015260640161064a565b600084815261015f60205260409020546001146109ba5760405162461bcd60e51b8152602060048201526044602482018190527f4d756c7469706c657320526f79616c74696573206973206e6f7420737570706f908201527f7274656420627920454950323938312c20757365204c757879526f79616c746960648201527f6573563100000000000000000000000000000000000000000000000000000000608482015260a40161064a565b600084815261015f60205260408120805461264892906109ea57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160a01b90046bffffffffffffffffffffffff161115610a595760405162461bcd60e51b815260206004820152601d60248201527f526f79616c746965732061726520746f6f206869676820283e39382529000000604482015260640161064a565b600084815261015f602052604081208054610ab19290610a8957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001548490600160a01b90046bffffffffffffffffffffffff16611857565b600085815261015f60205260408120805492935091610ae057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031694909350915050565b6000610b0983610f4d565b8210610b7d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161064a565b506001600160a01b0391909116600090815260c960209081526040808320938352929052205490565b61079c838383604051806020016040528060008152506112d2565b610bca336107a6565b610c3c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161064a565b610c4581611876565b50565b6000806101965411610cc25760405162461bcd60e51b815260206004820152602a60248201527f5468657265206973206e6f204d6178537570706c7920666f722074686973206360448201527f6f6c6c656374696f6e2e00000000000000000000000000000000000000000000606482015260840161064a565b506101965490565b6000610cd560cb5490565b8210610d495760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161064a565b60cb8281548110610d6a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61012d546001600160a01b03163314610dd75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6101955460ff16610e2a5760405162461bcd60e51b815260206004820152601b60248201527f4261736520555249206973206e6f74206368616e676561626c652e0000000000604482015260640161064a565b610c458161187f565b6000818152606760205260408120546001600160a01b03168061053d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161064a565b6101948054610ecc90613287565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef890613287565b8015610f455780601f10610f1a57610100808354040283529160200191610f45565b820191906000526020600020905b815481529060010190602001808311610f2857829003601f168201915b505050505081565b60006001600160a01b038216610fcb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161064a565b506001600160a01b031660009081526068602052604090205490565b600054610100900460ff166110025760005460ff1615611006565b303b155b6110785760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161064a565b600054610100900460ff1615801561109a576000805461ffff19166101011790555b6110a2611893565b6110aa611893565b6110b487876118fe565b6110bd84611990565b6110c5611893565b6110cd611a07565b6110d68561187f565b610195805460ff19168415151790556110ef8261019655565b8015611101576000805461ff00191690555b50505050505050565b600061111533611a7b565b6111875760405162461bcd60e51b815260206004820152602a60248201527f53656e646572206d75737420626520616e20617070726f766564206d696e746560448201527f72206f72206f776e657200000000000000000000000000000000000000000000606482015260840161064a565b60006111936101925490565b905061019654600014611218576101965481106112185760405162461bcd60e51b815260206004820152602660248201527f4552433732313a206d696e74696e672061626f76652074686520746f74616c2060448201527f737570706c790000000000000000000000000000000000000000000000000000606482015260840161064a565b6112228582611ae4565b61122c8185611afe565b6112368184611ba7565b61124561019280546001019055565b949350505050565b61012d546001600160a01b031633146112a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6112b26000611df0565b565b60606066805461055290613287565b6112ce338383611e43565b5050565b6112dc338361158c565b61134e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161064a565b61135a84848484611f12565b50505050565b606061015f6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156113ea57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1681830152825260019092019101611396565b505050509050919050565b606061053d82611f90565b61012d546001600160a01b0316331461145b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b0381166114d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161064a565b610c4581611df0565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061053d575061053d8261210e565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061155382610e33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166116055760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161064a565b600061161083610e33565b9050806001600160a01b0316846001600160a01b0316148061164b5750836001600160a01b0316611640846105d5565b6001600160a01b0316145b8061124557506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff16611245565b826001600160a01b031661169282610e33565b6001600160a01b03161461170e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161064a565b6001600160a01b0382166117895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161064a565b6117948383836121a9565b61179f60008261151e565b6001600160a01b03831660009081526068602052604081208054600192906117c8908490613244565b90915550506001600160a01b03821660009081526068602052604081208054600192906117f69084906131f9565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061186f61271061186985856121b4565b906121c0565b9392505050565b610c45816121cc565b80516112ce90610194906020840190612a8f565b600054610100900460ff166112b25760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b600054610100900460ff166119695760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b815161197c906065906020850190612a8f565b50805161079c906066906020840190612a8f565b60005b81518110156112ce57600161019360008484815181106119c357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806119ff816132c2565b915050611993565b600054610100900460ff16611a725760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161064a565b6112b233611df0565b6000611a9061012d546001600160a01b031690565b6001600160a01b0316826001600160a01b03161415611ab157506001919050565b6001600160a01b038216611ac457600080fd5b506001600160a01b03166000908152610193602052604090205460ff1690565b6112ce82826040518060200160405280600081525061220c565b6000828152606760205260409020546001600160a01b0316611b885760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161064a565b6000828152609760209081526040909120825161079c92840190612a8f565b600082815261015f602052604090205415611c045760405162461bcd60e51b815260206004820152601560248201527f526f79616c7469657320616c7265616479207365740000000000000000000000604482015260640161064a565b60005b8151811015611db25760006001600160a01b0316828281518110611c3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161415611c9e5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015260640161064a565b818181518110611cbe57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516bffffffffffffffffffffffff1660001415611d285760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604482015260640161064a565b600083815261015f602052604090208251839083908110611d5957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516bffffffffffffffffffffffff16600160a01b026001600160a01b039091161791015580611daa816132c2565b915050611c07565b507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051611de4929190613162565b60405180910390a15050565b61012d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611ea55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161064a565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f1d84848461167f565b611f298484848461228a565b61135a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b6000818152606760205260409020546060906001600160a01b031661201d5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161064a565b6000828152609760205260408120805461203690613287565b80601f016020809104026020016040519081016040528092919081815260200182805461206290613287565b80156120af5780601f10612084576101008083540402835291602001916120af565b820191906000526020600020905b81548152906001019060200180831161209257829003601f168201915b5050505050905060006120c06123e2565b90508051600014156120d3575092915050565b8151156121055780826040516020016120ed9291906130d1565b60405160208183030381529060405292505050919050565b611245846123f2565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061217157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061053d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461053d565b61079c8383836124da565b600061186f8284613225565b600061186f8284613211565b6121d581612592565b600081815260976020526040902080546121ee90613287565b159050610c45576000818152609760205260408120610c4591612b13565b6122168383612639565b612223600084848461228a565b61079c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b60006001600160a01b0384163b156123d757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122ce903390899088908890600401613100565b602060405180830381600087803b1580156122e857600080fd5b505af1925050508015612318575060408051601f3d908101601f1916820190925261231591810190612f00565b60015b6123bd573d808015612346576040519150601f19603f3d011682016040523d82523d6000602084013e61234b565b606091505b5080516123b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161064a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611245565b506001949350505050565b6060610194805461055290613287565b6000818152606760205260409020546060906001600160a01b031661247f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161064a565b60006124896123e2565b905060008151116124a9576040518060200160405280600081525061186f565b806124b384612787565b6040516020016124c49291906130d1565b6040516020818303038152906040529392505050565b6001600160a01b038316612535576125308160cb8054600083815260cc60205260408120829055600182018355919091527fa7ce836d032b2bf62b7e2097a8e0a6d8aeb35405ad15271e96d3b0188a1d06fb0155565b612558565b816001600160a01b0316836001600160a01b0316146125585761255883826128d5565b6001600160a01b03821661256f5761079c81612972565b826001600160a01b0316826001600160a01b03161461079c5761079c8282612a4b565b600061259d82610e33565b90506125ab816000846121a9565b6125b660008361151e565b6001600160a01b03811660009081526068602052604081208054600192906125df908490613244565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661268f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161064a565b6000818152606760205260409020546001600160a01b0316156126f45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161064a565b612700600083836121a9565b6001600160a01b03821660009081526068602052604081208054600192906127299084906131f9565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816127c757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127f157806127db816132c2565b91506127ea9050600a83613211565b91506127cb565b60008167ffffffffffffffff81111561281a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612844576020820181803683370190505b5090505b841561124557612859600183613244565b9150612866600a866132dd565b6128719060306131f9565b60f81b81838151811061289457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128ce600a86613211565b9450612848565b600060016128e284610f4d565b6128ec9190613244565b600083815260ca602052604090205490915080821461293f576001600160a01b038416600090815260c960209081526040808320858452825280832054848452818420819055835260ca90915290208190555b50600091825260ca602090815260408084208490556001600160a01b03909416835260c981528383209183525290812055565b60cb5460009061298490600190613244565b600083815260cc602052604081205460cb80549394509092849081106129ba57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060cb83815481106129e957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260cc909152604080822084905585825281205560cb805480612a2f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a5683610f4d565b6001600160a01b03909316600090815260c960209081526040808320868452825280832085905593825260ca9052919091209190915550565b828054612a9b90613287565b90600052602060002090601f016020900481019282612abd5760008555612b03565b82601f10612ad657805160ff1916838001178555612b03565b82800160010185558215612b03579182015b82811115612b03578251825591602001919060010190612ae8565b50612b0f929150612b49565b5090565b508054612b1f90613287565b6000825580601f10612b2f575050565b601f016020900490600052602060002090810190610c4591905b5b80821115612b0f5760008155600101612b4a565b600067ffffffffffffffff831115612b7857612b7861331d565b612b8b601f8401601f19166020016131a4565b9050828152838383011115612b9f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612bc6578081fd5b81356020612bdb612bd6836131d5565b6131a4565b80838252828201915082860187848660051b8901011115612bfa578586fd5b855b85811015612c21578135612c0f81613333565b84529284019290840190600101612bfc565b5090979650505050505050565b80358015158114612c3e57600080fd5b919050565b600082601f830112612c53578081fd5b61186f83833560208501612b5e565b600060208284031215612c73578081fd5b813561186f81613333565b600080600060608486031215612c92578182fd5b8335612c9d81613333565b925060208481013567ffffffffffffffff80821115612cba578485fd5b612cc688838901612c43565b9450604091508187013581811115612cdc578485fd5b87019050601f81018813612cee578384fd5b8035612cfc612bd6826131d5565b8082825285820191508584018b878560061b8701011115612d1b578788fd5b8794505b83851015612d7f5785818d031215612d35578788fd5b612d3d61317b565b8135612d4881613333565b8152818801356bffffffffffffffffffffffff81168114612d6757898afd5b81890152835260019490940193918601918501612d1f565b508096505050505050509250925092565b60008060408385031215612da2578182fd5b8235612dad81613333565b91506020830135612dbd81613333565b809150509250929050565b600080600060608486031215612ddc578283fd5b8335612de781613333565b92506020840135612df781613333565b929592945050506040919091013590565b60008060008060808587031215612e1d578081fd5b8435612e2881613333565b93506020850135612e3881613333565b925060408501359150606085013567ffffffffffffffff811115612e5a578182fd5b8501601f81018713612e6a578182fd5b612e7987823560208401612b5e565b91505092959194509250565b60008060408385031215612e97578182fd5b8235612ea281613333565b9150612eb060208401612c2e565b90509250929050565b60008060408385031215612ecb578182fd5b8235612ed681613333565b946020939093013593505050565b600060208284031215612ef5578081fd5b813561186f81613348565b600060208284031215612f11578081fd5b815161186f81613348565b600060208284031215612f2d578081fd5b813567ffffffffffffffff811115612f43578182fd5b61124584828501612c43565b60008060008060008060c08789031215612f67578384fd5b863567ffffffffffffffff80821115612f7e578586fd5b612f8a8a838b01612c43565b97506020890135915080821115612f9f578586fd5b612fab8a838b01612c43565b96506040890135915080821115612fc0578586fd5b612fcc8a838b01612c43565b95506060890135915080821115612fe1578384fd5b50612fee89828a01612bb6565b935050612ffd60808801612c2e565b915060a087013590509295509295509295565b600060208284031215613021578081fd5b5035919050565b6000806040838503121561303a578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561309a57815180516001600160a01b031688528301516bffffffffffffffffffffffff16838801526040909601959082019060010161305c565b509495945050505050565b600081518084526130bd81602086016020860161325b565b601f01601f19169290920160200192915050565b600083516130e381846020880161325b565b8351908301906130f781836020880161325b565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261313260808301846130a5565b9695505050505050565b60208152600061186f6020830184613049565b60208152600061186f60208301846130a5565b8281526040602082015260006112456040830184613049565b6040805190810167ffffffffffffffff8111828210171561319e5761319e61331d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156131cd576131cd61331d565b604052919050565b600067ffffffffffffffff8211156131ef576131ef61331d565b5060051b60200190565b6000821982111561320c5761320c6132f1565b500190565b60008261322057613220613307565b500490565b600081600019048311821515161561323f5761323f6132f1565b500290565b600082821015613256576132566132f1565b500390565b60005b8381101561327657818101518382015260200161325e565b8381111561135a5750506000910152565b600181811c9082168061329b57607f821691505b602082108114156132bc57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132d6576132d66132f1565b5060010190565b6000826132ec576132ec613307565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4557600080fd5b6001600160e01b031981168114610c4557600080fdfea2646970667358221220502c2006d035a127f8df7b5dcb4df4a7b8c2aa7700c330779536b7f976adbdb964736f6c63430008040033a2646970667358221220205fecd591205255d94b2a2641a680da5ce72ce8e1dd5a965fe2d3e0c711879964736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.