This design eliminates the need for giant liquidity pools, reduces attack surfaces, and allows the network to scale naturally as more solvers join. Warp Bridge has two major layers:
1. Protocol Layer (On-Chain Contracts)
The on-chain smart contracts on each chain serve as the trust-minimized core of Warp Bridge. They:- Receive user deposits
- Lock liquidity securely
- Publish order data
- Validate fulfillment attempts
- Handle cross-chain unlock messages
- Release funds only when settlement conditions are cryptographically verified
WarpSource Contract
Deployed on the chain where a transfer starts.Handles:
- Order creation
- Asset locking
- Order ID generation
- Status tracking (pending → unlocked/canceled)
WarpDestination Contract
Deployed on chains where transfers complete.Handles:
- Validation of solver fulfillment
- Execution of transfers to the user
- Transition of state to “fulfilled”
- Sending unlock or cancel messages back to the source chain
- User address
- Nonce
- Chain IDs
- Token pair
- Amount
- Destination receiver
- Security parameters
2. Solver Layer (Off-Chain + On-Chain Actors)
Solvers are independent participants — typically market makers, automated bots, or liquidity networks — who monitor Warp Bridge orders and choose whether to fulfill them. Solvers are not whitelisted, not permissioned, and not coordinated.Anyone with liquidity on destination chains can become a solver. They perform three roles:
Off-chain Monitoring
Solvers watch:- New orders created on WarpSource
- Token pairs and amounts
- Gas conditions
- Arbitrage or profit opportunities
- Chain finality and reorg risk
On-chain Fulfillment
When a solver decides an order is profitable and safe enough, they:- Supply the destination-chain tokens directly to the recipient
- Call the
WarpDestination.fulfillOrder()function - Provide the full typed order data + order ID
- Execute the transfer instantly
Unlock Request
After fulfillment:- The solver triggers
sendUnlock() - WarpDestination sends a secure cross-chain message to WarpSource
- WarpSource verifies the message
- Locked funds are released to the solver
- Order transitions to “Finalized”
Detailed Lifecycle of a Warp Bridge Transfer
Below is the full expanded flow.Step 1 — Order Creation (User Initiates Transfer)
The user selects:- Source chain
- Destination chain
- Token to send
- Token to receive
- Amount
- Destination address
WarpSource.createOrder(), which:
- Locks the user’s tokens on the source chain
- Assigns a unique order hash
- Publishes the order to the chain’s event logs
- Stores the status as Pending
- Makes the order discoverable by solvers
Step 2 — Solver Discovery + Evaluation
Solvers detect the new order and evaluate:- Profitability (difference between user’s input and requested output)
- Slippage conditions
- Gas costs on both chains
- Finality and reorg risks
- Token liquidity availability
- Execution time
- Take the order immediately
- Wait for more confirmations
- Ignore the order entirely
- Compete against other solvers
Step 3 — Destination-Chain Fulfillment
A solver that chooses to take the order:- Provides the destination chain tokens to the user’s recipient address
- Calls
WarpDestination.fulfillOrder() - Supplies:
- Full order parameters
- The order ID
- Tokens to pay the user immediately
- Re-builds the order ID from the supplied structure
- Validates it matches the ID stored on the source chain
- Confirms the order has not been fulfilled or canceled
- Transfers the solver’s tokens to the user
- Marks the order Fulfilled
Step 4 — Cross-Chain Settlement (Unlock Message)
The fulfilling solver then calls:WarpDestination.sendUnlock()
This step:
- Triggers Warp Bridge’s messaging infrastructure
- Sends a signed, authenticated unlock command to the source chain
- WarpSource contract verifies the signature, chain ID, and sender contract
- Upon verification, it unlocks the originally locked funds
- Sends those funds to the solver
Unlock messages only happen after an order reaches a terminal state (Fulfilled or Cancelled).
This makes cross-chain communication rare and efficient.
Order Cancellation Flow
A user can cancel any pending order as long as no solver has fulfilled it.- User calls
WarpDestination.sendCancel() - Destination contract sends a cancel message
- Source contract unlocks the funds back to the user
- Order status becomes Cancelled
Risk Distribution (Advanced Breakdown)
Warp Bridge spreads risk fairly and transparently:Risk for Users (Makers)
Users hold liquidity risk only between creation and solver fulfillment, typically seconds.If no solver fulfills:
- Users can cancel anytime
- Funds remain locked under their control
- No third party custody is involved
Risk for Solvers
Solvers bear two categories of risk:1. Source Chain Reorg Risk
If a chain reorgs after solver fulfillment:- The user’s order may disappear
- Solver’s fulfillment remains final on the destination chain
- Solver could lose funds
High-risk solvers fulfill instantly; conservative solvers wait for deeper confirmations.
2. Messaging Finality Risk
Warp Bridge uses strong guarantees:- Validator signatures
- Slashing
- Finality thresholds per chain
- Replay protection
- Sender contract identity verification
Why This Architecture Works
Warp Bridge avoids: ✘ global liquidity pools✘ wrapped asset minting
✘ custodial multisigs
✘ centralized relayers Instead, it uses: ✔ direct on-chain settlement
✔ fast solver execution
✔ minimal trust assumptions
✔ low attack surface
✔ naturally scaling liquidity This results in:
- Near-instant cross-chain settlement
- High capital efficiency
- Permissionless solver participation
- Strong finality guarantees
- Better privacy as usage grows
