Goerli Testnet

Contract

0xd00CCD251869086eCD8B54f328Df1d623369b8F6
Source Code

Overview

ETH Balance

5.81 ETH

Token Holdings

Multi Chain

Multichain Addresses

1 address found via
Transaction Hash
Method
Block
From
To
Value
Set Minimum App ...87112902023-03-24 18:01:24186 days 20 hrs ago1679680884IN
0xd00CCD...3369b8F6
0 ETH0.0017024764.20062956
Register App84869082023-02-13 21:52:00225 days 17 hrs ago1676325120IN
0xd00CCD...3369b8F6
0.5 ETH0.000464743.12865797
Top Up Balance83637792023-01-23 19:38:00246 days 19 hrs ago1674502680IN
0xd00CCD...3369b8F6
0.1 ETH0.000040481.50000004
Top Up Balance83636672023-01-23 19:10:48246 days 19 hrs ago1674501048IN
0xd00CCD...3369b8F6
1 ETH0.000040481.50000002
Top Up Balance81896982022-12-24 1:57:48277 days 13 hrs ago1671847068IN
0xd00CCD...3369b8F6
0.01 ETH0.000040481.50000001
Set Minimum App ...81892682022-12-24 0:08:12277 days 14 hrs ago1671840492IN
0xd00CCD...3369b8F6
0 ETH0.000048491
Register App79190542022-11-09 2:24:24322 days 12 hrs ago1667960664IN
0xd00CCD...3369b8F6
1 ETH0.000172671.02190365
Register App79190292022-11-09 2:18:24322 days 12 hrs ago1667960304IN
0xd00CCD...3369b8F6
1 ETH0.000219111.02448807
Top Up Balance79187432022-11-09 1:12:24322 days 13 hrs ago1667956344IN
0xd00CCD...3369b8F6
1 ETH0.00005912.19023257
Top Up Balance79186512022-11-09 0:50:00322 days 14 hrs ago1667955000IN
0xd00CCD...3369b8F6
1 ETH0.000051451.90658307
Set Trusted Paym...79176882022-11-08 21:08:36322 days 17 hrs ago1667941716IN
0xd00CCD...3369b8F6
0 ETH0.000230784.73935721
Register App79176722022-11-08 21:04:48322 days 17 hrs ago1667941488IN
0xd00CCD...3369b8F6
0.2 ETH0.000981954.25158968
0x6080604079176312022-11-08 20:55:36322 days 18 hrs ago1667940936IN
 Create: Web3Analytics
0 ETH0.009959467.54603321

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89375012023-05-04 0:14:48146 days 14 hrs ago1683159288
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89370922023-05-03 22:32:00146 days 16 hrs ago1683153120
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89369252023-05-03 21:50:48146 days 17 hrs ago1683150648
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89368022023-05-03 21:21:12146 days 17 hrs ago1683148872
0xd00CCD...3369b8F6
0 ETH
89273792023-05-02 6:03:48148 days 8 hrs ago1683007428
0xd00CCD...3369b8F6
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Web3Analytics

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : Web3Analytics.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@opengsn/contracts/src/ERC2771Recipient.sol";



contract Web3Analytics is ERC2771Recipient, Ownable {
    using Address for address;
    using EnumerableSet for EnumerableSet.AddressSet;

    struct Registration {
        address userAddress;
        string userDid;
    }

    struct App {
        address appAddress;
        string appName;
        string appUrl;
    }

    address private allowedPaymaster;
    uint256 private feeInBasisPoints;
    uint256 private minimumAppRegBalance;
    EnumerableSet.AddressSet private registeredApps;
    mapping(address => App) private appData;
    mapping(address => uint256) private appBalances;
    mapping(address => Registration[]) private appRegistrations;
    mapping(address => EnumerableSet.AddressSet) private appUsers;


    /**
    * @dev the Web3Analytics contract constructor
    * @param forwarder the trusted forwarder contract address
    **/

    constructor(address forwarder) {
        _setTrustedForwarder(forwarder);
    }


    /**
    * @dev sets trusted paymaster
    * @param paymaster the address of our trusted paymaster
    **/

    function setTrustedPaymaster(address paymaster) public onlyOwner {
        allowedPaymaster = paymaster;
    }


    /**
    * @dev gets trusted paymaster
    **/

    function getTrustedPaymaster() public view returns(address) {
        return allowedPaymaster;
    }


    /**
    * @dev sets feeInBasisPoints
    * @param fee the fee in basis points
    **/

    function setNetworkFee(uint256 fee) public onlyOwner {
        feeInBasisPoints = fee;
    }


    /**
    * @dev gets feeInBasisPoints
    **/

    function getNetworkFee() public view returns(uint256) {
        return feeInBasisPoints;
    }


    /**
    * @dev sets minimum balance required to register an app
    * @param balance the minimum balance
    **/

    function setMinimumAppRegBalance(uint256 balance) public onlyOwner {
        minimumAppRegBalance = balance;
    }


    /**
    * @dev gets minimum balance required to register an app
    **/

    function getMinimumAppRegBalance() public view returns(uint256) {
        return minimumAppRegBalance;
    }


    /**
    * @dev provides a list of an app's users
    * @param app the application to retrieve users for
    **/

    function getUsers(address app) public view returns(address[] memory) {
        return appUsers[app].values();
    }


    /**
    * @dev provides a count of an app's users
    * @param app the application to retrieve users for
    **/

    function getUserCount(address app) public view returns(uint256) {
        return appUsers[app].length();
    }


    /**
    * @dev provides a list of an app's registrations
    * @param app the application to retrieve registrations for
    **/

    function getUserRegistrations(address app) public view returns(Registration[] memory) {
        return appRegistrations[app];
    }


    /**
    * @dev returns whether app is registered or not
    * @param app the application to check registration for
    **/

    function isAppRegistered(address app) public view returns(bool) {
        return registeredApps.contains(app);
    }


    /**
    * @dev returns whether user is registered for given app
    * @param app the application to check registration for
    **/

    function isUserRegistered(address app, address user) public view returns(bool) {
        return appUsers[app].contains(user);
    }


    /**
    * @dev provides a count of apps registered
    **/

    function getAppCount() public view returns(uint256) {
        return registeredApps.length();
    }


    /**
    * @dev provides a list of apps registered
    **/

    function getApps() public view returns(address[] memory) {
        return registeredApps.values();
    }


    /**
    * @dev adds a new user to an app
    * @param did the did key for the user to add
    * @param app the address of the app to register user for
    **/

    function addUser(string memory did, address app) public {
        // app must be registered and user must not exist for app
        require(registeredApps.contains(app), "App not registered");
        require(!appUsers[app].contains(_msgSender()), "User already exists");

        appUsers[app].add(_msgSender());
        appRegistrations[app].push(Registration(_msgSender(), did));                          
    }


    /**
    * @dev registers new app for web3analytics
    * @param name the name of the app
    * @param url the app's url (optional)
    **/

    function registerApp(string memory name, string memory url) public payable {
        require(!registeredApps.contains(_msgSender()), "App already registered");
        require(bytes(name).length != 0, "Name is required");
        require(msg.value >= minimumAppRegBalance, "Minimum balance to register not met");

        registeredApps.add(_msgSender());
        appData[_msgSender()] = App(_msgSender(), name, url);
        if (msg.value > 0) appBalances[_msgSender()] = msg.value;
    }


    /**
    * @dev provides app data for registered app
    * @param app the application to retrieve data for
    **/

    function getAppData(address app) public view returns(App memory) {
        return appData[app];
    }


    /**
    * @dev updates app data for registered app
    * @param name the name of the app
    * @param url the app's url (optional)
    **/

    function updateAppData(string memory name, string memory url) public {
        require(registeredApps.contains(_msgSender()), "App not registered");
        require(bytes(name).length != 0, "Name is required");

        appData[_msgSender()] = App(_msgSender(), name, url);                          
    }


    /**
    * @dev gets account balance of an app
    * @param app the application to retrieve balance for
    **/

    function getBalance(address app) public view returns(uint256) {
        return appBalances[app];
    }


    /**
    * @dev allows adding value to account balance of an app
    * @param app the application to add value to
    **/

    function topUpBalance(address app) public payable {
        require(msg.value > 0, 'Top up must be greater than 0');
        appBalances[app] = appBalances[app] + msg.value;
    }


    /**
    * @dev allows deducting value from account balance of an app
    * @param app the application to charge fee to
    * @param fee the amount of the fee
    **/

    function chargeFee(address app, uint256 fee) public payable {
        require(allowedPaymaster != address(0), 'Trusted paymaster must be set');
        require(allowedPaymaster == _msgSender(), 'Only trusted paymaster may charge fee');

        appBalances[app] = appBalances[app] - fee;
    }


    function _msgSender() internal view override(Context, ERC2771Recipient)
        returns (address sender) {
        sender = ERC2771Recipient._msgSender();
    }

    function _msgData() internal view override(Context, ERC2771Recipient)
        returns (bytes memory) {
        return ERC2771Recipient._msgData();
    }

}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 7 : ERC2771Recipient.sol
// SPDX-License-Identifier: MIT
// solhint-disable no-inline-assembly
pragma solidity >=0.6.9;

