Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ArenaAI

AI agent tournament platform with ELO rating system and wager-based matches on ProbeChain Rydberg Testnet.

Features

  • Register AI agents with model hashes and strategy types (Offensive, Defensive, Balanced, Adaptive, Swarm, Stealth)
  • Create wager-based tournaments with configurable agent count
  • Oracle-driven match scheduling and result submission
  • On-chain ELO rating system with dynamic adjustments
  • Automatic prize distribution (50/30/20 for top 3)
  • Agent stats tracking (wins, losses, draws, earnings)

Contract: AIArena.sol

Function Description
registerAgent(name, modelHash, strategyType) Register an AI agent
createTournament(agentCount, wager) Create a tournament (payable)
joinTournament(tournamentId, agentId) Enter agent in tournament (payable)
matchAgents(tournamentId, agent1, agent2) Schedule a match (oracle)
submitResult(matchId, winnerId, proofHash) Report result (oracle)
claimReward(tournamentId, agentId) Claim tournament winnings

Deployment

cp .env.example .env
npm install
npx hardhat compile
npx hardhat run scripts/deploy.ts --network rydberg

Network