* 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>
* 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
* chore: seoplia migration
* fix: remove trailing slash from etherscan urls
* fix: make mock assets for withdraw form real assets so working with infura works
* chore: remove stray screen.debug
* fix: global mocks for chainid
* fix: add additional chain id mock for withdrawals page
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* chore: disable video record for token e2e
* chore: disable videos in all tests
* fix: change main-branch-name to base-ref
* chore: disable capsule being run when not necessary
* fix: missing true
* chore: fix typo
* chore: fix if contruction
* chore: fix env
* chore: fix envs
* chore: try to fix develop ref
* 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: change test command for night run
* chore: try command in capsule run
* chore: correct command
* chore: change checkout to master
* chore: revert changes
* chore: fix typo
* frontend-monorepo-633: Oracles in block explorer - initial oracles page and router setup
* frontend-monorepo-633: Oracles in block explorer - added generated types file
* Feat/633: Cleanup for MVP1
* Feat/633: Cleanup of route name
* test(token-e2e): initial commit
* test(token-e2e): lint
* test: function Enhancements
* test: linting
* test: remove custom command type decs
* test: more tests
* test: linting
* test: working with capsule still needs rounding issues sorting
* test: enhancements
* test: enhancements
* test: check enhancements
* test: add brdige logic
* test: share instance rather than recreating on each test
* test: minor bug fix, add comment
* test: ensure working against capsule
* test: teardown functions in place
* test: linting
* test: completion of first iteration of happy paths
* test: lint
* test: typo change
* test: tweaks
* test: fix merge issues
* test: lint
* test: env variable handling and cleanup
* test: lint
* test: enhancements to logging to aid debugging
* test: lint
* test: ehancements after feedback
* test: lint
* Update apps/token-e2e/src/support/wallet-teardown.functions.js
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* test: skipping non-essential tests to reduce time
* test: typo
* test: ci test fails coz capsule runs quicker their - disabled this one check to help
* test: reduction of coverage to help PR time
* test: disable infinte scroll test since capsule blockchain data to small
* test: corrected test: staked tokens field value no longer in a fixed state
* test: clearup to stop test bleed across projects plus bugfix
* test: lint
* test: update .env for trading
* Revert "test: update .env for trading"
This reverts commit 741743e4d2.
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* frontend-monorepo-397 - continuous txs list - glitchy start
* frontend-monorepo-397 - experimentation!
* fix: transactions infinite list loading
* fix: blocks reload
* frontend-monorepo-397 - removed redundant renderFetched component from infinite txs page, and removed debugging
* frontend-monorepo-397 - tests written, added button that opens a dialog with extra Command data to each list item
* frontend-monorepo-397 - Cleaned up styling of txs list a bit, addressed PR comments.
* frontend-monorepo-397 - tweaks to e2e tests
* frontend-monorepo-397 - disabling txs e2e tests for now
* fix: use fetch hook
* Update apps/explorer/src/app/components/txs/txs-infinite-list-item.tsx
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* frontend-monorepo-397 - refactored to use AsyncRenderer which now supports custom messaging
* frontend-monorepo-397 Continuous txs: set ignore for timing out tests rather than commenting out
* frontend-monorepo-397: Updated txs-infinite-list-item.tsx to work with the new dialog changes
* frontend-monorepo-397: Ignoring txs page e2e tests properly
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* feat: unhardcode contract addresses
* fix: linting and tests
* feat: switch contract usage in token app to use unhardcoded addresses
* chore: remove other usage of hard coded contract addresses
* feat: convert contracts to classes, update claim contract to fix circular dependency
* feat: add hard coded contract addresses to contracts page
* fix: misc tidy up
* chore: rename ethers big num conversion func
* fix: remove pending transactions modal
* chore: add single toBigNum function that can accept number string or EthersBignNumber
* chore: delete unused tranche helpers and decimals functions from smart contracts lib
* feat: add faucetable token class
* fix: reset tx state after early exit from approve tx
* feat: re add transaction modal using zustand store
* fix: loader colors for eth wallet
* fix: pass ethereum config to gurantee existence before tx execution
* add docker image for building explorer
* add arg
* env file changes
* add docker file to build env file
* add requirement for env file in explorer
* fix env file syntax
* containers functional
* default to testnet
* make env flag logic consistent in all places
* pre populate env file
* ensure working for all projects
* address PR comment
* generalising env for token
* invert config dependency from ui toolkit
* fix: merge issues
* docs: running containers documentation
* style: lint
* fix: env varibales not being added properly
* chore: fix merge issues
* chore: fix docker file to support new exectutors
* chore: set address on all contracts as a property
* feat: pull token from contract rather than relying on env var
* chore: fix typing
* chore: remove duplicated prop
* chore: don't use chainId
* style: lint
* style: lint
* Merge branch 'master' into feat/dockerize-frontends
* Merge remote-tracking branch 'origin/master' into feat/dockerize-frontends
* test: revert changes to explorer e2e file
* fix: creating client without base causing token to error
* test: fix tests erroring in before hook due to file not being found
* chore: remove node env from configurable flags
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* test: for infinity scroll - also initial wait improvement
- also initial wait improvement
* test: accepting linting suggestions
* Update apps/explorer-e2e/src/integration/blocks-page.feature
Co-authored-by: Joe Tsang <30622993+jtsang586@users.noreply.github.com>
* test: update to infinite scroll test
wait for the server response and additional 5 milliseconds to give css.height a chance to re-render
* test: linting changes
linting
* test: increase static wait time from 5 to 20 ms
* test: fix typescript
* test: improve test flake
* test: adapt intercept to wildcard to cope with capsule
* test: linting
* test: adjust test to cope with capsule low blocks
Co-authored-by: Joe Tsang <30622993+jtsang586@users.noreply.github.com>
* feat: add enviromnemt provider to the ui-toolkit
* chore: replace etherscan links
* chore: wrap trading app into environment provider
* chore: move env provider to react-helpers and wrap every app
* chore: remove more env variables from libs and replace them with the env hook
* fix: lint
* fix: update readme with correct formatting command
* fix: warnings for web3 hook
* fix: wrap warning in conditional, print message only when env keys are missing
* fix: incorrect condition on deposit manager fauceting param
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* fix: cleanup token app ethereum config
* chore: add better error handling to the useEnvironment hook
* fix: lint
* fix: formatting
* fix: more lint
* fix: throw error if required env variables are missing
* fix: remove default eth chain id
* fix: add back etherscan testid to withdrawals links
* fix: imports
* fix: try using babel jest for smart contracts test transpilation
* fix: uniform ts syntax
* chore: set resolveJsonModule in base tsconfig
* fix: add missing data-ids for etherscan links
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* 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
* 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>
* 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>
* 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>
* Explorer-e2e files changed to ts
* Files on trading app converted
* Fix type error and update Cypress
* Remove Jquery type
* Update Cypress version in package.json
* add fixture for markets query
* stub graphql requests
* re-add assertion for tx hash, stub command/sync requests
* refactor to get tests to run with trading page mocked queries
* add test wallet credentials
* split up markets page from trading page
* add portfolio page feature, add market page scenarios
* move hasOperationName helper to support/index
* fix home-page.feature
* fix missing feature step
* Minor changes to BDD steps
* Use in object syntax to get better type safety on hasOperationName helper function
* remove bypass placing orders env var and usage in tests
* use UI_Trading_Test wallet publick key in command/sync mock
* move public key to cypress env
* replace fixtures with generator functions
* colocate query generators with queries
* add custom commands, add index files
* fix dodgy merge, remove duplicate market page feature
* make tsconfig for cypress lib match
* update tsconfig for explorer e2e so commands using merge work
* revert trading step to js
Co-authored-by: Joe <joe@vega.xyz>
* Updated tests to pass when there are no txs
* Add slack command to send messages to slack
* Re add library for Cypress
* Resolved PR comments
* Added TODOs for clarity
* Increase wait for block to update
* Increase to 3 seconds
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
* scaffold dealticket package, remove trading views from react-helpers
* add deal ticket component, add intent utils, expand dialog and form group styles
* add splash component, show market not found message if market doesnt exist
* tidy up error handling
* add handleError method for vega tx hook
* add better testname for provider test, flesh out tests a bit more for deal ticket
* Add unit tests for useVegaTransaction and useOrderSubmit hooks
* add wrapper component for order dialog styles
* add vega styled loader to ui toolkit and use in order dialog
* add title prop to order dialog
* split limit and market tickets into own files
* add button radio component
* revert dialog styles
* move splash component to ui-toolkit, add story
* convert intent to enum
* Make button always type=button unless type prop is passed
* inline filter logic for tif selector
* add date-fns, add datetime to helpers
* add order types to wallet package, make price undefined if order type is market
* use enums in deal ticket logic
* tidy up order state by moving submit and transaction hooks out of deal ticket
* add comment for dialog styles
* remove decimal from price input
* add types package, delete old generated types from trading project
* rename types package to graphql
* update generate command to point to correct locations
* fix use order submit test
* BDD and navigation tests passing
* Remove commented steps
* Steps up to placing order
* Date picker and date-fns update
* Vega connector wallet tests
* Passing up to request sent, updated date picker
* Tests for sell orders and errors
* Update market feature
* Fix failing tests
* Update wallet login
* Readded tx hash assertion and remaining tests
* Add CI wallet import
* Update .github/workflows/cypress.yml
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* Resolved PR comments
* Fix yaml error
* Attempt to fix failing tests in CI
* Run Cypress in Chrome
* Add reload if public key error displayed
* Fix wallet name
* Add force click and waits
* Increase timeout for deal ticket page
* Removed network list from yaml and using input error id
* Increase timeout to 8 seconds
* Re add deleted test id
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
* begin adding sentry
* add sentry webpack config
* rename environment variable
* make sourcemaps work for sentry
* set environmenet based on vega environment
* rename envs
* remove throw error button
* scaffold dealticket package, remove trading views from react-helpers
* add deal ticket component, add intent utils, expand dialog and form group styles
* add splash component, show market not found message if market doesnt exist
* tidy up error handling
* add handleError method for vega tx hook
* add better testname for provider test, flesh out tests a bit more for deal ticket
* Add unit tests for useVegaTransaction and useOrderSubmit hooks
* add wrapper component for order dialog styles
* add vega styled loader to ui toolkit and use in order dialog
* add title prop to order dialog
* add button radio component
* revert dialog styles
* move splash component to ui-toolkit, add story
* convert intent to enum
* add date-fns, add datetime to helpers
* add order types to wallet package, make price undefined if order type is market
* tidy up order state by moving submit and transaction hooks out of deal ticket
* add types package, delete old generated types from trading project
* rename types package to graphql
* add order list container and order list component
* add test setup for useOrders
* add test for use-orders hook
* tidy unnecessary diff
* regen types and use them in order-list, also change to use applytransaction hook for orderlist grid
* make order table columns resizable
* make market table not have highlightable cells, use splash for orders errors and loading states, unit test for orderlist container
* add tests for order list table
* show rejection reason and expires at depending on status and tif
* add decimal places to query
* only update row if data has changed, add test coverage
* add setup tests file to avoid importing jest-dom for every test, add async-renderer component to handle fetch ui logic
* install all of lodash but import individually to get tree shaking
* add setup tests file for orderlist package
* add missing fields to use orders spec mock order
* fix act warnings in index page test
* fix casing of app import
* remove react-singleton-hook, simplify side formatting
* fix linting errors
* Initial commit of generated mainnet-stats directory
* Migration partly complete
* Migration complete
* Vega logo now in ui toolkit
* Specified a port that stops conflicts with other e2e tests
* Extra config for swapping to port that stops conflicts with other e2e tests. Also file name case change
* Adding the Cypress project ID to allow recording
* fix test
* Mainnet stats manager moved into library
* Mainnet stats project now importing manager element from lib
* Block Explorer has mainnet stats on home route
* Styling tweak to stop mainnet stats tables trying to match heights
* Spacing alignment tweaks
* Changing header text and tests to align with other branches
* Correct header test for mainnet-stats app
* Correct h3 test for mainnet-stats app
* Fix linting issue
* fix casing issue for CI
* Corrected mistake in merge
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
* make titles look prettier
* link to parties from transactions table
* render what data is found conditionally
* more syntax highlighting
* re-jig file orders
* remove footer component for now
* add subheading component
* adjust column layout
* Style up header
* enable ligatures
* change env files
* fix error if data is null
* show governance header even if there is no data
* remove dead css
* add dark theme for block explorer
* use memo on parties submit
* remove some css from header
* basic search implementation
* allow passing classNames to form group
* add tests for form group
* add form-grpup stories
* bad rebase fixes
* add link
* tidy up tests
* fix tests
* tidy up env files
* final test fixes
* switch order of classes
* fix test id
* force build for testing
* rename file for linting
* add tests for header component
* rename export
* input error tests
* use descriptive function names as per PR comment
* fix casing issue for CI
* handle empty state
* make query easier to understand