alloy-rs / alloy-rs/evm

[Feature] Add helper for eth_estimate gas

Aberta
#225 4 comentários 1 reação 1 responsável Reivindicada por @mablr Ver no GitHub
enhancement
Linguagem predominante
Rust
Estrelas
83
Forks
106
Merge médio
36min
PRs com merge (30d)
2

Descrição

### 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_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.