ETH Price: $2,712.29 (+9.11%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw170563482023-04-16 1:53:59570 days ago1681610039IN
0x6ef31f9B...425B34d68
0 ETH0.0027627925.45463015
Withdraw169641392023-04-02 21:43:47584 days ago1680471827IN
0x6ef31f9B...425B34d68
0 ETH0.0018436916.98479428
Withdraw168914482023-03-23 16:33:47594 days ago1679589227IN
0x6ef31f9B...425B34d68
0 ETH0.0035141638.43934863
Deposit168576172023-03-18 22:28:59599 days ago1679178539IN
0x6ef31f9B...425B34d68
0 ETH0.0005976213.45131113
Withdraw168538502023-03-18 9:48:23599 days ago1679132903IN
0x6ef31f9B...425B34d68
0 ETH0.0014711513.55278998
Withdraw168281862023-03-14 19:11:23603 days ago1678821083IN
0x6ef31f9B...425B34d68
0 ETH0.0049465645.58159417
Withdraw163956342023-01-13 4:57:47663 days ago1673585867IN
0x6ef31f9B...425B34d68
0 ETH0.0018777917.30157863
Withdraw163955312023-01-13 4:36:59663 days ago1673584619IN
0x6ef31f9B...425B34d68
0 ETH0.0021537719.84351546
Withdraw163955112023-01-13 4:32:59663 days ago1673584379IN
0x6ef31f9B...425B34d68
0 ETH0.001999118.41933512
Withdraw161423692022-12-08 20:26:35699 days ago1670531195IN
0x6ef31f9B...425B34d68
0 ETH0.0017711116.32050316
Withdraw160866822022-12-01 1:30:35706 days ago1669858235IN
0x6ef31f9B...425B34d68
0 ETH0.0014789513.62463169
Withdraw160866802022-12-01 1:30:11706 days ago1669858211IN
0x6ef31f9B...425B34d68
0 ETH0.0013701312.62217322
Deposit159178792022-11-07 11:34:47730 days ago1667820887IN
0x6ef31f9B...425B34d68
0 ETH0.0004998211.25
Withdraw159141542022-11-06 23:06:23731 days ago1667775983IN
0x6ef31f9B...425B34d68
0 ETH0.0014118213.00621499
Withdraw156888002022-10-06 11:35:59762 days ago1665056159IN
0x6ef31f9B...425B34d68
0 ETH0.000771777.11096385
Withdraw156887062022-10-06 11:16:47762 days ago1665055007IN
0x6ef31f9B...425B34d68
0 ETH0.000706766.51269566
Withdraw156053732022-09-24 19:41:59774 days ago1664048519IN
0x6ef31f9B...425B34d68
0 ETH0.000630915.81570686
Withdraw155049152022-09-09 21:01:00789 days ago1662757260IN
0x6ef31f9B...425B34d68
0 ETH0.0017053815.71481876
Withdraw154714362022-09-04 11:43:21794 days ago1662291801IN
0x6ef31f9B...425B34d68
0 ETH0.000589865.43646339
Withdraw153973572022-08-23 15:14:31806 days ago1661267671IN
0x6ef31f9B...425B34d68
0 ETH0.0011655510.73753686
Withdraw153834182022-08-21 10:18:48808 days ago1661077128IN
0x6ef31f9B...425B34d68
0 ETH0.000508034.68178315
Withdraw153497232022-08-16 2:21:58813 days ago1660616518IN
0x6ef31f9B...425B34d68
0 ETH0.0013590112.52307301
Withdraw153435572022-08-15 2:55:50814 days ago1660532150IN
0x6ef31f9B...425B34d68
0 ETH0.000954348.79310846
Withdraw152655452022-08-02 21:35:09827 days ago1659476109IN
0x6ef31f9B...425B34d68
0 ETH0.000868458.00136969
Withdraw151794862022-07-20 12:26:00840 days ago1658319960IN
0x6ef31f9B...425B34d68
0 ETH0.0016111314.84463165
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CreditVault

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : CreditVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract CreditVault is Initializable, UUPSUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable, PausableUpgradeable {
  using SafeERC20Upgradeable for IERC20Upgradeable;

  address public authProvider;
  IERC20Upgradeable public loreToken;

  mapping(bytes32 => bool) public claimedTickets;
  mapping(bytes32 => bool) public Tickets;
  mapping(address => mapping (uint256 => bool)) public claimedNfts;

  event AuthProviderChanged(address indexed authProvider);
  event Claimed(address indexed user, address[] nftCollections, uint256[] tokenIds, uint256 amount);
  event Withdrawn (address indexed user, uint256 amount);
  event Deposited(address indexed user, uint256 amount);

  address public treasuryAddress;

  /// @notice Initializer function
  function initialize(
    IERC20Upgradeable _loreToken,
    address _authProvider,
    address  _treasuryAddress
  ) public initializer {
    __Ownable_init();
    __ReentrancyGuard_init();
    __Pausable_init();

    require(_treasuryAddress != address(0), "treasury address incorrect");
    require(_authProvider != address(0), "auth provider address incorrect");
    require(address(_loreToken) != address(0), "lore token address incorrect");

    loreToken = _loreToken;
    treasuryAddress = _treasuryAddress;
    updateAuthProvider(_authProvider);
  }

  function pause() public onlyOwner {
    _pause();
  }

  function unpause() public onlyOwner {
    _unpause();
  }

  function updateAuthProvider(address _authProvider) public onlyOwner {
    authProvider = _authProvider;
    emit AuthProviderChanged(authProvider);
  }

  /// To authorize the owner to upgrade the contract we implement 
  /// _authorizeUpgrade with the onlyOwner modifier.
  function _authorizeUpgrade(address) internal override onlyOwner {}

  /// @notice Accepts the (v,r,s) signature and the message and returns the
  /// address that signed the signature. It accounts for malleability issue
  /// with the native ecrecover.
  function getSigner(
    bytes32 message,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) private pure returns (address) {
    // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
    require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
    require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

    // If the signature is valid (and not malleable), return the signer address
    address signer = ecrecover(hashMessage(message), v, r, s);
    require(signer != address(0), "ECDSA:invalid signature");

    return signer;
  }

  function hashMessage(bytes32 message) private pure returns (bytes32) {
    bytes memory prefix = "\x19Ethereum Signed Message:\n32";
    return keccak256(abi.encodePacked(prefix, message));
  }

  /// @notice Allows owner to set treasury address
  function setTreasuryAddress(address _treasuryAddress) external onlyOwner {
    treasuryAddress = _treasuryAddress;
  }

  /// @notice Allows anyone with a valid access ticket to claim the designated LORE tokens
  /// @param tokenIds the token ids that user is claiming the LORE tokens for
  /// @param amount the total amount of LORE to be claimed
  /// @param nftCollections the nft collections each tokenId corresponds to
  function claim(
    uint256[] memory tokenIds,
    uint256 amount,
    uint256 nonce,
    address[] memory nftCollections,
    bytes32 _r,
    bytes32 _s,
    uint8 _v
  ) public nonReentrant whenNotPaused {
    
    require(nftCollections.length == tokenIds.length, "incorrect number of token and collections");

    bytes32 message = keccak256(abi.encodePacked(address(this), _msgSender(), nftCollections, tokenIds, amount, nonce));
    address signer = getSigner(message, _v, _r, _s);

    require(signer == authProvider, "invalid claim ticket");
    require(!claimedTickets[message], "ticket already used");

    claimedTickets[message] = true;
    
    for (uint256 i = 0; i < tokenIds.length; i++) {
      require(IERC721(nftCollections[i]).ownerOf(tokenIds[i]) == _msgSender(), "nft not owned by user");
      require(!claimedNfts[nftCollections[i]][tokenIds[i]], "nft already claimed");
      
      claimedNfts[nftCollections[i]][tokenIds[i]] = true;
    }
    
    loreToken.safeTransferFrom(treasuryAddress, _msgSender(), amount);
    emit Claimed(_msgSender(), nftCollections, tokenIds, amount);
  }

 /**
   * Allows users to exchange off-chain game credits for LORE tokens
   * ERC20 smart contract. This covers any mistakes from the end-user side
   * @param amount the total amount of credits to be exchanged for LORE tokens
   */
   function withdraw(
    uint256 amount,
    uint256 nonce,
    bytes32 _r,
    bytes32 _s,
    uint8 _v
  ) public nonReentrant whenNotPaused {
    bytes32 message = keccak256(abi.encodePacked(address(this), _msgSender(), amount, nonce));
    address signer = getSigner(message, _v, _r, _s);

    require(signer == authProvider, "invalid withdraw ticket");
    require(!Tickets[message], "ticket already used");

    Tickets[message] = true;
        
    loreToken.safeTransferFrom(treasuryAddress, _msgSender(), amount);
    emit Withdrawn (_msgSender(), amount);
  }

  /**
   * Allows users to deposit LORE tokens in contract which are then available as off-chain game credits
   * ERC20 smart contract. This covers any mistakes from the end-user side
   * @param amount the total amount of LORE tokens to be deposited
   */
  function deposit(uint256 amount) external {
    loreToken.safeTransferFrom(_msgSender(), treasuryAddress, amount);
    emit Deposited(_msgSender(), amount);
  }
  
  /**
   * Allows the owner of the contract to release tokens that were erronously sent to this  
   * ERC20 smart contract. This covers any mistakes from the end-user side
   * @param token the token that we want to withdraw
   * @param recipient the address that will receive the tokens
   * @param amount the amount of tokens
   */
  function tokenRescue(
    IERC20 token,
    address recipient,
    uint256 amount
  ) onlyOwner external {
    token.transfer(recipient, amount);
  }

  /**
   * Allows the owner of the contract to release any ether locked inside the contract
   * @param recipient the address that will receive the tokens
   * @param amount the amount of ether
   */
  function etherRescue(
    address recipient,
    uint256 amount
  ) onlyOwner external {   
    (bool success, ) = payable(recipient).call{value: amount}("");
    require(success, "transfer failed");
  }

  /**
   * Disable renounceOwnership
   */
  function renounceOwnership() public override view onlyOwner {
    revert("Ownership cannot be renouced");
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 4 of 26 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

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

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

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

    uint256 private _status;

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

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

File 6 of 26 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20Upgradeable {
    using AddressUpgradeable for address;

    function safeTransfer(
        IERC20Upgradeable token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20Upgradeable token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 26 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) 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, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 26 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.2;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

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

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

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

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

File 16 of 26 : 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 17 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 18 of 26 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 19 of 26 : 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 20 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 24 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authProvider","type":"address"}],"name":"AuthProviderChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address[]","name":"nftCollections","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"Tickets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"authProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address[]","name":"nftCollections","type":"address[]"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedNfts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimedTickets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"etherRescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"_loreToken","type":"address"},{"internalType":"address","name":"_authProvider","type":"address"},{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"loreToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"tokenRescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_authProvider","type":"address"}],"name":"updateAuthProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561004357600080fd5b50608051614ac461007b6000396000818161057901528181610608015281816107880152818161081701526108c70152614ac46000f3fe6080604052600436106101405760003560e01c8063715018a6116100b6578063b6b55f251161006f578063b6b55f25146103ed578063c0c53b8b14610416578063c5f956af1461043f578063ccf377561461046a578063e9cdc5b314610493578063f2fde38b146104d057610140565b8063715018a6146103195780638456cb59146103305780638bf8bd0b146103475780638da5cb5b146103705780638e1347da1461039b578063b07c1c21146103c457610140565b80634f1ef286116101085780634f1ef2861461021857806352d1902d146102345780635c975abb1461025f5780635d584ac31461028a57806360f67b57146102b35780636605bfda146102f057610140565b806307577a4e146101455780630992fc6e146101705780630de50844146101ad5780633659cfe6146101d85780633f4ba83a14610201575b600080fd5b34801561015157600080fd5b5061015a6104f9565b6040516101679190612b24565b60405180910390f35b34801561017c57600080fd5b5061019760048036038101906101929190612bc7565b610520565b6040516101a49190612c22565b60405180910390f35b3480156101b957600080fd5b506101c2610550565b6040516101cf9190612c4c565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190612c67565b610577565b005b34801561020d57600080fd5b50610216610700565b005b610232600480360381019061022d9190612dda565b610786565b005b34801561024057600080fd5b506102496108c3565b6040516102569190612e4f565b60405180910390f35b34801561026b57600080fd5b5061027461097c565b6040516102819190612c22565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac9190612ecf565b610993565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190612f4a565b610c71565b6040516102e79190612c22565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190612c67565b610c92565b005b34801561032557600080fd5b5061032e610d53565b005b34801561033c57600080fd5b50610345610e0a565b005b34801561035357600080fd5b5061036e60048036038101906103699190612fb5565b610e90565b005b34801561037c57600080fd5b50610385610f90565b6040516103929190612c4c565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd9190612c67565b610fba565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612bc7565b6110e1565b005b3480156103f957600080fd5b50610414600480360381019061040f9190613008565b61120e565b005b34801561042257600080fd5b5061043d60048036038101906104389190613073565b6112e0565b005b34801561044b57600080fd5b506104546115bc565b6040516104619190612c4c565b60405180910390f35b34801561047657600080fd5b50610491600480360381019061048c9190613251565b6115e3565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190612f4a565b611bc2565b6040516104c79190612c22565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f29190612c67565b611be3565b005b61012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101316020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b61012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fd906133ae565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610645611cdb565b73ffffffffffffffffffffffffffffffffffffffff161461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069290613440565b60405180910390fd5b6106a481611d32565b6106fd81600067ffffffffffffffff8111156106c3576106c2612caf565b5b6040519080825280601f01601f1916602001820160405280156106f55781602001600182028036833780820191505090505b506000611db1565b50565b610708611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610726610f90565b73ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610773906134ac565b60405180910390fd5b610784611f27565b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080c906133ae565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610854611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146108aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a190613440565b60405180910390fd5b6108b382611d32565b6108bf82826001611db1565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a9061353e565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060fb60009054906101000a900460ff16905090565b600260c95414156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d0906135aa565b60405180910390fd5b600260c9819055506109e961097c565b15610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2090613616565b60405180910390fd5b600030610a34611f1f565b8787604051602001610a49949392919061369f565b6040516020818303038152906040528051906020012090506000610a6f82848787611fc9565b905061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af990613739565b60405180910390fd5b610130600083815260200190815260200160002060009054906101000a900460ff1615610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b906137a5565b60405180910390fd5b6001610130600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610c0b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610bc0611f1f565b8961012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b610c13611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d588604051610c5891906137d4565b60405180910390a25050600160c9819055505050505050565b61012f6020528060005260406000206000915054906101000a900460ff1681565b610c9a611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610cb8610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d05906134ac565b60405180910390fd5b8061013260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d5b611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610d79610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc6906134ac565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e019061383b565b60405180910390fd5b610e12611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610e30610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d906134ac565b60405180910390fd5b610e8e6121e5565b565b610e98611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610eb6610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f03906134ac565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610f4792919061385b565b6020604051808303816000875af1158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a91906138b0565b50505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fc2611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610fe0610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d906134ac565b60405180910390fd5b8061012d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0e2ce26f21f1665d8558c339fe06649220e3ca175c4ebeeab50f96fe8bc7123d60405160405180910390a250565b6110e9611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611107610f90565b73ffffffffffffffffffffffffffffffffffffffff161461115d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611154906134ac565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516111839061390e565b60006040518083038185875af1925050503d80600081146111c0576040519150601f19603f3d011682016040523d82523d6000602084013e6111c5565b606091505b5050905080611209576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112009061396f565b60405180910390fd5b505050565b611288611219611f1f565b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b611290611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4826040516112d591906137d4565b60405180910390a250565b600060019054906101000a900460ff166113085760008054906101000a900460ff1615611311565b611310612288565b5b611350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134790613a01565b60405180910390fd5b60008060019054906101000a900460ff1615905080156113a0576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6113a8612299565b6113b06122f2565b6113b861234b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90613a6d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f90613ad9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff90613b45565b60405180910390fd5b8361012e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508161013260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061159583610fba565b80156115b65760008060016101000a81548160ff0219169083151502179055505b50505050565b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260c9541415611629576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611620906135aa565b60405180910390fd5b600260c98190555061163961097c565b15611679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167090613616565b60405180910390fd5b86518451146116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490613bd7565b60405180910390fd5b6000306116c8611f1f565b868a8a8a6040516020016116e196959493929190613d67565b604051602081830303815290604052805190602001209050600061170782848787611fc9565b905061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190613e1b565b60405180910390fd5b61012f600083815260200190815260200160002060009054906101000a900460ff16156117fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f3906137a5565b60405180910390fd5b600161012f600084815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b8951811015611adb5761183d611f1f565b73ffffffffffffffffffffffffffffffffffffffff1687828151811061186657611865613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16636352211e8c848151811061189c5761189b613e3b565b5b60200260200101516040518263ffffffff1660e01b81526004016118c091906137d4565b602060405180830381865afa1580156118dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119019190613e7f565b73ffffffffffffffffffffffffffffffffffffffff1614611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e90613ef8565b60405180910390fd5b610131600088838151811061196f5761196e613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008b83815181106119c6576119c5613e3b565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2190613f64565b60405180910390fd5b60016101316000898481518110611a4457611a43613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008c8481518110611a9b57611a9a613e3b565b5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611ad390613fb3565b91505061182c565b50611b5661013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b0b611f1f565b8a61012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b611b5e611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f542a9d100d5dc4b9be962f2018e60ded0680583828d074ed8cb2a4436ab5e916878b8b604051611ba793929190614128565b60405180910390a25050600160c98190555050505050505050565b6101306020528060005260406000206000915054906101000a900460ff1681565b611beb611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611c09610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c56906134ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc6906141df565b60405180910390fd5b611cd8816123a4565b50565b6000611d097f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61246a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d3a611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611d58610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da5906134ac565b60405180910390fd5b50565b611ddd7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612474565b60000160009054906101000a900460ff1615611e0157611dfc8361247e565b611f1a565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611e6957506040513d601f19601f82011682018060405250810190611e669190614214565b60015b611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f906142b3565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114611f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0490614345565b60405180910390fd5b50611f19838383612537565b5b505050565b600033905090565b611f2f61097c565b611f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f65906143b1565b60405180910390fd5b600060fb60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611fb2611f1f565b604051611fbf9190612c4c565b60405180910390a1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c1115612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202890614443565b60405180910390fd5b601b8460ff1614806120465750601c8460ff16145b612085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207c906144d5565b60405180910390fd5b6000600161209287612563565b868686604051600081526020016040526040516120b29493929190614504565b6020604051602081039080840390855afa1580156120d4573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214790614595565b60405180910390fd5b80915050949350505050565b6121df846323b872dd60e01b85858560405160240161217d939291906145b5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125cf565b50505050565b6121ed61097c565b1561222d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222490613616565b60405180910390fd5b600160fb60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612271611f1f565b60405161227e9190612c4c565b60405180910390a1565b600061229330612696565b15905090565b600060019054906101000a900460ff166122e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122df9061465e565b60405180910390fd5b6122f06126b9565b565b600060019054906101000a900460ff16612341576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123389061465e565b60405180910390fd5b61234961271a565b565b600060019054906101000a900460ff1661239a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123919061465e565b60405180910390fd5b6123a2612773565b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b6000819050919050565b61248781612696565b6124c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bd906146f0565b60405180910390fd5b806124f37f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61246a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612540836127df565b60008251118061254d5750805b1561255e5761255c838361282e565b505b505050565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250905080836040516020016125b19291906147a0565b60405160208183030381529060405280519060200120915050919050565b6000612631826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129129092919063ffffffff16565b9050600081511115612691578080602001905181019061265191906138b0565b612690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126879061483a565b60405180910390fd5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ff9061465e565b60405180910390fd5b612718612713611f1f565b6123a4565b565b600060019054906101000a900460ff16612769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127609061465e565b60405180910390fd5b600160c981905550565b600060019054906101000a900460ff166127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b99061465e565b60405180910390fd5b600060fb60006101000a81548160ff021916908315150217905550565b6127e88161247e565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606061283983612696565b612878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286f906148cc565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516128a091906148ec565b600060405180830381855af49150503d80600081146128db576040519150601f19603f3d011682016040523d82523d6000602084013e6128e0565b606091505b50915091506129088282604051806060016040528060278152602001614a686027913961292a565b9250505092915050565b60606129218484600085612991565b90509392505050565b6060831561293a5782905061298a565b60008351111561294d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129819190614947565b60405180910390fd5b9392505050565b6060824710156129d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cd906149db565b60405180910390fd5b6129df85612696565b612a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1590614a47565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a4791906148ec565b60006040518083038185875af1925050503d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b5091509150612a9982828661292a565b92505050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612aea612ae5612ae084612aa5565b612ac5565b612aa5565b9050919050565b6000612afc82612acf565b9050919050565b6000612b0e82612af1565b9050919050565b612b1e81612b03565b82525050565b6000602082019050612b396000830184612b15565b92915050565b6000604051905090565b600080fd5b600080fd5b6000612b5e82612aa5565b9050919050565b612b6e81612b53565b8114612b7957600080fd5b50565b600081359050612b8b81612b65565b92915050565b6000819050919050565b612ba481612b91565b8114612baf57600080fd5b50565b600081359050612bc181612b9b565b92915050565b60008060408385031215612bde57612bdd612b49565b5b6000612bec85828601612b7c565b9250506020612bfd85828601612bb2565b9150509250929050565b60008115159050919050565b612c1c81612c07565b82525050565b6000602082019050612c376000830184612c13565b92915050565b612c4681612b53565b82525050565b6000602082019050612c616000830184612c3d565b92915050565b600060208284031215612c7d57612c7c612b49565b5b6000612c8b84828501612b7c565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ce782612c9e565b810181811067ffffffffffffffff82111715612d0657612d05612caf565b5b80604052505050565b6000612d19612b3f565b9050612d258282612cde565b919050565b600067ffffffffffffffff821115612d4557612d44612caf565b5b612d4e82612c9e565b9050602081019050919050565b82818337600083830152505050565b6000612d7d612d7884612d2a565b612d0f565b905082815260208101848484011115612d9957612d98612c99565b5b612da4848285612d5b565b509392505050565b600082601f830112612dc157612dc0612c94565b5b8135612dd1848260208601612d6a565b91505092915050565b60008060408385031215612df157612df0612b49565b5b6000612dff85828601612b7c565b925050602083013567ffffffffffffffff811115612e2057612e1f612b4e565b5b612e2c85828601612dac565b9150509250929050565b6000819050919050565b612e4981612e36565b82525050565b6000602082019050612e646000830184612e40565b92915050565b612e7381612e36565b8114612e7e57600080fd5b50565b600081359050612e9081612e6a565b92915050565b600060ff82169050919050565b612eac81612e96565b8114612eb757600080fd5b50565b600081359050612ec981612ea3565b92915050565b600080600080600060a08688031215612eeb57612eea612b49565b5b6000612ef988828901612bb2565b9550506020612f0a88828901612bb2565b9450506040612f1b88828901612e81565b9350506060612f2c88828901612e81565b9250506080612f3d88828901612eba565b9150509295509295909350565b600060208284031215612f6057612f5f612b49565b5b6000612f6e84828501612e81565b91505092915050565b6000612f8282612b53565b9050919050565b612f9281612f77565b8114612f9d57600080fd5b50565b600081359050612faf81612f89565b92915050565b600080600060608486031215612fce57612fcd612b49565b5b6000612fdc86828701612fa0565b9350506020612fed86828701612b7c565b9250506040612ffe86828701612bb2565b9150509250925092565b60006020828403121561301e5761301d612b49565b5b600061302c84828501612bb2565b91505092915050565b600061304082612b53565b9050919050565b61305081613035565b811461305b57600080fd5b50565b60008135905061306d81613047565b92915050565b60008060006060848603121561308c5761308b612b49565b5b600061309a8682870161305e565b93505060206130ab86828701612b7c565b92505060406130bc86828701612b7c565b9150509250925092565b600067ffffffffffffffff8211156130e1576130e0612caf565b5b602082029050602081019050919050565b600080fd5b600061310a613105846130c6565b612d0f565b9050808382526020820190506020840283018581111561312d5761312c6130f2565b5b835b8181101561315657806131428882612bb2565b84526020840193505060208101905061312f565b5050509392505050565b600082601f83011261317557613174612c94565b5b81356131858482602086016130f7565b91505092915050565b600067ffffffffffffffff8211156131a9576131a8612caf565b5b602082029050602081019050919050565b60006131cd6131c88461318e565b612d0f565b905080838252602082019050602084028301858111156131f0576131ef6130f2565b5b835b8181101561321957806132058882612b7c565b8452602084019350506020810190506131f2565b5050509392505050565b600082601f83011261323857613237612c94565b5b81356132488482602086016131ba565b91505092915050565b600080600080600080600060e0888a0312156132705761326f612b49565b5b600088013567ffffffffffffffff81111561328e5761328d612b4e565b5b61329a8a828b01613160565b97505060206132ab8a828b01612bb2565b96505060406132bc8a828b01612bb2565b955050606088013567ffffffffffffffff8111156132dd576132dc612b4e565b5b6132e98a828b01613223565b94505060806132fa8a828b01612e81565b93505060a061330b8a828b01612e81565b92505060c061331c8a828b01612eba565b91505092959891949750929550565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000613398602c8361332b565b91506133a38261333c565b604082019050919050565b600060208201905081810360008301526133c78161338b565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b600061342a602c8361332b565b9150613435826133ce565b604082019050919050565b600060208201905081810360008301526134598161341d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061349660208361332b565b91506134a182613460565b602082019050919050565b600060208201905081810360008301526134c581613489565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061352860388361332b565b9150613533826134cc565b604082019050919050565b600060208201905081810360008301526135578161351b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613594601f8361332b565b915061359f8261355e565b602082019050919050565b600060208201905081810360008301526135c381613587565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061360060108361332b565b915061360b826135ca565b602082019050919050565b6000602082019050818103600083015261362f816135f3565b9050919050565b60008160601b9050919050565b600061364e82613636565b9050919050565b600061366082613643565b9050919050565b61367861367382612b53565b613655565b82525050565b6000819050919050565b61369961369482612b91565b61367e565b82525050565b60006136ab8287613667565b6014820191506136bb8286613667565b6014820191506136cb8285613688565b6020820191506136db8284613688565b60208201915081905095945050505050565b7f696e76616c6964207769746864726177207469636b6574000000000000000000600082015250565b600061372360178361332b565b915061372e826136ed565b602082019050919050565b6000602082019050818103600083015261375281613716565b9050919050565b7f7469636b657420616c7265616479207573656400000000000000000000000000600082015250565b600061378f60138361332b565b915061379a82613759565b602082019050919050565b600060208201905081810360008301526137be81613782565b9050919050565b6137ce81612b91565b82525050565b60006020820190506137e960008301846137c5565b92915050565b7f4f776e6572736869702063616e6e6f742062652072656e6f7563656400000000600082015250565b6000613825601c8361332b565b9150613830826137ef565b602082019050919050565b6000602082019050818103600083015261385481613818565b9050919050565b60006040820190506138706000830185612c3d565b61387d60208301846137c5565b9392505050565b61388d81612c07565b811461389857600080fd5b50565b6000815190506138aa81613884565b92915050565b6000602082840312156138c6576138c5612b49565b5b60006138d48482850161389b565b91505092915050565b600081905092915050565b50565b60006138f86000836138dd565b9150613903826138e8565b600082019050919050565b6000613919826138eb565b9150819050919050565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000613959600f8361332b565b915061396482613923565b602082019050919050565b600060208201905081810360008301526139888161394c565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006139eb602e8361332b565b91506139f68261398f565b604082019050919050565b60006020820190508181036000830152613a1a816139de565b9050919050565b7f7472656173757279206164647265737320696e636f7272656374000000000000600082015250565b6000613a57601a8361332b565b9150613a6282613a21565b602082019050919050565b60006020820190508181036000830152613a8681613a4a565b9050919050565b7f617574682070726f7669646572206164647265737320696e636f727265637400600082015250565b6000613ac3601f8361332b565b9150613ace82613a8d565b602082019050919050565b60006020820190508181036000830152613af281613ab6565b9050919050565b7f6c6f726520746f6b656e206164647265737320696e636f727265637400000000600082015250565b6000613b2f601c8361332b565b9150613b3a82613af9565b602082019050919050565b60006020820190508181036000830152613b5e81613b22565b9050919050565b7f696e636f7272656374206e756d626572206f6620746f6b656e20616e6420636f60008201527f6c6c656374696f6e730000000000000000000000000000000000000000000000602082015250565b6000613bc160298361332b565b9150613bcc82613b65565b604082019050919050565b60006020820190508181036000830152613bf081613bb4565b9050919050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b613c2681612b53565b82525050565b6000613c388383613c1d565b60208301905092915050565b6000602082019050919050565b6000613c5c82613bf7565b613c668185613c02565b9350613c7183613c0d565b8060005b83811015613ca2578151613c898882613c2c565b9750613c9483613c44565b925050600181019050613c75565b5085935050505092915050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b613cde81612b91565b82525050565b6000613cf08383613cd5565b60208301905092915050565b6000602082019050919050565b6000613d1482613caf565b613d1e8185613cba565b9350613d2983613cc5565b8060005b83811015613d5a578151613d418882613ce4565b9750613d4c83613cfc565b925050600181019050613d2d565b5085935050505092915050565b6000613d738289613667565b601482019150613d838288613667565b601482019150613d938287613c51565b9150613d9f8286613d09565b9150613dab8285613688565b602082019150613dbb8284613688565b602082019150819050979650505050505050565b7f696e76616c696420636c61696d207469636b6574000000000000000000000000600082015250565b6000613e0560148361332b565b9150613e1082613dcf565b602082019050919050565b60006020820190508181036000830152613e3481613df8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050613e7981612b65565b92915050565b600060208284031215613e9557613e94612b49565b5b6000613ea384828501613e6a565b91505092915050565b7f6e6674206e6f74206f776e656420627920757365720000000000000000000000600082015250565b6000613ee260158361332b565b9150613eed82613eac565b602082019050919050565b60006020820190508181036000830152613f1181613ed5565b9050919050565b7f6e667420616c726561647920636c61696d656400000000000000000000000000600082015250565b6000613f4e60138361332b565b9150613f5982613f18565b602082019050919050565b60006020820190508181036000830152613f7d81613f41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fbe82612b91565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ff157613ff0613f84565b5b600182019050919050565b600082825260208201905092915050565b61401681612b53565b82525050565b6000614028838361400d565b60208301905092915050565b600061403f82613bf7565b6140498185613ffc565b935061405483613c0d565b8060005b8381101561408557815161406c888261401c565b975061407783613c44565b925050600181019050614058565b5085935050505092915050565b600082825260208201905092915050565b6140ac81612b91565b82525050565b60006140be83836140a3565b60208301905092915050565b60006140d582613caf565b6140df8185614092565b93506140ea83613cc5565b8060005b8381101561411b57815161410288826140b2565b975061410d83613cfc565b9250506001810190506140ee565b5085935050505092915050565b600060608201905081810360008301526141428186614034565b9050818103602083015261415681856140ca565b905061416560408301846137c5565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141c960268361332b565b91506141d48261416d565b604082019050919050565b600060208201905081810360008301526141f8816141bc565b9050919050565b60008151905061420e81612e6a565b92915050565b60006020828403121561422a57614229612b49565b5b6000614238848285016141ff565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b600061429d602e8361332b565b91506142a882614241565b604082019050919050565b600060208201905081810360008301526142cc81614290565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b600061432f60298361332b565b915061433a826142d3565b604082019050919050565b6000602082019050818103600083015261435e81614322565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061439b60148361332b565b91506143a682614365565b602082019050919050565b600060208201905081810360008301526143ca8161438e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061442d60228361332b565b9150614438826143d1565b604082019050919050565b6000602082019050818103600083015261445c81614420565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006144bf60228361332b565b91506144ca82614463565b604082019050919050565b600060208201905081810360008301526144ee816144b2565b9050919050565b6144fe81612e96565b82525050565b60006080820190506145196000830187612e40565b61452660208301866144f5565b6145336040830185612e40565b6145406060830184612e40565b95945050505050565b7f45434453413a696e76616c6964207369676e6174757265000000000000000000600082015250565b600061457f60178361332b565b915061458a82614549565b602082019050919050565b600060208201905081810360008301526145ae81614572565b9050919050565b60006060820190506145ca6000830186612c3d565b6145d76020830185612c3d565b6145e460408301846137c5565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000614648602b8361332b565b9150614653826145ec565b604082019050919050565b600060208201905081810360008301526146778161463b565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006146da602d8361332b565b91506146e58261467e565b604082019050919050565b60006020820190508181036000830152614709816146cd565b9050919050565b600081519050919050565b60005b8381101561473957808201518184015260208101905061471e565b83811115614748576000848401525b50505050565b600061475982614710565b61476381856138dd565b935061477381856020860161471b565b80840191505092915050565b6000819050919050565b61479a61479582612e36565b61477f565b82525050565b60006147ac828561474e565b91506147b88284614789565b6020820191508190509392505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000614824602a8361332b565b915061482f826147c8565b604082019050919050565b6000602082019050818103600083015261485381614817565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006148b660268361332b565b91506148c18261485a565b604082019050919050565b600060208201905081810360008301526148e5816148a9565b9050919050565b60006148f8828461474e565b915081905092915050565b600081519050919050565b600061491982614903565b614923818561332b565b935061493381856020860161471b565b61493c81612c9e565b840191505092915050565b60006020820190508181036000830152614961818461490e565b905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006149c560268361332b565b91506149d082614969565b604082019050919050565b600060208201905081810360008301526149f4816149b8565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614a31601d8361332b565b9150614a3c826149fb565b602082019050919050565b60006020820190508181036000830152614a6081614a24565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122029381310cc5fff6015bc6fd67d17522f92d481a6dfd14ca774527aaa8fa63cdc64736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106101405760003560e01c8063715018a6116100b6578063b6b55f251161006f578063b6b55f25146103ed578063c0c53b8b14610416578063c5f956af1461043f578063ccf377561461046a578063e9cdc5b314610493578063f2fde38b146104d057610140565b8063715018a6146103195780638456cb59146103305780638bf8bd0b146103475780638da5cb5b146103705780638e1347da1461039b578063b07c1c21146103c457610140565b80634f1ef286116101085780634f1ef2861461021857806352d1902d146102345780635c975abb1461025f5780635d584ac31461028a57806360f67b57146102b35780636605bfda146102f057610140565b806307577a4e146101455780630992fc6e146101705780630de50844146101ad5780633659cfe6146101d85780633f4ba83a14610201575b600080fd5b34801561015157600080fd5b5061015a6104f9565b6040516101679190612b24565b60405180910390f35b34801561017c57600080fd5b5061019760048036038101906101929190612bc7565b610520565b6040516101a49190612c22565b60405180910390f35b3480156101b957600080fd5b506101c2610550565b6040516101cf9190612c4c565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190612c67565b610577565b005b34801561020d57600080fd5b50610216610700565b005b610232600480360381019061022d9190612dda565b610786565b005b34801561024057600080fd5b506102496108c3565b6040516102569190612e4f565b60405180910390f35b34801561026b57600080fd5b5061027461097c565b6040516102819190612c22565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac9190612ecf565b610993565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190612f4a565b610c71565b6040516102e79190612c22565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190612c67565b610c92565b005b34801561032557600080fd5b5061032e610d53565b005b34801561033c57600080fd5b50610345610e0a565b005b34801561035357600080fd5b5061036e60048036038101906103699190612fb5565b610e90565b005b34801561037c57600080fd5b50610385610f90565b6040516103929190612c4c565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd9190612c67565b610fba565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612bc7565b6110e1565b005b3480156103f957600080fd5b50610414600480360381019061040f9190613008565b61120e565b005b34801561042257600080fd5b5061043d60048036038101906104389190613073565b6112e0565b005b34801561044b57600080fd5b506104546115bc565b6040516104619190612c4c565b60405180910390f35b34801561047657600080fd5b50610491600480360381019061048c9190613251565b6115e3565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190612f4a565b611bc2565b6040516104c79190612c22565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f29190612c67565b611be3565b005b61012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101316020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b61012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f0000000000000000000000006ef31f9b931c69aa95b26b543967e67425b34d6873ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fd906133ae565b60405180910390fd5b7f0000000000000000000000006ef31f9b931c69aa95b26b543967e67425b34d6873ffffffffffffffffffffffffffffffffffffffff16610645611cdb565b73ffffffffffffffffffffffffffffffffffffffff161461069b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069290613440565b60405180910390fd5b6106a481611d32565b6106fd81600067ffffffffffffffff8111156106c3576106c2612caf565b5b6040519080825280601f01601f1916602001820160405280156106f55781602001600182028036833780820191505090505b506000611db1565b50565b610708611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610726610f90565b73ffffffffffffffffffffffffffffffffffffffff161461077c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610773906134ac565b60405180910390fd5b610784611f27565b565b7f0000000000000000000000006ef31f9b931c69aa95b26b543967e67425b34d6873ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080c906133ae565b60405180910390fd5b7f0000000000000000000000006ef31f9b931c69aa95b26b543967e67425b34d6873ffffffffffffffffffffffffffffffffffffffff16610854611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146108aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a190613440565b60405180910390fd5b6108b382611d32565b6108bf82826001611db1565b5050565b60007f0000000000000000000000006ef31f9b931c69aa95b26b543967e67425b34d6873ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a9061353e565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060fb60009054906101000a900460ff16905090565b600260c95414156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d0906135aa565b60405180910390fd5b600260c9819055506109e961097c565b15610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2090613616565b60405180910390fd5b600030610a34611f1f565b8787604051602001610a49949392919061369f565b6040516020818303038152906040528051906020012090506000610a6f82848787611fc9565b905061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af990613739565b60405180910390fd5b610130600083815260200190815260200160002060009054906101000a900460ff1615610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b906137a5565b60405180910390fd5b6001610130600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610c0b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610bc0611f1f565b8961012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b610c13611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d588604051610c5891906137d4565b60405180910390a25050600160c9819055505050505050565b61012f6020528060005260406000206000915054906101000a900460ff1681565b610c9a611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610cb8610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d05906134ac565b60405180910390fd5b8061013260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d5b611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610d79610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc6906134ac565b60405180910390fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e019061383b565b60405180910390fd5b610e12611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610e30610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d906134ac565b60405180910390fd5b610e8e6121e5565b565b610e98611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610eb6610f90565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f03906134ac565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610f4792919061385b565b6020604051808303816000875af1158015610f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8a91906138b0565b50505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fc2611f1f565b73ffffffffffffffffffffffffffffffffffffffff16610fe0610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d906134ac565b60405180910390fd5b8061012d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0e2ce26f21f1665d8558c339fe06649220e3ca175c4ebeeab50f96fe8bc7123d60405160405180910390a250565b6110e9611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611107610f90565b73ffffffffffffffffffffffffffffffffffffffff161461115d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611154906134ac565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516111839061390e565b60006040518083038185875af1925050503d80600081146111c0576040519150601f19603f3d011682016040523d82523d6000602084013e6111c5565b606091505b5050905080611209576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112009061396f565b60405180910390fd5b505050565b611288611219611f1f565b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b611290611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4826040516112d591906137d4565b60405180910390a250565b600060019054906101000a900460ff166113085760008054906101000a900460ff1615611311565b611310612288565b5b611350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134790613a01565b60405180910390fd5b60008060019054906101000a900460ff1615905080156113a0576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6113a8612299565b6113b06122f2565b6113b861234b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90613a6d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f90613ad9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff90613b45565b60405180910390fd5b8361012e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508161013260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061159583610fba565b80156115b65760008060016101000a81548160ff0219169083151502179055505b50505050565b61013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260c9541415611629576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611620906135aa565b60405180910390fd5b600260c98190555061163961097c565b15611679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167090613616565b60405180910390fd5b86518451146116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490613bd7565b60405180910390fd5b6000306116c8611f1f565b868a8a8a6040516020016116e196959493929190613d67565b604051602081830303815290604052805190602001209050600061170782848787611fc9565b905061012d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190613e1b565b60405180910390fd5b61012f600083815260200190815260200160002060009054906101000a900460ff16156117fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f3906137a5565b60405180910390fd5b600161012f600084815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b8951811015611adb5761183d611f1f565b73ffffffffffffffffffffffffffffffffffffffff1687828151811061186657611865613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16636352211e8c848151811061189c5761189b613e3b565b5b60200260200101516040518263ffffffff1660e01b81526004016118c091906137d4565b602060405180830381865afa1580156118dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119019190613e7f565b73ffffffffffffffffffffffffffffffffffffffff1614611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e90613ef8565b60405180910390fd5b610131600088838151811061196f5761196e613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008b83815181106119c6576119c5613e3b565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2190613f64565b60405180910390fd5b60016101316000898481518110611a4457611a43613e3b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008c8481518110611a9b57611a9a613e3b565b5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611ad390613fb3565b91505061182c565b50611b5661013260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b0b611f1f565b8a61012e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661215c909392919063ffffffff16565b611b5e611f1f565b73ffffffffffffffffffffffffffffffffffffffff167f542a9d100d5dc4b9be962f2018e60ded0680583828d074ed8cb2a4436ab5e916878b8b604051611ba793929190614128565b60405180910390a25050600160c98190555050505050505050565b6101306020528060005260406000206000915054906101000a900460ff1681565b611beb611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611c09610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c56906134ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc6906141df565b60405180910390fd5b611cd8816123a4565b50565b6000611d097f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61246a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d3a611f1f565b73ffffffffffffffffffffffffffffffffffffffff16611d58610f90565b73ffffffffffffffffffffffffffffffffffffffff1614611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da5906134ac565b60405180910390fd5b50565b611ddd7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612474565b60000160009054906101000a900460ff1615611e0157611dfc8361247e565b611f1a565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611e6957506040513d601f19601f82011682018060405250810190611e669190614214565b60015b611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f906142b3565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114611f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0490614345565b60405180910390fd5b50611f19838383612537565b5b505050565b600033905090565b611f2f61097c565b611f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f65906143b1565b60405180910390fd5b600060fb60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611fb2611f1f565b604051611fbf9190612c4c565b60405180910390a1565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c1115612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202890614443565b60405180910390fd5b601b8460ff1614806120465750601c8460ff16145b612085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207c906144d5565b60405180910390fd5b6000600161209287612563565b868686604051600081526020016040526040516120b29493929190614504565b6020604051602081039080840390855afa1580156120d4573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214790614595565b60405180910390fd5b80915050949350505050565b6121df846323b872dd60e01b85858560405160240161217d939291906145b5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506125cf565b50505050565b6121ed61097c565b1561222d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222490613616565b60405180910390fd5b600160fb60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612271611f1f565b60405161227e9190612c4c565b60405180910390a1565b600061229330612696565b15905090565b600060019054906101000a900460ff166122e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122df9061465e565b60405180910390fd5b6122f06126b9565b565b600060019054906101000a900460ff16612341576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123389061465e565b60405180910390fd5b61234961271a565b565b600060019054906101000a900460ff1661239a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123919061465e565b60405180910390fd5b6123a2612773565b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b6000819050919050565b61248781612696565b6124c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bd906146f0565b60405180910390fd5b806124f37f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61246a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612540836127df565b60008251118061254d5750805b1561255e5761255c838361282e565b505b505050565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250905080836040516020016125b19291906147a0565b60405160208183030381529060405280519060200120915050919050565b6000612631826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166129129092919063ffffffff16565b9050600081511115612691578080602001905181019061265191906138b0565b612690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126879061483a565b60405180910390fd5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ff9061465e565b60405180910390fd5b612718612713611f1f565b6123a4565b565b600060019054906101000a900460ff16612769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127609061465e565b60405180910390fd5b600160c981905550565b600060019054906101000a900460ff166127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b99061465e565b60405180910390fd5b600060fb60006101000a81548160ff021916908315150217905550565b6127e88161247e565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b606061283983612696565b612878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286f906148cc565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516128a091906148ec565b600060405180830381855af49150503d80600081146128db576040519150601f19603f3d011682016040523d82523d6000602084013e6128e0565b606091505b50915091506129088282604051806060016040528060278152602001614a686027913961292a565b9250505092915050565b60606129218484600085612991565b90509392505050565b6060831561293a5782905061298a565b60008351111561294d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129819190614947565b60405180910390fd5b9392505050565b6060824710156129d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cd906149db565b60405180910390fd5b6129df85612696565b612a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1590614a47565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a4791906148ec565b60006040518083038185875af1925050503d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b5091509150612a9982828661292a565b92505050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612aea612ae5612ae084612aa5565b612ac5565b612aa5565b9050919050565b6000612afc82612acf565b9050919050565b6000612b0e82612af1565b9050919050565b612b1e81612b03565b82525050565b6000602082019050612b396000830184612b15565b92915050565b6000604051905090565b600080fd5b600080fd5b6000612b5e82612aa5565b9050919050565b612b6e81612b53565b8114612b7957600080fd5b50565b600081359050612b8b81612b65565b92915050565b6000819050919050565b612ba481612b91565b8114612baf57600080fd5b50565b600081359050612bc181612b9b565b92915050565b60008060408385031215612bde57612bdd612b49565b5b6000612bec85828601612b7c565b9250506020612bfd85828601612bb2565b9150509250929050565b60008115159050919050565b612c1c81612c07565b82525050565b6000602082019050612c376000830184612c13565b92915050565b612c4681612b53565b82525050565b6000602082019050612c616000830184612c3d565b92915050565b600060208284031215612c7d57612c7c612b49565b5b6000612c8b84828501612b7c565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ce782612c9e565b810181811067ffffffffffffffff82111715612d0657612d05612caf565b5b80604052505050565b6000612d19612b3f565b9050612d258282612cde565b919050565b600067ffffffffffffffff821115612d4557612d44612caf565b5b612d4e82612c9e565b9050602081019050919050565b82818337600083830152505050565b6000612d7d612d7884612d2a565b612d0f565b905082815260208101848484011115612d9957612d98612c99565b5b612da4848285612d5b565b509392505050565b600082601f830112612dc157612dc0612c94565b5b8135612dd1848260208601612d6a565b91505092915050565b60008060408385031215612df157612df0612b49565b5b6000612dff85828601612b7c565b925050602083013567ffffffffffffffff811115612e2057612e1f612b4e565b5b612e2c85828601612dac565b9150509250929050565b6000819050919050565b612e4981612e36565b82525050565b6000602082019050612e646000830184612e40565b92915050565b612e7381612e36565b8114612e7e57600080fd5b50565b600081359050612e9081612e6a565b92915050565b600060ff82169050919050565b612eac81612e96565b8114612eb757600080fd5b50565b600081359050612ec981612ea3565b92915050565b600080600080600060a08688031215612eeb57612eea612b49565b5b6000612ef988828901612bb2565b9550506020612f0a88828901612bb2565b9450506040612f1b88828901612e81565b9350506060612f2c88828901612e81565b9250506080612f3d88828901612eba565b9150509295509295909350565b600060208284031215612f6057612f5f612b49565b5b6000612f6e84828501612e81565b91505092915050565b6000612f8282612b53565b9050919050565b612f9281612f77565b8114612f9d57600080fd5b50565b600081359050612faf81612f89565b92915050565b600080600060608486031215612fce57612fcd612b49565b5b6000612fdc86828701612fa0565b9350506020612fed86828701612b7c565b9250506040612ffe86828701612bb2565b9150509250925092565b60006020828403121561301e5761301d612b49565b5b600061302c84828501612bb2565b91505092915050565b600061304082612b53565b9050919050565b61305081613035565b811461305b57600080fd5b50565b60008135905061306d81613047565b92915050565b60008060006060848603121561308c5761308b612b49565b5b600061309a8682870161305e565b93505060206130ab86828701612b7c565b92505060406130bc86828701612b7c565b9150509250925092565b600067ffffffffffffffff8211156130e1576130e0612caf565b5b602082029050602081019050919050565b600080fd5b600061310a613105846130c6565b612d0f565b9050808382526020820190506020840283018581111561312d5761312c6130f2565b5b835b8181101561315657806131428882612bb2565b84526020840193505060208101905061312f565b5050509392505050565b600082601f83011261317557613174612c94565b5b81356131858482602086016130f7565b91505092915050565b600067ffffffffffffffff8211156131a9576131a8612caf565b5b602082029050602081019050919050565b60006131cd6131c88461318e565b612d0f565b905080838252602082019050602084028301858111156131f0576131ef6130f2565b5b835b8181101561321957806132058882612b7c565b8452602084019350506020810190506131f2565b5050509392505050565b600082601f83011261323857613237612c94565b5b81356132488482602086016131ba565b91505092915050565b600080600080600080600060e0888a0312156132705761326f612b49565b5b600088013567ffffffffffffffff81111561328e5761328d612b4e565b5b61329a8a828b01613160565b97505060206132ab8a828b01612bb2565b96505060406132bc8a828b01612bb2565b955050606088013567ffffffffffffffff8111156132dd576132dc612b4e565b5b6132e98a828b01613223565b94505060806132fa8a828b01612e81565b93505060a061330b8a828b01612e81565b92505060c061331c8a828b01612eba565b91505092959891949750929550565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000613398602c8361332b565b91506133a38261333c565b604082019050919050565b600060208201905081810360008301526133c78161338b565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b600061342a602c8361332b565b9150613435826133ce565b604082019050919050565b600060208201905081810360008301526134598161341d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061349660208361332b565b91506134a182613460565b602082019050919050565b600060208201905081810360008301526134c581613489565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b600061352860388361332b565b9150613533826134cc565b604082019050919050565b600060208201905081810360008301526135578161351b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613594601f8361332b565b915061359f8261355e565b602082019050919050565b600060208201905081810360008301526135c381613587565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061360060108361332b565b915061360b826135ca565b602082019050919050565b6000602082019050818103600083015261362f816135f3565b9050919050565b60008160601b9050919050565b600061364e82613636565b9050919050565b600061366082613643565b9050919050565b61367861367382612b53565b613655565b82525050565b6000819050919050565b61369961369482612b91565b61367e565b82525050565b60006136ab8287613667565b6014820191506136bb8286613667565b6014820191506136cb8285613688565b6020820191506136db8284613688565b60208201915081905095945050505050565b7f696e76616c6964207769746864726177207469636b6574000000000000000000600082015250565b600061372360178361332b565b915061372e826136ed565b602082019050919050565b6000602082019050818103600083015261375281613716565b9050919050565b7f7469636b657420616c7265616479207573656400000000000000000000000000600082015250565b600061378f60138361332b565b915061379a82613759565b602082019050919050565b600060208201905081810360008301526137be81613782565b9050919050565b6137ce81612b91565b82525050565b60006020820190506137e960008301846137c5565b92915050565b7f4f776e6572736869702063616e6e6f742062652072656e6f7563656400000000600082015250565b6000613825601c8361332b565b9150613830826137ef565b602082019050919050565b6000602082019050818103600083015261385481613818565b9050919050565b60006040820190506138706000830185612c3d565b61387d60208301846137c5565b9392505050565b61388d81612c07565b811461389857600080fd5b50565b6000815190506138aa81613884565b92915050565b6000602082840312156138c6576138c5612b49565b5b60006138d48482850161389b565b91505092915050565b600081905092915050565b50565b60006138f86000836138dd565b9150613903826138e8565b600082019050919050565b6000613919826138eb565b9150819050919050565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000613959600f8361332b565b915061396482613923565b602082019050919050565b600060208201905081810360008301526139888161394c565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006139eb602e8361332b565b91506139f68261398f565b604082019050919050565b60006020820190508181036000830152613a1a816139de565b9050919050565b7f7472656173757279206164647265737320696e636f7272656374000000000000600082015250565b6000613a57601a8361332b565b9150613a6282613a21565b602082019050919050565b60006020820190508181036000830152613a8681613a4a565b9050919050565b7f617574682070726f7669646572206164647265737320696e636f727265637400600082015250565b6000613ac3601f8361332b565b9150613ace82613a8d565b602082019050919050565b60006020820190508181036000830152613af281613ab6565b9050919050565b7f6c6f726520746f6b656e206164647265737320696e636f727265637400000000600082015250565b6000613b2f601c8361332b565b9150613b3a82613af9565b602082019050919050565b60006020820190508181036000830152613b5e81613b22565b9050919050565b7f696e636f7272656374206e756d626572206f6620746f6b656e20616e6420636f60008201527f6c6c656374696f6e730000000000000000000000000000000000000000000000602082015250565b6000613bc160298361332b565b9150613bcc82613b65565b604082019050919050565b60006020820190508181036000830152613bf081613bb4565b9050919050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b613c2681612b53565b82525050565b6000613c388383613c1d565b60208301905092915050565b6000602082019050919050565b6000613c5c82613bf7565b613c668185613c02565b9350613c7183613c0d565b8060005b83811015613ca2578151613c898882613c2c565b9750613c9483613c44565b925050600181019050613c75565b5085935050505092915050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b613cde81612b91565b82525050565b6000613cf08383613cd5565b60208301905092915050565b6000602082019050919050565b6000613d1482613caf565b613d1e8185613cba565b9350613d2983613cc5565b8060005b83811015613d5a578151613d418882613ce4565b9750613d4c83613cfc565b925050600181019050613d2d565b5085935050505092915050565b6000613d738289613667565b601482019150613d838288613667565b601482019150613d938287613c51565b9150613d9f8286613d09565b9150613dab8285613688565b602082019150613dbb8284613688565b602082019150819050979650505050505050565b7f696e76616c696420636c61696d207469636b6574000000000000000000000000600082015250565b6000613e0560148361332b565b9150613e1082613dcf565b602082019050919050565b60006020820190508181036000830152613e3481613df8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050613e7981612b65565b92915050565b600060208284031215613e9557613e94612b49565b5b6000613ea384828501613e6a565b91505092915050565b7f6e6674206e6f74206f776e656420627920757365720000000000000000000000600082015250565b6000613ee260158361332b565b9150613eed82613eac565b602082019050919050565b60006020820190508181036000830152613f1181613ed5565b9050919050565b7f6e667420616c726561647920636c61696d656400000000000000000000000000600082015250565b6000613f4e60138361332b565b9150613f5982613f18565b602082019050919050565b60006020820190508181036000830152613f7d81613f41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fbe82612b91565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ff157613ff0613f84565b5b600182019050919050565b600082825260208201905092915050565b61401681612b53565b82525050565b6000614028838361400d565b60208301905092915050565b600061403f82613bf7565b6140498185613ffc565b935061405483613c0d565b8060005b8381101561408557815161406c888261401c565b975061407783613c44565b925050600181019050614058565b5085935050505092915050565b600082825260208201905092915050565b6140ac81612b91565b82525050565b60006140be83836140a3565b60208301905092915050565b60006140d582613caf565b6140df8185614092565b93506140ea83613cc5565b8060005b8381101561411b57815161410288826140b2565b975061410d83613cfc565b9250506001810190506140ee565b5085935050505092915050565b600060608201905081810360008301526141428186614034565b9050818103602083015261415681856140ca565b905061416560408301846137c5565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141c960268361332b565b91506141d48261416d565b604082019050919050565b600060208201905081810360008301526141f8816141bc565b9050919050565b60008151905061420e81612e6a565b92915050565b60006020828403121561422a57614229612b49565b5b6000614238848285016141ff565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b600061429d602e8361332b565b91506142a882614241565b604082019050919050565b600060208201905081810360008301526142cc81614290565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b600061432f60298361332b565b915061433a826142d3565b604082019050919050565b6000602082019050818103600083015261435e81614322565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061439b60148361332b565b91506143a682614365565b602082019050919050565b600060208201905081810360008301526143ca8161438e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061442d60228361332b565b9150614438826143d1565b604082019050919050565b6000602082019050818103600083015261445c81614420565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006144bf60228361332b565b91506144ca82614463565b604082019050919050565b600060208201905081810360008301526144ee816144b2565b9050919050565b6144fe81612e96565b82525050565b60006080820190506145196000830187612e40565b61452660208301866144f5565b6145336040830185612e40565b6145406060830184612e40565b95945050505050565b7f45434453413a696e76616c6964207369676e6174757265000000000000000000600082015250565b600061457f60178361332b565b915061458a82614549565b602082019050919050565b600060208201905081810360008301526145ae81614572565b9050919050565b60006060820190506145ca6000830186612c3d565b6145d76020830185612c3d565b6145e460408301846137c5565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000614648602b8361332b565b9150614653826145ec565b604082019050919050565b600060208201905081810360008301526146778161463b565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006146da602d8361332b565b91506146e58261467e565b604082019050919050565b60006020820190508181036000830152614709816146cd565b9050919050565b600081519050919050565b60005b8381101561473957808201518184015260208101905061471e565b83811115614748576000848401525b50505050565b600061475982614710565b61476381856138dd565b935061477381856020860161471b565b80840191505092915050565b6000819050919050565b61479a61479582612e36565b61477f565b82525050565b60006147ac828561474e565b91506147b88284614789565b6020820191508190509392505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000614824602a8361332b565b915061482f826147c8565b604082019050919050565b6000602082019050818103600083015261485381614817565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006148b660268361332b565b91506148c18261485a565b604082019050919050565b600060208201905081810360008301526148e5816148a9565b9050919050565b60006148f8828461474e565b915081905092915050565b600081519050919050565b600061491982614903565b614923818561332b565b935061493381856020860161471b565b61493c81612c9e565b840191505092915050565b60006020820190508181036000830152614961818461490e565b905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006149c560268361332b565b91506149d082614969565b604082019050919050565b600060208201905081810360008301526149f4816149b8565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614a31601d8361332b565b9150614a3c826149fb565b602082019050919050565b60006020820190508181036000830152614a6081614a24565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122029381310cc5fff6015bc6fd67d17522f92d481a6dfd14ca774527aaa8fa63cdc64736f6c634300080b0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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