vega-frontend-monorepo/apps/trading
2024-01-03 12:00:00 +00:00
..
__mocks__ feat(trading): use i18next (#5238) 2023-11-15 19:10:39 -08:00
assets
client-pages fix(trading): mobile friendly referral and fees views (#5530) 2024-01-02 15:50:04 +00:00
components fix(trading): mobile friendly referral and fees views (#5530) 2024-01-02 15:50:04 +00:00
e2e chore(trading): update vega (#5563) 2024-01-03 12:00:00 +00:00
lib feat(wallet): disconnect if wallet unreachable (#5501) 2023-12-18 10:39:18 +00:00
pages feat(trading): competition feature flag and team page (#5549) 2023-12-29 15:50:51 +00:00
public fix(trading): alpha lyrae font (#5518) 2023-12-19 16:52:56 +00:00
stores
.env feat(trading): competition feature flag and team page (#5549) 2023-12-29 15:50:51 +00:00
.env.capsule
.env.devnet
.env.mainnet chore(trading): enable close position (#5490) 2023-12-11 15:51:22 +00:00
.env.mainnet-mirror
.env.stagnet1 feat(trading): trading view (#5348) 2023-12-12 17:33:41 -08:00
.env.testnet feat(trading): trading view (#5348) 2023-12-12 17:33:41 -08:00
.env.validators-testnet
.eslintrc.json
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
postcss.config.js
project.json
README.md
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
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