livepeer / livepeer/protocol

Refactor RPC class

Open
#573 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.