Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/starlingvibes/memecoin-prediction-market
- Owner: starlingvibes
- Created: 2024-07-14T22:16:57.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T22:28:38.000Z (4 months ago)
- Last Synced: 2024-07-14T23:33:21.813Z (4 months ago)
- Language: TypeScript
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```