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

refactor: replace deprecated @eth-op/sdk with viem #763

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Nov 1, 2024

Closes ACX-3036

Leaving as a draft until #745 is merged and tested.

pxrl and others added 14 commits September 30, 2024 17:22
This change updates the gasPriceOracle to leverage viem's gas pricing
strategies. This is beneficial because viem has an active community that
are actively adding support for new chains and improving support for
existing chains. An example of this is Linea, where linea_estimateGas is
supported out of the box after a recent update.

In order to maintain some degree of compatibility with existing users of
the gasPriceOracle, the external interface still accepts an ethers
Provider instance. It then internally instantiates a viem PublicClient
instance and uses that instead. There is still a residual issue of how
to resolve the relevant provider URLs, since it's not necessarily
reliable to pull from the provider due to the uncertain type (i.e.
StaticJsonRpcProvider or one of the extended variants that wraps
multiple providers).
Copy link

linear bot commented Nov 1, 2024

Base automatically changed from pxrl/experimentalGas to master November 13, 2024 19:41
@dohaki dohaki marked this pull request as ready for review December 4, 2024 14:41
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.

2 participants