Skip to content
πŸŒ‰ Transfer OCEAN Tokens between Ethereum's Main network, and Ocean's Pacific network.
JavaScript CSS Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e-script
lib/web3-eth
public
scripts
src
submodules
.babelrc
.dockerignore
.env.example
.eslintrc
.gitignore
.gitmodules
.nvmrc
.travis.yml
CHANGELOG.md
Dockerfile
LICENSE
README.md
config-overrides.js
docker-entrypoint.sh
package-lock.json
package.json

README.md

banner

Ocean Token Bridge UI

πŸŒ‰ Transfer OCEAN Tokens between Ethereum's Main network, and Ocean's Pacific network. Originally forked from poanetwork/bridge-ui:v2.1.1 (0342e0a).

Build Status

Screen Shot 2019-06-24 at 11 53 23

Under the hood, uses:

Table of Contents

Contracts

With this repo's v3.0.0 onwards, contracts are loaded from oceanprotocol/token-bridge-contracts (currently at v2.2.0).

The original fork of poanetwork/bridge-ui:v2.1.1 (0342e0a) was running against poanetwork/poa-bridge-contracts:v2.3.1.

Development

To start development you need to:

npm i
npm start

Activate Theme

The oceanprotocol theme is directly loaded in src/App.js so no further configuration is required.

Testing

To run unit tests:

npm test

You can run the same tests, but with coverage reports generated:

npm run coverage

Production build

To create a production build:

npm run build

Releases

From a clean master branch you can run any release task doing the following:

  • bumps the project version in package.json, package-lock.json
  • auto-generates and updates the CHANGELOG.md file from commit messages
  • creates a Git tag
  • commits and pushes everything
  • creates a GitHub release with commit messages as description

You can execute the script using arguments to bump the version accordingly:

  • To bump a patch version: npm run release
  • To bump a minor version: npm run release minor
  • To bump a major version: npm run release major

For the GitHub releases steps a GitHub personal access token, exported as GITHUB_TOKEN is required. Setup

Deployment

After a new release, manual deployment via Docker and Kubernetes needs to be done. Build and push the Docker image for that:

# build Docker image locally
docker build -t oceanprotocol/token-bridge-ui:3.0.2_ocean .
# push image to Docker Hub
docker push oceanprotocol/token-bridge-ui:3.0.2_ocean
# finally, update image tag in respective deployment in Kubernetes
kubectl edit deployment ...

Original Readme

https://github.com/poanetwork/bridge-ui/blob/master/README.md

License

License: LGPL v3.0

This project is licensed under the GNU Lesser General Public License v3.0. See the LICENSE file for details.

You can’t perform that action at this time.