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

update: add fee-estimation package to dev docs #851

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

annieke
Copy link
Contributor

@annieke annieke commented Jul 28, 2023

Description

DevX added a new JS package specifically for fee estimation, which is size and performace optimized. Adding this and ongoing work to the docs for easy discovery.

Note, this was one of our most cited developer pains from last quarter.

Additional context

This will be coming natively in ethers, wagmi, and web3.js. I know we haven't called out specific tools in the past, but opening the conversations here and wondering what y'all think is valuable!

Metadata

DevX added a new JS package specifically for fee estimation, which is size and performace optimized: https://github.com/ethereum-optimism/optimism/tree/develop/packages/fee-estimation 

Adding this and ongoing work to the docs for easy discovery
@OPMattie
Copy link
Contributor

OPMattie commented Aug 1, 2023

For ref, @annieke @sbvegan I'm cool with mentioning wagmi and ethers here because this was an active collab we did with them

@@ -8,7 +8,7 @@ However, Layer 2 introduces some new paradigms that means it can never be exactl
Luckily, OP Mainnet's [EVM equivalence](https://medium.com/ethereum-optimism/introducing-evm-equivalence-5c2021deb306) makes these differences easy to understand and even easier to handle within your app.

This page includes the formula for calculating the gas cost of transactions on OP Mainnet.
You can also [use our SDK](https://github.com/ethereum-optimism/optimism-tutorial/tree/main/sdk-estimate-gas) to calculate those costs for you.
You can [use our SDK](https://github.com/ethereum-optimism/optimism-tutorial/tree/main/sdk-estimate-gas) to calculate those costs for you. If the SDK is too heavy, or you just want to walk through some reference code, use [@eth-optimism/fee-estimation](https://github.com/ethereum-optimism/optimism/tree/develop/packages/fee-estimation). OP Stack fee estimation will soon be natively availabe in your favorite Ethereum tools.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would really benefit from some header text:

Calculate Gas Fees with the Optimism SDK

@OPMattie
Copy link
Contributor

OPMattie commented Aug 1, 2023

@sbvegan @annieke I went ahead and approved since it works for the announcement tomorrow, with one suggestion for a header.

@sbvegan sbvegan merged commit cbd0350 into main Aug 1, 2023
5 checks passed
@sbvegan sbvegan deleted the annie/link-to-new-fee-package branch August 1, 2023 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants