Skip to content

Latest commit

 

History

History
52 lines (46 loc) · 2.57 KB

File metadata and controls

52 lines (46 loc) · 2.57 KB

VeriTruth TODO

Backend

  • Veritabanı şeması: verifications, agent_results tabloları
  • DB migration oluştur ve uygula
  • server/db.ts: verification ve agent_results sorgu yardımcıları
  • server/agents.ts: OpenAI + Gemini ile 3 uzman ajan (Kaynak, Mantık, Çapraz)
  • server/consensus.ts: Proof of Reliability skoru ve konsensüs kararı
  • tRPC router: verify.submit, verify.getById, verify.history

Frontend

  • index.css: Zarif, koyu tonlu profesyonel tema (renk paleti, fontlar)
  • App.tsx: Route yapısı (/, /verify/:id, /history)
  • Home.tsx: İddia giriş formu + hero section
  • VerificationLive.tsx: Canlı ajan analiz akışı (adım adım progress)
  • VerificationResult.tsx: Detaylı sonuç raporu (ajan bulguları, skor, karar)
  • History.tsx: Geçmiş doğrulamalar listesi

Dokümantasyon & GitHub

  • README.md (Cosmos Grants uyumlu)
  • .env.example
  • GitHub reposu oluştur ve push et

Test

  • Vitest: consensus mekanizması testleri (6 test)
  • Vitest: auth.logout testleri (1 test)

Cosmos Blockchain Entegrasyonu

  • CosmJS bağımlılıklarını ekle (@cosmjs/stargate, @cosmjs/proto-signing, @cosmjs/encoding)
  • server/cosmos.ts: Cosmos testnet bağlantısı ve on-chain kayıt servisi
  • drizzle/schema.ts: verifications tablosuna txHash ve cosmosAddress alanları ekle
  • DB migration uygula
  • tRPC router: cosmos.buildAnchorParams, cosmos.recordAnchor, cosmos.getChainStatus, cosmos.verifyAnchor
  • Frontend: CosmosWallet.tsx - Keplr cüzdan bağlantı bileşeni
  • Frontend: Result sayfasına "Anchor to Cosmos" butonu ve on-chain kayıt UI
  • Frontend: Zincir durumu göstergesi (bağlı ağ, blok yüksekliği)
  • README.md güncelle - Cosmos entegrasyonu bölümü ekle

CosmWasm Akıllı Sözleşmesi

  • Rust + CosmWasm geliştirme ortamını kur (rustup, wasm32 target, cargo-generate)
  • contracts/veritruth-registry/ dizininde kontrat scaffold oluştur
  • Kontrat: AnchorVerification mesajı (store proof on-chain)
  • Kontrat: QueryVerification sorgusu (id ile proof getir)
  • Kontrat: QueryAllVerifications sorgusu (tüm kayıtlar)
  • Kontrat: unit testleri yaz
  • Kontratı wasm olarak derle ve optimize et
  • Cosmos testnet'e deploy et (wasmd CLI veya CosmJS)
  • server/cosmos.ts: kontrat execute/query fonksiyonları ekle
  • tRPC router: cosmos.anchorToContract ve cosmos.queryContract prosedürleri
  • Frontend: sonuç sayfasında kontrat adresini ve on-chain kayıt linkini göster
  • README.md: CosmWasm kontrat bölümü ekle
  • GitHub'a push et