Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/starlingvibes/memecoin-prediction-market

A prediction market for Solana meme coin prices using the binary option models. Users are able to predict if a meme coin price will end higher or lower within a specified timeframe.
https://github.com/starlingvibes/memecoin-prediction-market

Last synced: about 5 hours ago
JSON representation

A prediction market for Solana meme coin prices using the binary option models. Users are able to predict if a meme coin price will end higher or lower within a specified timeframe.

Awesome Lists containing this project

README

        

# Memecoin Prediction Market
Using binary option models, create a prediction market for Solana meme coin prices. Users should be able to predict if a meme coin price will end higher or lower within a specified timeframe.

Additionally, develop a Blink for this program — this is optional.

- Develop a prediction market using binary options for Solana meme coins.

- Allow users to enter a meme coin and make price predictions.

- Optional: Create a blink to demonstrate the program.

## Requirements


  • Rust installation: here

  • Solana installation: here

  • Yarn installation: here

  • Anchor installation: here

  • Git installation: here

## Getting Started

### Cloning project

```bash
git clone https://github.com/starlingvibes/memecoin-prediction-market.git
code memecoin-prediction-market
```
### Creating local wallet

```bash
solana-keygen new
```

Verify keypair

```bash
solana-keygen pubkey ~/.config/solana/id.json
```

Output

```bash
CBEPKK5C5CYDbCDhsk1TaFLUXVNnw7QnXTc2ueqTgXvy
```

```bash
solana-keygen verify ~/.config/solana/id.json
```

Anchor.toml

```
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"
```

### Building

```bash
yarn
```

```bash
anchor build
anchor keys list
```
Take the output of program id. Copy and paste it into Anchor.toml ```memecoin-prediction-market = "CBEPKK5C5CYDbCDhsk1TaFLUXVNnw7QnXTc2ueqTgXvy"``` and ```declare_id!("CBEPKK5C5CYDbCDhsk1TaFLUXVNnw7QnXTc2ueqTgXvy");``` here.

Build again

```bash
anchor build
```

### Test

```bash
anchor test
```