Yieldgate
Yieldgate is a protocol that allows anyone to start earning and building products with programmable yield.
Built with ❤️ on top of Aave, Polygon, and others.
Getting Started
# IMPORTANT: When using Yarn there is a bug that prevents `ts-node` from
# being installed even though it's in `./packages/hardhat/package.json`.
# → Solution is to switch back to npm for now.
# Install Dependencies
npm install
# Copy & fill environments
cp packages/frontend/.env.local.example packages/frontend/.env.local && nano packages/frontend/.env.local
cp packages/hardhat/.env.example packages/hardhat/.env && nano packages/hardhat/.env
# Generate types, artifacts & start frontend
npm run dev
# … or only start frontend if types are generated previously
npm run frontend:dev
# Optional: Start local hardhat network and deploy contracts
# NOTE: Execute those in different terminals
npm run hardhat:chain
npm run hardhat:deploy
Stack
Based on nextjs-ethereum-starter.
- Typescript
- Hardhat
- TypeChain
- Wagmi.sh
- Ethers.js
- Chakra UI
- Linting with ESLint
- Formatting with Prettier
- Testing with Jest and
react-testing-library