forked from wormhole-foundation/example-token-bridge-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We had a problem with deploying portal on Node 16. We're adding Node configuration required for successfull deploy of the portal. Also updating README.
- Loading branch information
1 parent
d666175
commit 58b2611
Showing
2 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
# Example Token Bridge UI · [![GitHub license](https://img.shields.io/badge/license-Apache2.0-blue.svg)](https://github.com/wormhole-foundation/example-token-bridge-ui/blob/main/LICENSE) ![Build](https://github.com/wormhole-foundation/example-token-bridge-ui/actions/workflows/build.yaml/badge.svg) | ||
# Example Token Bridge UI | ||
|
||
This app serves as a testnet and local devnet UI for the example token bridge contracts. | ||
This repository is a fork of Wormhole's [example Token Bridge | ||
UI](https://wormhole-foundation.github.io/example-token-bridge-ui/). Support for | ||
Base Sepolia, Optimism Sepolia and Arbitrum Sepolia was added. | ||
|
||
View at https://wormhole-foundation.github.io/example-token-bridge-ui/ | ||
Deployed code can be used to attest/register tokens on L2 chains (when deloyed | ||
locally, this can be done from http://localhost:3000/#/register) and to bridge | ||
tokens between chains (http://localhost:3000/#/transfer). | ||
|
||
## Install | ||
## Local deploy: | ||
|
||
```bash | ||
npm ci | ||
``` | ||
|
||
## Develop | ||
|
||
If using the node version specified in `.nvmrc`, run with | ||
To deploy locally, execute: | ||
|
||
```bash | ||
nvm use 18 | ||
npm ci | ||
npm start | ||
``` | ||
|
||
If on latest LTS (v18.16.0), run with | ||
## Deploy using `serve`: | ||
|
||
```bash | ||
NODE_OPTIONS=--openssl-legacy-provider npm start | ||
``` | ||
|
||
*Note: the above issue should be resolved after updating to the latest mui + react versions* | ||
|
||
## Build | ||
To deploy using `serve` as a static server, execute: | ||
|
||
```bash | ||
nvm use 18 | ||
npm ci | ||
npm run build | ||
serve -s build -l 4000 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters