Rework multi hop swap#1
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes gear5labs#114