How flav1e21/monad-agent-trust works
Agent Trust Layer combines on-chain agent identity and escrow payments with an Envio event indexer that derives reputation and network statistics for a live dapp. The main workflow is: users inspect indexed agent/task data and initiate escrow actions; contracts emit lifecycle events; handlers update queryable aggregates; the dapp polls those aggregates for its leaderboard and task feed. README documents the unsampled contract and dapp capabilities; handler-to-entity updates are visible in the excerpt. Contract event wiring to the indexer is documented, but the detailed implementation of the dapp and contracts was not sampled.
Main entry points: handlers.ts Event handlers · config.yaml HyperIndex GraphQL · AgentEscrow.sol Payment escrow · index.html Escrow actions
Components 11
On-chain trust and escrow
- Agent registry
contracts/AgentRegistry.sol - Payment escrow
contracts/AgentEscrow.sol
Event indexing
- Event handlers
src/handlers.ts - HyperIndex GraphQL
config.yaml
Trust data
- Agent aggregates
schema.graphql - Attestations
schema.graphql - Task lifecycle
schema.graphql - Network statistics
schema.graphql
Dapp experience
- Leaderboard and feed
web/index.html - Escrow actions
web/index.html
Other components
- Agent economy user
Connections 15
- Agent economy user → Leaderboard and feed: views
README.md - Agent economy user → Escrow actions: initiates
README.md - Escrow actions → Agent registry: registers agents
README.md - Escrow actions → Payment escrow: manages tasks
README.md - Payment escrow → Agent registry: checks identity
README.md - Agent registry → Event handlers: emits events
README.md - Payment escrow → Event handlers: emits events
README.md - Event handlers → Agent aggregates: updates aggregates
src/handlers.ts - Event handlers → Attestations: records verdicts
src/handlers.ts - Event handlers → Task lifecycle: mirrors lifecycle
src/handlers.ts - Event handlers → Network statistics: updates totals
src/handlers.ts - Leaderboard and feed → HyperIndex GraphQL: polls queries
README.md - HyperIndex GraphQL → Agent aggregates: serves aggregates
README.md - HyperIndex GraphQL → Task lifecycle: serves task feed
README.md - HyperIndex GraphQL → Network statistics: serves statistics
README.md