J M Rossy
728c4854a1
|
1 month ago | |
---|---|---|
.github | 2 months ago | |
.vscode | 8 months ago | |
.yarn | 3 months ago | |
public | 1 month ago | |
src | 1 month ago | |
.env.example | 1 year ago | |
.eslintignore | 10 months ago | |
.eslintrc | 1 month ago | |
.gitignore | 2 months ago | |
.prettierignore | 2 years ago | |
.prettierrc | 2 years ago | |
.yarnrc.yml | 11 months ago | |
CUSTOMIZE.md | 1 month ago | |
LICENSE.md | 2 years ago | |
README.md | 2 months ago | |
jest.config.js | 11 months ago | |
next-env.d.ts | 2 years ago | |
next.config.js | 3 months ago | |
package.json | 1 month ago | |
postcss.config.js | 2 years ago | |
sentry.client.config.js | 10 months ago | |
sentry.default.config.js | 6 months ago | |
sentry.edge.config.js | 10 months ago | |
sentry.server.config.js | 10 months ago | |
tailwind.config.js | 1 month ago | |
tsconfig.json | 9 months ago | |
yarn.lock | 1 month ago |
README.md
Hyperlane Warp Route UI Template
This repo contains an example web interface for interchain tokens built with Hyperlane Warp Route. Warp is a framework to permisionlessly bridge tokens to any chain.
Architecture
This app is built with Next & React, Wagmi, RainbowKit, and the Hyperlane SDK.
- Constants that you may want to change are in
./src/consts/
, see the following Customization section for details. - The index page is located at
./src/pages/index.tsx
- The primary features are implemented in
./src/features/
Customization
See CUSTOMIZE.md for details about adjusting the tokens and branding of this app.
Development
Setup
Build
# Install dependencies
yarn
# Build Next project
yarn build
Configure
You need a projectId
from the WalletConnect Cloud to run the Hyperlane Warp Route UI successfully.
Sign up to WalletConnect Cloud, create
new project with AppKit and Next.js and copy the projectId
from there.
Run
You can add .env.local
file next to .env.example
where you set projectId
copied from WalletConnect Cloud.
# Start the Next dev server
yarn dev
Or you can set the WalletConnect Cloud projectId
to use as follows:
NEXT_PUBLIC_WALLET_CONNECT_ID=<projectId> yarn dev
Test
# Lint check code
yarn lint
# Check code types
yarn typecheck
Format
# Format code using Prettier
yarn prettier
Clean / Reset
# Delete build artifacts to start fresh
yarn clean
Deployment
The easiest hosting solution for this Next.JS app is to create a project on Vercel.
Learn more
For more information, see the Hyperlane documentation.