3486244137
* chore: make proposals the home page, redirect home to proposals * chore: reorganise the remainder of the routes * chore: small styling bug * fix: nav links highlighted incorrectly * feat: rename title, rename routes to new structure, add redirects * chore: make navbar full width * feat: new navbar bases on trading navbar * chore: revert change to the width of the page * chore: make navbar reactive and support draw * chore: move draw into its' own file * chore: move nav into toolkit * style: lint * chore: trading to use navbar * fix: uppercase navbar title * chore: add test * fix: merge issue * style: lint * test: adjust test URLs * test: more route adjsuting * test: fix route name * test: change URL to be new url * test: more path corrections * test: more path fixes * style: lint * test: minor test fixes * test: more test fixes * test: fix incorrect paths * test: green build plz * chore: adjust name as per PR comments * test: fix path * test: fix incorrect path * test: final test fix * test: plz green |
||
---|---|---|
.. | ||
assets | ||
client-pages | ||
components | ||
lib | ||
pages | ||
public | ||
stores | ||
.env | ||
.env.devnet | ||
.env.mainnet | ||
.env.sandbox | ||
.env.stagnet1 | ||
.env.stagnet3 | ||
.env.testnet | ||
.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