Contract 0x1a211DFBA6e76D765fBd8Dd089d885A5c94a6Acf

Contract Overview

Balance:
0 Ether
Txn Hash
Method
Block
From
To
Value
0x63bcd8322765afaaec28b0a0f55fa188ac4f7cd35efa930f35d7603f0ce1ca610x6080604086800302021-05-31 4:43:58486 days 9 hrs ago0x973eff2c8ebc79becb9937fc42e65d96accb3add IN  Create: RegistryV20 Ether0.003277391
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x00eefda06fc5ba959a0f58e1b0a1b918b820062fbbe7f13d00c0f99237fb5725106038692022-05-02 3:40:10150 days 10 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x492e0eab42b6fab920a4ae3c814e41beb0a39d574fed412c1b519c26a6d20159105960612022-04-30 19:04:54151 days 19 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xc71cb8d49163e2f79d3af7fc5a9de04e93f8dc91a45496f6d03c56517607bd93105929782022-04-30 6:12:39152 days 7 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x2781b7876b753ce1066bddb237054711832010cf66f5032b432e4d74ef45dfe5105925002022-04-30 4:12:58152 days 9 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x124b3468af07151710609d0be639a8284c9ac32a57864ab98dd068a227826e5c105913812022-04-29 23:32:43152 days 14 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x24badf5746dd8cf3a2f596b5ce5936aa50133812a59c5bb62f00325acc0db514105913752022-04-29 23:31:13152 days 14 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x0a7db273bfd8d0e571d830288069ee0a1597d83e1ff2f75bb2de5855a6ee699d105913022022-04-29 23:12:54152 days 14 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x8caa38c4450334ee4de86907f7cd7536decdd97e0509f0bb4730d282816f515b105912852022-04-29 23:08:39152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xbff03986e7888659ee2befff3a5d79f25b6909d7c3eb367809571e4579034a7b105911932022-04-29 22:45:34152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x2fc8dfa8b384d4862475d6f4b5922d1708f3bcd41c9b32babd18af8858f567cc105911902022-04-29 22:44:49152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xa010431709a42062ee2678bfafabc11759f544bfae87b39ec0199e22d65798f4105911862022-04-29 22:43:49152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x6d856ef7256523ef186e90c8a1757f4edf4dd45700806cbaeb4fee798f1bb402105911762022-04-29 22:41:19152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xff1b7ab7acd42ca7e99fb98516591ab8260e39e8d21dce049b4527737d7ea8cb105910612022-04-29 22:12:32152 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x3b9721e4cfbcd5560b996c73c2e7ca0fa0725a840f4a3f3b937ba6221bef1ecc105901892022-04-29 18:34:09152 days 19 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x5518abff63a9278a39d8dc2cdac24fbdde41db5ce979c6d776c1750f84764a86105899952022-04-29 17:45:34152 days 20 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xb3eb965e2422001829a62542faf73adb7ba4149d171136e97b962516c08e37b2105893582022-04-29 15:05:54152 days 23 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xe666d14bb1da1de9395e2d2578b976f4b15821b9cb8e42ec4afd61ce94336bca105884382022-04-29 11:15:30153 days 2 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x641e05922a51f83b71c48373b10e08f03aee913c0cc586bd589fec48058077e4105870452022-04-29 5:26:34153 days 8 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xe12f9082cfef30dfd3c74772be5c9ee03ff89b3906ffd692a2bd1ec1465cc4a1105854332022-04-28 22:42:45153 days 15 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x0632faf4a752a8c59ef9762852085b54c3d284fa78ed629f2c6222cf00a663fe105823872022-04-28 9:59:47154 days 4 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x7c84c47822d42f18ae5f254a46d59b18221b5eedbe0c5de085f380a21e66c3e2105823062022-04-28 9:39:25154 days 4 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xe9b0ea747a7fa166e40c198416522360dcc98d98312875d4b910a28d3d8ef694105813702022-04-28 5:44:47154 days 8 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x812501b6f74d5a8af73977af9c7c0088ca7e8d8d60dd38e3092a57138ed95195105806952022-04-28 2:55:25154 days 11 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0x23d86c641ea35dc46ef2a1fa804957a5e90b024e24d0508d6bc43bbd6ae4f85c105804302022-04-28 1:48:54154 days 12 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
0xb559aa2cc64bbb11aa7cf48c521bad4e7b0d233f34070b34ce1e381279537a93105803712022-04-28 1:34:09154 days 12 hrs ago 0xe3be01d99baa8db9905b33a3ca391238234b79d1 0x1a211dfba6e76d765fbd8dd089d885a5c94a6acf0 Ether
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
RegistryV2

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : RegistryV2.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.2;

