Skip to content

Rework multi hop swap#1

Merged
Jessepriase merged 4 commits into
masterfrom
rework-multi-hop-swap
Jun 30, 2026
Merged

Rework multi hop swap#1
Jessepriase merged 4 commits into
masterfrom
rework-multi-hop-swap

Conversation

@Jessepriase

Copy link
Copy Markdown
Owner

closes gear5labs#114

Jess added 4 commits June 1, 2026 11:53
- Add proper PoolTrait interface with contractclient for downstream integration
- Update Hop struct with token_in and token_out for clear routing
- Rewrite swap function to use realistic token transfers and pool calls
- Enforce slippage invariants
- Update tests with MockPool contract
- Add test_snapshots for new tests
- Update .gitignore to include Rust's target directory
- Add AgentClient to DiscordAdapter and TelegramAdapter
- Update /!help command to support natural language queries
- Use formatAiHelpMessage to format AI responses
- Fallback to keyword search if AI query fails
- Add formatAiHelpMessage to helpProvider
- Add public/index.html with interactive settings page
- Update src/Gateway/api.ts to serve static files at /settings
- Update TelegramAdapter to add /settings command with WebApp button
- Add !swap command to Discord adapter (DM only)
- Add /swap command to Telegram adapter (DM only)
- Use AgentClient to interact with backend swap tool
@Jessepriase Jessepriase merged commit 4f07f8f into master Jun 30, 2026
6 checks passed
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.

[Bot] Add AI-assisted /help command

1 participant