Skip to content

๐Ÿง  Simplify the entire Predictoor workflow โ€” from setup to claiming rewards. Next.js + shadcn UI for creating, deploying, and monitoring Predictoor & Trader bots without reading Markdown docs. Built for the Ocean Protocol community ๐ŸŒŠ

License

Notifications You must be signed in to change notification settings

YundoRocket/run-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŠ Predictoor Bot Runner UI โ€” Ocean Protocol Community Tool

Version 1.4 โ€” Complete workflow for Predictoor & Trader bots Setup โ†’ Deploy โ†’ Run โ†’ Monitor โ†’ Claim


๐Ÿ’ก Overview

Predictoor Bot Runner UI is a community-built, open-source web interface that makes it easy for anyone โ€” even non-technical users โ€” to run Predictoor and Trader bots on the Ocean Protocol network.

Instead of following long Markdown tutorials, you can now:

  • Configure your bot visually ๐Ÿงฉ
  • Generate valid ppss.yaml and docker-compose.yml files ๐Ÿงพ
  • Copy-paste the exact CLI/Docker commands ๐Ÿš€
  • Deploy, monitor, and claim rewards โ€” all with clear step-by-step guidance.

Built with Next.js 15, TypeScript, TailwindCSS, and shadcn/ui. Everything runs 100% client-side, and no private key is ever handled by the app.


๐ŸŽฏ Features

โœ… Version 1.4 โ€” Complete Workflow

Category Description
๐Ÿงฉ Configuration Create & validate ppss.yaml for Predictoor & Trader bots (Zod validation + presets)
๐Ÿ‹ Docker Support Generate docker-compose.yml with correct volume mapping
๐Ÿง  Network Info Testnet/Mainnet toggle with RPC & contract data
๐Ÿ”ง Deploy Manager Full guide for deploying the Pred Submitter Manager contract
๐Ÿ’ฐ Claim Rewards Step-by-step payout instructions (mainnet only)
๐Ÿงฎ Simulation Why & how to run pdr sim and visualize results
๐Ÿ“Š Monitoring Links & docs for pdr sim_plots and dashboards
๐ŸŒฟ ROSE Guide Everything you need for Sapphire gas & faucets
๐ŸŒ Data Farming (DF) How to join the weekly reward program
โš™๏ธ Advanced Mode Extended YAML editor for aimodel_ss, sim_ss, trader_ss, etc.

๐Ÿงฐ Tech Stack

  • Next.js 15 (App Router)
  • TypeScript
  • Tailwind CSS + shadcn/ui
  • Zod (validation)
  • YAML (serialization)
  • Lucide-react (icons)

๐Ÿš€ Getting Started

1๏ธโƒฃ Install dependencies

npm install
npm run dev

Then open http://localhost:3000.

2๏ธโƒฃ Generate your configuration

  • Go to Predictoor โ†’ Create
  • Choose asset, timeframe, stake, and network
  • Validate โ†’ Download ppss.yaml
  • (Optional) Download docker-compose.yml

3๏ธโƒฃ Deploy your Pred Submitter Manager

  • Page: Predictoor โ†’ Deploy
  • Run the shown command:
pdr deploy_pred_submitter_mgr my_ppss.yaml sapphire-testnet
  • Copy the contract address and paste it in the field โ†’ it will be inserted into your YAML automatically.

4๏ธโƒฃ Run the bot

CLI:

pdr predictoor my_ppss.yaml sapphire-testnet

Or Docker:

docker run --rm -it \
  -e PRIVATE_KEY=$PRIVATE_KEY \
  -v $(pwd):/work \
  ghcr.io/oceanprotocol/pdr-backend:latest \
  pdr predictoor /work/ppss.yaml sapphire-testnet

5๏ธโƒฃ Claim your rewards

  • Go to Claim page โ†’ follow payout steps.
  • Requires your bot to have earned and submitted valid predictions on mainnet.

๐Ÿ“Š Full Workflow

Step Description
1๏ธโƒฃ Setup Install pdr-backend, get tokens (ROSE & OCEAN)
2๏ธโƒฃ Simulate Run pdr sim my_ppss.yaml and pdr sim_plots
3๏ธโƒฃ Deploy pdr deploy_pred_submitter_mgr then update YAML
4๏ธโƒฃ Run pdr predictoor ... or Docker equivalent
5๏ธโƒฃ Monitor Dashboard / subgraph / logs
6๏ธโƒฃ Claim Retrieve rewards from smart contracts

๐Ÿงญ Folder Structure

src/
  app/
    about/
    claim/
    df/
    monitor/
    predictoor/
      create/
      deploy/
      run/
      sim/
    trader/
      create/
      run/
    workflow/
  components/
    ui/
    CopyButton.tsx
    FormCard.tsx
    YamlPreview.tsx
    Toaster.tsx
    ValidationAlert.tsx
  lib/
    validators.ts
    presets.ts
    dockerCompose.ts
    yaml.ts

๐Ÿง‘โ€๐Ÿ’ป Developer Notes

  • @/ paths map to /src (see tsconfig.json).
  • Tailwind scans ./src/**/*.{ts,tsx}.
  • No backend or serverless function โ€” all static, client-side only.
  • ppss.yaml and docker-compose.yml generation handled fully in-browser.

๐Ÿ”’ Security Note

  • This app never handles private keys.
  • Always export them manually in your console before running commands:
export PRIVATE_KEY=0xYOUR_KEY
  • Do not store your key in YAML or Compose files.

๐ŸŒ Related Docs


๐Ÿค Contributing

Contributions, feedback, and pull requests are welcome! If you'd like to help extend the app (monitoring, dashboard integration, multi-bot managerโ€ฆ), open an issue or PR.


โš–๏ธ License

MIT License

About

๐Ÿง  Simplify the entire Predictoor workflow โ€” from setup to claiming rewards. Next.js + shadcn UI for creating, deploying, and monitoring Predictoor & Trader bots without reading Markdown docs. Built for the Ocean Protocol community ๐ŸŒŠ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages