Sol.College

Structure lesson (licence does not allow quoting code)

AgentArena

Agent Arena lets you hire AI trading agents with verifiable on-chain identity, policy-protected wallets, and decentralized reputation. Every agent is an NFT on Solana's 8004 Registry, scored by ATOM reputation, and guarded by Privy agentic wallet policies — zero trust required.

Original
0x-pankaj/AgentArena
SuperStack fork
Blockchains/AgentArena @ f9b1466
Stars
0
Last push (original)
2026-05-11
Languages
TypeScript, HTML, Rust, Shell, JavaScript, Dockerfile
Detected stack
AnchorMetaplexNext.jsweb3.js
Categories
AI & AgentsDeFi
Licence
none detected: code not quoted on Sol.College
Homepage
https://usemurmur.xyz

Architecture

190 source files. By extension: .ts ×136, .tsx ×45, .rs ×6, .js ×3.

Top-level directorySource files
apps178
archive8
packages3
.opencode1

On-chain programs: archive/programs/agent-escrow/programs/agent-escrow, archive/programs/agent-registry/programs/agent-registry

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
create_jobCreateJobarchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:10
activate_jobActivateJobarchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:55
complete_jobAgentActionarchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:70
approve_releaseApproveReleasearchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:85
disputeDisputearchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:123
resolve_disputeResolveDisputearchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:138
cancel_jobCancelJobarchive/programs/agent-escrow/programs/agent-escrow/src/lib.rs:180
deactivate_agentUpdateAgentarchive/programs/agent-registry/programs/agent-registry/src/lib.rs:111
verify_agentVerifyAgentarchive/programs/agent-registry/programs/agent-registry/src/lib.rs:117
reset_daily_spentResetDailySpentarchive/programs/agent-registry/programs/agent-registry/src/lib.rs:123
record_spendingRecordSpendingarchive/programs/agent-registry/programs/agent-registry/src/lib.rs:129

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
archive/programs/agent-escrow/programs/agent-escrow/src/lib.rsPubkey, seeds, CpiContext, transfer, Program
apps/api/src/utils/atom-reputation.tsPublicKey, Transaction, SystemProgram, getLatestBlockhash, Connection, Keypair
apps/api/src/utils/privy-agentic.tsPublicKey, getAssociatedTokenAddress, VersionedTransaction, Connection, Transaction, createTransferInstruction
apps/api/src/utils/devnet-helpers.tsPublicKey, Keypair, getBalance, Connection, transfer, requestAirdrop
archive/programs/agent-registry/programs/agent-registry/src/lib.rsPubkey, seeds, Program, has_one
apps/api/src/utils/privy.tsPublicKey, Connection, VersionedTransaction, SystemProgram, Keypair, Transaction
apps/api/src/utils/agent-registry-8004.tsPublicKey, Transaction, Keypair, Program
apps/api/src/utils/privy-policies.tssignTransaction, Program
apps/mobile/src/hooks/useSolBalance.tsConnection, PublicKey, getBalance
apps/api/src/utils/nft-metadata.tscreateUmi, PublicKey
apps/api/src/routers/agent.tsPublicKey
apps/mobile/src/lib/solana.tsConnection

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/agentarena/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run dev
.npm run build
.npm run lint
apps/apinpm run dev
apps/apinpm run start
apps/apinpm run build
apps/mobilenpm run dev
apps/mobilenpm run start
apps/webnpm run dev
apps/webnpm run start
apps/webnpm run build
apps/webnpm run lint
archive/programs/agent-escrowanchor build
archive/programs/agent-escrowanchor test
archive/programs/agent-escrowanchor run test
archive/programs/agent-registryanchor build

What you could build from it