Skip to content

Train V2#47

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

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

Conversation

@arentant
Copy link
Contributor

@arentant arentant commented Feb 5, 2026

No description provided.

arentant and others added 19 commits December 23, 2025 19:35
- Implement separate hook atomic contract interactions for every provider
- update tailwind to v4
- Adjust padding in globalFooter, themeWrapper, and various components for consistent spacing.
- Introduce UserStatusHeader and UserStatusMenu components for user authentication status display.
- Update Navbar and HeaderWithMenu to include UserStatus for better user experience.
- Enhance LayerswapMenu and Modal components with improved styling and functionality.
- Implement Zustand store for managing secret derivation state, improving login handling.
- Refactor UserStatus component to utilize Zustand store for retrieving passkey credential ID.
- Update secret derivation context to store and manage passkey credential ID during login.
- Modify passkey service to return both derived key and credential ID, improving authentication flow.
- Introduce utility functions for managing passkey credential ID in the store.
- Introduce new passkey choice step in the login modal for improved user experience.
- Implement functionality for using existing passkeys and creating new ones.
- Update secret derivation context to support new passkey login methods.
- Refactor submit button for consistent styling across components.
- Simplify passkey option click handler in the LoginModal component.
- Adjust minimum height for WizardItem component to enhance layout consistency.
- Replace inline rendering of user status with a new LoginDataCard component for better code organization and reusability.
- Update UserStatusContent to utilize the new LoginDataCard, enhancing the display of login method and wallet information.
- Simplify the MenuList component by removing redundant dynamic import of UserStatusMenu.
- Improve handling of passkey display ID for a more consistent user experience.
- Adjust padding in the Leaflet component of the Modal to improve layout.
- Update padding in the SwapForm and related components to enhance visual consistency.
- Modify padding in the Footer and Widget components for better alignment and spacing.
- Add space between form elements in the SwapForm component to improve visual organization.
- Ensure pointer events are managed correctly during form submission for better user interaction.
- Delete the LoginModal component, which handled user login via passkeys and wallets, to streamline the authentication process.
- Remove the PasskeyChoice component, responsible for selecting between existing and new passkeys, as part of the refactor.
Update Modals in TRAIN, resolves FRONT-878
…Modal error handling

- Add optional props `showHeader` and `showPasskeyWarning` to UserStatusContent for improved customization.
- Refactor UserStatusDrawer to utilize UserStatusContent, disabling header and passkey warning for a cleaner mobile view.
- Introduce a utility function in LoginModal for consistent error message handling during login failures.
Implement passkey/wallet login
@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 6, 2026 10:30am
trainapp-monorepo Ready Ready Preview, Comment Mar 6, 2026 10:30am

Request Review

yasha-meursault and others added 8 commits February 5, 2026 20:01
- Add `pr-review-report.md` and `tsconfig.tsbuildinfo` to .gitignore for better file management.
- Extend `CommitmentParams`, `RefundParams`, and `ClaimParams` in the PHTLC model to include an optional `index` property for hashlock-based contracts.
- Introduce a new `LockStatus` enum to represent the status of locks in the PHTLC model.
- Update various components and hooks to utilize the new `LockStatus` and modified PHTLC types for improved functionality and clarity.
Small fix in header height for stable layout in app and menu
- Included logoUrl for AztecDevnet in the network settings to enhance visual representation.
- This addition improves the integration of the Aztec network within the application.
- Added source and destination solver addresses to the swap form for improved transaction handling.
- Removed unused destination details from the atomic state to streamline data management.
- Updated various components and hooks to accommodate the new solver address parameters, enhancing the overall functionality and clarity of the HTLC process.
- Increased the timeout duration from 20 seconds to 2 minutes for manual claim requirements in the HTLC process.
- This change aims to provide users with a more flexible timeframe for manual claims, enhancing the overall user experience.
- Added a comprehensive migration guide from @azguardwallet/client to @aztec/wallet-sdk, detailing changes in package dependencies, client initialization, connection processes, event handling, and transaction execution.
- Introduced new utility functions for extracting Aztec addresses from various account shapes to streamline wallet interactions.
- Enhanced the AztecWalletProvider component to support the new SDK features, including improved connection handling and account management.
- Updated the wallet-sdk documentation to reflect the latest integration patterns and best practices for dApp developers.
arentant added 2 commits March 5, 2026 12:27
…ality

- Added migration guide for transitioning from @azguardwallet/client to @aztec/wallet-sdk, detailing changes in package dependencies, client initialization, and event handling.
- Updated AtomicProvider to support new wallet capabilities and improved connection handling.
- Enhanced swap functionality by including source and destination solver addresses in the swap data structure.
- Refactored components to streamline state management and improve user experience during atomic swaps.

These changes improve the overall integration of the Aztec Wallet SDK and enhance the atomic swap process, ensuring better performance and user interaction.
- Replaced references to the deprecated @train-protocol/sdk-aztec and @train-protocol/sdk-evm with @train-protocol/aztec and @train-protocol/evm across the application.
- Updated pnpm-lock.yaml to reflect the new package links and dependencies.
- Modified various components and hooks to accommodate the new userLock and redeemSolver methods, enhancing the HTLC functionality.
- Removed the obsolete sdk-aztec package and its related files to streamline the codebase.
arentant and others added 2 commits March 5, 2026 13:21
- Updated package references in pnpm-lock.yaml to reflect new structure for Aztec and EVM SDKs.
- Refactored components to utilize the new @train-protocol/aztec and @train-protocol/evm packages, improving modularity and clarity.
- Renamed and reorganized SDK-related imports across various files to align with the new package structure.
- Introduced a new IntegrationRules.md document outlining guidelines for adding new blockchain HTLC client SDKs, enhancing developer onboarding and consistency.
- Improved atomic swap functionality by updating method names and parameters to reflect the new SDK structure.

These changes streamline the integration of blockchain SDKs, improve code maintainability, and provide clear guidelines for future development.
Refactor getSolverLockDetails with multi-node verification
- Introduced `_getSolverLockDetails` method to replace `getSolverLockDetails`, enhancing single-node query handling.
- Updated documentation to reflect changes in method naming and ordering rules.
- Clarified base class method guidelines to prevent overriding in subclasses, ensuring consistent implementation across different chains.
…nector state management

- Simplified the condition for displaying the InstalledExtensionNotFound component in ConnectorsList.
- Enhanced WalletQrCode component layout and styling for better user experience, including adjustments to QR code size and icon dimensions.
- Updated the WalletModalConnector type to include deepLink property for improved link handling.
- Modified useEVM hook to set deepLink in the selected connector state, enhancing connection capabilities for wallet integrations.
- Added Azguard wallet support in useAztec hook, improving the overall wallet provider options.
…ecHTLCClient to use a hardcoded value of 18 for token decimals. This change simplifies the code and ensures consistency in decimal handling across the Aztec blockchain integration.
arentant and others added 4 commits March 5, 2026 21:08
- Updated FormButton to improve destination address input handling and replaced SecondDestinationWalletPicker with a more streamlined SubmitButton.
- Refactored SwapForm to utilize the updated useWallet hook for better wallet management.
- Enhanced UserActions component to simplify refund logic and improve readability.
- Introduced Starknet support in balance providers and updated related files for better integration.
- Added Starknet Sepolia network configuration to ensure compatibility with the latest blockchain features.

These changes improve the overall user experience and maintainability of the codebase, particularly in relation to Starknet functionality.
- Added StarknetGasProvider to handle gas estimation for Starknet transactions.
- Enhanced getGas method to include wallet account details and network validation.
- Integrated error handling for gas estimation failures, improving robustness.
- Removed commented-out code to clean up the implementation.

These changes enhance the Starknet integration, providing accurate gas estimation for transactions.
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.

2 participants