dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

[WIP] Update gas page

Open kien-ngo opened this issue 1 year ago • 2 comments

  • [x] Data is fetch directly from the gasreport.txt
  • [x] Remove some hard-coded code
  • [ ] Map contract name to correct contract slugs -> external link
  • [ ] Display details about the benchmark

PR-Codex overview

The focus of this PR is to refactor the gas estimation logic and introduce a benchmarking feature for contract functions.

Detailed summary

  • Removed GasPrice interface and GasEstimatorMap constants
  • Added BenchmarkItem interface and gas benchmarking feature
  • Refactored GasEstimatorBox component to use benchmark data
  • Updated GasPage to fetch and display gas benchmarking results

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

kien-ngo avatar Apr 09 '24 13:04 kien-ngo

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 5:44pm

vercel[bot] avatar Apr 09 '24 13:04 vercel[bot]

📝 Changed routes:

/gas
Screenshot of /gas
(view full size)

Commit cc9375520359b1a65e93507f292aa286a8806615 (https://thirdweb-b1rupkiyx.thirdweb-preview.com).

jnsdls avatar Apr 23 '24 07:04 jnsdls

@jnsdls hi there, can you review this when u have time

kien-ngo avatar May 20 '24 17:05 kien-ngo