Thank you for taking the time to contribute!
The following is a set of general guidelines for contributing to this web3-components
library repo. Use your best judgment, and feel free to propose changes to this document in a pull request.
This web3 library is powered by the Covalent Unified API and consists of useful React components to fetch any on-chain data across any of the Covalent supported blockchain networks for a variety of use cases.
-
Add your component file into the
src/components
folder. The filename should be inPascalCase
and signify the primary data or use case being addressed (e.g.ERC20Transfers.js
). -
If your component has any dependencies (e.g. helper functions), add them to the
src/utils
folder and import them into your component accordingly. Helper function filenames should be incamelCase
(e.g.erc20TransfersHelper.js
). -
Export your component in
src/index.js
following the existing convention. -
Preference is for functional components over class components.
-
Lint and test your code. For testing your component, one approach is to use
npm pack
and use theweb3-components
package in a newcreate-react-app
project.
Here are some useful resources to help you out with building your components:
If you need any support as you build your components, message us in our Discord in the #feedback-and-support
channel.