vega-frontend-monorepo/apps/trading
2023-07-18 09:37:25 +00:00
..
__mocks__ feat(trading): add oracle dialog trigger to oracle banner, display status reas… (#3727) 2023-05-15 16:20:30 +01:00
client-pages chore(trading): 4134 see if a closed market was succeeded (#4336) 2023-07-18 09:37:25 +00:00
components feat(trading,governance,wallet): browser wallet integration (#4121) 2023-07-12 11:34:42 +01:00
lib feat(trading,governance,wallet): browser wallet integration (#4121) 2023-07-12 11:34:42 +01:00
pages fix(trading): replace oracle details and deal ticket pink with red (#4284) 2023-07-11 14:26:24 +01:00
public chore(trading): loader component css animation only, preloader tweaks (#3027) 2023-02-28 15:31:23 +01:00
stores refactor(trading): pane stores for grid state (#4119) 2023-06-26 17:10:22 -07:00
.env fix(explorer,trading): remove vega.trading links (#3962) 2023-05-25 21:27:51 +00:00
.env.capsule fix(explorer,trading): remove vega.trading links (#3962) 2023-05-25 21:27:51 +00:00
.env.devnet chore(trading): allow window._env_ override (#4159) 2023-06-27 07:40:42 +01:00
.env.mainnet chore(trading): release v0.20.21-core-0.71.6 2023-07-12 09:01:59 +01:00
.env.mainnet-mirror feat(governance,explorer,trading): add env config for mainnet-mirror apps (#4253) 2023-07-04 16:20:40 +00:00
.env.stagnet1 chore(trading): allow window._env_ override (#4159) 2023-06-27 07:40:42 +01:00
.env.testnet chore(trading): allow window._env_ override (#4159) 2023-06-27 07:40:42 +01:00
.env.validators-testnet chore(trading): allow window._env_ override (#4159) 2023-06-27 07:40:42 +01:00
.eslintrc.json chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02: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 chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02: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 chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
postcss.config.js Extract tailwindcss config to libs 2022-02-23 16:29:07 -08:00
project.json chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
README.md chore(trading): ignore parse source map warnings, fix trading readme (#4252) 2023-07-11 10:41:54 +01:00
sentry.client.config.js chore(react-helpers,utils,logger): create logger lib and move sentry/logger utils there (#3990) 2023-06-06 14:10:03 +01:00
sentry.server.config.js Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
setup-tests.ts feat: update market data components when they are in view (#2607) 2023-01-16 17:51:30 +00:00
tailwind.config.js chore(trading): migrate nx to latest version (#4196) 2023-07-04 13:01:25 +02:00
tsconfig.json feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
tsconfig.spec.json chore: add build-spec targets and execute on affected apps and libs on CI (#1745) 2022-10-25 09:41:16 +02:00

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