2022-02-11 13:56:28 +00:00
|
|
|
{
|
|
|
|
"compileOnSave": false,
|
|
|
|
"compilerOptions": {
|
|
|
|
"rootDir": ".",
|
|
|
|
"sourceMap": true,
|
|
|
|
"declaration": false,
|
|
|
|
"moduleResolution": "node",
|
|
|
|
"emitDecoratorMetadata": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"importHelpers": true,
|
|
|
|
"target": "es2015",
|
|
|
|
"module": "esnext",
|
2023-03-01 07:45:57 +00:00
|
|
|
"lib": ["es2021", "dom"],
|
2022-02-11 13:56:28 +00:00
|
|
|
"skipLibCheck": true,
|
|
|
|
"skipDefaultLibCheck": true,
|
|
|
|
"baseUrl": ".",
|
2022-06-01 00:30:02 +00:00
|
|
|
"resolveJsonModule": true,
|
2022-02-11 13:56:28 +00:00
|
|
|
"paths": {
|
2022-04-06 17:48:05 +00:00
|
|
|
"@vegaprotocol/accounts": ["libs/accounts/src/index.ts"],
|
2023-03-29 13:20:49 +00:00
|
|
|
"@vegaprotocol/announcements": ["libs/announcements/src/index.ts"],
|
2022-11-10 13:08:12 +00:00
|
|
|
"@vegaprotocol/apollo-client": ["libs/apollo-client/src/index.ts"],
|
2022-08-26 15:39:40 +00:00
|
|
|
"@vegaprotocol/assets": ["libs/assets/src/index.ts"],
|
2022-04-25 17:34:07 +00:00
|
|
|
"@vegaprotocol/candles-chart": ["libs/candles-chart/src/index.ts"],
|
2022-04-04 17:20:33 +00:00
|
|
|
"@vegaprotocol/cypress": ["libs/cypress/src/index.ts"],
|
2023-05-08 01:01:07 +00:00
|
|
|
"@vegaprotocol/data-provider": ["libs/data-provider/src/index.ts"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"@vegaprotocol/datagrid": ["libs/datagrid/src/index.ts"],
|
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
|
|
|
"@vegaprotocol/deal-ticket": ["libs/deal-ticket/src/index.ts"],
|
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/deposits": ["libs/deposits/src/index.ts"],
|
2022-06-21 23:20:53 +00:00
|
|
|
"@vegaprotocol/environment": ["libs/environment/src/index.ts"],
|
2022-06-30 07:52:25 +00:00
|
|
|
"@vegaprotocol/fills": ["libs/fills/src/index.ts"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"@vegaprotocol/i18n": ["libs/i18n/src/index.ts"],
|
2022-11-04 10:47:39 +00:00
|
|
|
"@vegaprotocol/ledger": ["libs/ledger/src/index.ts"],
|
feat: liquidity provisions view (#1133)
* feat(#473): add positions metrics data provider
* feat(#473) add positions stats
* feat(#473) add positions stats
* feat(#473): add positions stats
* feat(#473): add positions stats
* feat(#473): position metrics, test and refactoring
* feat(#473): add unit tests to positions table
* feat(#473): fix spelling, order positions by updated at desc
* feat(#473): protect from division by 0
* feat(#473): fix trading positions e2e tests
* feat(#473): fix e2e data mocks
* feat(#473): post code review clean up
* feat(#993): dependencies handling in data provider
* feat(#993): fix e2e tests data mocks
* feat(#993): remove position metrics mocks, add market data market id
* feat: #994 add price monitoring bounds and candles update interface
* fix: move best bid price to diff section
* feat(#993): add missing mocks, fix combine function
* fix: add insurance pool and calc volume 24h
* feat: display some oracle min info, asset id, insurance pool, move open interest and 24hVol
* fix: add market-info.cy.ts case
* fix: remove # from numbered price monitoring settings
* fix: add insurance pool test
* fix: format 24hvol
* feat(#993): set loading initially to true, add unit tests
* feat(#993): cleanup, add comments
* feat(#993): remove undefined from client type
* fix: remove indicativeVolume and oracleSpecBinding from market info
* feat(#993): cosmetic changes
* fix: add oracleSpecBinding back
* Update libs/deal-ticket/src/components/info-market.tsx
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
* feat: add initial queries
* fix: memo yesterday's timestamp
* fix: add back info
* fix: update query
* fix: add view full oracle details link and update mappings
* fix: regen code, make link reactnode, fix index.ts
* feat: add liquidity lib, refactor info market
* fix: remove liquidity query from deal-ticket
* feat:(#993): pass informaton about update callback cause
* fix: small ui tweaks
* fix: display in grid
* feat: navigate to oracle by termination id
* feat: #491 add use liquidity provision merging
* fix: remove logs, add extra check on my liquidity provision
* fix: type number trivially inferred from a number literal, remove type annotation
* fix: cypress tests and formatting for market info
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* fix: use position decimal places for stake and market value proxy
* fix: #491 use size/position decimal places for obligation, supplied and commitment amount
* fix: add size component and use decimal places
* fix: update readme liquidity
* fix: #491 add correct asset decimal formatters
* Update libs/deal-ticket/src/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
* fix: make link instead of button to open liquidity
* fix: #491 add liquidity page, link to trading mode tooltip, tabs hidden or choose active
* fix: remove LP dialog, use only link to page
* fix: add market id in LP view
* fix: follow trade grid design
* fix: add one line tabs , remove link styling, remove any, add value formatters
* fix: remove falsy check LP undefined
* fix: keep date formatter in LP table
* fix: add generic type market info, hooks in body function
* fix: revert number formatters
* fix: use one param only in network params query
* fix: use network param in web3 lib
* fix: move lp container to trading app
* fix: remove resizable panel
* feat: add header component, remove isEstimate
* chore: remove unnecessary type cast
* fix: fix build with children map clone element
* chore: lint
* fix: move use network params to react helpers
* fix: add const for LP tabs
* fix: fix formatting on LP page
* fix: only show tilde for liquidity monitoring auction end date
* fix: market id being rendered twice in market info
* chore: fix lint
* fix: types for generate withdraw form query
* chore: fix intermittent failing withdrawal test
* Update libs/deal-ticket/src/components/market-info/info-market.tsx
* chore: add another wait for market
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
Co-authored-by: botond <105208209+notbot00@users.noreply.github.com>
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
Co-authored-by: Joe <joe@vega.xyz>
2022-09-07 11:05:28 +00:00
|
|
|
"@vegaprotocol/liquidity": ["libs/liquidity/src/index.ts"],
|
2023-06-06 13:10:03 +00:00
|
|
|
"@vegaprotocol/logger": ["libs/logger/src/index.ts"],
|
2022-04-26 15:26:28 +00:00
|
|
|
"@vegaprotocol/market-depth": ["libs/market-depth/src/index.ts"],
|
2023-05-18 11:22:54 +00:00
|
|
|
"@vegaprotocol/markets": ["libs/markets/src/index.ts"],
|
2022-12-23 11:36:25 +00:00
|
|
|
"@vegaprotocol/mock": ["libs/cypress/mock.ts"],
|
2022-07-06 15:53:35 +00:00
|
|
|
"@vegaprotocol/network-info": ["libs/network-info/src/index.ts"],
|
2023-05-08 01:01:07 +00:00
|
|
|
"@vegaprotocol/network-parameters": [
|
|
|
|
"libs/network-parameters/src/index.ts"
|
|
|
|
],
|
2022-03-24 12:04:01 +00:00
|
|
|
"@vegaprotocol/network-stats": ["libs/network-stats/src/index.ts"],
|
2022-07-13 14:23:46 +00:00
|
|
|
"@vegaprotocol/orders": ["libs/orders/src/index.ts"],
|
2022-03-24 14:29:38 +00:00
|
|
|
"@vegaprotocol/positions": ["libs/positions/src/index.ts"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"@vegaprotocol/proposals": ["libs/proposals/src/index.ts"],
|
2022-02-11 13:56:28 +00:00
|
|
|
"@vegaprotocol/react-helpers": ["libs/react-helpers/src/index.ts"],
|
2022-05-27 09:22:18 +00:00
|
|
|
"@vegaprotocol/smart-contracts": ["libs/smart-contracts/src/index.ts"],
|
2022-02-23 17:57:44 +00:00
|
|
|
"@vegaprotocol/tailwindcss-config": [
|
|
|
|
"libs/tailwindcss-config/src/index.js"
|
|
|
|
],
|
2022-04-07 13:41:57 +00:00
|
|
|
"@vegaprotocol/trades": ["libs/trades/src/index.ts"],
|
2022-03-29 23:03:27 +00:00
|
|
|
"@vegaprotocol/types": ["libs/types/src/index.ts"],
|
2022-03-14 13:18:11 +00:00
|
|
|
"@vegaprotocol/ui-toolkit": ["libs/ui-toolkit/src/index.ts"],
|
2023-02-28 18:56:29 +00:00
|
|
|
"@vegaprotocol/utils": ["libs/utils/src/index.ts"],
|
2022-03-25 07:44:10 +00:00
|
|
|
"@vegaprotocol/wallet": ["libs/wallet/src/index.ts"],
|
Feat/104 withdraws (#263)
* 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>
2022-04-27 02:51:39 +00:00
|
|
|
"@vegaprotocol/web3": ["libs/web3/src/index.ts"],
|
|
|
|
"@vegaprotocol/withdraws": ["libs/withdraws/src/index.ts"]
|
2022-02-11 13:56:28 +00:00
|
|
|
}
|
|
|
|
},
|
2022-11-15 14:26:13 +00:00
|
|
|
"exclude": ["node_modules", "tmp"],
|
|
|
|
"files": [
|
2023-07-04 11:01:25 +00:00
|
|
|
"node_modules/@nx/react/typings/cssmodule.d.ts",
|
|
|
|
"node_modules/@nx/react/typings/image.d.ts"
|
2022-11-15 14:26:13 +00:00
|
|
|
]
|
2022-02-11 13:56:28 +00:00
|
|
|
}
|