* 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>
* 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: 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>
* Feat/800: Configured routes for different proposal types
* Feat/800: Refactored propose.tsx to be a hub for the new proposal routes
* Feat/800: Link style tweak for proposals guide
* Feat/927: Hydrating the new proposal forms
* chore: fix typings for shared components
* Feat/927: Proposal forms built with reusable components
* Feat/800: Updated network params, added new method to get param keys as well as values, updated generated types
* Feat/800: Updated and built more reusable proposal form components
* Feat/800: Removed old catchall file of reusable proposal form components
* Feat/800: Added utils for vote deadline and enactment timestamps
* Feat/800: Readded necessary 'color-scheme-dark' class for dark-theme date and datetime inputs
* Feat/800: Tweak to icon positioning on the dialog component
* Feat/800: Regenerated types for network params
* Feat/800: Added iso8601-duration package for working with API vote deadline and enactment data
* Feat/800: Reworked the proposal forms
* Feat/800: Couple of translation additions
* Feat/800: Another translation addition
* Feat/800: Raw proposal test (tests as per old proposal form test)
* Feat/800: Some basic proposal form tests
* Feat/800: Fixing small types error in test
* Feat/800: Updating simple proposal form tests
* Feat/800: Set up env-specific proposal docs links
* Feat/800: Deadlines to the bottom of proposal forms
* Feat/800: Another type error from API changes fixed
* Feat/800: Added the spam protection min tokens network param to proposal forms requests, and the min requirements now displays the larger value of spam protection or min proposer balance
* Feat/800: Network param value change now a textarea
* Feat/800: Improved way to pass docs url
* Feat/800: Added useful explorer links to proposal forms
* Feat/800: Show current value of selected network param in proposal form
* Feat/800: Removed wallet-confirmation buffer, suspect it is not necessary
* Feat/800: Condense vote and enactment ui into single component for simpler state management, memoised some stuff
* Feat/800: Set a default select option for the market selector
* Feat/800: For network params that aren't JSON, display the network param current value in a readonly text input rather than the syntax highlighter
* Feat/800: Corrected network param form network params
* Feat/800: Timestamp functions for closing, enactment and validation, with tests
* Feat/800: More translations
* Feat/800: Added validation options to proposal-form-vote-and-enactment-deadline.tsx, generally improved the component and added tests
* Feat/800: Improved workings of proposal-form-min-requirements.tsx and wrote tests
* Feat/800: Tests for the other reusable form components
* Feat/800: Improved tests for the proposal forms
* Feat/800: Corrected mistake in get-enactment-timestamp.ts
* Feat/800: Fixed type issues that were preventing spotting an error
* Feat/800: Added some extra docs links
* Feat/800: Using renamed Dialog passed in from useProposalSubmit
* refactor: network params to return an object
* fix: update net param form, remove old net params obj
* fix: check for params before rendering
* Feat/800: Rename and simplify isJson based off PR comment
* Feat/800: Small tweaks to timestamp helpers based on PR comments
* Feat/800: Removed proposal-docs-link.tsx
* Feat/800: Used bignumber for min-requirements calculation
* Feat/800: Update tests to work with merged network params branch
* Feat/800: Removed unnecessary translations splitting
* Feat/800: Removed unwanted test
* Feat/800: Removed unwanted tests
* Feat/800: Consistent arrow functions
* Feat/800: Sorted links
* Feat/800: Removed unnecessary typecasting
* Feat/800: Refactored routing
* Feat/800: Refactored mocking of proposal forms to use MockedProvider
* Feat/800: Correct response from the raw proposal submission test
* Feat/800: Removed console.logs added for debugging
* Feat/800: Result of running 'nx format:write'
* Feat/800: Cleaning up lint warnings
* Update apps/token/.env.stagnet3
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Feat/800: Added extra test for docs link in the proposal-form-terms component
* Feat/800: Removed stray console.log
* Feat/800: Added basic render test for proposal-form-terms and cleaned up a bit
* Feat/800: Added tests for the correct form components for the different forms
* Feat/800: Split up the proposal-form-vote-and-enactment-deadline components inside the file to make things a bit more readable
* Feat/800: router config webpack chunk name tweak
* Feat/800: Lint issue fixed
* Feat/800: Fixed timing issue with get-[deadline]-timestamp tests
* Feat/800: Setting a system time in proposal-form-vote-and-enactment-deadline.spec.tsx that doesn't get affected by British Summer Time
* Feat/800: Skipping a cypress test as the newProposalButton no longer takes a user directly to a proposal form. Leaving it in the codebase as the test is very likely to be updated.
* Feat/800: Adding comment on why I've skipped a cypress test
Co-authored-by: Dexter <dexter@vega.xyz>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* feat: add new generator with config
* feat: split off gql queries to separate files for the new generator
* fix: delete dummy schema
* feat: add generated queries with new codegen
* fix: regenerate from scratch and remove duplicates
* fix: libs and app gen folders
* fix: remove more duplicate queries
* fix: add generated files to be ignored by the formatter
* fix: format
* feat: migrate assets to use new code generator
* fix: generated imports
* fix: lint
* fix: accounts export
* fix: more imports
* fix: add type alias for new type system and regenerate
* fix: format
* fix: export
* fix: format
* fix: delete leftover file from merge
* chore: migrate candles-chart lib
* fix: remove redundant asset files
* chore: migrate accounts
* chore: update glob
* chore: add cleanup to fix-imports to support type migrations for now
* fix: imports
* fix: update market types
* fix: type import paths
* fix: format
* fix: import
* fix: types in e2e tests
* fix: format
* fix: lint
* feat: add new generator with config
* feat: split off gql queries to separate files for the new generator
* fix: delete dummy schema
* feat: add generated queries with new codegen
* fix: regenerate from scratch and remove duplicates
* fix: libs and app gen folders
* fix: remove more duplicate queries
* fix: add generated files to be ignored by the formatter
* fix: format
* fix: generated imports
* fix: lint
* fix: accounts export
* fix: more imports
* fix: add type alias for new type system and regenerate
* fix: format
* fix: delete leftover file from merge
* feat: create new buttons
* feat: update anchor and button link styles
* feat: add icon support
* feat: fix full width with icon
* feat: convert invalid button props to use new props
* feat: tidy up explorer
* feat: more tidy up for token and trading
* feat: move styles to css file using @apply
* chore: remove css with @apply as its not working in apps
* fix: deposit form button
* feat: use default tailwind config, start on forms
* feat: fixup trade grid styles
* feat: form styles
* feat: styles for order book and tables
* feat: make key management use dropdown
* feat: update various components
* feat: tidy up wallet section
* feat: token tidy up
* feat: token governance styles
* Feat/927: Dialog styling
* feat: token styles
* feat: add font familys
* feat: change token borders to be softer
* feat: console-lite changes to support new theme
* Feat/927: Centered key-value-table.tsx spacing
* Feat/927: Tweak to Explorer site border colours to be inline with trading
* Feat/927: Tweak to Explorer header
* Feat/927: Theme switcher icon colours
* Feat/927: Fix for Explorer block data styling
* feat: fix tests, add status footer and change logos
* feat: render both theme icons to avoid hydration error
* chore: run migrations for project
* fix: tailwindconfig build to work with new next version
* feat: use document page for next as per documentation
* chore: update build targets to use development mode when serving
* fix: console-lite default text colors
* chore: fix tooltip text break, change submit button
* feat: adjust console-lite styles to work with tabs
* feat: add bespoke dialog for console-lite market-selector
* Feat/927: Theme switcher now has prop for fixed bg colour
* Feat/927: Font size and border radius tweak for toggles
* Feat/927: Cleaned up trade-grid.tsx spacing
* feat: responsive styles for market header and nav
* feat: update designs for market popover
* fix: nav active state
* chore: allow classname to be passed to button
* Feat/927: Fix Token width on desktop (was overflowing)
* Feat/927: Fix token header h1 from wrapping
* Feat/927: Tweak for claim-flow.tsx
* fix: connect button test
* Feat/927: Proposals list styling polish
* Feat/927: key-value-table.tsx spacing tweak
* feat: add copy button to kp dropdown
* Feat/927: Removing old theme params and uses
* Feat/927: Removing old theme params and uses, documenting the now used otb sizes
* feat: use key val table in asset dialog
* feat: align tooltip styles
* fix: orderbook grid alignment
* chore: linting
* fix: dialog sizing in medium mode, node switcher styles
* chore: remove unused color classes
* feat: update radio and checkbox designs
* feat: updates to storybook
* feat: update design system stories
* chore: stories update
* chore: rename resize panels and tidy
* feat: fix checkbox tick
* fix: add poyfills for jest in trading test setup
* chore: fix checkbox tests
* chore: fix tests
* chore: fix tests again
* chore: revert token wallet name test
* fix: tooltip tests on console-lite
* fix: wallet dropdown test
Co-authored-by: sam-keen <samuel.kleinmann@gmail.com>
* fix: order validation updates & warning messages
* fix: add extra warning message
* fix: order list and test
* fix: text-ui on loading market data...
* fix: when market is cancelled it can't accept orders
* fix: display rejection reason behind stopped orders
* fix: remove punctuation marks from warning/reasoning message
* fix: format order-feedback
* fix: order feedback test
* fix: do not use market state to display
* fix: format use order valid hook
* fix: add required and min price on edit and deal ticket
* fix: remove price validation on market orders as there is no price input
* fix: check format
* fix: format error labels
* fix: order validation test
* Update package.json with test:all
* Update libs/orders/src/lib/components/order-feedback/order-feedback.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: add step on input
* fix: remove decimal places format on init
* fix: input type fix
* fix: order edit price with toDecimals stepper
* fix: remove set value and null check in form
* fix: use form validate on edit
* fix: try fixing test after step added
* fix: making rejection reason startcase again
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: orderbook decimal formats
* fix: format position pnl by market asset decimal
* fix: update depth chart with new volume format prop
* fix: format
* fix: update orderbook row with new criteria
* fix: revert positions table change
* fix: revert price decimal
* fix: revert other price thing
* fix: add price formatting to depth chart
* fix: rename format to parse
* fix: format volume numbers with the correct decimals to have the right ratios on the depth chart
* fix: format
* fix: deal ticket price decimals
* fix: lint