bf34f1c060
* fix: #1486 move deal ticket hooks from console-lite to be re-used in trading app for console v2 * fix: #1486 typo * feat: #1486 deal ticket query update, console-lite fix * feat: #1486 console-lite fix * feat: #1486 initial hook to get fee details * feat: #1486 add tooltips * feat: #1486 add fees cell from market-info in tooltip * fix: #1486 edit deal-ticket.spec.ts titles and index.ts of deal ticket hooks * feat: #1486 move all hooks for slippage into deal ticket * fix: #1486 fix linting deal-ticket issue * fix: set price, fix NaN percentage, watch full order object * fix: update only when market price is updated * feat: #1486 add fees from est. order query, fees breakdown, fix BigNumber NaN issue * feat: #1486 add fee factors in generate deal ticket query * fix: #1486 show margin on short * fix: #1486 format price and fix dal ticket use order margin import * fix: #1486 fix price memo * feat: #1486 update estimate ordr query with order price or mark price * fix: #1486 revert apps/console-lite/.env * fix: #1486 fix NaN value on close out * fix: #1486 revert close out calculation * fix: #1486 prevent NaN close out * fix: #1486 revert close out * feat: #1486 add fee factor percentages in tooltip and fix NaN * fix: #1486 fix deal-ticket-steps est close out null handling * fix: #1486 fix deal-ticket-steps est close out null handling * fix: #1486 add tooltip for fees * fix: #1486 fix console-lite formatting on notional size and close out * fix: #1486 total fees formatting inside the hook * feat: #1486 add qutote to fees tooltip * fix: #1486 update hook, price, console-lite and styling * chore: fix mock types * fix: #1486 fix tests in console-lite * fix: #1486 add declaration.d.ts to console-lite-e2e * fix: #1486 fix deal ticket test * fix: #1486 fix deal ticket test Co-authored-by: Rado <szpiechrados@gmail.com> |
||
---|---|---|
.. | ||
assets | ||
components | ||
lib | ||
pages | ||
public | ||
specs | ||
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