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

Built-in support for Arbitrum gas fees #181

Closed
cgewecke opened this issue Feb 27, 2024 · 1 comment
Closed

Built-in support for Arbitrum gas fees #181

cgewecke opened this issue Feb 27, 2024 · 1 comment
Labels

Comments

@cgewecke
Copy link
Owner

Proposed as part of #170. It's not clear how accurate fees would be when run on an Ethereum EVM (like HH or Anvil). Arbitrum has special precompiles with their own prices. (Assume the differences are microscopic but unsure.)

One approach is to create an option for an async hook for price resolution that the user can define. Whenever the plugin needs L1gasUsed it could call the relevant estimation endpoints at Arbitrum (as in the JS script linked below). This would be useful primarily for hardhat run, but might be ok for small test suites too. (This strategy Is lower effort but also general purpose)

Higher effort is feature parity with Optimism and would require that we emulate the estimation locally using Brotli compression etc. (Definitely wait till Atlas fork for this)

EIP 4844 Schedule

Resources

@cgewecke
Copy link
Owner Author

cgewecke commented Apr 3, 2024

Closed via #225. This is in the 2.1.0 release

@cgewecke cgewecke closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant