Trisolaris-frontend
所属分类:数据库系统
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2022-11-24 08:34:39
上 传 者:
sh-1993
说明: Trisolaris的开源接口——用于快速结算的Aurora和以太坊资产的社区驱动的去中心化交换,...,
(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.)
文件列表:
.env (109, 2022-09-24)
.eslintrc.json (740, 2022-09-24)
.gcloudignore (431, 2022-09-24)
.husky/ (0, 2022-09-24)
.husky/pre-commit (68, 2022-09-24)
.prettierignore (478, 2022-09-24)
.prettierrc (64, 2022-09-24)
.yarnrc (21, 2022-09-24)
LICENSE (35149, 2022-09-24)
app.yaml (264, 2022-09-24)
babel.config.js (105, 2022-09-24)
cypress.json (530, 2022-09-24)
cypress/ (0, 2022-09-24)
cypress/integration/ (0, 2022-09-24)
cypress/integration/add-liquidity.test.ts (11011, 2022-09-24)
cypress/integration/landing.test.ts (580, 2022-09-24)
cypress/integration/lists.test.ts (867, 2022-09-24)
cypress/integration/pool.test.ts (333, 2022-09-24)
cypress/integration/remove-liquidity.test.ts (8267, 2022-09-24)
cypress/integration/send.test.ts (331, 2022-09-24)
cypress/integration/swap.test.ts (10515, 2022-09-24)
cypress/integration/token-warning.ts (587, 2022-09-24)
cypress/support/ (0, 2022-09-24)
cypress/support/commands.d.ts (267, 2022-09-24)
cypress/support/commands.js (2913, 2022-09-24)
cypress/support/index.js (820, 2022-09-24)
cypress/tsconfig.json (184, 2022-09-24)
dev/ (0, 2022-09-24)
dev/generate_tokens/ (0, 2022-09-24)
dev/generate_tokens/base_tokens_map.js (2950, 2022-09-24)
dev/generate_tokens/index.js (4270, 2022-09-24)
dev/generate_tokens/utils.js (1106, 2022-09-24)
dev/setupTests.ts (120, 2022-09-24)
jest.config.js (225, 2022-09-24)
package.json (5340, 2022-09-24)
public/ (0, 2022-09-24)
public/451.html (200, 2022-09-24)
... ...
# 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.
- Website: [https://www.trisolaris.io/](https://www.trisolaris.io/)
- Telegram: [TrisolarisLabs](https://t.me/Illia_Butenko)
- Mail: [TrisolarisLabs](illia.butenko89@gmail.com)
- Twitter: [@trisolarislabs](https://twitter.com/trisolarislabs)
## Accessing the Trisolaris Interface
Visit [https://www.trisolaris.io/](https://www.trisolaris.io/).
## Development
### Install Dependencies
```bash
yarn
```
### Run
```bash
yarn start
```
### Generating Token Exports
The [Tokens Repo](https://github.com/trisolaris-labs/tokens)'s master branch is added as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules). 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.
```bash
yarn build-tokens
```
### Tests
```bash
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
### Deploying to production
1. Create PR that includes `npm version patch`
2. Merge PR to `main` branch
3. Deploy to Staging
4. Deploy to Prod
Note: If a feature is going directly to prod, please make a PR that includes `npm version patch` as its final diff. Deploy to production after this PR has been merged to `main` branch
## Attribution
This code was adapted from this Uniswap repo: [uniswap-interface](https://github.com/Uniswap/uniswap-interface).
近期下载者:
相关文件:
收藏者: