Skip to content

Spagero767/Reputataion-Oracle

Repository files navigation

Reputation Oracle

This is an on-chain identity and reputation system built with Next.js. It provides a dashboard to analyze wallet activity, social connections, and on-chain credentials to generate a reputation score. The application leverages AI to detect anomalous behavior that might indicate bot activity.

Features

  • Reputation Score: A comprehensive score from 0-1000 based on various on-chain and off-chain metrics.
  • Sybil Resistance: An assessment of how resistant a wallet is to Sybil attacks.
  • Wallet History: A view of recent transactions.
  • Social Proof: Connected social accounts from platforms like Twitter, Lens, and Farcaster.
  • Protocol Usage: A summary of interactions with different DeFi protocols.
  • Credentials & Endorsements: On-chain credentials (e.g., from Gitcoin Passport, POAP) and peer endorsements.
  • AI-Powered Anomaly Detection: Uses Genkit and Google's Gemini models to analyze transaction patterns and flag suspicious activity.

Tech Stack

  • Framework: Next.js (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: ShadCN UI
  • AI/Generative AI: Genkit with Google Gemini

Getting Started

First, install the dependencies:

npm install

Then, run the development server:

npm run dev

Open http://localhost:9002 with your browser to see the result.

AI Features

The application uses Genkit to interface with Google's Gemini models for its AI capabilities.

Anomaly Detection

The core AI feature is the anomaly detection in src/app/page.tsx and src/components/dashboard/anomaly-detection.tsx. It allows users to input a wallet address and transaction history to check for signs of bot-like behavior.

The AI logic is defined in a Genkit flow located at src/ai/flows/detect-anomalous-wallet-activity.ts. This flow takes the wallet data, sends it to the Gemini model with a specific prompt, and returns a JSON object indicating whether the activity is anomalous and why.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages