How samou2/codealpha_personal_portfolio_crypto_locking_smart_contract works
This repository describes an ETH time-locking product: a user connects a wallet through a React DApp, deposits ETH with a lock duration, and withdraws after the unlock time. The README documents the contract’s deposit records, time check, withdrawal, and safety behavior, plus a Sepolia/MetaMask deployment path. The file tree does not expose the documented src/ or contracts/ sources (the contract is mentioned as being supplied in an archive), so implementation paths and internal call wiring cannot be verified; the graph reflects documented relationships only.
Components 10
DApp
- React DApp
Locking contract
- ETH deposit
- Deposit records
- Unlock-time check
- Withdrawal
- Direct-send rejection
Other components
- Wallet user
- MetaMask wallet
- Sepolia network
- ETH balance
Connections 11
- Wallet user → React DApp: uses
README.md - Wallet user → MetaMask wallet: connects
README.md - React DApp → Sepolia network: uses contract on
README.md - MetaMask wallet → Sepolia network: injects provider
README.md - React DApp → ETH deposit: requests deposit
README.md - React DApp → Withdrawal: requests withdrawal
README.md - ETH deposit → Deposit records: stores amount and time
README.md - ETH deposit → ETH balance: receives ETH
README.md - Withdrawal → Unlock-time check: checks unlock time
README.md - Unlock-time check → ETH balance: releases after expiry
README.md - Direct-send rejection → ETH balance: rejects direct sends
README.md