Skip to content

Test 56 directed Ethereum, Solana, and WIRE swap routes - #67

Draft
joshglogau wants to merge 8 commits into
masterfrom
feature/flow-swap-route-matrix
Draft

Test 56 directed Ethereum, Solana, and WIRE swap routes#67
joshglogau wants to merge 8 commits into
masterfrom
feature/flow-swap-route-matrix

Conversation

@joshglogau

@joshglogau joshglogau commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Adds flow-swap-route-matrix, a serial conformance FlowScenario for every currently supported directed public-token route across Ethereum, Solana, and WIRE.

Coverage

The positive matrix contains 56 exact routes:

  • Ethereum → Solana: 12
  • Solana → Ethereum: 12
  • Ethereum → Ethereum: 6 distinct-token directions
  • Solana → Solana: 12 distinct-token directions
  • Ethereum/Solana → WIRE: 7
  • WIRE → Ethereum/Solana: 7

Each route reports authorization, request submission, source custody where applicable, UWREQ creation, underwriting confirmation, expected lock state, and destination payout as separate Steps.

LIQETH is outside this positive conformance catalog while its source-custody policy remains unresolved. This PR does not add a separate LIQETH policy probe or claim support for that route.

Execution model

Routes run serially because they share Ethereum, Solana, and WIRE identities and would otherwise race nonces and balance baselines. The flow uses standard cluster-tool fail-fast behavior and stops at the first failed route.

The package exposes one composition boundary, planSwapRouteMatrix; family, direction, and individual-route assembly are implementation details. This is long-running conformance coverage, not a stress test. Private-reserve behavior remains in flow-swap-private-reserves.

Scope

The PR adds the route-matrix package and its repository registration/documentation. It does not change shared cluster-tool orchestration, introduce a failure-mode enum, add nonce-recovery behavior, modify collateral flows, or alter existing FlowScenarios.

Verification

  • GitHub Build and test: passed on the current head;
  • GitHub Jest results: passed on the current head;
  • standalone package TypeScript compilation: passed;
  • targeted ESLint: passed; and
  • git diff --check: passed.

This PR intentionally remains draft while the full live matrix is exercised and reviewed.

@siliconswampio
siliconswampio force-pushed the feature/flow-swap-route-matrix branch from 8a465bc to 628d46c Compare August 17, 2026 15:11
@joshglogau joshglogau changed the title Test: add serial native ETH, SOL, and WIRE swap route matrix FlowScenario Test 56 directed Ethereum, Solana, and WIRE swap routes Aug 18, 2026
@joshglogau

Copy link
Copy Markdown
Author

Applied the same orchestration/style cleanup in 45b3b06.

The matrix no longer changes shared ClusterBuildPhaseGroup behavior or introduces a failure-mode enum/environment switch. It uses the existing fail-fast model and one public matrix planner.

I also removed the unrelated expansion that had accumulated around the matrix: LIQETH funding/rejection probing, nonce-recovery plumbing, LIQ collateral handling, bigint migrations across existing flows, and their associated tests. Those concerns do not belong in a supported-route conformance PR. LIQETH remains explicitly outside the advertised positive route catalog.

The resulting PR is focused on the 56 supported directed routes, reuses the existing cluster identity/funding/swap/underwriter tools, and is 862 lines smaller in this cleanup commit. Focused route-matrix source typecheck, ESLint, and diff checks pass.

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