Layerswap V8 Bridging Interface

Overview

The Layerswap V8 Bridge dApp serves as the central interface for seamless cross-chain transactions. It integrates with the Discovery mechanism to fetch available Solvers and participates in the Solver auction process to determine optimal routes for bridging.

The dApp has three main responsibilities:

  • Connect to the Discovery registry and fetch available Solvers/networks.
  • Connect to the Auction to transmit the user’s intent and get quotes from Solvers.
  • Execute an Atomic Swap flow.

Observing the destination network

The dApp must observe the destination lock created by the Solver and provide the hashlock to the user to complete the atomic swap process. Observing this transaction can be done in the following ways, in order of priority:

  1. Bootstrap a Light Client (e.g., Helios) for the destination chain and read the lock state from it.
  2. If there is no Light Client available, read and verify the lock state from multiple RPC providers.

Was this page helpful?