Deployed: usedapp-example.vercel.app
-
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.useEtherswraps aronudethersproviderto get wallet, network datauseContractCallsfor specific contract calls and return values- source
-
custom
Modelsfor data models, but additional functions to handle data presentation & formatting e.g. currency conversion, timestamps etc. -
Helpers: more presentation, utilities functions
getExplorerTransactionLinkpoints to etherscan, bscscan etc.- address management including truncation, equals/matching etc.
