* feat: improve proposal types, add faucet for trading asset
* chore: yarn lock update
* fix: capsule tests to avoid jsx import
* chore: throw error so that ethereum setup failure is caught
* chore: org files and add logging
* chore: revert current trading-e2e .env file
* chore: add .env.capsule for trading tests on capsule
* chore: remove unused nx command
* chore: remove try catchs and allow errors to be caught by cypress
* chore: add slow tag for capsule test
* feat: move create market setup to libs/cypress
* chore: clearly separate vars meant for capsule with vars meant for non-capsule
* feat: remove hardcoded urls and use config obj
* chore: fix missing comma in genesis.tmpl
* chore: added limit order edit price test
* chore: remove encoding of transaction, update proposal tx trigger ratio to string
* chore: fix date and add date verification for update order
* chore: formatting fix
* chore: adjust trading app tests and workflows to be run in capsule in ci (#2574)
* chore: adjust trading app tests and workflows to be run in capsule in ci
* chore: fix token tests
* chore: increase timeout as it fails in ci
* chore: move market check to before function
* chore: add capsule logs to trading
* chore: increase proposal close time, also break up script for better debugging
* chore: bump up ethereum account setup timeout
* chore: suppress fetch logs to help with debugging
* chore: revert cy wraps now with suppressed logging
* chore: decrease tick amount
* chore: promise with timeout for better debugging
* chore: bump individual timeouts
* chore: bump timeout for tx wait promises
* chore: minor fix
* fix: leave Promise<any>
* fix: leave Promise<any>
* chore: fix home fail
Co-authored-by: Joe <joe@vega.xyz>
Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com>
Co-authored-by: Radosław Szpiech <szpiechrados@gmail.com>
Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
* fix(#2569): market id copy update
* fix: enable cell text selection on ag-grid by default
* chore: fix partially filled order test
Co-authored-by: Rado <szpiechrados@gmail.com>
* feat: mobile navbar on Console
* feat: mobile navbar on Console - adjust unit test
* feat: mobile navbar on Console - adjust unit test
* feat: mobile navbar on Console - adjust themes
* feat: mobile navbar on Console - add some unit tests
* feat: mobile navbar on Console - refactor solution
* feat: mobile navbar on Console - adjust int tests
* feat: mobile navbar on Console - adjust styling
* feat: mobile navbar on Console - move close button into the drawer
* feat: mobile navbar on Console - adjust int tests
* chore: close drawe after navigation
* chore: mobile navbar on Console - adjust unit tests
* chore: mobile navbar on Console - adjust unit tests
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* fix: orderbook fixed dp - and show rejection reason
* fix: show rejection reason in order list
* fix: fix parked rejection reason test
* fix: remove not covered part
* 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
* chore: migrate to wallet client
* fix: bump client with new esm release version
* fix: add new no client error
* fix: bump wallet client to 0.1.2 and remove empty params from method calls
* fix: bump wallet client
* fix: format
* fix: reset client on url change
* fix: trading-deal-ticket tests after wallet client added
* fix: amend and cancel order tests, global connect tests
* chore: fix typescript error
* fix: connect wallet before mobile view test for console-lite
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* feat: add eth and vega transaction stores
feat: replace useStoredEthereumTransaction with useEthTransactionManager
feat: add event bus subsciption to vega transaction store
feat: handle order cancellation
feat: rename Deposit, Order and Withdraw status field to be unique
Revert "feat: rename Deposit, Order and Withdraw status field to be unique"
This reverts commit f0b314d53fb3ada6fbebaba4fd1e5af6f38beaed.
feat: split transaction update subscription
feat: handle order and deposit transaction
feat: handle withdrawal creation through transaction store
feat: handle withdraw approval
feat: handle panding withdrawls, add createdAt
feat: handle transaction toast/dialog dismissal
feat: add use vega transaction store tests
feat: add use vega transaction store tests
feat: add use vega transaction menager tests
feat: add use vega transaction menager tests
feat: add use vega transaction updater tests
feat: improve use vega transaction updater tests
feat: add use eth transaction store
feat: add use eth withdraw approvals store
feat: add use eth transaction updater tests
fixed tests
* feat: toasts
feat: toasts
feat: toasts
* feat: add use eth withdraw approval manager tests
* feat: add use eth transaction manager tests
* feat: add use eth transaction manager tests
* feat: add useEthWithdrawApprovalsManager tests
* feat: remove Web3Container react container from CreateWithdrawalDialog
* feat: remove Web3Container react container around TransactionsHandler
* feat: remove unnecessary async from PendingWithdrawalsTable
* feat: remove comments from WithdrawalFeedback
* fixed z-index issue
* cypress
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
* 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>
* chore: get rid of polling queries on dael ticket
* chore: get rid of polling queries on dael ticket - fix tests
* chore: get rid of polling queries on deal ticket - fix linter
* chore: get rid of polling queries on deal ticket - fix linter
* chore: get rid of polling queries on deal ticket - adjust int test
* chore: get rid of polling queries on deal ticket - adjust int test in console-lite
* chore: get rid of polling queries on deal ticket - adjust unit some test
* chore: get rid of polling queries on deal ticket - adjust unit some test
* chore: get rid of polling queries on deal ticket - clean up some redundant types
* chore: get rid of polling queries on deal ticket - clean up some redundant files
* feat(#2273): make orders and fills tabs market specific in trade grid
* feat(#2273): fix order navigation and show orders for this market only checkbox
* fix(#2273): fills container should not require market
* feat(#2273): add marketId as hook dependency
* fix: use data-testid in trading orders
* fix(#2273): default to false
* feat: adjust and refactor welcome dialogs
* feat: adjust and refactor welcome dialogs - add int tests
* feat: adjust and refactor welcome dialogs - small fixes and imprvments
* feat: adjust and refactor welcome dialogs - fix a typo
* feat: adjust and refactor welcome dialogs - fix a property name
* feat: adjust and refactor welcome dialogs - fix an unit test
* chore: remove apollo type gen and clean up types lib
* fix: format
* fix: tests
* fix: format
* fix: hammer token types til sh*t turns green
* fix: format
* fix: apparently format again
* fix: lint
* fix: build-specs
* fix: format
* chore: regen types
* chore: regenerate types again
* fix: format
* fix: live validation in deal ticket - reset validation after market state or account balance changes
* fix: live validation in deal ticket - reset fix lint error
* fix: live validation in deal ticket - adjust failing int test
* fix: live validation in deal ticket
* fix: live validation in deal ticket
* fix: live validation in deal ticket
* fix: live validation in deal ticket - fix test mock generate
* chore: split ag-grid table for make one empty ready for new records
* chore: split ag-grid table for make one empty fix linter issues
* chore: split ag-grid table for make one empty change implnt. Add unit test
* chore: split ag-grid table for make one empty fix failing int test
* feat: add status header stat, move header to own component
* chore: fix alignment of price change values when arrow is not rendered
* test: add check for market state display
* feat: add market state component and adjust queries to handle sub updates to market state
* test: update mocks to include data.marketState fields
* chore: add missing market state to console-lite mock
* chore: test adjustment
* fix: botched conflict resolution
* chore: update select market columns test
* chore: add missing fields to test helper functions
Co-authored-by: Rado <szpiechrados@gmail.com>
* feat: make a single button to connect to either wallet gui or cli
* chore: update token to use jsonrpc connector
* chore: update stray connector-cli entry
* chore: update mock queries to return matching chain id, change tests to connecting using jsonRpc
* chore: add type map for TIF short code
* chore: update data testid as cli and gui are combined into jsonRpc
* chore: remove unused env vars and update readme
* test: trading e2e switched to use v2 wallet
* chore: fix remove transaction from storage
* chore: mock for v2 wallet transactions added
* test: added new mock for transaction, updated deal ticket and withdraw tests
* chore: skipped some mock to allow wallet connection
* chore: remove unused function
* chore: dont make chain id check when in test
* chore: fix lint warnings
* chore: fix trading fills test by ensuring correct pubkey is used for connection
* chore: add comment for cypress check in json rpc connect flow
* chore: add chainID mock
* chore: add data-testId to order list status cell
* chore: fix testid
* chore: fix trading-portfolio test
* chore: revert marigin test changes
* chore: improve tests regarding wallet connection
* chore: reuse ordersubmission type in test
* chore: apply connect vega wallet changes to console-lite-e2e
* chore: trigger lint
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
* fix: make asset dialog use asset id rather than symbol
* fix: tests that relied on asset symbol rather than id
* chore: add missing asset id to mocks
* chore: add asset id to mocks for e2e tests
* chore: add missing asset id for orders mock
* chore: fix console-lite build
* chore: add missing asset ids to mocks
* chore: update stagnet3 urls
* chore(#2179): remove normalized number formatter functions and update getNumberFormat
* fix(#2179): fix unit tests on all formatters
* fix(#2179): fix some cypress tests
* fix: fix trading-accounts.cy.ts
* fix: update staking and wallet teardown tests
* chore: add e2e run-all command
* fix: wallet-eth test
* fix: fix tests in explorer and token
* fix: fix common.functions.js
* fix: fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
* fix(#2179): fix common.functions.js in explorer
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore: update of deal ticket data
* chore: update of deal ticket data
* chore: update of deal ticket data - fix re-render loop
* chore: update of deal ticket data - add marketDealTicketProvider
* chore: update of deal ticket data - add marketDealTicketProvider
* chore: update of deal ticket data - adjust console-lite to the changes
* chore: update of deal ticket data - fix failing unit tests
* chore: update of deal ticket data - fix failing unit tests
* chore: update of deal ticket data - fix linter failings
* chore: update of deal ticket data - adjust console-lite-e2e
* chore: update of deal ticket data - fix build-spec failings
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - fix failing e2e tests
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - remove unnecessary gqls
* chore: update of deal ticket data - fix failings build
* chore: update of deal ticket data - remove redundant data provider
* chore: update of deal ticket data - remove redundant data provider
* chore: update of deal ticket data - fix some types
* chore: update queries using deprecated fields
* chore: regen generated files
* fix: account for new data shape as a result of PartyBalance.graphql changes
* fix: accounts data resulting from MarketInfo.graphql changes
* fix: accounts data resulting from PartyMarketData.graphql changes
* fix: accounts data resulting from MarketPositions.graphql changes
* fix: accounts data resulting from Accounts.graphql changes
* chore: update generate functions to return the correct shape
* chore: fix deal ticket tests
* chore: add missing fields too generateMarketInfoQuery mock
* chore: remove tsignore now object is properly typed
* fix: add missing mock for trading page
* chore: fix import path for validation hook
* chore: fix no data display for console lite assets
* 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
* fix: migrate queries to latest apis
* fix: remove oracles section for now
* fix: dive in to fields correctly
* fix: update queries
* fix: fragment for stats fields
* fix: rename triple underscore generated
* chore: refactor types that have moved
* chore(explorer): disable e2e test that asserts json structure
* feat(#580): add link to update market proposal
* feat(#580): fix cypress test for propose a change to market link
* feat(#580): fix market info proposal update cypress test