web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

Add docs and upgrade guide for v8

Open NoahZinsmeister opened this issue 3 years ago • 12 comments

NoahZinsmeister avatar Jan 11 '22 17:01 NoahZinsmeister

someone wrote a documentation that I think is helpful

https://hackmd.io/Ykpp1MWLTjixIZG2ZJEShA#Web3React-API-Reference

@wsschwab also posted in the link below

https://github.com/NoahZinsmeister/web3-react/issues/226

myhendry avatar Jan 13 '22 03:01 myhendry

I did a simple boilerplate code using only metamask as wallet, default Greeter.sol contract and ethers hardhat. It is deployed successfully on the rinkeby testnet etherscan transaction. It could be useful to those who are trying to use the library

Simple Demo

Source Code

myhendry avatar Jan 13 '22 08:01 myhendry

Hey Noah, being a kind of a newbie, Id like to contribute to the docs. Do you have any sort of reference I can use to get started or do I have to start from scratch by reading the src code?

jacob-abe avatar Mar 10 '22 09:03 jacob-abe

@NoahZinsmeister Can definitely help out with this one, wdyt about Nextra for creating docs?

agcty avatar Mar 18 '22 18:03 agcty

i've been keen to try out nextra @agcty - if you have a vision i'm interested! are you imagining another sibling package in the monorepo that builds into a static site, or something a bit more standalone?

there's a skeleton amount of TSDoc which i was at some point considering using as the basis for docs, but i'm not sure it's the best foundation - it seems hard to expose TSDoc in anything other than IDE autocompletes, so at the moment i'm leaning towards keeping it around only for that use case, and not as a general purpose solution.

NoahZinsmeister avatar Mar 18 '22 18:03 NoahZinsmeister

@NoahZinsmeister Yeah was thinking of another package in the monorepo, think that's the easiest way and nextra would allow us to showcase the functionality directly in the docs which is a neat side effect.

agcty avatar Mar 19 '22 14:03 agcty

sounds good @agcty ! agree that it'll be cool to consume packages in the docs site the same way the example does. just 2 quick notes:

  1. given that the docs will be co-located with everything else, we should probably explicitly call out the few areas where the monorepo structure leads to differences in the install/build process relative to a typical consumer app. for example, react is installed at the parent level to avoid dependency conflicts, and thus is not in the package.json of the example, but in a consumer application it would obviously need to be. and technically all the @web3-react/* dependencies are installed locally via lerna rather than through npm, but i think that's less of a big deal because in the package.json they appear correct, and lerna just does the linking behind the scenes

  2. at some point let's figure out hosting/CI/etc. - right now vercel builds the example next.js site against main and PRs, ideally we can do this alongside the docs - or perhaps we can integrate the example into the docs site

NoahZinsmeister avatar Mar 21 '22 16:03 NoahZinsmeister

@NoahZinsmeister Good to see your efforts on this front as well! I would propose to ship a first update of the docs asap, because the current state is far away from being friendly for newcomers. Therefore, focus less on the technicalities and more on a more user-friendly introduction of this valuable project. If there is a specific way to support, I'm here to help.

JorisZierold avatar Mar 25 '22 10:03 JorisZierold

An upgrading guide should be prioritised IMO, I wasn't able to find any explicit info about it. Let me know if I'm wrong and there is a list of things to check at least.

FranRom avatar Jun 09 '22 09:06 FranRom

Anyone knows how to connect web3.js in version 8? I have been trying to do that for hours and I don't find any documentation on internet. Help!!

niraj-khatiwada avatar Aug 08 '22 19:08 niraj-khatiwada

Hi @NoahZinsmeister I am a web3 newbie looking for good first issues. Can I help with this one?

Darshan4114 avatar Oct 18 '22 08:10 Darshan4114

I would like to work on this @NoahZinsmeister

ashutosh887 avatar Jun 11 '23 10:06 ashutosh887