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

Simplify calling a specific EVM network #38

Merged
merged 12 commits into from
Sep 18, 2023
Merged

Simplify calling a specific EVM network #38

merged 12 commits into from
Sep 18, 2023

Conversation

rvanasa
Copy link
Collaborator

@rvanasa rvanasa commented Sep 18, 2023

This PR changes the request and request_cost methods to receive Source variants which can represent URLs, registered providers, or EVM chain identifiers. This provides a layer of abstraction for more realistic use cases where the developer wants to call an RPC method on a specific EVM network without needing to know which specific RPC provider is being used behind the scenes.

At the moment, the "preferred provider" for a given network is defined as the earliest registered provider with the active flag set to true.

@rvanasa rvanasa marked this pull request as draft September 18, 2023 19:40
@rvanasa rvanasa marked this pull request as ready for review September 18, 2023 21:06
@rvanasa rvanasa changed the title Add configurable preferred providers for each EVM network Simplify calling a specific EVM network Sep 18, 2023
@rvanasa rvanasa merged commit bc112dd into main Sep 18, 2023
6 checks passed
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.

1 participant