question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Optimism support

See original GitHub issue

@cgewecke

Hey, pretty new in web3 space, I am wondering - can the eth-gas-reporter support Optimism?

I am not familiar with eth-gas-reporter internals and thought that maybe you can give me initial guidance on what kind of changes are necessary to make it work and the place where to start looking?

Depending on the work required I may try to implement it.

From an initial naive glance it seems we need:

  • Separate gasPrice on gasPriceL1, and gasPriceL2.
  • Separate gasUsed on gasUsedL1, and gasUsedL2.
  • Calculate the calldata size, and derive cost based on gasPriceL1 and gasUsedL1.
  • Leave the rest of the cost to be based on gasPriceL2 and gasUsedL2.

About Optimism fees: https://community.optimism.io/docs/developers/l2/new-fees.html#frontmatter-title

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
andrewshvvcommented, Jan 24, 2022

First calculation: Screen Shot 2022-01-24 at 6 29 43 AM

4reactions
smartcontractscommented, Jan 21, 2022

FYI, we just updated the Optimism docs to give more information about how to accurately estimate the current L1 data cost for a given transaction: https://community.optimism.io/docs/developers/build/transaction-fees/#estimating-the-l1-data-fee

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get support? - Optimism
Please join our Discord and submit an issue in the appropriate channel (either #user-support or #dev-support) and a member of the community ...
Read more >
Feature request support for Optimism and L2 Ethereum rollups
Currently Ledger does not support any optimistic rollup chain that is based on Ethereum. Examples of rollups with a big user base are...
Read more >
Eth_getBlockRange support for Optimism - Feature Requests
Feature Requests. Voters 6. Avatar ... Eth_getBlockRange support for Optimism. Open; Subscribe. I. Isaac Lau. 03-08-2021 - a year ago. A. Comment.
Read more >
Optimism Integration - Moralis Web3 Technology AB
Feature requests · Optimism Integration · Activity Newest / Oldest · Web Development.
Read more >
Optimism Websockets - Feedback & Feature Requests
Hey, any plans to support websockets on optimism in the near future? ... Adding my +1 for wss:// on Optimism and Polygon. I'd...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found