How yashwanthkumar-68/impactvault works
ImpactVault is a decentralized giving and impact-verification application. Donors browse campaigns and submit MON contributions through a wallet; creators publish campaigns and impact updates; community members or auditors review evidence and attestations. The frontend coordinates these actions with the Monad contract and stores evidence off-chain while anchoring hashes on-chain. The README documents the broader product flow; source-level connections below are limited to relationships visible in the supplied excerpts or SOURCE INDEX, so the indexer and several unsampled pages are shown without speculative links.
Main entry points: impactContext.tsx Wallet and transaction context · contracts ImpactVault contract · AttestationModal.tsx Evidence attestation · ipfs.ts Evidence hashing and IPFS
Components 27
Campaigns
- Campaign discovery
web/src/app/campaigns/page.tsx - Campaign details
web/src/app/campaign/[id]/page.tsx - Campaign creation
web/src/app/create/page.tsx - Campaign card
web/src/components/CampaignCard.tsx - Dual progress
web/src/components/DualProgressBar.tsx
Giving and management
- Donation modal
web/src/components/DonateModal.tsx - Creator dashboard
web/src/app/creator/page.tsx - Campaign management
web/src/app/creator/campaign/[id]/page.tsx - Impact update submission
web/src/app/creator/campaign/[id]/update/page.tsx - Donor credentials
web/src/app/dashboard/page.tsx
Evidence and verification
- Evidence viewer
web/src/components/EvidenceViewer.tsx - AI evidence analysis
web/src/components/AIEvidenceAnalyzer.tsx - Evidence attestation
web/src/components/AttestationModal.tsx - Evidence hashing and IPFS
web/src/lib/ipfs.ts
Chain and data
- Campaign data
web/src/lib/sampleData.ts - Wallet and transaction context
web/src/lib/impactContext.tsx - Contract interface
web/src/lib/contracts.ts - Monad network configuration
web/src/lib/monadChain.ts - ImpactVault contract
contracts - Event handlers
indexer/src/EventHandlers.ts - Impact data schema
indexer/schema.graphql
Other components
- Donor
- Campaign creator
- Community or auditor
- Monad Testnet
- IPFS gateway
- MetaMask wallet
Connections 22
- Donor → Campaign discovery: browses
- Campaign discovery → Campaign details: opens campaign
- Donor → Donation modal: contributes
- Donation modal → Wallet and transaction context: submits donation
web/src/components/DonateModal.tsx - Wallet and transaction context → ImpactVault contract: calls contract
web/src/lib/impactContext.tsx - Wallet and transaction context → MetaMask wallet: requests transactions
- ImpactVault contract → Monad Testnet: executes on
- Campaign creator → Campaign creation: creates campaign
- Campaign creation → Wallet and transaction context: submits campaign
web/src/lib/impactContext.tsx - Campaign creator → Impact update submission: reports impact
- Impact update submission → Evidence hashing and IPFS: prepares evidence
- Wallet and transaction context → Evidence hashing and IPFS: generates CID
web/src/lib/impactContext.tsx - Wallet and transaction context → Contract interface: uses interface
web/src/lib/impactContext.tsx - Wallet and transaction context → Monad network configuration: requests network switch
web/src/lib/impactContext.tsx - Evidence hashing and IPFS → IPFS gateway: resolves media
web/src/lib/ipfs.ts - Evidence viewer → AI evidence analysis: renders analysis
web/src/components/EvidenceViewer.tsx - Evidence viewer → Evidence attestation: opens attestation
web/src/components/EvidenceViewer.tsx - Community or auditor → Evidence attestation: attests evidence
- Evidence attestation → Wallet and transaction context: submits attestation
web/src/components/AttestationModal.tsx - Wallet and transaction context → ImpactVault contract: submits update and attestations
web/src/lib/impactContext.tsx - ImpactVault contract → Monad Testnet: anchors fingerprints
- Campaign card → Dual progress: renders progress
web/src/components/CampaignCard.tsx