Sol.College

Structure lesson (licence does not allow quoting code)

agent-dispute

Agent Economic Dispute Resolution Protocol is a decentralized dispute resolution system for autonomous AI agents, using AI arbiters and smart contracts to resolve transaction conflicts without human intervention.

Original
babisembelit/agent-dispute
SuperStack fork
Blockchains/agent-dispute @ 99ea3a7
Stars
0
Last push (original)
2026-06-10
Languages
Rust, TypeScript, CSS, HTML
Detected stack
Native Rustweb3.js
Categories
AI & Agents
Licence
none detected: code not quoted on Sol.College

Architecture

37 source files. By extension: .ts ×15, .rs ×13, .js ×7, .tsx ×2.

Top-level directorySource files
demo13
programs7
frontend7
arbiter5
sdk4
mock_constant_time_eq1

On-chain programs: programs/agent-dispute

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
CreateEscrownative instruction variantprograms/agent-dispute/src/instruction.rs:14

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
programs/agent-dispute/src/processor.rsPubkey, AccountInfo, invoke_signed, transfer
sdk/src/accounts.tsPublicKey, findProgramAddressSync, Connection, getAccountInfo
programs/agent-dispute/src/validation.rsPubkey, AccountInfo
sdk/src/instructions.tsPublicKey, SystemProgram
demo/finish_dispute.jsPublicKey, Keypair, sendAndConfirmTransaction, Transaction, findProgramAddressSync, Connection
programs/agent-dispute/src/state.rsPubkey, seeds
programs/agent-dispute/tests/integration.rsKeypair, Transaction, Pubkey
frontend/src/App.tsxTransaction, sendTransaction, useWallet, useConnection, WalletMultiButton, SystemProgram
demo/approve_payments.jsPublicKey, Keypair, Connection, sendAndConfirmTransaction, Transaction, findProgramAddressSync
demo/src/dispute_flow.tsKeypair, sendAndConfirmTransaction, Transaction, Connection, PublicKey, SystemProgram
demo/src/register_arbiter.tsKeypair, PublicKey, Connection, SystemProgram, Transaction, sendAndConfirmTransaction
demo/src/happy_path.tsKeypair, Connection, PublicKey, sendAndConfirmTransaction, Transaction, SystemProgram

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/agent-dispute/. 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
frontendnpm run dev
frontendnpm run build
sdknpm run build
sdknpm run test
.cargo build
.cargo test

What you could build from it