Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Impact Metric Submission]: Average Daily L2 Gas Used per Project #27

Open
nutkung1 opened this issue May 5, 2024 · 0 comments
Open
Assignees
Labels
c:community Datasets and notebook templates

Comments

@nutkung1
Copy link

nutkung1 commented May 5, 2024

Name of your metric: Average Daily L2 Gas Used per Project
Tags
Optimism Superchain
On-chain Activity
L2 Gas Usage

Brief description

This metric calculates the average daily amount of L2 gas used by each project's contracts on the Optimism Superchain. It provides a general indication of the on-chain activity level for each project. Higher average daily L2 gas used suggests potentially more frequent contract interactions or more complex computations happening on-chain.

SQL code block

Insert the SQL that we should run to replicate your impact metric:

SELECT project_id, AVG(amount) AS avg_daily_l2_gas_used
FROM `opensource-observer.oso.events_daily_from_project`
WHERE event_type = 'CONTRACT_INVOCATION_DAILY_L2_GAS_USED'
GROUP BY project_id;

Optional: link

Add a link to script/notebook or longer form write-up about the metric:

@nutkung1 nutkung1 added the c:community Datasets and notebook templates label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:community Datasets and notebook templates
Projects
None yet
Development

No branches or pull requests

2 participants