Skip to content

Conversation

@zeotc
Copy link

@zeotc zeotc commented May 2, 2025

Description:
This PR introduces a comprehensive integration of the Dark Forest Underground OTC (Over-the-Counter) trading system into the ZerePy agent framework, with a focus on Sonic testnet and ERC20 gem token trading. Key features and changes include:

Key Features
Sonic/OTC Agent (zeotc1):
New agent configuration (agents/zeotc1.json) for a chaotic, Gen-Z, female crypto degen persona.
Automated tasks for Sonic balance checks, gem token management, OTC ask creation/filling, and social activity (Twitter/X).
Customizable trading logic and tweet style.

OTC Contract Actions:
Actions for making, filling, and fetching OTC asks, including auto-cleanup of expired asks.
Support for ERC20 gem tokens and rarity-based pricing.
All actions are modular and can be scheduled as agent tasks.

Conversational Logging:
All Sonic/OTC actions are logged in a conversational, chat-like format and sent to a backend API (https://server.zeotc.xyz/api/message/create).
Logging is handled via a decorator (log_sonic_action) for easy extensibility.

Productionization:
Docker-ready setup with persistent storage, health checks, and automatic agent startup.
Startup script automates agent loading and execution on container/service boot.

Documentation:
Added a comprehensive section to README.md detailing the Sonic/OTC agent setup, production deployment, conversational logging, and customization instructions.

How to Use
See the new section in README.md for step-by-step setup, configuration, and deployment instructions.
Customize agent behavior, trading logic, and social persona via agents/zeotc1.json and the relevant action files.

Troubleshooting
Ensure .env contains the required API credentials for backend logging.
Check Docker/container logs for errors if the agent or logging is not functioning as expected.

Files Changed:
README.md (major new section)
agents/zeotc1.json (agent config)
src/actions/sonic_actions.py, src/actions/zeotc_actions.py (OTC actions)
src/helpers/init.py (logging decorator)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant