Skip to content

Train V2#47

Draft
arentant wants to merge 274 commits intodevfrom
main-v2
Draft

Train V2#47
arentant wants to merge 274 commits intodevfrom
main-v2

Conversation

@arentant
Copy link
Contributor

@arentant arentant commented Feb 5, 2026

No description provided.

@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trainapp Ready Ready Preview Mar 13, 2026 2:38pm
trainapp-monorepo Ready Ready Preview, Comment Mar 13, 2026 2:38pm

Request Review

yasha-meursault and others added 25 commits February 9, 2026 15:49
…ork model and related components for improved network handling

- Updated `package.json` to include `@number-flow/react` as a new dependency and modified script commands to specify port 6969.
- Updated `yarn.lock` to reflect the addition of `@number-flow/react` and its dependencies.
- Refactored `Network` model to enhance type definitions and added new types for better structure.
- Updated various components to utilize the new `slug` property for network identification instead of `name`, improving consistency across the application.
- Adjusted transaction explorer links and other references to align with the new network structure.
- Removed the FeeProvider context and associated logic from the application.
- Updated components to directly use the new `useQuoteData` hook for fetching fee quotes.
- Adjusted the `SwapForm`, `FeeDetailsComponent`, and related components to accommodate the new fee handling approach.
- Enhanced the `DetailedEstimates` component to accept quote data directly, improving data flow and reducing unnecessary context dependencies.
- Cleaned up imports and ensured all components are aligned with the new structure.
…ay logic

- Replaced the deprecated FeeDetailsComponent with a new QuoteDetails component that utilizes an accordion for better UI/UX.
- Integrated detailed fee calculations and display, including gas fees in USD and formatted fee amounts.
- Updated the SwapForm to use the new QuoteDetails component, ensuring seamless integration with existing functionality.
- Cleaned up imports and improved overall code structure for maintainability.
…ollapsableHeader components to utilize resolveTokenLogoUrl utility for improved consistency and maintainability.
Bring  route picker and fee fetching mechanism from layerswap, resolves FRONT-876 FRONT-879
Bring Address class to TRAIN, resolves FRONT-877
…s, and Details components to utilize NetworkSettings for improved maintainability and consistency.
Improve login logic, improve ui and handle the custom chain flow in login
…improve structure. Introduce TokenBalanceError type for better error management, update BalanceProvider for improved balance fetching, and streamline WalletProvider with new SelectAccountProps. Remove unused CurrencyFormField and NetworkFormField components for cleaner codebase.
arentant and others added 3 commits March 10, 2026 18:12
- Removed unnecessary type imports and streamlined the registration of the Solana HTLC client by passing the config object directly.
- Updated the wallet signing configuration to use a more straightforward type definition.
- Adjusted tests to reflect changes in wallet handling, ensuring error messages are correctly validated.

These changes enhance code clarity and maintainability in the Solana implementation.
Enforce type safety in HTLC and wallet sign registries
…is redeemed

- Updated the refreshInterval logic to conditionally stop polling based on the lock status.
- Integrated LockStatus from the SDK to improve type safety and clarity in the polling mechanism.
yasha-meursault and others added 3 commits March 10, 2026 21:28
hydration sync so that clearing activeHashlock on swap completion
is not overridden by a stale Next.js query param.
Fix:  prevent stale hashlock from reopening finished swap modal
- Changed nativeTokenAddress and contractAddress to use a specific address for Solana Devnet.
- Updated the KnownInternalNames class to reflect the new identifier for Solana Devnet, enhancing clarity and consistency in the codebase.
yasha-meursault and others added 5 commits March 11, 2026 18:22
- Split read-only clients (sync useMemo via createHTLCClient) from write
  clients (async useEffect requiring wallet) in atomicContext; polling
  hooks now use read-only clients so they never carry a stale client
  from a previous swap/chain
- Fix Solana recoverSwap: use Anchor EventParser for correct program
  attribution; fix all field accesses to snake_case (Anchor 0.30 preserves
  field names as-is); add null-guard in getUserLockDetails for non-Base58
  contract addresses
- Wrap getWalletClient in silent try-catch in useHTLCWriteClient to handle
  wagmi reconnection race condition (connector not ready yet)
- Add Starknet Sepolia to NetworkSettings.KnownSettings with explorer URLs
- Add mock quote for Starknet source chains in useFee.ts
- RecoverSwap: use all networks (drop hardcoded filter), extract
  isValidTxHash helper, increase dropdown height, add styled-scroll

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
yasha-meursault and others added 4 commits March 12, 2026 21:49
Record<caip2Id, IHTLCClient> map. Each network's client is managed
by its own effect, resolving staleness per-network and naturally
sharing one client when source and destination are on the same chain.
Also removes the resolveClient wrapper indirection and adds the
isProvidersReady guard to prevent creating write clients before
wagmi reconnection completes
Implement recoverSwap functions, resolves FRONT-900
…ackend is unavailable; commented out API client calls and related logic for improved testing.
…g, getters, and atomic operations, to streamline the codebase.
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