Skip to content

czhc/usedapp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple wallet reader using useDapp framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published