paouvrard / interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trisolaris Interface

An open source interface for Trisolaris -- a community-driven decentralized exchange for Aurora and Ethereum assets with fast settlement, low transaction fees, and a democratic distribution -- powered by Aurora.

Accessing the Trisolaris Interface

Visit https://www.trisolaris.io/.

Development

Install Dependencies

yarn

Run

yarn start

Generating Token Exports

The Tokens Repo's master branch is added as a submodule. This repo references the tokens in the Tokens repo (and their associated metadata). Items defined in dev/generate_tokens/base_tokens_map.js take precedence over the imported tokens, and will override the imported metadata.

Run this command when there's an update to the master branch or if you want to update/rebuild the tokens list. There's no harm in running this command multiple times.

yarn build-tokens

Tests

yarn test

Configuring the environment (optional)

To have the interface default to a different network when a wallet is not connected:

  1. Make a copy of .env named .env.local
  2. Change REACT_APP_NETWORK_ID to "{YOUR_NETWORK_ID}"
  3. Change REACT_APP_NETWORK_URL to your JSON-RPC provider

Attribution

This code was adapted from this Uniswap repo: uniswap-interface.

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 98.5%Language:JavaScript 1.1%Language:HTML 0.4%Language:Shell 0.0%