Skip to content

[DRAFT] SwapperProvider for Uniswap v3#122

Draft
jordanschalm wants to merge 2 commits intomainfrom
jord/uniswapv3-swapper-provider
Draft

[DRAFT] SwapperProvider for Uniswap v3#122
jordanschalm wants to merge 2 commits intomainfrom
jord/uniswapv3-swapper-provider

Conversation

@jordanschalm
Copy link
Member

AI-generated implementation sketch of SwapperProvider for Uniswap v3.

Add test suite for UniswapV3SwapperProvider contract covering:

  • Configuration validation (TokenConfig, RouteConfig preconditions)
  • Provider initialization with valid/invalid parameters
  • Swapper retrieval logic and key generation
  • ComponentInfo structure validation

Includes 14 test cases (9 passing) and supporting test scripts. Remaining tests require TokenA/TokenB bridge setup.

jordanschalm and others added 2 commits January 21, 2026 16:22
Add test suite for UniswapV3SwapperProvider contract covering:
- Configuration validation (TokenConfig, RouteConfig preconditions)
- Provider initialization with valid/invalid parameters
- Swapper retrieval logic and key generation
- ComponentInfo structure validation

Includes 14 test cases (9 passing) and supporting test scripts.
Remaining tests require TokenA/TokenB bridge setup.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…termediary token

Add optional `intermediaryToken` parameter to SwapperProvider.init that
auto-generates multi-hop routes for unconfigured token pairs through a
configurable intermediary (e.g., WFLOW). Also generates reverse routes
for explicit single-hop routes to ensure full bidirectional coverage.

Includes forked mainnet tests with pool discovery, unit tests for
intermediary behavior, and a Uniswap V3 swap transaction.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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