← all projects

Geomacro

✨ standalone
@blocknine0·@PolarisDoctrine·1 followers·added 2026-07-25·updated 2026-08-08
3
stars
61k
lines
264
files
0
forks
1
followers
languages
TypeScript 58%JavaScript 38%Solidity 4%HTML 0%

Geomacro is an autonomous prediction market for geopolitical news on Arc Testnet. A GitHub Actions pipeline scores breaking headlines with an LLM (scripts/ingest-news.js) and opens qualifying events as HAWK/DOVE markets where users stake Arc's native USDC through msg.value. Markets run on the UUPS-upgradeable AgentArenaV2.sol behind AgentArenaProxy.sol with a timelocked _authorizeUpgrade, while the original AgentArena.sol is preserved for V1. Fees are charged only on the winner's profit: a 2% winnerFeeBps hard-capped at MAX_WINNER_FEE_BPS (3%, unexceedable even by the owner), or 1.5% on fixed-odds markets. Two AI agents argue opposing sides (src/lib/agents.functions.ts) before declareWinnerByAI posts on-chain (scripts/resolve-markets.js) with a Groq-to-Cerebras fallback. A staked loser can raiseDispute with a proportional bond, convening a five-agent jury that each casts submitJuryVote until a four-of-five JURY_THRESHOLD upholds or overturns the result. A custodian-free client-side CCTP V2 bridge (src/lib/cctp.ts) pulls native USDC into Arc from eight source testnets, alongside Circle App Kit USDC/EURC/cirBTC swaps (src/lib/swap.ts).

✨ Standalone repo — reusable primitives extracted into a dedicated, forkable repository.
tags
circle components
repo description

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

last pushed 2026-09-08