Deploy a UI for your Warp Route
A front-end for interchain token transfers
After you Deploy a Warp Route, you may want to deploy a UI for it. You can use the UI template and customize it to fit your needs.
Configure & Customize the UI
Follow these instructions for details on how to configure the UI's tokens and change the default branding assets/theme.
Configure Tokens
As mentioned in the customization instructions, the UI repo contains a token list (see ./src/consts/tokens.ts)
which must be updated. Here's an example:
You can replace the tokens
entry with the output that was written to hyperlane-deploy/artifacts/warp-ui-token-list.ts
from the Deploy a Warp Route instructions.
Configure Chain
Deploy the UI
Since the UI is a Next.js app, you can use your favorite hosting service to host it. We recommend Vercel, which works very well with Next. Netlify and Fleek are also a good options.
Sign up for Vercel
Create a new project
Connect it to your Git repo
Hit Deploy!
And that's it! Now you and your users can use the UI to send tokens from the collateral chain to remote chains, from one remote chain to another, and from any remote chain back to the collateral chain.
Stranded Whale Problem
A common problem with token bridges like Warp Routes is that a user may transfer a token like USDC to a new chain, but only afterwords realize that they do not have the native gas token to move those tokens anywhere including back. You may consider modifying the UI to warn the users of this situation, or better faucet them some dust of native gas token so improve their experience. You can either do so by modifying the warp route contracts where it holds some balance of the native token and can share that with recipients, or you could build an off-chain service which just observes the ReceivedTransferRemote
transfer the native gas token to the recipient.
Last updated