c5b6032184
* feat: account hitory poc * feat(#469): update account history and chart * feat(#469): remove radix toggle group * fix: add use memo and some tweaks to make sure you pass undefined to cancel all * feat(#469): add new version pennant * feat(#469): style account history chart and no data splash * fix(#469): use splash only * fix(#469): sort assets list * feat(#469): new pennant version * fix: update query * fix: update query * Update libs/orders/src/lib/components/order-list/order-list.tsx * Update libs/assets/src/lib/asset-details-dialog.tsx * feat(#469): update test on trading positions tab * Update apps/trading-e2e/src/integration/trading-positions.cy.ts * fix: click on positions in portfolio * feat(#469): refactor with async renderer * feat(#469): refactor date range in account history Co-authored-by: Matthew Russell <mattrussell36@gmail.com> |
||
---|---|---|
.. | ||
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