import "./interfaces/IERC2771Recipient.sol";

/**
 * @title The ERC-2771 Recipient Base Abstract Class - Implementation
 *
 * @notice Note that this contract was called `BaseRelayRecipient` in the previous revision of the GSN.
 *
 * @notice A base contract to be inherited by any contract that want to receive relayed transactions.
 *
 * @notice A subclass must use `_msgSender()` instead of `msg.sender`.
 */
abstract contract ERC2771Recipient is IERC2771Recipient {

    /*
     * Forwarder singleton we accept calls from
     */
    address private _trustedForwarder;

    /**
     * :warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.
     * @notice Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet.
     * @return forwarder The address of the Forwarder contract that is being used.
     */
    function getTrustedForwarder() public virtual view returns (address forwarder){
        return _trustedForwarder;
    }

    function _setTrustedForwarder(address _forwarder) internal {
        _trustedForwarder = _forwarder;
    }

    /// @inheritdoc IERC2771Recipient
    function isTrustedForwarder(address forwarder) public virtual override view returns(bool) {
        return forwarder == _trustedForwarder;
    }

    /// @inheritdoc IERC2771Recipient
    function _msgSender() internal override virtual view returns (address ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96,calldataload(sub(calldatasize(),20)))
            }
        } else {
            ret = msg.sender;
        }
    }

    /// @inheritdoc IERC2771Recipient
    function _msgData() internal override virtual view returns (bytes calldata ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            return msg.data[0:msg.data.length-20];
        } else {
            return msg.data;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 7 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library 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;

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

File 6 of 7 : IERC2771Recipient.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

/**
 * @title The ERC-2771 Recipient Base Abstract Class - Declarations
 *
 * @notice A contract must implement this interface in order to support relayed transaction.
 *
 * @notice It is recommended that your contract inherits from the ERC2771Recipient contract.
 */
abstract contract IERC2771Recipient {

    /**
     * :warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.
     * @param forwarder The address of the Forwarder contract that is being used.
     * @return isTrustedForwarder `true` if the Forwarder is trusted to forward relayed transactions by this Recipient.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * @notice Use this method the contract anywhere instead of msg.sender to support relayed transactions.
     * @return sender The real sender of this call.
     * For a call that came through the Forwarder the real sender is extracted from the last 20 bytes of the `msg.data`.
     * Otherwise simply returns `msg.sender`.
     */
    function _msgSender() internal virtual view returns (address);

    /**
     * @notice Use this method in the contract instead of `msg.data` when difference matters (hashing, signature, etc.)
     * @return data The real `msg.data` of this call.
     * For a call that came through the Forwarder, the real sender address was appended as the last 20 bytes
     * of the `msg.data` - so this method will strip those 20 bytes off.
     * Otherwise (if the call was made directly and not through the forwarder) simply returns `msg.data`.
     */
    function _msgData() internal virtual view returns (bytes calldata);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"did","type":"string"},{"internalType":"address","name":"app","type":"address"}],"name":"addUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"chargeFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getAppCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"getAppData","outputs":[{"components":[{"internalType":"address","name":"appAddress","type":"address"},{"internalType":"string","name":"appName","type":"string"},{"internalType":"string","name":"appUrl","type":"string"}],"internalType":"struct Web3Analytics.App","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getApps","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinimumAppRegBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNetworkFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTrustedForwarder","outputs":[{"internalType":"address","name":"forwarder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTrustedPaymaster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"getUserCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"getUserRegistrations","outputs":[{"components":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"string","name":"userDid","type":"string"}],"internalType":"struct Web3Analytics.Registration[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"getUsers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"isAppRegistered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"isUserRegistered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"url","type":"string"}],"name":"registerApp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"setMinimumAppRegBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setNetworkFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"paymaster","type":"address"}],"name":"setTrustedPaymaster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"app","type":"address"}],"name":"topUpBalance","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"url","type":"string"}],"name":"updateAppData","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200174c3803806200174c83398101604081905262000034916200010e565b62000048620000426200006a565b62000086565b600080546001600160a01b0319166001600160a01b0383161790555062000140565b600062000081620000d860201b62000f381760201c565b905090565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060143610801590620000f657506000546001600160a01b031633145b1562000109575060131936013560601c90565b503390565b6000602082840312156200012157600080fd5b81516001600160a01b03811681146200013957600080fd5b9392505050565b6115fc80620001506000396000f3fe6080604052600436106101265760003560e01c806303e8837c1461012b5780633d20b6b51461015e57806345dc99fb14610173578063572b6c05146101935780635d250d98146101c3578063602b386e146101f557806360a72c29146102225780636190cc5c1461024f57806369825ac61461026f578063715018a614610284578063755c60521461029957806380109fea146102c65780638403be91146102db578063864a0d0a146102fb5780638da5cb5b1461031b578063b6e2c3aa14610330578063ce1b815f14610350578063cf54ce471461036e578063d3beb2981461038e578063d66d756d146103a1578063dc5977f7146103b6578063ea36a3ae146103d6578063f2fde38b146103e9578063f8b2cb4f14610409578063fc0438301461043f575b600080fd5b34801561013757600080fd5b5061014b610146366004611202565b610454565b6040519081526020015b60405180910390f35b61017161016c366004611202565b61047b565b005b34801561017f57600080fd5b5061017161018e3660046112be565b610510565b34801561019f57600080fd5b506101b36101ae366004611202565b610605565b6040519015158152602001610155565b3480156101cf57600080fd5b506002546001600160a01b03165b6040516001600160a01b039091168152602001610155565b34801561020157600080fd5b50610215610210366004611202565b610619565b6040516101559190611387565b34801561022e57600080fd5b5061024261023d366004611202565b61063d565b60405161015591906114dc565b34801561025b57600080fd5b506101b361026a36600461121d565b6107c8565b34801561027b57600080fd5b5060045461014b565b34801561029057600080fd5b506101716107f1565b3480156102a557600080fd5b506102b96102b4366004611202565b61083c565b60405161015591906113d4565b3480156102d257600080fd5b5061014b610958565b3480156102e757600080fd5b506101b36102f6366004611202565b610969565b34801561030757600080fd5b5061017161031636600461127a565b610976565b34801561032757600080fd5b506101dd610abd565b34801561033c57600080fd5b5061017161034b366004611202565b610acc565b34801561035c57600080fd5b506000546001600160a01b03166101dd565b34801561037a57600080fd5b50610171610389366004611321565b610b2d565b61017161039c366004611250565b610b71565b3480156103ad57600080fd5b50610215610c80565b3480156103c257600080fd5b506101716103d1366004611321565b610c8c565b6101716103e43660046112be565b610cd0565b3480156103f557600080fd5b50610171610404366004611202565b610e88565b34801561041557600080fd5b5061014b610424366004611202565b6001600160a01b031660009081526008602052604090205490565b34801561044b57600080fd5b5060035461014b565b6001600160a01b0381166000908152600a6020526040812061047590610f66565b92915050565b600034116104d05760405162461bcd60e51b815260206004820152601d60248201527f546f70207570206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152600860205260409020546104f4903490611530565b6001600160a01b03909116600090815260086020526040902055565b61052361051b610f70565b600590610f7a565b61053f5760405162461bcd60e51b81526004016104c790611451565b815161055d5760405162461bcd60e51b81526004016104c7906114b2565b6040518060600160405280610570610f70565b6001600160a01b031681526020018381526020018281525060076000610594610f70565b6001600160a01b0390811682526020808301939093526040909101600020835181546001600160a01b031916921691909117815582820151805191926105e2926001850192909101906110c1565b50604082015180516105fe9160028401916020909101906110c1565b5050505050565b6000546001600160a01b0391821691161490565b6001600160a01b0381166000908152600a6020526040902060609061047590610f8f565b61066a604051806060016040528060006001600160a01b0316815260200160608152602001606081525090565b6001600160a01b0380831660009081526007602090815260409182902082516060810190935280549093168252600183018054929392918401916106ad9061155f565b80601f01602080910402602001604051908101604052809291908181526020018280546106d99061155f565b80156107265780601f106106fb57610100808354040283529160200191610726565b820191906000526020600020905b81548152906001019060200180831161070957829003601f168201915b5050505050815260200160028201805461073f9061155f565b80601f016020809104026020016040519081016040528092919081815260200182805461076b9061155f565b80156107b85780601f1061078d576101008083540402835291602001916107b8565b820191906000526020600020905b81548152906001019060200180831161079b57829003601f168201915b5050505050815250509050919050565b6001600160a01b0382166000908152600a602052604081206107ea9083610f7a565b9392505050565b6107f9610f70565b6001600160a01b031661080a610abd565b6001600160a01b0316146108305760405162461bcd60e51b81526004016104c79061147d565b61083a6000610f9c565b565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561094d576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260018101805492939192918401916108bc9061155f565b80601f01602080910402602001604051908101604052809291908181526020018280546108e89061155f565b80156109355780601f1061090a57610100808354040283529160200191610935565b820191906000526020600020905b81548152906001019060200180831161091857829003601f168201915b50505050508152505081526020019060010190610874565b505050509050919050565b60006109646005610f66565b905090565b6000610475600583610f7a565b610981600582610f7a565b61099d5760405162461bcd60e51b81526004016104c790611451565b6109c66109a8610f70565b6001600160a01b0383166000908152600a6020526040902090610f7a565b15610a095760405162461bcd60e51b81526020600482015260136024820152725573657220616c72656164792065786973747360681b60448201526064016104c7565b610a32610a14610f70565b6001600160a01b0383166000908152600a6020526040902090610fee565b506001600160a01b0381166000908152600960205260409081902081518083019092529080610a5f610f70565b6001600160a01b0390811682526020918201869052835460018082018655600095865294839020845160029092020180546001600160a01b03191691909216178155828201518051939491936105fe939285019291909101906110c1565b6001546001600160a01b031690565b610ad4610f70565b6001600160a01b0316610ae5610abd565b6001600160a01b031614610b0b5760405162461bcd60e51b81526004016104c79061147d565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610b35610f70565b6001600160a01b0316610b46610abd565b6001600160a01b031614610b6c5760405162461bcd60e51b81526004016104c79061147d565b600355565b6002546001600160a01b0316610bc95760405162461bcd60e51b815260206004820152601d60248201527f54727573746564207061796d6173746572206d7573742062652073657400000060448201526064016104c7565b610bd1610f70565b6002546001600160a01b03908116911614610c3c5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c792074727573746564207061796d6173746572206d6179206368617267604482015264652066656560d81b60648201526084016104c7565b6001600160a01b038216600090815260086020526040902054610c60908290611548565b6001600160a01b0390921660009081526008602052604090209190915550565b60606109646005610f8f565b610c94610f70565b6001600160a01b0316610ca5610abd565b6001600160a01b031614610ccb5760405162461bcd60e51b81526004016104c79061147d565b600455565b610cdb61051b610f70565b15610d215760405162461bcd60e51b8152602060048201526016602482015275105c1c08185b1c9958591e481c9959da5cdd195c995960521b60448201526064016104c7565b8151610d3f5760405162461bcd60e51b81526004016104c7906114b2565b600454341015610d9d5760405162461bcd60e51b815260206004820152602360248201527f4d696e696d756d2062616c616e636520746f207265676973746572206e6f74206044820152621b595d60ea1b60648201526084016104c7565b610db0610da8610f70565b600590610fee565b506040518060600160405280610dc4610f70565b6001600160a01b031681526020018381526020018281525060076000610de8610f70565b6001600160a01b0390811682526020808301939093526040909101600020835181546001600160a01b03191692169190911781558282015180519192610e36926001850192909101906110c1565b5060408201518051610e529160028401916020909101906110c1565b505034159050610e84573460086000610e69610f70565b6001600160a01b031681526020810191909152604001600020555b5050565b610e90610f70565b6001600160a01b0316610ea1610abd565b6001600160a01b031614610ec75760405162461bcd60e51b81526004016104c79061147d565b6001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104c7565b610f3581610f9c565b50565b600060143610801590610f4f5750610f4f33610605565b15610f61575060131936013560601c90565b503390565b6000610475825490565b6000610964610f38565b60006107ea836001600160a01b038416611003565b606060006107ea8361101b565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006107ea836001600160a01b038416611077565b60009081526001919091016020526040902054151590565b60608160000180548060200260200160405190810160405280929190818152602001828054801561106b57602002820191906000526020600020905b815481526020019060010190808311611057575b50505050509050919050565b60006110838383611003565b6110b957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610475565b506000610475565b8280546110cd9061155f565b90600052602060002090601f0160209004810192826110ef5760008555611135565b82601f1061110857805160ff1916838001178555611135565b82800160010185558215611135579182015b8281111561113557825182559160200191906001019061111a565b50611141929150611145565b5090565b5b808211156111415760008155600101611146565b80356001600160a01b038116811461117157600080fd5b919050565b600082601f83011261118757600080fd5b81356001600160401b03808211156111a1576111a16115b0565b604051601f8301601f19908116603f011681019082821181831017156111c9576111c96115b0565b816040528381528660208588010111156111e257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561121457600080fd5b6107ea8261115a565b6000806040838503121561123057600080fd5b6112398361115a565b91506112476020840161115a565b90509250929050565b6000806040838503121561126357600080fd5b61126c8361115a565b946020939093013593505050565b6000806040838503121561128d57600080fd5b82356001600160401b038111156112a357600080fd5b6112af85828601611176565b9250506112476020840161115a565b600080604083850312156112d157600080fd5b82356001600160401b03808211156112e857600080fd5b6112f486838701611176565b9350602085013591508082111561130a57600080fd5b5061131785828601611176565b9150509250929050565b60006020828403121561133357600080fd5b5035919050565b6000815180845260005b8181101561136057602081850181015186830182015201611344565b81811115611372576000602083870101525b50601f01601f19169290920160200192915050565b6020808252825182820181905260009190848201906040850190845b818110156113c85783516001600160a01b0316835292840192918401916001016113a3565b50909695505050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561144357888303603f19018552815180516001600160a01b031684528701518784018790526114308785018261133a565b95880195935050908601906001016113fb565b509098975050505050505050565b602080825260129082015271105c1c081b9bdd081c9959da5cdd195c995960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f13985b59481a5cc81c995c5d5a5c995960821b604082015260600190565b602080825282516001600160a01b0316828201528201516060604083015260009061150a608084018261133a565b90506040840151601f19848303016060850152611527828261133a565b95945050505050565b600082198211156115435761154361159a565b500190565b60008282101561155a5761155a61159a565b500390565b600181811c9082168061157357607f821691505b6020821081141561159457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122072ddb424c6994313f46e9da1435634ba135b7c547d7a9c94b9ee2b2cd81b097064736f6c634300080700330000000000000000000000007a95fa73250dc53556d264522150a940d4c50238

