Setting up the bridging UI

Hyperlane provides a bridge UI. To set up the UI, first clone the UI repositoryarrow-up-right.

circle-info

To support wallet connect, you must sign up for a wallet connect account at https://cloud.walletconnect.com/apparrow-up-right and create a project ID.

After cloning the repository, modify src/consts/config.tswith L1 and L2 token information

import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';

export const chains: ChainMap<ChainMetadata> = {
  // ----------- Add your chains here -----------------
  sepolia: {
    name: 'sepolia',
    chainId: 11155111,
    nativeToken: {
      name: 'ether',
      symbol: 'ETH',
      decimals: 18,
    },
    publicRpcUrls: [
      {
        http: 'https://eth-sepolia.g.alchemy.com/v2/apikey',
      },
    ],
  },
  testnet: {
    name: 'testnet',
    chainId: 9997,
    nativeToken: {
      name: 'ALT',
      symbol: 'ALT',
      decimals: 18,
    },
    publicRpcUrls: [
      {
        http: 'https://testnet-rollup-api.altlayer.io',
      },
    ],
  },
};

Modify src/consts/tokens.ts with L1 and L2 token information

To start the UI, run

To deploy your UI, you can use hosting services like Vercel or Netlify. For Vercel, you can follow the following steps.

Last updated