Skip to content

feat: add Maiat Trust Score plugin#155

Open
JhiNResH wants to merge 1 commit intogame-by-virtuals:mainfrom
JhiNResH:feat/maiat-trust-plugin
Open

feat: add Maiat Trust Score plugin#155
JhiNResH wants to merge 1 commit intogame-by-virtuals:mainfrom
JhiNResH:feat/maiat-trust-plugin

Conversation

@JhiNResH
Copy link

Maiat Trust Score Plugin

Adds trust score verification to GAME agents via Maiat Protocol — an on-chain trust layer for agentic commerce on Base.

Why this plugin matters

AI agents executing autonomous swaps face a real risk: they can't inherently tell if a token is a rug, honeypot, or scam. Maiat provides verified trust scores from:

  • On-chain activity analysis
  • AI-verified community reviews
  • TrustScoreOracle contract on Base Sepolia

Functions

Function Description
check_trust_score Query trust score (0–10) for any address or project name
gate_swap Check both sides of a swap before executing — rejects if below threshold
batch_check_trust Score up to 10 addresses at once, ranked by trust

Usage

import MaiatTrustPlugin from '@virtuals-protocol/game-maiat-plugin';

const plugin = new MaiatTrustPlugin({ minScore: 3.0, chain: 'base' });

const agent = new GameAgent(GAME_API_KEY, {
  goal: 'Execute swaps only for tokens with trust score ≥ 3.0/10',
  workers: [plugin.getWorker()],
});

Technical

  • Zero external SDK dependencies (pure fetch calls to Maiat REST API)
  • TypeScript + CJS/ESM dual build
  • Follows same structure as coingeckoMaopPlugin
  • API is free tier (100 req/day), optional API key for unlimited

Links

Adds trust score verification for GAME agents via Maiat Protocol.

Functions:
- check_trust_score: query trust score for any address or project name
- gate_swap: verify both tokens before executing a swap (rejects if below threshold)
- batch_check_trust: score multiple addresses at once, ranked by trust

Powered by Maiat Protocol's on-chain TrustScoreOracle (Base) + AI-verified review engine.
API: GET /api/v1/score/{address} — no SDK dependency required.

Useful for: any GAME agent executing autonomous swaps, transfers, or
on-chain interactions that needs to assess counterparty trust before acting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant