How sowdarjya/ethpay works
Project type and purpose
• EthPay is a full-stack decentralized application (dApp) whose purpose is to let users send ETH on Ethereum with custom messages and keywords.
• The “client” folder contains a React + TailwindCSS frontend, and the “smart_contract” folder contains the Solidity contract, Hardhat config, tests, and deployment scripts.
File structure
• Top level splits clearly into two subprojects:
• client/ — React singlepage app (components, context, utils, public)
• smart_contract/ — Solidity code (contracts/), tests/, deployment scripts/, artifacts/
• Build & config artifacts: vite.config.js, Hardhat config, package.json in each module
• Context provider in client/src/context handles wallet connection and ethers.js logic
• scripts/deploy.js uses Hardhat to deploy to a network (e.g., Sepolia)
README for additional insights
• Stack: React, TailwindCSS, ethers.js, Solidity, Hardhat
• External dependencies: Ethereum wallet extension (MetaMask), Infura/Alchemy node provider, GIPHY API
• Workflow: developer deploys contract, updates address in client/constants, runs client
Essential architectural details
• You capture:
• How the React Context abstracts ethers.js calls
• The contract’s public functions (e.g., sendTransaction) and emitted events
• Wallet signing flow via MetaMask
• Deployment pipeline via Hardhat
• Real-time UI updates from blockchain events