// import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/metatx/ERC2771ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";

/// @title RegistryV2

/**
 * The Registry contract is used to register Farcaster usernames and their associated Directories.
 *
 * IMPORTANT: It implements the EIP-1822 UUPS Proxy contract for upgradeability, which means that you cannot
 * change the order in which variables are declared or remove existing variables. You are only allowed to
 * create new variables at the end.
 *
 * It also implements ERC2771ContextUpgradeable which allows it to receive MetaTransactions correctly, allowing
 * for OpenGSN transactions where the user does not need to pay gas.
 */

contract RegistryV2 is
  Initializable,
  ERC2771ContextUpgradeable,
  UUPSUpgradeable,
  AccessControlUpgradeable,
  PausableUpgradeable
{
  using EnumerableSet for EnumerableSet.Bytes32Set;

  /**
   * Storage
   */

  /// @notice Map of Addresses to Usernames that they own.
  /// @dev The usernames are encoded as bytes32.
  mapping(address => bytes32) public addressToUsername;

  /// @notice A struct used to store a URL in the Registry.
  /// @dev Always set initialized=true when the value is set. This makes presence checks easy.
  struct UrlEntry {
    string url;
    bool initialized;
  }

  /// @notice Map of Usernames to Directory urls.
  /// @dev The usernames are encoded as bytes32 and the Directory is structured as UrlEntry.
  mapping(bytes32 => UrlEntry) public usernameToUrl;

  /// @dev An enumeration of all registered usernames .This provides convenience methods to iterate
  /// over all usernames without ingesting events over a large number of blocks. This is currently unused.
  EnumerableSet.Bytes32Set private usernames;

  /// IMPORTANT: Any new storage variables MUST be added here. Existing storage variables must not be removed.

  /**
   * Events
   */

  /// @notice Event fired when a new username is registered
  /// @dev Can probably save gas costs by reducing indexes and making anonymous events if needed.
  /// @param owner - the address that owns the username.
  /// @param username - the username that was registered.
  event RegisterName(address indexed owner, bytes32 indexed username);

  /// @notice Event fired when a username's Directory url is modified.
  /// @dev To get the actual modification, you need to query getDirectory() with the username.
  /// @param username The username that requested the modification.
  event ModifyName(bytes32 indexed username);

  /// @notice Event fired when a username is transferred between addresses.
  /// @param from - the address that currently owns the username
  /// @param to - the address that will own the username going forward.
  /// @param username - the username being transferred.
  event TransferName(address indexed from, address indexed to, bytes32 indexed username);

  /// @notice Event fired when a username is deregistered by an admin
  /// @param owner - the address that owns the username.
  /// @param username - the username that was deregistered.
  event DeregisterName(address indexed owner, bytes32 indexed username);

  /// @notice Event fired when the trusted forwarder is changed.
  /// @param to - the address of the new trusted forwarder.
  event ChangeTrustedForwarder(address indexed to);

  /**
   * Proxy Methods
   */

  /// @notice Deploy with the TrustedForwarder for your Network https://docs.opengsn.org/networks.html
  /// @notice We use an initializer instead of constructor here and there is no need to call the parent
  /// since this is the only constructor in the chain.
  /// https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable
  function initialize(address _forwarder) public initializer {
    _trustedForwarder = _forwarder;
    __Pausable_init();
    _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
  }

  /// @notice Gives the deployer of the contract permissions to upgrade it.
  function _authorizeUpgrade(address) internal override onlyRole(DEFAULT_ADMIN_ROLE) {}

  /// @notice Both ERC2771ContextUpgradeable and OwnableUpgradeable implement ContextUpgradeable which creates
  /// a collision on _msgSender. Fortunately the logic underlying the methods is the same, so we simply override
  /// all calls to the ERC2771ContextUpgradeable implementation.
  function _msgSender() internal view override(ERC2771ContextUpgradeable, ContextUpgradeable) returns (address) {
    return ERC2771ContextUpgradeable._msgSender();
  }

  /// @notice Both ERC2771ContextUpgradeable and OwnableUpgradeable implement ContextUpgradeable which creates
  /// a collision on _msgData. Fortunately the logic underlying the methods is the same, so we simply override
  /// all calls to the ERC2771ContextUpgradeable implementation.
  function _msgData() internal view override(ERC2771ContextUpgradeable, ContextUpgradeable) returns (bytes memory) {
    return ERC2771ContextUpgradeable._msgData();
  }

  /**
   * Registry Admin Methods
   */

  /// @notice Allows the owner to pause the contract, preventing usage of Registry methods.
  function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _pause();
  }

  /// @notice Allows the owner to unpause the contract, allowing usage of Registry methods.
  function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _unpause();
  }

  /// @notice Transfers ownership of the contract to a new user.
  function transferOwnership(address newOwner) public onlyRole(DEFAULT_ADMIN_ROLE) {
    grantRole(DEFAULT_ADMIN_ROLE, newOwner);
    revokeRole(DEFAULT_ADMIN_ROLE, _msgSender());
  }

  function deregister(address owner, bytes32 username) public onlyRole(DEFAULT_ADMIN_ROLE) {
    // Check that the username is registered.
    bytes32 usernameFromAddress = addressToUsername[owner];
    require(usernameFromAddress != 0, "Username is not registered");

    addressToUsername[owner] = 0;
    delete usernameToUrl[username];
    usernames.remove(username);
    emit DeregisterName(owner, username);
  }

  /// @notice Change the trusted forwarder if a network upgrade occurs.
  function setTrustedForwarder(address _forwarder) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _trustedForwarder = _forwarder;
    emit ChangeTrustedForwarder(_forwarder);
  }

  /**
   * Registry User Methods
   */

  /// @notice Register a new username.
  /// @param username the username string (e.g. alice) encoded as byte32.
  /// @param url the url string that points to the user's profile.
  function register(bytes32 username, string memory url) public whenNotPaused {
    require(username != 0, "Username cannot be empty");
    require(_isAllowedAsciiString(username) == true, "Username must be lowercase alphanumeric");
    require(addressToUsername[_msgSender()] == 0, "Sender already registered a username");
    require(usernameToUrl[username].initialized == false, "This username was already registered");

    addressToUsername[_msgSender()] = username;
    usernameToUrl[username] = UrlEntry({url: url, initialized: true});
    usernames.add(username);
    emit RegisterName(_msgSender(), username);
  }

  /// @notice Modify an existing username.
  /// @param url the updated url string that points to the user's profile.
  function modify(string memory url) public whenNotPaused {
    bytes32 usernameFromAddress = addressToUsername[_msgSender()];
    require(usernameFromAddress != 0, "Sender does not own any username");
    usernameToUrl[usernameFromAddress] = UrlEntry({url: url, initialized: true});
    emit ModifyName(usernameFromAddress);
  }

  /// @notice Transfer ownership of your username to another address that does not currently own a username.
  /// @param to the Ethereum address that ownership should be transferred to.
  function transfer(address to) public whenNotPaused {
    bytes32 username = addressToUsername[_msgSender()];
    require(username != 0, "Sender does not own any username");
    require(addressToUsername[to] == 0, "Receiver already owns a username");

    addressToUsername[_msgSender()] = 0;
    addressToUsername[to] = username;
    emit TransferName(_msgSender(), to, username);
  }

  /// @notice Return the Directory URL for a registered username.
  /// @dev Returns empty string "" for a username that has not been registered.
  /// @param username the username string (e.g. "alice") encoded as byte32.
  function getDirectoryUrl(bytes32 username) public view returns (string memory) {
    return usernameToUrl[username].url;
  }

  /// @notice Returns the number of usernames currently registered in the contract.
  function usernamesLength() public view returns (uint256) {
    return usernames.length();
  }

  /// @notice Returns a username from the list of registered usernames from an index.
  /// @dev indexes are not guaranteed to be consistent over blocks, and range from 0 to usernamesLength().
  /// @param idx the index for the username.
  function usernameAtIndex(uint8 idx) public view returns (bytes32) {
    return usernames.at(idx);
  }

  /// @notice Checks if a string contains valid username ASCII characters [0-1], [a-z] and _.
  /// @param str the string to be checked.
  /// @return true if the string contains only valid characters, false otherwise.
  function _isAllowedAsciiString(bytes32 str) internal pure returns (bool) {
    for (uint256 i = 0; i < str.length; i++) {
      uint8 charInt = uint8(str[i]);
      if ((charInt >= 1 && charInt <= 47) || (charInt >= 58 && charInt <= 94) || charInt == 96 || charInt >= 123) {
        return false;
      }
    }
    return true;
  }
}

File 2 of 15 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 3 of 15 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;

/**
 * @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 a proxied contract can't have 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.
 */
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() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 4 of 15 : ERC2771ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/*
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771ContextUpgradeable is Initializable, ContextUpgradeable {
    address _trustedForwarder;

    function __ERC2771Context_init(address trustedForwarder) internal initializer {
        __Context_init_unchained();
        __ERC2771Context_init_unchained(trustedForwarder);
    }

    function __ERC2771Context_init_unchained(address trustedForwarder) internal initializer {
        _trustedForwarder = trustedForwarder;
    }

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

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

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

File 5 of 15 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev Base contract for building openzeppelin-upgrades compatible implementations for the {ERC1967Proxy}. It includes
 * publicly available upgrade functions that are called by the plugin and by the secure upgrade mechanism to verify
 * continuation of the upgradability.
 *
 * The {_authorizeUpgrade} function MUST be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal initializer {
        __ERC1967Upgrade_init_unchained();
        __UUPSUpgradeable_init_unchained();
    }

    function __UUPSUpgradeable_init_unchained() internal initializer {
    }
    function upgradeTo(address newImplementation) external virtual {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, bytes(""), false);
    }

    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, data, true);
    }

    function _authorizeUpgrade(address newImplementation) internal virtual;
    uint256[50] private __gap;
}

File 6 of 15 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

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

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

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
    uint256[49] private __gap;
}

File 7 of 15 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT

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 initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _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());
    }
    uint256[49] private __gap;
}

File 8 of 15 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

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 initializer {
        __Context_init_unchained();
    }

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 9 of 15 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.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 initializer {
        __ERC1967Upgrade_init_unchained();
    }

    function __ERC1967Upgrade_init_unchained() internal initializer {
    }
    // 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 {
        _setImplementation(newImplementation);
        emit Upgraded(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 _upgradeToAndCallSecure(address newImplementation, bytes memory data, bool forceCall) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            _functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature(
                    "upgradeTo(address)",
                    oldImplementation
                )
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _setImplementation(newImplementation);
            emit Upgraded(newImplementation);
        }
    }

    /**
     * @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 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 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 _verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
    uint256[50] private __gap;
}

File 10 of 15 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT

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 11 of 15 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 15 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT

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 13 of 15 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 14 of 15 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

File 15 of 15 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ChangeTrustedForwarder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"DeregisterName","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"ModifyName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"RegisterName","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"TransferName","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToUsername","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"deregister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"username","type":"bytes32"}],"name":"getDirectoryUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_forwarder","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"modify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"username","type":"bytes32"},{"internalType":"string","name":"url","type":"string"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_forwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","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":"uint8","name":"idx","type":"uint8"}],"name":"usernameAtIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usernameToUrl","outputs":[{"internalType":"string","name":"url","type":"string"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usernamesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50613ab0806100206000396000f3fe6080604052600436106101665760003560e01c80635c975abb116100d1578063c4d66de81161008a578063d547741f11610064578063d547741f1461052a578063da74222814610553578063e07a0baa1461057c578063f2fde38b146105b957610166565b8063c4d66de8146104ad578063c6b31772146104d6578063cf2d31fb1461050157610166565b80635c975abb146103b15780635cfcdbc5146103dc5780637f2eec02146104055780638456cb591461042e57806391d1485414610445578063a217fddf1461048257610166565b8063342740c911610123578063342740c9146102b257806336568abe146102ef5780633659cfe6146103185780633f4ba83a146103415780634f1ef28614610358578063572b6c051461037457610166565b806301ffc9a71461016b5780631a695230146101a8578063248a9ca3146101d15780632d2bd3cb1461020e5780632f2ff15d1461024b57806333ee3c6414610274575b600080fd5b34801561017757600080fd5b50610192600480360381019061018d9190612ae7565b6105e2565b60405161019f9190612f33565b60405180910390f35b3480156101b457600080fd5b506101cf60048036038101906101ca9190612975565b61065c565b005b3480156101dd57600080fd5b506101f860048036038101906101f39190612a2e565b6108b5565b6040516102059190612f4e565b60405180910390f35b34801561021a57600080fd5b5061023560048036038101906102309190612b51565b6108d5565b6040516102429190612f4e565b60405180910390f35b34801561025757600080fd5b50610272600480360381019061026d9190612a57565b6108f6565b005b34801561028057600080fd5b5061029b60048036038101906102969190612a2e565b61091f565b6040516102a9929190612f8b565b60405180910390f35b3480156102be57600080fd5b506102d960048036038101906102d49190612a2e565b6109d9565b6040516102e69190612f69565b60405180910390f35b3480156102fb57600080fd5b5061031660048036038101906103119190612a57565b610a82565b005b34801561032457600080fd5b5061033f600480360381019061033a9190612975565b610b05565b005b34801561034d57600080fd5b50610356610b2c565b005b610372600480360381019061036d91906129da565b610b4c565b005b34801561038057600080fd5b5061039b60048036038101906103969190612975565b610b65565b6040516103a89190612f33565b60405180910390f35b3480156103bd57600080fd5b506103c6610bbf565b6040516103d39190612f33565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe919061299e565b610bd7565b005b34801561041157600080fd5b5061042c60048036038101906104279190612b10565b610d5a565b005b34801561043a57600080fd5b50610443610ed1565b005b34801561045157600080fd5b5061046c60048036038101906104679190612a57565b610ef1565b6040516104799190612f33565b60405180910390f35b34801561048e57600080fd5b50610497610f5c565b6040516104a49190612f4e565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf9190612975565b610f63565b005b3480156104e257600080fd5b506104eb61109a565b6040516104f891906131bb565b60405180910390f35b34801561050d57600080fd5b5061052860048036038101906105239190612a93565b6110ac565b005b34801561053657600080fd5b50610551600480360381019061054c9190612a57565b61139c565b005b34801561055f57600080fd5b5061057a60048036038101906105759190612975565b6113c5565b005b34801561058857600080fd5b506105a3600480360381019061059e9190612975565b611462565b6040516105b09190612f4e565b60405180910390f35b3480156105c557600080fd5b506105e060048036038101906105db9190612975565b61147b565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106555750610654826114b5565b5b9050919050565b610664610bbf565b156106a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069b906130fb565b60405180910390fd5b600061016060006106b361151f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000801b811415610736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072d9061307b565b60405180910390fd5b6000801b61016060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b29061313b565b60405180910390fd5b6000801b61016060006107cc61151f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508061016060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808273ffffffffffffffffffffffffffffffffffffffff1661086f61151f565b73ffffffffffffffffffffffffffffffffffffffff167faf3f7950be1072c7c21e4ff9b6e3a459f995d68a1c325de2eb91450a2699cbd460405160405180910390a45050565b600060fc6000838152602001908152602001600020600101549050919050565b60006108ef8260ff1661016261152e90919063ffffffff16565b9050919050565b6108ff826108b5565b6109108161090b61151f565b611545565b61091a83836115e2565b505050565b61016160205280600052604060002060009150905080600001805461094390613475565b80601f016020809104026020016040519081016040528092919081815260200182805461096f90613475565b80156109bc5780601f10610991576101008083540402835291602001916109bc565b820191906000526020600020905b81548152906001019060200180831161099f57829003601f168201915b5050505050908060010160009054906101000a900460ff16905082565b6060610161600083815260200190815260200160002060000180546109fd90613475565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2990613475565b8015610a765780601f10610a4b57610100808354040283529160200191610a76565b820191906000526020600020905b815481529060010190602001808311610a5957829003601f168201915b50505050509050919050565b610a8a61151f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aee9061319b565b60405180910390fd5b610b0182826116c3565b5050565b610b0e816117a5565b610b29816040518060200160405280600081525060006117be565b50565b6000801b610b4181610b3c61151f565b611545565b610b496119d2565b50565b610b55826117a5565b610b61828260016117be565b5050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b600061012e60009054906101000a900460ff16905090565b6000801b610bec81610be761151f565b611545565b600061016060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000801b811415610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e906130db565b60405180910390fd5b6000801b61016060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610161600084815260200190815260200160002060008082016000610ce4919061276e565b6001820160006101000a81549060ff02191690555050610d0f83610162611a7590919063ffffffff16565b50828473ffffffffffffffffffffffffffffffffffffffff167f189646b792a1bc6317676c67112fd10dd6372b26fee015505adf4852c0869ea260405160405180910390a350505050565b610d62610bbf565b15610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d99906130fb565b60405180910390fd5b60006101606000610db161151f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000801b811415610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b9061307b565b60405180910390fd5b60405180604001604052808381526020016001151581525061016160008381526020019081526020016000206000820151816000019080519060200190610e7c9291906127ae565b5060208201518160010160006101000a81548160ff021916908315150217905550905050807f540d4f72bf4e259b973b675cb40ca044ae64eb1ac9369550c39aaed4b8d7040060405160405180910390a25050565b6000801b610ee681610ee161151f565b611545565b610eee611a8c565b50565b600060fc600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b600060019054906101000a900460ff1680610f89575060008054906101000a900460ff16155b610fc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbf9061311b565b60405180910390fd5b60008060019054906101000a900460ff161590508015611018576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b81603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611061611b30565b6110756000801b61107061151f565b611c19565b80156110965760008060016101000a81548160ff0219169083151502179055505b5050565b60006110a7610162611c27565b905090565b6110b4610bbf565b156110f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110eb906130fb565b60405180910390fd5b6000801b82141561113a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113190612ffb565b60405180910390fd5b6001151561114783611c3c565b151514611189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111809061303b565b60405180910390fd5b6000801b610160600061119a61151f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c9061309b565b60405180910390fd5b60001515610161600084815260200190815260200160002060010160009054906101000a900460ff16151514611280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611277906130bb565b60405180910390fd5b81610160600061128e61151f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550604051806040016040528082815260200160011515815250610161600084815260200190815260200160002060008201518160000190805190602001906113149291906127ae565b5060208201518160010160006101000a81548160ff02191690831515021790555090505061134d82610162611d1790919063ffffffff16565b508161135761151f565b73ffffffffffffffffffffffffffffffffffffffff167eaf56d6ef7b1de1b37e4636c3e255d78dc3e9359036fb04ca51e32d946a683460405160405180910390a35050565b6113a5826108b5565b6113b6816113b161151f565b611545565b6113c083836116c3565b505050565b6000801b6113da816113d561151f565b611545565b81603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f78e4799a3a5df23ad7ce725d1c9379640feb1547d54e887bc70beb9c6d97406860405160405180910390a25050565b6101606020528060005260406000206000915090505481565b6000801b6114908161148b61151f565b611545565b61149d6000801b836108f6565b6114b16000801b6114ac61151f565b61139c565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000611529611d2e565b905090565b600061153d8360000183611d60565b905092915050565b61154f8282610ef1565b6115de576115748173ffffffffffffffffffffffffffffffffffffffff166014611dfa565b6115828360001c6020611dfa565b604051602001611593929190612ede565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d59190612f69565b60405180910390fd5b5050565b6115ec8282610ef1565b6116bf57600160fc600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061166461151f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6116cd8282610ef1565b156117a157600060fc600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061174661151f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000801b6117ba816117b561151f565b611545565b5050565b60006117c86120f4565b90506117d38461214b565b6000835111806117e05750815b156117f1576117ef8484612204565b505b600061181f7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b6122e8565b90508060000160009054906101000a900460ff166119cb5760018160000160006101000a81548160ff0219169083151502179055506118eb85836040516024016118699190612f18565b6040516020818303038152906040527f3659cfe6000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612204565b5060008160000160006101000a81548160ff0219169083151502179055506119116120f4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461197e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119759061305b565b60405180910390fd5b6119878561214b565b8473ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a25b5050505050565b6119da610bbf565b611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a109061301b565b60405180910390fd5b600061012e60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a5e61151f565b604051611a6b9190612f18565b60405180910390a1565b6000611a8483600001836122f2565b905092915050565b611a94610bbf565b15611ad4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acb906130fb565b60405180910390fd5b600161012e60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b1961151f565b604051611b269190612f18565b60405180910390a1565b600060019054906101000a900460ff1680611b56575060008054906101000a900460ff16155b611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c9061311b565b60405180910390fd5b60008060019054906101000a900460ff161590508015611be5576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611bed612470565b611bf5612549565b8015611c165760008060016101000a81548160ff0219169083151502179055505b50565b611c2382826115e2565b5050565b6000611c358260000161263e565b9050919050565b600080600090505b602060ff16811015611d0c576000838260208110611c8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c905060018160ff1610158015611cac5750602f8160ff1611155b80611ccb5750603a8160ff1610158015611cca5750605e8160ff1611155b5b80611cd9575060608160ff16145b80611ce85750607b8160ff1610155b15611cf857600092505050611d12565b508080611d04906134d8565b915050611c44565b50600190505b919050565b6000611d26836000018361264f565b905092915050565b6000611d3933610b65565b15611d4d57601436033560601c9050611d5c565b611d556126bf565b9050611d5d565b5b90565b600081836000018054905011611dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da290612fbb565b60405180910390fd5b826000018281548110611de7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b606060006002836002611e0d91906132f0565b611e17919061329a565b67ffffffffffffffff811115611e56577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e885781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611ee6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611f70577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611fb091906132f0565b611fba919061329a565b90505b60018111156120a6577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612022577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061205f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061209f9061344b565b9050611fbd565b50600084146120ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e190612fdb565b60405180910390fd5b8091505092915050565b60006121227f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6126c7565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612154816126d1565b612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a9061315b565b60405180910390fd5b806121c07f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6126c7565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061220f836126d1565b61224e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122459061317b565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516122769190612ec7565b600060405180830381855af49150503d80600081146122b1576040519150601f19603f3d011682016040523d82523d6000602084013e6122b6565b606091505b50915091506122de8282604051806060016040528060278152602001613a54602791396126e4565b9250505092915050565b6000819050919050565b60008083600101600084815260200190815260200160002054905060008114612464576000600182612324919061334a565b905060006001866000018054905061233c919061334a565b9050600086600001828154811061237c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106123c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550838760010160008381526020019081526020016000208190555086600001805480612428577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061246a565b60009150505b92915050565b600060019054906101000a900460ff1680612496575060008054906101000a900460ff16155b6124d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cc9061311b565b60405180910390fd5b60008060019054906101000a900460ff161590508015612525576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156125465760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061256f575060008054906101000a900460ff16155b6125ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a59061311b565b60405180910390fd5b60008060019054906101000a900460ff1615905080156125fe576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b600061012e60006101000a81548160ff021916908315150217905550801561263b5760008060016101000a81548160ff0219169083151502179055505b50565b600081600001805490509050919050565b600061265b838361274b565b6126b45782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506126b9565b600090505b92915050565b600033905090565b6000819050919050565b600080823b905060008111915050919050565b606083156126f457829050612744565b6000835111156127075782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273b9190612f69565b60405180910390fd5b9392505050565b600080836001016000848152602001908152602001600020541415905092915050565b50805461277a90613475565b6000825580601f1061278c57506127ab565b601f0160209004906000526020600020908101906127aa9190612834565b5b50565b8280546127ba90613475565b90600052602060002090601f0160209004810192826127dc5760008555612823565b82601f106127f557805160ff1916838001178555612823565b82800160010185558215612823579182015b82811115612822578251825591602001919060010190612807565b5b5090506128309190612834565b5090565b5b8082111561284d576000816000905550600101612835565b5090565b600061286461285f846131fb565b6131d6565b90508281526020810184848401111561287c57600080fd5b612887848285613409565b509392505050565b60006128a261289d8461322c565b6131d6565b9050828152602081018484840111156128ba57600080fd5b6128c5848285613409565b509392505050565b6000813590506128dc816139f7565b92915050565b6000813590506128f181613a0e565b92915050565b60008135905061290681613a25565b92915050565b600082601f83011261291d57600080fd5b813561292d848260208601612851565b91505092915050565b600082601f83011261294757600080fd5b813561295784826020860161288f565b91505092915050565b60008135905061296f81613a3c565b92915050565b60006020828403121561298757600080fd5b6000612995848285016128cd565b91505092915050565b600080604083850312156129b157600080fd5b60006129bf858286016128cd565b92505060206129d0858286016128e2565b9150509250929050565b600080604083850312156129ed57600080fd5b60006129fb858286016128cd565b925050602083013567ffffffffffffffff811115612a1857600080fd5b612a248582860161290c565b9150509250929050565b600060208284031215612a4057600080fd5b6000612a4e848285016128e2565b91505092915050565b60008060408385031215612a6a57600080fd5b6000612a78858286016128e2565b9250506020612a89858286016128cd565b9150509250929050565b60008060408385031215612aa657600080fd5b6000612ab4858286016128e2565b925050602083013567ffffffffffffffff811115612ad157600080fd5b612add85828601612936565b9150509250929050565b600060208284031215612af957600080fd5b6000612b07848285016128f7565b91505092915050565b600060208284031215612b2257600080fd5b600082013567ffffffffffffffff811115612b3c57600080fd5b612b4884828501612936565b91505092915050565b600060208284031215612b6357600080fd5b6000612b7184828501612960565b91505092915050565b612b838161337e565b82525050565b612b9281613390565b82525050565b612ba18161339c565b82525050565b6000612bb28261325d565b612bbc8185613273565b9350612bcc818560208601613418565b80840191505092915050565b6000612be382613268565b612bed818561327e565b9350612bfd818560208601613418565b612c06816135ae565b840191505092915050565b6000612c1c82613268565b612c26818561328f565b9350612c36818560208601613418565b80840191505092915050565b6000612c4f60228361327e565b9150612c5a826135bf565b604082019050919050565b6000612c7260208361327e565b9150612c7d8261360e565b602082019050919050565b6000612c9560188361327e565b9150612ca082613637565b602082019050919050565b6000612cb860148361327e565b9150612cc382613660565b602082019050919050565b6000612cdb60278361327e565b9150612ce682613689565b604082019050919050565b6000612cfe602f8361327e565b9150612d09826136d8565b604082019050919050565b6000612d2160208361327e565b9150612d2c82613727565b602082019050919050565b6000612d4460248361327e565b9150612d4f82613750565b604082019050919050565b6000612d6760248361327e565b9150612d728261379f565b604082019050919050565b6000612d8a601a8361327e565b9150612d95826137ee565b602082019050919050565b6000612dad60108361327e565b9150612db882613817565b602082019050919050565b6000612dd0602e8361327e565b9150612ddb82613840565b604082019050919050565b6000612df360208361327e565b9150612dfe8261388f565b602082019050919050565b6000612e16602d8361327e565b9150612e21826138b8565b604082019050919050565b6000612e3960268361327e565b9150612e4482613907565b604082019050919050565b6000612e5c60178361328f565b9150612e6782613956565b601782019050919050565b6000612e7f60118361328f565b9150612e8a8261397f565b601182019050919050565b6000612ea2602f8361327e565b9150612ead826139a8565b604082019050919050565b612ec1816133f2565b82525050565b6000612ed38284612ba7565b915081905092915050565b6000612ee982612e4f565b9150612ef58285612c11565b9150612f0082612e72565b9150612f0c8284612c11565b91508190509392505050565b6000602082019050612f2d6000830184612b7a565b92915050565b6000602082019050612f486000830184612b89565b92915050565b6000602082019050612f636000830184612b98565b92915050565b60006020820190508181036000830152612f838184612bd8565b905092915050565b60006040820190508181036000830152612fa58185612bd8565b9050612fb46020830184612b89565b9392505050565b60006020820190508181036000830152612fd481612c42565b9050919050565b60006020820190508181036000830152612ff481612c65565b9050919050565b6000602082019050818103600083015261301481612c88565b9050919050565b6000602082019050818103600083015261303481612cab565b9050919050565b6000602082019050818103600083015261305481612cce565b9050919050565b6000602082019050818103600083015261307481612cf1565b9050919050565b6000602082019050818103600083015261309481612d14565b9050919050565b600060208201905081810360008301526130b481612d37565b9050919050565b600060208201905081810360008301526130d481612d5a565b9050919050565b600060208201905081810360008301526130f481612d7d565b9050919050565b6000602082019050818103600083015261311481612da0565b9050919050565b6000602082019050818103600083015261313481612dc3565b9050919050565b6000602082019050818103600083015261315481612de6565b9050919050565b6000602082019050818103600083015261317481612e09565b9050919050565b6000602082019050818103600083015261319481612e2c565b9050919050565b600060208201905081810360008301526131b481612e95565b9050919050565b60006020820190506131d06000830184612eb8565b92915050565b60006131e06131f1565b90506131ec82826134a7565b919050565b6000604051905090565b600067ffffffffffffffff8211156132165761321561357f565b5b61321f826135ae565b9050602081019050919050565b600067ffffffffffffffff8211156132475761324661357f565b5b613250826135ae565b9050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006132a5826133f2565b91506132b0836133f2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156132e5576132e4613521565b5b828201905092915050565b60006132fb826133f2565b9150613306836133f2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561333f5761333e613521565b5b828202905092915050565b6000613355826133f2565b9150613360836133f2565b92508282101561337357613372613521565b5b828203905092915050565b6000613389826133d2565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561343657808201518184015260208101905061341b565b83811115613445576000848401525b50505050565b6000613456826133f2565b9150600082141561346a57613469613521565b5b600182039050919050565b6000600282049050600182168061348d57607f821691505b602082108114156134a1576134a0613550565b5b50919050565b6134b0826135ae565b810181811067ffffffffffffffff821117156134cf576134ce61357f565b5b80604052505050565b60006134e3826133f2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561351657613515613521565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f557365726e616d652063616e6e6f7420626520656d7074790000000000000000600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f557365726e616d65206d757374206265206c6f7765726361736520616c70686160008201527f6e756d6572696300000000000000000000000000000000000000000000000000602082015250565b7f45524331393637557067726164653a207570677261646520627265616b73206660008201527f7572746865722075706772616465730000000000000000000000000000000000602082015250565b7f53656e64657220646f6573206e6f74206f776e20616e7920757365726e616d65600082015250565b7f53656e64657220616c726561647920726567697374657265642061207573657260008201527f6e616d6500000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320757365726e616d652077617320616c72656164792072656769737460008201527f6572656400000000000000000000000000000000000000000000000000000000602082015250565b7f557365726e616d65206973206e6f742072656769737465726564000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f526563656976657220616c7265616479206f776e73206120757365726e616d65600082015250565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b613a008161337e565b8114613a0b57600080fd5b50565b613a178161339c565b8114613a2257600080fd5b50565b613a2e816133a6565b8114613a3957600080fd5b50565b613a45816133fc565b8114613a5057600080fd5b5056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202a340712411c21a2908af96d02276bcdc6ed1cf526f0508ac644e247e3f8523664736f6c63430008020033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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.