A lightweight Web3 application demonstrating the fundamentals of DeFi staking. Users can deposit ETH into the smart contract and withdraw it later. This repository uses a completely flat file structure for ease of learning and portability.
- Smart Contract: Solidity contract handling deposits and balances.
- Frontend: Plain HTML/JS interface to interact with the blockchain.
- Testing: Automated tests to ensure contract security.
- Install dependencies:
npm install - Compile contract:
npx hardhat compile - Run tests:
npx hardhat test - Deploy (local):
npx hardhat run deploy.js --network localhost
- Solidity ^0.8.0
- Hardhat
- Ethers.js
THANKS
YOLO badge test 😆