Refactor RPC class
@kautukkundan is already working on this.
Since May 24, 2022.
- Dominant language
- JavaScript
- Stars
- 155
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
**Context**
The [RPC](https://github.com/livepeer/protocol/blob/confluence/utils/rpc.js) class used to manipulate the state of the local network/take snapshots during the unit/integration tests relies on the web3 library - [which is passed down its constructor upon initialization](https://github.com/livepeer/protocol/blob/confluence/test/integration/PoolUpdatesWithHints.js#L83).
**TODO**
- replace web3.js methods with ethers.js as a dependency in the RPC class
- replace web3.js with ethers.js in all the occurrences where the RPC class is being initialized. Additionally, remove web3.js from the imports if it's not being used for anything else
Related to https://github.com/livepeer/protocol/issues/566
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.