vega-frontend-monorepo/apps/trading
macqbat 6c84153cdb
chore: redirect to last visited market instead first from the list (#2489)
* chore: redirect to last visited market instead first from the list

* chore: redirect to last visited market instead first from the list - add int tests

* feat: redirect to last visited market instead first from the list - refactor solution

* feat: redirect to last visited market instead first from the list - fix failing int test

* feat: redirect to last visited market instead first from the list - fix failing int test

* feat: redirect to last visited market instead first from the list - fix failing int test

* feat: redirect to last visited market instead first from the list - use immer in globalStore

* chore: redirect to last visited market - improve use of zustand
2023-01-02 17:01:06 +01:00
..
assets Feat/725 network header styles (#1893) 2022-10-28 16:13:14 +01:00
client-pages chore: redirect to last visited market instead first from the list (#2489) 2023-01-02 17:01:06 +01:00
components chore: redirect to last visited market instead first from the list (#2489) 2023-01-02 17:01:06 +01:00
lib feat: propose network parameter change link (578) (#2174) 2022-11-22 11:52:31 +01:00
pages chore: redirect to last visited market instead first from the list (#2489) 2023-01-02 17:01:06 +01:00
public
stores chore: redirect to last visited market instead first from the list (#2489) 2023-01-02 17:01:06 +01:00
.env chore: update explorer stagnet3 links (#2227) 2022-11-24 15:48:39 -08:00
.env.devnet chore: add vega_docs_url to all trading envs (#2079) 2022-11-15 14:47:49 +00:00
.env.mainnet chore: add vega_docs_url to all trading envs (#2079) 2022-11-15 14:47:49 +00:00
.env.sandbox fix: remove NX_VEGA_URL from trading console (#2042) 2022-11-11 17:48:58 +00:00
.env.stagnet1 chore: add vega_docs_url to all trading envs (#2079) 2022-11-15 14:47:49 +00:00
.env.stagnet3 chore: update explorer stagnet3 links (#2227) 2022-11-24 15:48:39 -08:00
.env.testnet chore: add vega_docs_url to all trading envs (#2079) 2022-11-15 14:47:49 +00:00
.eslintrc.json chore: cleanup type gen (#2362) 2022-12-08 21:13:30 +00:00
client.graphql
index.d.ts
jest.config.ts
netlify.toml
next-env.d.ts
next.config.js
postcss.config.js
project.json chore: add custom export executor for next app (#1999) 2022-11-08 18:59:49 -08:00
README.md
sentry.client.config.js
sentry.server.config.js
setup-tests.ts feat(2146): adjust and refactor welcome dialogs (#2384) 2022-12-13 14:31:28 +01: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

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