Skip to content

A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps

License

Notifications You must be signed in to change notification settings

Uniswap/web3-react

Repository files navigation

web3-react 🧰 (alpha)

CI

Example

Tasks:

  • Write other connectors
    • WalletConnect V2
    • Gnosis Safe
    • Other injected connectors?
  • Tighten up experimental connectors
  • Address remaining TODOs in the code
  • More tests
  • Docs
  • Test Node 12 support
  • Add Node 16 support once LTS

Packages

Package @alpha Version Size Description
@web3-react/store npm minzip
@web3-react/types npm minzip
@web3-react/core npm minzip
Connectors
@web3-react/metamask npm minzip MetaMask
@web3-react/network npm minzip
@web3-react/walletconnect npm minzip WalletConnect
@web3-react/walletlink npm minzip WalletLink
Experimental Connectors ⚠️ Not stable
@web3-react/frame npm minzip Frame
@web3-react/magic npm minzip Magic

Getting Started

  • yarn
  • yarn bootstrap
  • yarn start

In addition to compiling each package in watch mode, this will also spin up an example app on http://localhost:3000/.

Running Tests

  • yarn test --watch

Useful Commands

Add a dependency

  • yarn lerna add <DEPENDENCY> --scope <SUBPACKAGE>

Remove a dependency

  • Delete the relevant package.json entry

Because of a lerna bug, it's not possible to prune yarn.lock programmatically, so regenerate it manually:

  • yarn lerna exec 'rm -f yarn.lock' --scope SUBPACKAGE
  • yarn clean --scope SUBPACKAGE
  • yarn bootstrap