← all projects

Geomacro

@blocknine0·@PolarisDoctrine·added 2026-07-25
2
stars
15k
lines
117
files
0
forks
0
followers
languages
TypeScript 73%JavaScript 23%Solidity 4%

Geomacro is an autonomous prediction market for geopolitical news on Arc Testnet. A GitHub Actions pipeline in scripts/ingest-news.js scores breaking headlines with an LLM and persists them to Supabase, scripts/create-markets.js opens qualifying events as HAWK/DOVE markets on the AgentArena.sol contract, and users stake Arc's native USDC directly through msg.value. Two AI agents argue opposite sides of every market in src/lib/agents.functions.ts before a judge verdict, and resolution posts on-chain through declareWinnerByAI in scripts/resolve-markets.js with a Groq-to-Cerebras fallback, followed by a timed 24-hour window before finalizeMarket closes claims. The ops layer is built for unattended running: a five-endpoint rotating RPC manager with Multicall3 batching, self-looping GitHub Actions that sleep in 15-minute cycles inside an hourly cron, and a Telegram anomaly monitor. A client-side CCTP V2 bridge in src/lib/cctp.ts pulls native USDC into Arc from Sepolia, Base Sepolia, and Fuji with no custodian, and a Foundry suite in test/AgentArena.t.sol covers staking, settlement, and adversarial paths.

events
tags
repo description

Autonomous geopolitical intelligence engine transforming global events into machine-readable risk signals, natively settled in USDC on Arc.

last pushed 2026-07-24