alloy-rs / alloy-rs/evm

[Feature] Add helper for eth_estimate gas

オープン
#225 コメント 4 件 リアクション 1 件 担当者 1 名 @mablr が担当を希望しています GitHub で見る
enhancement
主要言語
Rust
スター
83
フォーク
106
平均マージ
36分
マージ済み PR(30日)
2

説明

### Describe the feature you would like

gas estimation is super cursed

so cursed that we currently maintain at least 3 impls:

https://github.com/paradigmxyz/reth/blob/74351d98e906b8af5f118694529fb2b71d316946/crates/rpc/rpc-eth-api/src/helpers/estimate.rs#L40-L49

https://github.com/foundry-rs/foundry/blob/eb76d29cd61e3696440b43461bff713d89706385/crates/anvil/src/eth/api.rs#L3076-L3081

and somewhere else in foundry

ideally with have at least part of this logic encapsulated in some reusable helpers

tho unsure if this is even feasible

the reth impl is the most accurate one and should probably use as reference impl, if possible

### Additional context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。