Deployed Bytecode

0x6080604052600436106101265760003560e01c806303e8837c1461012b5780633d20b6b51461015e57806345dc99fb14610173578063572b6c05146101935780635d250d98146101c3578063602b386e146101f557806360a72c29146102225780636190cc5c1461024f57806369825ac61461026f578063715018a614610284578063755c60521461029957806380109fea146102c65780638403be91146102db578063864a0d0a146102fb5780638da5cb5b1461031b578063b6e2c3aa14610330578063ce1b815f14610350578063cf54ce471461036e578063d3beb2981461038e578063d66d756d146103a1578063dc5977f7146103b6578063ea36a3ae146103d6578063f2fde38b146103e9578063f8b2cb4f14610409578063fc0438301461043f575b600080fd5b34801561013757600080fd5b5061014b610146366004611202565b610454565b6040519081526020015b60405180910390f35b61017161016c366004611202565b61047b565b005b34801561017f57600080fd5b5061017161018e3660046112be565b610510565b34801561019f57600080fd5b506101b36101ae366004611202565b610605565b6040519015158152602001610155565b3480156101cf57600080fd5b506002546001600160a01b03165b6040516001600160a01b039091168152602001610155565b34801561020157600080fd5b50610215610210366004611202565b610619565b6040516101559190611387565b34801561022e57600080fd5b5061024261023d366004611202565b61063d565b60405161015591906114dc565b34801561025b57600080fd5b506101b361026a36600461121d565b6107c8565b34801561027b57600080fd5b5060045461014b565b34801561029057600080fd5b506101716107f1565b3480156102a557600080fd5b506102b96102b4366004611202565b61083c565b60405161015591906113d4565b3480156102d257600080fd5b5061014b610958565b3480156102e757600080fd5b506101b36102f6366004611202565b610969565b34801561030757600080fd5b5061017161031636600461127a565b610976565b34801561032757600080fd5b506101dd610abd565b34801561033c57600080fd5b5061017161034b366004611202565b610acc565b34801561035c57600080fd5b506000546001600160a01b03166101dd565b34801561037a57600080fd5b50610171610389366004611321565b610b2d565b61017161039c366004611250565b610b71565b3480156103ad57600080fd5b50610215610c80565b3480156103c257600080fd5b506101716103d1366004611321565b610c8c565b6101716103e43660046112be565b610cd0565b3480156103f557600080fd5b50610171610404366004611202565b610e88565b34801561041557600080fd5b5061014b610424366004611202565b6001600160a01b031660009081526008602052604090205490565b34801561044b57600080fd5b5060035461014b565b6001600160a01b0381166000908152600a6020526040812061047590610f66565b92915050565b600034116104d05760405162461bcd60e51b815260206004820152601d60248201527f546f70207570206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152600860205260409020546104f4903490611530565b6001600160a01b03909116600090815260086020526040902055565b61052361051b610f70565b600590610f7a565b61053f5760405162461bcd60e51b81526004016104c790611451565b815161055d5760405162461bcd60e51b81526004016104c7906114b2565b6040518060600160405280610570610f70565b6001600160a01b031681526020018381526020018281525060076000610594610f70565b6001600160a01b0390811682526020808301939093526040909101600020835181546001600160a01b031916921691909117815582820151805191926105e2926001850192909101906110c1565b50604082015180516105fe9160028401916020909101906110c1565b5050505050565b6000546001600160a01b0391821691161490565b6001600160a01b0381166000908152600a6020526040902060609061047590610f8f565b61066a604051806060016040528060006001600160a01b0316815260200160608152602001606081525090565b6001600160a01b0380831660009081526007602090815260409182902082516060810190935280549093168252600183018054929392918401916106ad9061155f565b80601f01602080910402602001604051908101604052809291908181526020018280546106d99061155f565b80156107265780601f106106fb57610100808354040283529160200191610726565b820191906000526020600020905b81548152906001019060200180831161070957829003601f168201915b5050505050815260200160028201805461073f9061155f565b80601f016020809104026020016040519081016040528092919081815260200182805461076b9061155f565b80156107b85780601f1061078d576101008083540402835291602001916107b8565b820191906000526020600020905b81548152906001019060200180831161079b57829003601f168201915b5050505050815250509050919050565b6001600160a01b0382166000908152600a602052604081206107ea9083610f7a565b9392505050565b6107f9610f70565b6001600160a01b031661080a610abd565b6001600160a01b0316146108305760405162461bcd60e51b81526004016104c79061147d565b61083a6000610f9c565b565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561094d576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260018101805492939192918401916108bc9061155f565b80601f01602080910402602001604051908101604052809291908181526020018280546108e89061155f565b80156109355780601f1061090a57610100808354040283529160200191610935565b820191906000526020600020905b81548152906001019060200180831161091857829003601f168201915b50505050508152505081526020019060010190610874565b505050509050919050565b60006109646005610f66565b905090565b6000610475600583610f7a565b610981600582610f7a565b61099d5760405162461bcd60e51b81526004016104c790611451565b6109c66109a8610f70565b6001600160a01b0383166000908152600a6020526040902090610f7a565b15610a095760405162461bcd60e51b81526020600482015260136024820152725573657220616c72656164792065786973747360681b60448201526064016104c7565b610a32610a14610f70565b6001600160a01b0383166000908152600a6020526040902090610fee565b506001600160a01b0381166000908152600960205260409081902081518083019092529080610a5f610f70565b6001600160a01b0390811682526020918201869052835460018082018655600095865294839020845160029092020180546001600160a01b03191691909216178155828201518051939491936105fe939285019291909101906110c1565b6001546001600160a01b031690565b610ad4610f70565b6001600160a01b0316610ae5610abd565b6001600160a01b031614610b0b5760405162461bcd60e51b81526004016104c79061147d565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610b35610f70565b6001600160a01b0316610b46610abd565b6001600160a01b031614610b6c5760405162461bcd60e51b81526004016104c79061147d565b600355565b6002546001600160a01b0316610bc95760405162461bcd60e51b815260206004820152601d60248201527f54727573746564207061796d6173746572206d7573742062652073657400000060448201526064016104c7565b610bd1610f70565b6002546001600160a01b03908116911614610c3c5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c792074727573746564207061796d6173746572206d6179206368617267604482015264652066656560d81b60648201526084016104c7565b6001600160a01b038216600090815260086020526040902054610c60908290611548565b6001600160a01b0390921660009081526008602052604090209190915550565b60606109646005610f8f565b610c94610f70565b6001600160a01b0316610ca5610abd565b6001600160a01b031614610ccb5760405162461bcd60e51b81526004016104c79061147d565b600455565b610cdb61051b610f70565b15610d215760405162461bcd60e51b8152602060048201526016602482015275105c1c08185b1c9958591e481c9959da5cdd195c995960521b60448201526064016104c7565b8151610d3f5760405162461bcd60e51b81526004016104c7906114b2565b600454341015610d9d5760405162461bcd60e51b815260206004820152602360248201527f4d696e696d756d2062616c616e636520746f207265676973746572206e6f74206044820152621b595d60ea1b60648201526084016104c7565b610db0610da8610f70565b600590610fee565b506040518060600160405280610dc4610f70565b6001600160a01b031681526020018381526020018281525060076000610de8610f70565b6001600160a01b0390811682526020808301939093526040909101600020835181546001600160a01b03191692169190911781558282015180519192610e36926001850192909101906110c1565b5060408201518051610e529160028401916020909101906110c1565b505034159050610e84573460086000610e69610f70565b6001600160a01b031681526020810191909152604001600020555b5050565b610e90610f70565b6001600160a01b0316610ea1610abd565b6001600160a01b031614610ec75760405162461bcd60e51b81526004016104c79061147d565b6001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104c7565b610f3581610f9c565b50565b600060143610801590610f4f5750610f4f33610605565b15610f61575060131936013560601c90565b503390565b6000610475825490565b6000610964610f38565b60006107ea836001600160a01b038416611003565b606060006107ea8361101b565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006107ea836001600160a01b038416611077565b60009081526001919091016020526040902054151590565b60608160000180548060200260200160405190810160405280929190818152602001828054801561106b57602002820191906000526020600020905b815481526020019060010190808311611057575b50505050509050919050565b60006110838383611003565b6110b957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610475565b506000610475565b8280546110cd9061155f565b90600052602060002090601f0160209004810192826110ef5760008555611135565b82601f1061110857805160ff1916838001178555611135565b82800160010185558215611135579182015b8281111561113557825182559160200191906001019061111a565b50611141929150611145565b5090565b5b808211156111415760008155600101611146565b80356001600160a01b038116811461117157600080fd5b919050565b600082601f83011261118757600080fd5b81356001600160401b03808211156111a1576111a16115b0565b604051601f8301601f19908116603f011681019082821181831017156111c9576111c96115b0565b816040528381528660208588010111156111e257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561121457600080fd5b6107ea8261115a565b6000806040838503121561123057600080fd5b6112398361115a565b91506112476020840161115a565b90509250929050565b6000806040838503121561126357600080fd5b61126c8361115a565b946020939093013593505050565b6000806040838503121561128d57600080fd5b82356001600160401b038111156112a357600080fd5b6112af85828601611176565b9250506112476020840161115a565b600080604083850312156112d157600080fd5b82356001600160401b03808211156112e857600080fd5b6112f486838701611176565b9350602085013591508082111561130a57600080fd5b5061131785828601611176565b9150509250929050565b60006020828403121561133357600080fd5b5035919050565b6000815180845260005b8181101561136057602081850181015186830182015201611344565b81811115611372576000602083870101525b50601f01601f19169290920160200192915050565b6020808252825182820181905260009190848201906040850190845b818110156113c85783516001600160a01b0316835292840192918401916001016113a3565b50909695505050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561144357888303603f19018552815180516001600160a01b031684528701518784018790526114308785018261133a565b95880195935050908601906001016113fb565b509098975050505050505050565b602080825260129082015271105c1c081b9bdd081c9959da5cdd195c995960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f13985b59481a5cc81c995c5d5a5c995960821b604082015260600190565b602080825282516001600160a01b0316828201528201516060604083015260009061150a608084018261133a565b90506040840151601f19848303016060850152611527828261133a565b95945050505050565b600082198211156115435761154361159a565b500190565b60008282101561155a5761155a61159a565b500390565b600181811c9082168061157357607f821691505b6020821081141561159457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122072ddb424c6994313f46e9da1435634ba135b7c547d7a9c94b9ee2b2cd81b097064736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000007a95fa73250dc53556d264522150a940d4c50238

-----Decoded View---------------
Arg [0] : forwarder (address): 0x7A95fA73250dc53556d264522150A940d4C50238

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a95fa73250dc53556d264522150a940d4c50238


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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