vega-frontend-monorepo/apps/trading
2023-04-03 19:21:56 +00:00
..
client-pages chore(trading): liquidity table DRY (#3346) 2023-04-03 15:02:43 +02:00
components chore(trading): add "holding CMD + click" external link (#3273) 2023-03-31 15:23:44 +02:00
lib fix(trading): order stopped intent toasts (#3347) 2023-04-03 19:21:56 +00:00
pages chore(trading): add "holding CMD + click" external link (#3273) 2023-03-31 15:23:44 +02:00
public chore(trading): loader component css animation only, preloader tweaks (#3027) 2023-02-28 15:31:23 +01:00
stores feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env feat(oracles,trading): 3224 add oracle links to market info (#3297) 2023-03-31 09:06:21 +01:00
.env.capsule feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.devnet feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.mainnet feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.stagnet1 feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.stagnet3 feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.testnet feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.env.validator-testnet feat(announcements): announcements (#3252) 2023-03-29 15:20:49 +02:00
.eslintrc.json
client.graphql
index.d.ts
jest.config.ts
netlify.toml
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
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 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