vega-frontend-monorepo/apps/trading
2024-02-26 12:57:09 +00:00
..
__mocks__ feat(trading): use i18next (#5238) 2023-11-15 19:10:39 -08:00
assets feat(trading): update mobile layout (#5718) 2024-02-08 13:24:48 +00:00
client-pages fix(trading): competitions font tweaks (#5828) 2024-02-20 16:17:02 +01:00
components fix(trading): lp data provider reload - updating book (#5846) 2024-02-23 17:08:22 +00:00
e2e chore(trading): update e2e test readme (#5844) 2024-02-22 21:50:55 +01:00
lib fix(trading): use same epochs for all games/stats (#5834) 2024-02-22 13:27:13 +00:00
pages feat(trading): mobile layout and buttons (#5751) 2024-02-09 10:30:24 +00:00
public feat(trading): update mobile layout (#5718) 2024-02-08 13:24:48 +00:00
stores chore(trading): 4349 delayed telemetry opt in (#4642) 2023-09-01 09:00:20 +00:00
.env chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.capsule chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.devnet chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.mainnet chore(trading): switch eth provider URL (#5779) 2024-02-09 10:26:08 +00:00
.env.mainnet-mirror feat(trading): margin mode selector (#5660) 2024-01-24 13:17:22 +00:00
.env.stagnet1 chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.testnet chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.validators-testnet chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.eslintrc.json chore(trading,governance,explorer): nx migration to latest (#5246) 2023-11-14 15:25:29 +01:00
client.graphql
index.d.ts
jest.config.ts feat(trading): trading view (#5348) 2023-12-12 17:33:41 -08:00
next-env.d.ts
next.config.js chore(trading): add git hash and tag into settings view (#5207) 2023-11-13 21:17:17 -08:00
postcss.config.js
project.json chore(ci): remove unused netlify configs (#5278) 2023-11-15 13:40:26 -08:00
README.md chore(trading): merge main back in develop (#5597) 2024-01-10 10:31:15 +00:00
sentry.client.config.js
sentry.server.config.js
setup-tests.ts feat(trading): use i18next (#5238) 2023-11-15 19:10:39 -08:00
tailwind.config.js feat(trading): referrals (Mk2), referrals stats, apply preview (#5021) 2023-10-23 16:57:18 +02:00
tsconfig.json
tsconfig.spec.json

Trading

Development

First copy the configuration of the application you are starting:

cp .env.[environment] .env.local

Starting the app:

yarn nx serve trading

Configuration

Example configurations are provided here:

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

yarn env-cmd -f .\apps\trading\.env.{env} yarn nx run trading:serve # e.g. stagnet1

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

To run tests with market sim please read the readme.