Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.67 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.67 KB

useDapp Example

Deployed: usedapp-example.vercel.app

Screenshot

Notes

  • DAppProvider - main component, wraps around other Provider components which provide custom hooks for chain, block handling

  • custom React Hooks for simpler (React native-ish) state management, abstracts from a lot of the complexities of even using ethers, web3. Also updates components as new blocks are mined.

    • useEthers wraps aronud ethers provider to get wallet, network data
    • useContractCalls for specific contract calls and return values
    • source
  • custom Models for data models, but additional functions to handle data presentation & formatting e.g. currency conversion, timestamps etc.

  • Helpers: more presentation, utilities functions

References