Skip to content

Commit

Permalink
Update typescript, eslint and minimum node version (needed by new typ…
Browse files Browse the repository at this point in the history
…escript), removed socket.io
  • Loading branch information
marcinciarka committed Mar 25, 2024
1 parent cb09810 commit 86b415b
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 369 deletions.
3 changes: 2 additions & 1 deletion features/termsOfService/termsAcceptance.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { NetworkIds } from 'blockchain/networks'
import type { Web3Context } from 'features/web3Context'
import { getStateUnpacker } from 'helpers/testHelpers'
import { mapValues } from 'lodash'
Expand All @@ -21,7 +22,7 @@ const defaultParams: PipelineInput = {
account: '0x123',
web3: {} as Web3,
connectionKind: 'injected',
chainId: 42,
chainId: NetworkIds.MAINNET,
deactivate: () => null,
walletLabel: 'MetaMask',
connectionMethod: 'web3-onboard',
Expand Down
2 changes: 1 addition & 1 deletion features/vaultHistory/vaultHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function getExecuteTrigger(events: VaultHistoryEvent[]) {
groupId: 'groupId' in autoEvent && autoEvent.groupId,
eventType: 'executed',
autoKind: autoEvent.kind,
} as VaultHistoryEvent
} as unknown as VaultHistoryEvent
}

return undefined
Expand Down
3 changes: 2 additions & 1 deletion helpers/api/tokenTickers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import axios from 'axios'
import type { PriceServiceResponse } from 'helpers/types'
import { getCoinbaseTickers } from 'server/services/coinbase'
import { getCoingeckoTickers } from 'server/services/coingecko'
import { getCoinPaprikaTickers } from 'server/services/coinPaprika'
Expand All @@ -7,7 +8,7 @@ import { getSUSDEOracleTicker } from 'server/services/susdeOracle'
import { getUSDEOracleTicker } from 'server/services/usdeOracle'
import { getWSTETHOracleTicker } from 'server/services/wstethOracle'

export async function tokenTickers() {
export async function tokenTickers(): Promise<PriceServiceResponse> {
if (process.env.TOKEN_TICKERS_OVERRIDE) {
return (await axios.get(process.env.TOKEN_TICKERS_OVERRIDE)).data
}
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "12.17.1",
"license": "Apache-2.0",
"engines": {
"node": ">=18.12"
"node": ">=18.19"
},
"packageManager": "[email protected]",
"scripts": {
Expand Down Expand Up @@ -113,7 +113,6 @@
"rxjs-take-while-inclusive": "^2.1.0",
"sass": "^1.49.4",
"snowflake-sdk": "^1.6.10",
"socket.io": "^4.5.1",
"terser-webpack-plugin": "^5.3.9",
"text-mask-addons": "^3.7.2",
"theme-ui": "^0.16.1",
Expand Down Expand Up @@ -172,14 +171,13 @@
"@types/react-select": "^3.0.16",
"@types/react-text-mask": "^5.4.0",
"@types/snowflake-sdk": "^1.6.7",
"@types/socket.io-client": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@xstate/cli": "^0.5.1",
"@xstate/inspect": "^0.8.0",
"@xstate/test": "^0.5.1",
"circular-dependency-plugin": "^5.2.2",
"eslint": "^7.10.0",
"eslint": "^8.57.0",
"eslint-config-typestrict": "^1.0.0",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-import": "^2.29.0",
Expand All @@ -200,7 +198,7 @@
"prettier": "3.2.5",
"prisma": "4.8.0",
"typechain": "^8.1.1",
"typescript": "^4.9.5"
"typescript": "^5.4.3"
},
"nextBundleAnalysis": {
"budget": null,
Expand Down
Loading

0 comments on commit 86b415b

Please sign in to comment.