feat: Gateway wallet management & bot orchestration improvements#131
Merged
fengtality merged 12 commits intomainfrom Mar 29, 2026
Merged
feat: Gateway wallet management & bot orchestration improvements#131fengtality merged 12 commits intomainfrom
fengtality merged 12 commits intomainfrom
Conversation
Split the single api_route handler into separate handlers for each HTTP method (GET, POST, PUT, DELETE, PATCH) with explicit operation_ids. This ensures unique operation IDs in the OpenAPI schema. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Gateway templates use placeholder addresses like '<ethereum-wallet-address>' which cause errors when the API tries to fetch balances. Now detects and skips these placeholder patterns. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Issue #129: Restore deploy-v2-script endpoint - Add V2ScriptDeployment model for script-based bot deployment - Add POST /bot-orchestration/deploy-v2-script endpoint - Track bot runs in database for script deployments Issue #124: Add set-default wallet functionality - Add set_default parameter to POST /accounts/gateway/add-wallet (default: true) - Add POST /gateway/wallets/set-default endpoint to change default wallet - Add set_default_wallet method to GatewayClient Also: - Enable CLMM add/remove liquidity endpoints (uncommented) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Moved from /gateway/wallets/* to /accounts/gateway/wallet/*: - POST /accounts/gateway/wallet/create - POST /accounts/gateway/wallet/show-private-key - POST /accounts/gateway/wallet/send - POST /accounts/gateway/wallet/set-default This consolidates all account/wallet management under the Accounts router. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace debug print statements with proper logging. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Consistent endpoint naming for all wallet operations under /accounts/gateway/wallet/*. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…/{chain}/{address}
Consistent endpoint naming for all wallet operations.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Logical grouping: add -> set-default -> delete -> create -> show-private-key -> send Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reverts the endpoint moves from PR #131 to save for a different PR: - POST /gateway/wallets/create (stays in gateway.py) - POST /gateway/wallets/show-private-key (stays in gateway.py) - POST /gateway/wallets/send (stays in gateway.py) - GET /accounts/gateway/wallets (back to accounts.py) - POST /accounts/gateway/add-wallet (back to accounts.py) - DELETE /accounts/gateway/{chain}/{address} (back to accounts.py) - POST /accounts/gateway/wallet/set-default (new, in accounts.py) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reverted unnecessary function name changes: - create_gateway_wallet -> create_wallet - show_gateway_wallet_private_key -> show_private_key - send_gateway_wallet_transaction -> send_transaction Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Commit 99aeea7
|
rapcmia
approved these changes
Mar 27, 2026
Contributor
Author
@rapcmia I will improve Gateway's delete wallet endpoint to clear the defaultWallet. That will be cleaner. |
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.

Summary
POST /bot-orchestration/deploy-v2-scriptendpoint withV2ScriptDeploymentmodelset_defaultparameter to wallet endpoints and newset-defaultendpointAPI Changes
New Endpoints
POST /bot-orchestration/deploy-v2-script- Deploy a V2 script botPOST /accounts/gateway/wallet/set-default- Set default wallet for a chainModified Models
GatewayWalletCredential: Addedset_default(default: true), removed unusednetworkfieldV2ScriptDeployment: New model for script deploymentTest Plan for QA
Prerequisites
Wallet Endpoint Tests
List wallets
Create new wallet
Expected: Returns
{"address": "0x...", "chain": "ethereum"}Add existing wallet
Expected: Returns
{"address": "0x..."}Set default wallet
Expected: Returns
{"success": true, "message": "Set ... as default wallet for ethereum", ...}Show private key
Expected: Returns
{"address": "...", "chain": "ethereum", "privateKey": "0x..."}Delete wallet
curl -u admin:admin -X DELETE "http://localhost:8000/accounts/gateway/ethereum/<address>"Expected: Returns
{"success": true, "message": "Successfully removed ethereum wallet"}Bot Orchestration Test
curl -u admin:admin http://localhost:8000/openapi.json | grep deploy-v2-scriptGateway Proxy Test
Placeholder Wallet Test
defaultWallet: '<ethereum-wallet-address>'(template default)🤖 Generated with Claude Code
Closes #129
Closes #124