2022-02-11 13:56:28 +00:00
|
|
|
{
|
|
|
|
"name": "nx-monorepo",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"license": "MIT",
|
|
|
|
"scripts": {
|
|
|
|
"start": "nx serve",
|
|
|
|
"build": "nx build",
|
2022-02-11 15:01:10 +00:00
|
|
|
"test": "nx test",
|
2022-02-17 00:21:49 +00:00
|
|
|
"postinstall": "husky install"
|
2022-02-11 13:56:28 +00:00
|
|
|
},
|
2022-02-17 12:43:41 +00:00
|
|
|
"engines": {
|
2022-04-11 10:58:40 +00:00
|
|
|
"node": ">=16.14.0"
|
2022-02-17 12:43:41 +00:00
|
|
|
},
|
2022-02-11 13:56:28 +00:00
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2022-02-15 14:12:27 +00:00
|
|
|
"@apollo/client": "^3.5.8",
|
2022-03-01 13:52:33 +00:00
|
|
|
"@blueprintjs/icons": "^3.32.0",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@nrwl/next": "13.8.1",
|
2022-03-10 00:39:59 +00:00
|
|
|
"@radix-ui/react-dialog": "^0.1.5",
|
2022-03-02 07:31:35 +00:00
|
|
|
"@radix-ui/react-tabs": "^0.1.5",
|
2022-03-23 17:40:15 +00:00
|
|
|
"@radix-ui/react-tooltip": "^0.1.7",
|
2022-04-04 19:45:40 +00:00
|
|
|
"@sentry/nextjs": "^6.19.3",
|
2022-03-29 17:29:29 +00:00
|
|
|
"@sentry/react": "^6.19.2",
|
|
|
|
"@sentry/tracing": "^6.19.2",
|
Feat/84 Order list (#89)
* 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
2022-03-23 19:08:10 +00:00
|
|
|
"@types/lodash": "^4.14.180",
|
2022-02-18 14:27:14 +00:00
|
|
|
"@types/uuid": "^8.3.4",
|
Feat/103 deposits (#143)
* add web3 provider using web3-react package
* add env setup, add guard for incorrect chain id
* add lib for web3-provider
* make wallet and ethereum connect dialogs look more consistent
* add setup tests file for jest-dom
* remove chain id config and just use appChainId prop, add disconnect button to invalid chainId state
* switch handling of connect dialog state to the consuming app
* rename web3-provider package to just web3
* envs for each environment so we can specify chainId
* make web3container enforce connection before rendering childen
* add web3 provider using web3-react package
* make web3container enforce connection before rendering childen
* add container for getting network params
* Move ethereum config query to web3 container
* add basic deposit form elements
* add queries required for deposits, add asset default
* add bridge contract and deposit transaction
* break txhash
* restrict etherscan link props, use etherscan link in transaction dialogs
* use smart-contracts-sdk
* split hooks and components into different files, fix find deposit logic, add styles and progress for tx dialogs
* fix text colors for dark mode
* improve tx dialogs, rename deposit query
* position use buttons, fix select validation
* fix type errors after not being in strict mode, add allowance checking
* add deposit-limits component, fix types now that strict mode is enabled
* make contract hooks have a single instance
* split out dialogs into separate files, fix icon alignment
* improve error types for use transaction hook, add number save min and max for the amount input
* add validation for ethereum and vega addresses
* add unit test for deposit form component
* add icons and shared dialog styles so it better matches order transaction dialog
* fix underline class, reset finalized deposit
* fix type imports, use i18n function, regen types
* only pass contract address to token contract hook
* add vega env, refactor so retrieving asset contract address logic isn't duplicated
* add faucet functionality, combine dialogs into single transaction-dialog
* combine rendering logic into single func of transaction dialog, rever contract hooks to just useMemo
* use to field rather than connected key
* fix props and imports in deposit form test
* share faucetable condition, pass it to token contract
* pass contracts in as params to hooks to avoid multiple contract instances
* refetch balance in wallet after deposit, add comments
* use hook state for tracking deposit via partyid, add test for use ethereum transaction hook
* add deposits lib
* add last smart contract sdk package
* fix asset import in test
* tidy up ts-ignores
* pass arg for faucetable token contract
* add provider url to env vars and use in place of infura id, also update web3-connector to only allow the chain permitted by the app
* add type guard for erc20 assets
* fix intent shadow helper function, use arrow function for isEthereumError
* update etherscan link to use env vars for url base
* rename deposit related hooks to indicate read vs write calls
* move ethereum error class and helpers to react-helpers
* add use-ethereum-read-contract hook to contain fetch logic
* remove unused import
* move validation to lib, add hex check for vega public key
* use map for transaction modal states, pass confirmed prop to transaction dialog for deposits
* remove unused import for classnames
2022-04-06 17:34:51 +00:00
|
|
|
"@vegaprotocol/smart-contracts-sdk": "^1.6.0",
|
2022-03-10 00:39:59 +00:00
|
|
|
"@vegaprotocol/vegawallet-service-api-client": "^0.4.6",
|
2022-03-25 07:44:10 +00:00
|
|
|
"@walletconnect/ethereum-provider": "^1.7.5",
|
|
|
|
"@web3-react/core": "8.0.20-beta.0",
|
|
|
|
"@web3-react/metamask": "8.0.16-beta.0",
|
|
|
|
"@web3-react/walletconnect": "^8.0.23-beta.0",
|
2022-03-14 13:18:11 +00:00
|
|
|
"ag-grid-community": "^27.0.1",
|
|
|
|
"ag-grid-react": "^27.0.1",
|
2022-03-30 13:18:59 +00:00
|
|
|
"alpha-lyrae": "vegaprotocol/alpha-lyrae",
|
2022-02-17 00:02:16 +00:00
|
|
|
"apollo": "^2.33.9",
|
2022-02-21 15:41:32 +00:00
|
|
|
"autoprefixer": "^10.4.2",
|
Feat/63 Deal ticket (#82)
* 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
* use intent shadow helper
* remove date-fns and format manually, update submit button error to use input-error
* remove stray console.log
2022-03-17 19:35:46 +00:00
|
|
|
"bignumber.js": "^9.0.2",
|
2022-02-21 15:41:32 +00:00
|
|
|
"classnames": "^2.3.1",
|
2022-02-11 13:56:28 +00:00
|
|
|
"core-js": "^3.6.5",
|
Feat/84 Order list (#89)
* 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
2022-03-23 19:08:10 +00:00
|
|
|
"date-fns": "^2.28.0",
|
2022-02-17 00:02:16 +00:00
|
|
|
"env-cmd": "^10.1.0",
|
Feat/63 Deal ticket (#82)
* 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
* use intent shadow helper
* remove date-fns and format manually, update submit button error to use input-error
* remove stray console.log
2022-03-17 19:35:46 +00:00
|
|
|
"ethers": "^5.6.0",
|
2022-02-17 00:02:16 +00:00
|
|
|
"graphql": "^15.7.2",
|
2022-03-16 19:38:04 +00:00
|
|
|
"graphql-ws": "^5.6.3",
|
2022-03-22 06:02:31 +00:00
|
|
|
"immer": "^9.0.12",
|
2022-03-28 19:34:45 +00:00
|
|
|
"lodash": "^4.17.21",
|
2022-02-11 13:56:28 +00:00
|
|
|
"next": "12.0.7",
|
2022-02-26 13:31:38 +00:00
|
|
|
"nx": "^13.8.3",
|
2022-04-08 17:49:45 +00:00
|
|
|
"pennant": "0.4.5",
|
2022-02-21 15:41:32 +00:00
|
|
|
"postcss": "^8.4.6",
|
2022-02-11 13:56:28 +00:00
|
|
|
"react": "17.0.2",
|
2022-03-31 17:16:30 +00:00
|
|
|
"react-copy-to-clipboard": "^5.0.4",
|
2022-02-11 13:56:28 +00:00
|
|
|
"react-dom": "17.0.2",
|
2022-03-10 00:39:59 +00:00
|
|
|
"react-hook-form": "^7.27.0",
|
2022-04-11 17:10:36 +00:00
|
|
|
"react-router-dom": "^6.3.0",
|
2022-02-18 17:45:16 +00:00
|
|
|
"react-syntax-highlighter": "^15.4.5",
|
2022-02-15 14:12:27 +00:00
|
|
|
"react-use-websocket": "^3.0.0",
|
2022-03-01 00:59:18 +00:00
|
|
|
"react-virtualized-auto-sizer": "^1.0.6",
|
2022-02-11 13:56:28 +00:00
|
|
|
"regenerator-runtime": "0.13.7",
|
Feat/63 Deal ticket (#82)
* 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
* use intent shadow helper
* remove date-fns and format manually, update submit button error to use input-error
* remove stray console.log
2022-03-17 19:35:46 +00:00
|
|
|
"sha3": "^2.1.4",
|
2022-02-21 15:41:32 +00:00
|
|
|
"tailwindcss": "^3.0.23",
|
2022-02-24 02:06:52 +00:00
|
|
|
"tslib": "^2.0.0",
|
2022-03-23 17:40:15 +00:00
|
|
|
"uuid": "^8.3.2",
|
|
|
|
"web-vitals": "^2.1.4"
|
2022-02-11 13:56:28 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-03-21 16:17:29 +00:00
|
|
|
"@apollo/react-testing": "^4.0.0",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@babel/core": "7.12.13",
|
|
|
|
"@babel/preset-typescript": "7.12.13",
|
|
|
|
"@nrwl/cli": "13.8.1",
|
|
|
|
"@nrwl/cypress": "13.8.1",
|
|
|
|
"@nrwl/eslint-plugin-nx": "13.8.1",
|
|
|
|
"@nrwl/jest": "13.8.1",
|
|
|
|
"@nrwl/linter": "13.8.1",
|
|
|
|
"@nrwl/nx-cloud": "latest",
|
|
|
|
"@nrwl/react": "^13.8.1",
|
|
|
|
"@nrwl/storybook": "^13.8.1",
|
|
|
|
"@nrwl/tao": "13.8.1",
|
|
|
|
"@nrwl/web": "13.8.1",
|
|
|
|
"@nrwl/workspace": "13.8.1",
|
2022-03-29 17:29:29 +00:00
|
|
|
"@sentry/webpack-plugin": "^1.18.8",
|
2022-03-03 14:50:40 +00:00
|
|
|
"@storybook/addon-a11y": "^6.4.19",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@storybook/addon-essentials": "~6.4.12",
|
|
|
|
"@storybook/builder-webpack5": "~6.4.12",
|
|
|
|
"@storybook/manager-webpack5": "~6.4.12",
|
|
|
|
"@storybook/react": "~6.4.12",
|
|
|
|
"@svgr/webpack": "^5.4.0",
|
2022-02-14 13:35:50 +00:00
|
|
|
"@testing-library/jest-dom": "^5.16.2",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@testing-library/react": "12.1.2",
|
|
|
|
"@testing-library/react-hooks": "7.0.2",
|
2022-02-24 02:06:52 +00:00
|
|
|
"@types/classnames": "^2.3.1",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@types/jest": "27.0.2",
|
|
|
|
"@types/node": "16.11.7",
|
2022-02-26 13:31:38 +00:00
|
|
|
"@types/prismjs": "^1.26.0",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@types/react": "17.0.30",
|
2022-03-31 17:16:30 +00:00
|
|
|
"@types/react-copy-to-clipboard": "^5.0.2",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@types/react-dom": "17.0.9",
|
2022-04-11 17:10:36 +00:00
|
|
|
"@types/react-router-dom": "5.3.1",
|
2022-03-28 19:34:45 +00:00
|
|
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
2022-02-11 13:56:28 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "~5.10.0",
|
|
|
|
"@typescript-eslint/parser": "~5.10.0",
|
|
|
|
"babel-jest": "27.2.3",
|
|
|
|
"babel-loader": "8.1.0",
|
2022-03-02 15:39:52 +00:00
|
|
|
"cypress": "^9.5.1",
|
2022-03-02 12:02:31 +00:00
|
|
|
"cypress-cucumber-preprocessor": "^4.3.1",
|
2022-02-11 13:56:28 +00:00
|
|
|
"eslint": "~8.7.0",
|
|
|
|
"eslint-config-next": "12.0.7",
|
|
|
|
"eslint-config-prettier": "8.1.0",
|
|
|
|
"eslint-plugin-cypress": "^2.10.3",
|
|
|
|
"eslint-plugin-import": "2.25.2",
|
|
|
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
|
|
"eslint-plugin-react": "7.27.0",
|
|
|
|
"eslint-plugin-react-hooks": "4.3.0",
|
2022-03-08 14:26:42 +00:00
|
|
|
"eslint-plugin-unicorn": "^41.0.0",
|
2022-02-11 15:01:10 +00:00
|
|
|
"husky": "^7.0.4",
|
2022-02-11 13:56:28 +00:00
|
|
|
"jest": "27.2.3",
|
2022-04-08 17:49:45 +00:00
|
|
|
"jest-canvas-mock": "^2.3.1",
|
2022-02-11 15:01:10 +00:00
|
|
|
"lint-staged": "^12.3.3",
|
2022-03-02 11:51:33 +00:00
|
|
|
"nx": "^13.8.3",
|
2022-02-11 13:56:28 +00:00
|
|
|
"prettier": "^2.5.1",
|
|
|
|
"react-test-renderer": "17.0.2",
|
2022-03-31 17:16:30 +00:00
|
|
|
"resize-observer-polyfill": "^1.5.1",
|
2022-02-11 13:56:28 +00:00
|
|
|
"sass": "1.43.2",
|
2022-02-21 15:41:32 +00:00
|
|
|
"storybook-addon-themes": "^6.1.0",
|
2022-02-11 13:56:28 +00:00
|
|
|
"ts-jest": "27.0.5",
|
|
|
|
"typescript": "~4.5.2",
|
|
|
|
"url-loader": "^3.0.0"
|
2022-02-11 15:01:10 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2022-02-14 13:35:50 +00:00
|
|
|
"*": "yarn nx format:write --uncommitted",
|
|
|
|
"*.{ts,tsx,js,jsx}": "yarn eslint --fix"
|
2022-02-17 00:02:16 +00:00
|
|
|
},
|
|
|
|
"resolutions": {
|
|
|
|
"graphql": "15.8.0"
|
2022-02-11 13:56:28 +00:00
|
|
|
}
|
|
|
|
}
|