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

Feature/improve rpc client package #3111

Merged
merged 40 commits into from
Jul 31, 2023
Merged

Conversation

tjayrush
Copy link
Member

This massive PR doesn't really change anything (as you can see nearly no test cases were modified). What it does change, though, is the cleanliness and ease of understanding for the rpcClient and rpc packages (and removes a number of subservient packages such as ens and parts of abi that were more correctly should have been included in the rpcClient package.

This PR is really only in preparation for a forthcoming PR that will change all access to the RPC to be access through an object (called something like client or something). This will allow top level code to do all sorts of things including control the cache much better (from everywhere, not just the point of calls into the rpcClient package.

We can also build in thing such as API rate limits that can be read from a config file and also API keys if (and when) we start supporting remote access to the RPC.

Also, this will allow us to initialize access to the RPC earlier in the life cycle of the Handler routines (when initialized). In this way, the calling code can always assume that if the routine has gotten into the Handler it has a properly configured RPC endpoint.

That above-mentioned further PR will be added before release of version 1.0.0.

tjayrush added 30 commits July 31, 2023 07:58
… it from rpc to rpcClient to be more consistent
@tjayrush tjayrush merged commit 934a636 into develop Jul 31, 2023
@tjayrush tjayrush deleted the feature/improve-rpcClient-package branch July 31, 2023 17:35
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