vega-frontend-monorepo/apps/trading
botond 7613a9fa9f
Feat/migrate libs (#1266)
* feat: add new generator with config

* feat: split off gql queries to separate files for the new generator

* fix: delete dummy schema

* feat: add generated queries with new codegen

* fix: regenerate from scratch and remove duplicates

* fix: libs and app gen folders

* fix: remove more duplicate queries

* fix: add generated files to be ignored by the formatter

* fix: format

* feat: migrate assets to use new code generator

* fix: generated imports

* fix: lint

* fix: accounts export

* fix: more imports

* fix: add type alias for new type system and regenerate

* fix: format

* fix: export

* fix: format

* fix: delete leftover file from merge

* chore: migrate candles-chart lib

* fix: remove redundant asset files

* chore: migrate accounts

* chore: update glob

* chore: add cleanup to fix-imports to support type migrations for now

* fix: imports

* fix: update market types

* fix: type import paths

* fix: format

* fix: import

* fix: types in e2e tests

* fix: format

* fix: lint
2022-09-09 16:14:48 +01:00
..
assets Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
components feat: liquidity provisions view (#1133) 2022-09-07 12:05:28 +01:00
lib chore: filter assets by status (1108) (#1192) 2022-09-07 18:01:16 +02:00
pages Feat/migrate libs (#1266) 2022-09-09 16:14:48 +01:00
public Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00
specs Feat/305 add console v2 first view screen (#424) 2022-05-23 13:21:54 +01:00
stores chore: refactor global store (#1241) 2022-09-05 15:25:33 +01:00
.env feat (#896): large withdraws (#1180) 2022-09-05 18:30:13 -07:00
.env.devnet Feat/707 link to market proposal (#1222) 2022-09-05 14:06:58 +02:00
.env.mainnet Feat/707 link to market proposal (#1222) 2022-09-05 14:06:58 +02:00
.env.stagnet3 Feat/707 link to market proposal (#1222) 2022-09-05 14:06:58 +02:00
.env.testnet feat (#896): large withdraws (#1180) 2022-09-05 18:30:13 -07:00
.eslintrc.json Fix/1083: Update type generator (#1219) 2022-09-06 10:03:10 +01:00
client.graphql Feat/104 withdraws (#263) 2022-04-26 19:51:39 -07:00
index.d.ts Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
jest.config.ts feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
netlify.toml chore: package.json clean-up (#1030) 2022-08-15 13:57:47 +01:00
next-env.d.ts Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00
next.config.js feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
postcss.config.js Extract tailwindcss config to libs 2022-02-23 16:29:07 -08:00
project.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
README.md chore: remove stagnet1, fix env vars for api endpoints (#1163) 2022-08-25 17:07:27 -07:00
sentry.client.config.js Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
sentry.server.config.js Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
setup-tests.ts Feat/375: Risk notice dialog (#1096) 2022-09-02 15:53:38 +01:00
tailwind.config.js feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
tsconfig.json feat(#927) design update (#1201) 2022-08-30 21:35:46 -07:00
tsconfig.spec.json Fixes for workflows (#291) 2022-04-22 17:51:18 -07:00

Trading

Development

First copy the configuration of the application you are starting:

cp .env.[environment] .env.local

Starting the app:

yarn nx serve explorer

Configuration

Example configurations are provided here:

For convenience, you can boot the app injecting one of the configurations above by running:

yarn nx run token:serve --env={env} # e.g. stagnet3

There are a few different configuration options offered for this app:

The network configuration for the app

Flag Purpose
NX_VEGA_ENV The name of the currently connected vega environment
NX_VEGA_CONFIG_URL The network configuration for the app
NX_VEGA_URL The GraphQL query endpoint of a Vega data node
NX_ETHEREUM_PROVIDER_URL The Ethereum Provider URL for getting data from the Ethereum network, for example Infura or a local node
NX_ETHERSCAN_URL The Etherscan URL to link Ethereum transactions to

Testing

To run the minimal set of unit tests, run the following:

yarn nx test trading

To run the UI automation tests with a mocked API, run:

yarn nx run trading-e2e:e2e