Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonicCoffAI

Sonic Coff AI is a site that allows inference of news articles and creates a loop to trade based on the latest trend spotted by user. We used Zerepy and Allora alongwith Sonic to trade WETH to USDC and vice versa depending on news information.

Currently works with both openai and ollama models.

The frontend is used for non developers to quickly setup and get it running.

!! Note this repo is meant to run on a local machine and not for server - client purposes.

Installation

Steps

  1. Fork this repo into your laptop
  2. Install python 3.11 and poetry
  3. cd ZerePy
  4. Run Backend - poetry run python main.py --server
  5. Add .env for frontend
  6. Install nodejs latest version
  7. cd sc-app
  8. Install dependencies npm install
  9. Run Frontend - npm run dev
  10. Goto http://localhost:3000/ Then you can start using the app.

Sample swaps on sonic scan - https://sonicscan.org/tx/0x1cad17b9fe2a43954d8bb48baf73fa71496072939ece5bc8d8e4c2860b32ea83 https://sonicscan.org/address/0x35ce7fab34a5960ff273a2446952f48d99a0b3fe

Postman examples

Refer the following file - coffai.postman_collection.json

Additional API for creating wallet

curl -X POST "http://localhost:8000/agent/setenv"
-H "Content-Type: application/json"
-d '{ "OPENAI_API_KEY": "sk-" }'

About

A tg eliza bot for the sonic DEFAI hackathon

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages