vega-frontend-monorepo/apps/trading
2023-05-22 14:09:37 +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 feat(trading): move trade grid panel - fix id of store (#3872) 2023-05-22 14:09:37 +00:00
components feat(trading,governance): improve flow of risk disclaimer presentation (#3772) 2023-05-19 21:27:45 +00:00
lib fix(governance): added toasts for withdrawals (#3621) 2023-05-05 14:10:21 +00:00
pages feat(trading,governance): improve flow of risk disclaimer presentation (#3772) 2023-05-19 21:27:45 +00:00
public chore(trading): loader component css animation only, preloader tweaks (#3027) 2023-02-28 15:31:23 +01:00
stores feat(explorer,governance): always allow selecting a node, add node guard (#3678) 2023-05-09 12:58:09 -07:00
.env feat(governance): token references to governance (#3657) 2023-05-09 14:17:40 +00:00
.env.capsule feat(governance): token references to governance (#3657) 2023-05-09 14:17:40 +00:00
.env.devnet chore(governance,explorer,trading): move sentry dsn to env files (#3860) 2023-05-22 08:54:15 +02:00
.env.mainnet chore(governance,explorer,trading): move sentry dsn to env files (#3860) 2023-05-22 08:54:15 +02:00
.env.stagnet1 chore(governance,explorer,trading): move sentry dsn to env files (#3860) 2023-05-22 08:54:15 +02:00
.env.testnet chore(governance,explorer,trading): move sentry dsn to env files (#3860) 2023-05-22 08:54:15 +02:00
.env.validators-testnet feat(ci): adjust environment name 2023-05-22 11:42:09 +02:00
.eslintrc.json chore: cleanup type gen (#2362) 2022-12-08 21:13:30 +00: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 chore: revert "always prefix static assets with dot (#1615)" 2022-10-04 14:55:40 -07:00
postcss.config.js Extract tailwindcss config to libs 2022-02-23 16:29:07 -08:00
project.json chore: add custom export executor for next app (#1999) 2022-11-08 18:59:49 -08:00
README.md chore(explorer,trading,governance): remove stagnet3 (#3608) 2023-05-04 16:50:39 +00:00
sentry.client.config.js feat(trading): make Sentry only after opt in (#3448) 2023-04-26 15:17:23 +00: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(#1873): trading hash router (#1921) 2022-11-08 08:23:38 +01: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 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. 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