* chore: improve assertions for deposits
* test: validation test passing
* test: withdrawal tests passing
* fix: test failures in CI
* fix: lint
* chore: add env variables
* fix: failing tests due to wallet service not running
* ci: pass automatic cnsent
* ci: init wallet in other directory
* ci: pass home string everywhere
* ci: config is already imported
* fix: failing deposit and nightly run
* ci: port over changes from pr run
* fix: failing network param tests
* fix: assertion
* fix: assertion one last time
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* begin capsule workflow
* remove workflow file we don't want to run while debugging
* vheckout all require repos
* checkout repos to a directory each
* correct branch names
* rename workflow
* fix incorrecr branch name
* begin building binaries
* typo
* remove tests we don't want running while debugging
* remove tests we don't want running while debugging
* typo
* incorrect path
* comment out frontend checkout
* don't install as not done in example script
* add required environement variables
* change paths
* comment out FEM checkout
* check binary built properly
* path stuff
* silly mistake
* use relaive path
* correct working directory
* fix all paths
* debugging
* bump go verion
* fix path
* fix all paths
* fix cannot find config error
* add back in fe stuff
* move cehckout to where it is used
* revert accidentally committed change
* try install over build
* use v3 of action
* export as per action
* debugging
* don't pass path to install
* chnage go install
* change order
* pwd
* pwd
* see what happens without dn
* don't use relative path
* build correct paths
* remove checks as working
* make epxlorer run against locla capsule
* fix incorrect env file
* fix tests
* fixing tests
* trying for green run
* trying for green run
* bump timeout
* check tm endpoints
* configure to use the second tender mint node
* ci: add logs out
* ci: change paht
* ci: set env var correctly
* ci: remove wait for blockChain request
* ci: make test value assertions more robust
* ci: make test value assertions more robust
* chore: minor typo
* ci: add back test and lint scripts
* ci: comment out unused pipeline for now
* ci: break up job into steps
* ci: run all tests and pray it works
* ci: just use local vega wallet
* ci: not building it any more, use go installed bin
* ci: derive hashes properly
* ci: move existing folow into nightly
* ci: run nightly for all tests
* ci: use install bins
* ci: add missing flag
* ci: gobin
* ci: debugging
* ci: echo gopath
* ci: wrong syntax?
* ci: one last time?
* ci: try something else
* ci: try other things
* ci: again
* ci: move var to github env
* ci: set gobin
* ci: syntax
* ci: test out nightly
* ci: switch back nightly to posix
* ci: force network bootstrap
* ci: fix stupid mistake, pass falg to command not name
* ci: put test back
* ci: run on push as well as on pr
* ci: always upload logs if possible
* ci: import config from capsule rather than testnet
* Update apps/explorer-e2e/cypress.json
* test: fix failing test now we are using binaries
* ci: correct URL
* fix: use static tranches data
* fix: lint
* refactor: use fetch rather than custom implementation
* fix: make error handling consistent for useTranches
* Revert "fix: make error handling consistent for useTranches"
This reverts commit 357cbc45f8.
* Revert "Revert "fix: make error handling consistent for useTranches""
This reverts commit 14f84608dd.
* fix: render loop
* [#305] add initial landing dialog on markets page and fix some typos
* [#305] market-list utils and generate schema
* [#305] initial styling of the landing dialog and add arrows
* [#305] routing to markets and add hover and market list tests
* [#305] fix z-index on dialog overlay
* [#305] default market shoulde be oldest market that is currently trading in continuous mode
* [#305] refactor market-list library
* [#305] add arrow unit tests
* Update libs/market-list/src/lib/components/landing/landing-dialog.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/market-list/src/lib/components/landing/select-market-list.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update libs/market-list/src/lib/components/landing/select-market-list.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* test: fix failing tests from homepage change
* [#305] sort by id after sorting by date
* test: increase timeout for failing tests in CI
* [#305] destructuring all over the place and some code tweaks, arrows and percentage changes
* [#305] update sparkline to show colour
* [#305] fix order of market list
* [#305] stretchedLink class plus a-tag href for navigation - accessibility updates
* [#305] use href only and remove log
* [#305] use bignumber.js for price calculations
* [#305] change to bg-white/50 on dark mode overlay as asked from UX
* [#305] change to bg-white/50 on dark mode overlay as asked from UX
* [#305] toLocaleString fix
* [#305] toLocaleString fix
* [#305] add price-change-cell and use formatNumber
* [#305] add extra test for select market list
* Update apps/trading/specs/index.spec.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* [#305] use memo, sort by date and id lodash
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* feat: add env specific serve commands where appropriate for apps
* fix: typo in command call
* feat: add custom executor for serving apps
* chore: clean up project files and use the custom executor
* chore: patch readmes
* chore: split out logs into their own function
* fix: prevent overriding env when no flag passed in
* fix: add tsc to postinstall to take care of compiling the custom executors
* fix: remove the custom serve executor from trading
* feat(simple-trading-app): add drawer component to ui-toolkit
* feat(simple-trading-app): use drawer component and add navigation routes
* feat(simple-trading-app): move drawer out of ui-toolkit and into simple trading
* feat(simple-trading-app): remove suspense for now as nothing gets lazy loaded
* feat(simple-trading-app): add simple market list into routes
* fix: nav colors
* chore: replace blueprint progress bar
* chore: remove blueprint overlay and no unused components
* feat: add radio group to ui-toolkit
* feat: adjust disabled opacity and use radio in forms on staking flow
* chore: rename RadioItem to just Radio
* chore: replace country selector with plain select
* fix: key prop warnings
* feat: convert token drawer from blueprint drawer to radix dialog
* chore: remove blueprint core and blueprint select dependencies
* fix: add missing data test id for header title
* fix: spacing on token disassociate page
* fix: missing key props on vesting chart
* feat: update radio button design
* style: radio button UI tweaks
Co-authored-by: PeteWilliams <me@petewilliams.info>
* Initial commit after nx create
* Add .env files
* Add working commit for poc
* Make deal-ticket-manager.tsx accept children as props and export more components to be consumed by external apps
* Add stepper component to simple trading app
* Add basic prototype for simple trading app with stepper component
* simple market app - simple market list - initial commit
* simple market app - simple market list - add some new changes
* Resolve conflicts after rebase
Initial commit after nx create
* Add stepper component to simple trading app
* simple market app - simple market list - remove wrongly added file after rebase
* simple market app - simple market list - proposals of layout frame and percent change calculation
* simple market app - simple market list - proposals of working solution
* feat: [simple-app] - simple market list - clean up gQL queries
* feat: [simple-app] - simple market list - indicate no auctionEnd
* feat: [simple-app] - simple market list - a bunch of changes after review feedback
* feat: [simple-app] - simple market list - get expire date from instrument tag
* feat: [simple-app] - simple market list - a bunch of small improvements
Co-authored-by: Elmar Gasimov <elmar@vegaprotocol.io>
Co-authored-by: maciek <maciek@vegaprotocol.io>
* remove freeform from proposal query and replace it with the rationale field
* fix: regenerate types and fix proposal names getter
Co-authored-by: Botond <fekbot@gmail.com>
* delete token version of vega wallet serivce
* update use-user-vote to use new wallet service
* remove typo
* add further types for transaction submissions, add assets to withdraw page query
* update api client package to get generated types, adjust render logic of withdrawals page
* fix withdrawals list rendering
* update determine id function to not use nodejs buffer
* update service api client so it accepts new tx types
* remove stray logs and formatting
* make filtering erc20 assets the responsibility of the withdraw/deposit lib and not the app
* remove sha3 dep and use js-sha3 and ethers to determine ids
* use hook for fetching withdrawals form lib, add type policy to ensure withdrawal state is updated correctly
* fix: markets page feature
* remove staking page scss and invalid class for buttons
* remove pending stake and staking form scss
* make eith wallet buttons fill space
* convert app banner and app footer to tailwind
* remove low hanging fruit css
* add spacing back to home page
* fix spacings on various pages
* remove custom text helpers and replace with tailwind
* Loader component scss to tailwind
* Locked progress scss to tailwind
* Nav scss to tailwind. Cleaned up structure and removed 'bp3-dark' class from index.html
* Page template scss to tailwind
* Splash error scss to tailwind
* Splash loader scss to tailwind
* Token-input scss to tailwind
* Stateful button scss to tailwind
* Transaction button scss to tailwind
* Transactions modal scss to tailwind
* Modal scss to tailwind and improved structure
* vega-wallet scss to tailwind
* wallet-card (and child components in other files tweaked) scss to tailwind
* Token details scss to tailwind
* Home scss to tailwind
* current-proposal-state scss to tailwind
* current-proposal-status scss to tailwind
* Tweak of modal scss to tailwind
* vote-buttons scss to tailwind
* vote-details scss to tailwind
* vote-progress scss to tailwind
* tranche-table scss to tailwind
* vesting-table scss to tailwind
* withdrawals scss to tailwind
* removed reliance on colors.scss from styles.scss
* convert tranche item scss
* delete unused colors and fonts scss files
* convert styles.scss to regular css
* Tweak to token e2e tests to account for classname removal
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Making a start with react-window-infinite-loader for the blocks infinite scrolling
* WIP block explorer infinte scroll
* WIP pairing
* pairing tidying
* Applied refetch url params more cleanly, moved useFetch to react-helpers lib
* Add notice of new blocks created since page load, some cleanup of blocks-infinite-list.tsx component
* Attempting a refresh of the 'new blocks' value in blocks-refetch.tsx
* Correctly updating state based on previous value
* Update libs/react-helpers/src/hooks/use-fetch.ts
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Update libs/react-helpers/src/hooks/use-fetch.ts
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Update apps/explorer/src/app/components/blocks/blocks-refetch.tsx
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Cleanup from convos and PR
* Prettier formatting
* struggling with websocket tests
* struggling with websocket tests
* Progress on websocket tests for blocks-refetch.tsx
* Tests for blocks-refetch
* Tests for blocks-infinite-list
* Scroll test for blocks-infinite-list
* Defined NOOP in blocks-infinite-list.tsx
* Separate web sockets for each test
* Separate web sockets for each test
* Tweaked e2e tests to account for blocks taking longer to load
* fix tests
* Removed nx knowledge of empty simple-trading-app-e2e for now
* mock at use fetch level instead of at fetch level
* fix edge cases and add further tests
* fix failing e2e tests
* rename test
* Update apps/explorer-e2e/src/support/pages/blocks-page.ts
* Update apps/explorer-e2e/src/support/pages/blocks-page.ts
* rename
* test: use explicit wait for rather than times
* style: remove console
* test: correct env file
* Revert "test: correct env file"
This reverts commit d01d3cfa5e.
* think env var is incorrect
* correct env file
* fix flakiness
* add minor wait for test flakiness
* longer timeout
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Initial commit after nx create
* Add .env files
* Add working commit for poc
* Make deal-ticket-manager.tsx accept children as props and export more components to be consumed by external apps
* Add stepper component to simple trading app
* Add basic prototype for simple trading app with stepper component
* Remove unnecessary flags and env variables
* Change simple trading app port
* Refactor deal ticket container to be more dry
* Refactor deal ticket to be more dry
* Refactor app loader, remove tendermint socket and change providers for App.tsx in simple trading app
* Remove example cypress files and change config
* Fix linting issues
* add feature/scenarios for deposits
* add file for auction orders tests
* update feature file for deposits
* update feature tests for deposit
* add feature/scenarios for deposits
* add file for auction orders tests
* update feature file for deposits
* update feature tests for deposit
* add test for wallet not connected
* fix lint warning
* add mock ethereum provider to allow connecting ethereum wallet
* add basic test for required validation errors
* add aria for input errors for a11y and test targeting, expand submit form helper
* use mnemonic for private key generation, update tests to not submit and just assert validation message updates
* add chain id to cypress config
* update scenario
* remove feature file
* lint fix
* Update apps/trading-e2e/cypress.json
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* use mnemonic from github secret, update cypress.json env vars to match
* fix typo in test name and mnemonic env var
* update env variables
* update eth wallet mnemonic env
* Update libs/cypress/src/lib/eip1193-bridge.ts
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* remove unused reference to chainId
* update casing
* chainId reference from cypress.json
* Update apps/trading-e2e/cypress.json
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Update apps/trading-e2e/src/support/step_definitions/deposits.step.ts
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* ignore a known failing step in the test due to wallet connected having approved status
* update testid
* update tests for deposits
* tidy up comments in custom cypress commands
* add comment about eager connect when running in cypress
* update deposits tests
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Add additional checks before and after click
* Change back to use cy.contains
* Add assertion before click
* Change assert
* Remove force
* Add click
* Increase timeout
* move colors in ui-toolkit/config
* fixing tests and add stories
* fixing some tests and edit story
* update sparkline story
* rename story templates for sparkline
* use tailwind colors and rename to *.spec.tsx
* use tailwind only
* remove test.tsx
* Update libs/tailwindcss-config/src/theme.js
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* remove gray from tailwind and use black/40 and white/40 for strokeCurrent
Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* Converted app.scss
* Made a start converting styles.scss
* commenting out unused colours - test for now
* restoring font-family
* Added correct text colour and height to top level elements
* Eth connect button styling
* Truncated wallet key on staking screen (had been causing overflow)
* Tranches Scss to tailwind
* Withdraw form Scss to tailwind
* Part way done with staking Scss to tailwind
* Removed redundant containerClass prop from epoch-countdown
* Cleanup of colors part 1
* Ran prettier
* Changes from the MR - removed epoch-countdown styles (apart from blueprint, which has moved to styles.scss)
* Changes from mr - removed extra button size classes (to be replaced with a prop later)
* Changes from mr - allow Tailwind's default list styles. Added role="list" for accessibility
* Border-box applied via wildcard again
* MR tweaks
* Removing the eslint warning for using role="list" on unstyled lists
* Correctly naming the jsx-ally plugin in the eslintrc file so that rules were correctly applied
* Removed redundant 'list-none' classes as Tailwind applies this by default for lists
* network parameters table with key value rows and syntax blobs only for json values
* inline row not for syntax
* add unit test for network param table
* add cypress test to verify if values are non-empty
* remove some comments
* rename formatNumber method to addDecimalsFormatNumber and simplify formatNumber
* remove duplicate expect line
* use AsyncRenderer and sort params asc
* refactor and add extra tests to check ordering and loading cases
* format big number params with addDecimals formatNumber
* Update apps/explorer/src/app/routes/network-parameters/network-parameters.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* capitalize and refactor tests
* missing ; caused formatting to fail
Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* move key-value-table to ui-toolkit and use tailwind
* add key-value-table to storybook
* override border width 1px from the styles of the app, remove td and th from children
* clone muted and numerical props to children elements
* proposal change table remove empty lines
* add Roboto mono to font-mono tailwind config
* remove labels and labelfor
* revert change on token-details-circulating
* export the whole components directory rather than explicitly individual components
* add classNames, add formatNumberPercentage, remove spans, add span in token details circulating
* data-testid=governance-proposal-enactmentDate and use span instead of div
* use custom spacing defined in tailwind & another README.md update for running cypress in watch mode
* update divs to span within the vesting table
* Update README.md
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* borders and text visible on both dark and light themes
* add headingLevel and use dl instead of tables
* update styling for dl inline
* remove added grey from tailwind
* ignore md files
Co-authored-by: madalinaraicu <“madalina@raygroup.uk”>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* move accounts and positions into own feature, add mock for accounts
* use length for expected number of columns
* combine trading feature tests into single trading-page.feature
* add orders scenario for trading page
* fix typo
* move related test cases for orders together
* Moved syntax highlighter from explorer to ui-toolkit
* Update libs/ui-toolkit/src/components/syntax-highlighter/syntax-highlighter.stories.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Added a light theme for syntax highlighter, added the styling for syntax highlighter to our custom classes
* Suboptimal but successful way of ensuring styling is applied to syntax highlighter
* Styling syntax highlighter with scss
* Fix failing test
* Back to applying styling via custom plugin, but with a wrapper on the syntax highlighter ensuring Tailwind doesn't cull the classes
* Preferred class name
* prettier formatting
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
* add withdraw page
* add create page and withdraws lib with basic components
* add create withdrawal functionality, add withdrawal dialog
* re arrange pages so we have a pending page with a list of withdrawals and a withdraw page with the form
* handle withdrawal completion
* add withdraw dialog so withdraw is completed in one flow
* rename and arrange prop getter function to avoid use of any
* tidy up and make eth transaction and vega transaction hooks follow similar patterns
* make complete withdraw hook fetch approval, combine hooks for full flow
* delete unused file
* add accounts to query to get use max withdraw button
* use ag grid fro withdrawals list
* format amount in grid
* ensure party has id field for cache
* update to use t i18n function
* change complete status to better match values of WithdrawalStatus
* add asset lib file for type guard
* share queries for withdraws lib
* move web3 related hooks to the web3 lib and make web3 lib buildable
* add unit test for use-complete-withdraw
* add test for use-withdraw
* add e2e scenarios for withdrawals
* don render custom no withdrawals message and use ag grid prop
* make withdraw form take ethereum account as prop
* add test config, update withdraw form to handle min/max amounts, add unit test for withdraw form
* fix rendering 0 if not pending withdrawals
* use controlled component for select box
* tidy up async parts of tests, add test for withdraw-manager
* update withdraw dialog to use map for different tx states
* add fallback etherscan link, add test for withdraw-dialog.spec.tsx
* rename erc20 query in token app, change page structure to /withdraw and /withdrawals
* change linked vegawallet-service-api-client to newly published version
* ignore not implemented withdrawals e2e tests
* make vega tx pending and requested states the same, for now, until tx confirmation work is done
* Add some unit tests for determine-ids and remove0x
Neither are critical, but both are libs expected to be shared between
projects so some unit tests will hopefully ensure projects all have the
same expectations about how the functions act.
- Add 1 determine-ids test
- Add a few remove-0x tests
- Update determine-ids to use remove-0x
- Add a comment describing why i18n is what it is
* modify cache with client only field for tracking foreign chain progress
* move withdrawals-list to lib, add useWithdrawals hook
* add container component for withdrawals page
* add unit tests for withdrawals-table
* add some tests for use-withdrawals hook
* revert changes to generated files in other libs and apps
* update withdrawals scenarios
* resolve pr comments
* update page containers to use render prop rather than children
* delete unused files
* remove transaction dialog story
Co-authored-by: Ditmir-Vega <ditmir@vega.xyz>
Co-authored-by: Edd <edd@vega.xyz>