-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat: Add gas estimation utilities #6267
Conversation
roninjin10
commented
Jul 12, 2023
•
edited
Loading
edited
- Add simple gas estimation tools such as the ability to estimate l1 gas with a minimal api
- This replaces l2Provider.ts version which was tightly coupled to ethers.js. This one you don't even realize you are using viem as the API is minimal
- Don't document this as it's a one off tool and the plan is to make normal tools "just work"
- we should document it in a guide/tutorial instead after this lands
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
f4a25b6
to
e2d3fb0
Compare
4b7f9bc
to
6ecd446
Compare
e2d3fb0
to
f0af6c9
Compare
6ecd446
to
441a65e
Compare
f0af6c9
to
6431ffb
Compare
441a65e
to
06954fe
Compare
6431ffb
to
5fb79b4
Compare
06954fe
to
b42414c
Compare
5fb79b4
to
e2c0d73
Compare
b42414c
to
54dd535
Compare
e2c0d73
to
6175b77
Compare
54dd535
to
d7ef698
Compare
6175b77
to
3912f3a
Compare
d7ef698
to
57bbbbc
Compare
3912f3a
to
26d73c3
Compare
57bbbbc
to
3753b5c
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## 07-11-feat_Add_ts_contract_package_for_TS #6267 +/- ##
=============================================================================
- Coverage 44.53% 43.44% -1.09%
=============================================================================
Files 437 306 -131
Lines 29081 24315 -4766
Branches 712 0 -712
=============================================================================
- Hits 12950 10564 -2386
+ Misses 15062 12754 -2308
+ Partials 1069 997 -72
Flags with carried forward coverage won't be shown. Click here to find out more. |
3753b5c
to
c4bb3a3
Compare
Hey @roninjin10! This PR has merge conflicts. Please fix them before continuing review. |
26d73c3
to
f0474d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These utilities should go in core utils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
98276c8
to
15a532c
Compare
15a532c
to
98276c8
Compare
git in shambles |
98276c8
to
b7986e6
Compare
Hey @roninjin10! This PR has merge conflicts. Please fix them before continuing review. |
b7986e6
to
09e124d
Compare
c3d4e47
to
2c74b97
Compare
feat: Add feeEstimation function and move to correct package Apply suggestions from code review Co-authored-by: Annie Ke <[email protected]> fix: Remove the copy pasta from package.json Update packages/fee-estimation/README.md feat: Offer passing in viem client as an option better api and tests better docs all the docs fix: Make viem a peer dep typo fix: Refactor to use viem correctly (docs not updated yet) moar tests more explicit implementations Update packages/fee-estimation/src/estimateFees.ts fix: lint fix: Remove bad import and debugging fs.writeFile chore: pnpm up --latest packages feat: Add zora and base mainnet fix: linter
2c74b97
to
5a817f1
Compare
Moved ci check into it's own pr so the devops folks who might already be off for the weekend aren't blocking review #6407 |
This PR has been added to the merge queue, and will be merged soon. |
This PR is next in line to be merged, and will be merged as soon as checks pass. |