Skip to content

Trade tool integration#52

Open
jacobhorne-jth wants to merge 6 commits intomainfrom
tradeTool-integration
Open

Trade tool integration#52
jacobhorne-jth wants to merge 6 commits intomainfrom
tradeTool-integration

Conversation

@jacobhorne-jth
Copy link
Collaborator

  • replaced simulated MakeTradeTool with real on-chain TradeTool executing Uniswap V3 swaps on Tenderly Virtual TestNet
  • added automated wallet lifecycle: generation, Fernet encryption, PostgreSQL storage, and Tenderly funding (10k USDC + 1 ETH) on agent creation
  • refactored executor and ts_swap_wrapper to load wallet credentials from the database with in-memory caching
  • tested wallet generation, encryption round trip, address derivation, buy/sell swaps and tenderly funding

rounak-Rao and others added 2 commits February 7, 2026 03:41
…Agents now automatically receive encrypted, funded wallets (10k USDC + 1 ETH) on creation via Tenderly API. Wallet credentials are encrypted and stored in PostgreSQL, with TradeTool loading credentials from the database using performance caching. Created wallet_utils.py for generation/encryption and tenderly.py for funding automation. Modified agent.py, database_tool.py, and trade_tool.py to support database-backed credential management.
Copy link
Collaborator

@SumanthPal SumanthPal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the merge conflicts and resolve changes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge conflict for this

raise ValueError(f"Agent not found: {agent_uuid}")

# Extract wallet credentials from stats
wallet_address = agent.stats.get("wallet_address")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good approach storing data in the agent_state json instead of changing the schema

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.

3 participants