1.0.0 • Published 4 years ago

cra-template-web3js v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

cra-template-web3js

This is web3.js app template for Create React App.

It pre-installs web3.js library with Typescript type definitions and TypeChain library that helps to generate type definitions for Ethereum smart contracts. To generate contracts types, you can use predefined script gen-contracts(for example yarn gen-contracts).

Pre-defined project structure:

./src
 - abi/        -- storage dir for ABIs
 - contracts/  -- storage dir for TypeChain generated contract types

How to use this template

To use this template, use flag --template web3js when creating a new app. For example:

npx create-react-app my-app --template web3js

# or

yarn create react-app my-app --template web3js

For more information, please refer to: