MorpheusPerpetual Prediction Markets
Docs

Run it yourself

Local chains in one command, testnet deployment, the simulator, and deploying this app to Vercel.

Demo mode (no setup)

The Demo chain runs the exact protocol math in your browser with a simulated oracle (a print every 6 seconds), a simulated keeper that processes each batch, and paper USDC. Your orders go through the real queue, so they fill at the next print just as on-chain. It's what you see on a fresh Vercel deploy with no chains configured.

Local chains

make localnet     # anvil + solana-test-validator, deploy, seed markets, write web config
make keeper       # oracle + keeper: print, process the batch, then liquidate, for every local market
make web          # Next.js on http://localhost:3000

Turn on the burner wallet in the Connect menu and press "Get test USDC", or use MetaMask/Phantom pointed at localhost.

Testnets

# EVM (Sepolia / Base Sepolia / Arbitrum Sepolia)
make testnet-evm RPC_URL=https://sepolia.base.org ACCOUNT=deployer
# Solana devnet
make testnet-sol

Without a running keeper, orders on a real chain wait for the next print; keep one running for every market you deploy.

Deploy the app to Vercel

  1. Import the repo in Vercel and set Root Directory to web.
  2. Optional env: NEXT_PUBLIC_DEPLOYMENTS (JSON with your chains), NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID, FAUCET_SVM_SECRET (devnet mint authority, for the Solana faucet).
  3. Deploy. Without chain config the app runs in simulator mode.