
TRAIN Bridging Interface
Overview
The TRAIN Bridge dApp serves as the central interface for seamless cross-chain transactions. It submits user intents to the centralized Auction Manager, receives the winning Solver quote, and orchestrates the Atomic Swap flow. The dApp has three main responsibilities:- Accept user swap intent and submit it to the Auction Manager
- Display the winning Solver quote and allow the user to commit funds (specifying the winning Solver)
- Execute the Atomic Swap flow (observe destination lock, provide hashlock to user)
Observing the Destination Network
The dApp must observe the destination lock created by the Solver and provide thehashlock to the User to complete the Atomic Swap process. The dApp can observe this transaction through the following methods, listed in order of priority:
- Bootstrap a Light Client (e.g., Helios) for the destination chain and read the lock state from it
- If no Light Client is available, read and verify the lock state from multiple RPC providers