Templated from Scaffold-Eth Typescript
This was the typescript repo of scaffold.eth. Check out the directories:
packages/vite-app-ts/
packages/hardhat-ts/
Running the app
-
install dependencies
yarn install
-
start a hardhat node
yarn chain
-
run the app,
you'll need to open a new command prompt
yarn contracts:build yarn deploy yarn start
Everything you need to build on Ethereum! 🚀
🧪 Quickly experiment with Solidity using a frontend that adapts to your smart contract.
🔏 Edit your smart contracts in packages/hardhat-ts/contracts
📝 Edit your frontend in packages/vite-app-ts/src
💼 Edit your deployment scripts in packages/hardhat-ts/deploy
📱 Open http://localhost:3000 to see the app
Node Version Manager (nvm)
touch ~/.bash_profile
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
exec $SHELL
source ~/.bash_profile
nvm --version
Node Version 14
nvm install 14
Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
exec $SHELL
- Run ceremony
./scripts/ptau.sh
- Setup circom
./scripts/setup_circom.sh
- Compile circuit
./scripts/circuits.sh
- (optional) Generate a proof
./scripts/generate_proof.sh