https://github.com/vivekascoder/pmamm-client
create bet's that auto settles using AI agents
https://github.com/vivekascoder/pmamm-client
agents ai defi langgraph solana
Last synced: about 1 month ago
JSON representation
create bet's that auto settles using AI agents
- Host: GitHub
- URL: https://github.com/vivekascoder/pmamm-client
- Owner: vivekascoder
- License: mit
- Created: 2025-03-15T18:56:37.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T19:29:19.000Z (about 2 months ago)
- Last Synced: 2025-03-17T19:42:42.742Z (about 2 months ago)
- Topics: agents, ai, defi, langgraph, solana
- Language: TypeScript
- Homepage: https://clairvoy.vercel.app/
- Size: 2.61 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clairvoy - a prediction market resolved by AI
Clairvoy is an AI-powered prediction market live on the Sonic Frontier V1 testnet. It operates on a fixed product market maker model, where $x * y = k$, with $x$ and $y$ representing the liquidity of different shares, and $k$ remaining constant.
Here's an abstracted program architecture

Anyone can create a new market with a prompt and initialise it with a minimum of `1_000_000` lamports. This creates a new market with the chosen expiry that would be resolved as and when expiry is reached.
The resolution is automatic and managed by an agent swarm. The following is the basic agent swarm architecture we use to resolve the market. Currently we only support politics and prices.

### How is market resolved?
The server runs an event listener for the anchor events which catches the emitted events and runs a cron job to settle them using the agent swarm. The market prompt is passed as a state to the graph agent which using the context of the current information, resolves the market as Yes or No.
## Getting Started
### Prerequisites
- Node v18.18.0 or higher
- Rust v1.77.2 or higher
- Anchor CLI 0.30.1 or higher
- Solana CLI 1.18.17 or higher### Installation
#### Clone the repo
```shell
git clone
cd
```#### Install Dependencies
```shell
pnpm install
```#### Start the web app
```
pnpm run dev
```