vega-frontend-monorepo/libs/deal-ticket/src/index.ts

5 lines
109 B
TypeScript
Raw Normal View History

export * from './components';
feat: 1486 add details of expected fees margin close out to deal ticket (#1771) * 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>
2022-10-23 13:08:02 +00:00
export * from './hooks';
fix(#1691,#2040): deal ticket validation (#2045) * feat: update validation for size and price so they are reported simultaneously * feat: adjust styles so error messages for price/size are rendered on one line * fix: missing key in map error * feat: split validation out on a field by field basis * refactor: remove unnecessary price setting and just use props to calc market price * refactor: rename setOrder func and add a comment * chore: add type for form fields to allow for summary field * fix: layout of market order size and price * fix: casing of size/price in validation message * refactor: fix type errors for summary react nodes and for tif and type validation * feat: break out functions for testing market.state and market.tradingmode on submit * fix: deal ticket test for last price value * chore: remove unused files and move hooks and utils to correct dirs * chore: tidy up constants * fix: const before enum invalid syntax * feat: dont block submission if not enough margin but do if zero balance * chore: remove duplicated margin warning message * feat: dont allow margin warning and error message to render at the same time * feat: make trading mode check just a warning rather than error message * test: make markets active so they are tradable, renaming describe blocks for clarity * test: adjust test ids and disabled state and fix tests * test: include AC codes in tests * chore: remove click of in test as form is already dirty * fix: lint errors, only show margin warning if you have balance * chore: add ts ignore * chore: re add use-order-validation hook for console-lite specifically * chore: update use-order-validation test after consumed margin check hook changed * fix: circular deps issue in console-lite * chore: update use order validation hook to use Schema rather than direct import
2022-11-16 00:00:14 +00:00
export * from './utils';
export * from './constants';