Skip to content

Commit

Permalink
chore: remove uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 2, 2024
1 parent 059426d commit 1e257fa
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 467 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@
"@testing-library/user-event": "^14.5.2",
"@types/eslint": "^8.56.12",
"@types/events": "^3.0.3",
"@types/node": "^22.7.0",
"@types/react": "^18.3.9",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"cpy-cli": "^5.0.0",
Expand All @@ -58,7 +57,7 @@
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"husky": "^9.1.6",
"lerna": "8.1.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"react": "^18.3.1",
"react-i18next": "^15.0.2",
"use-sync-external-store": "^1.2.2",
"viem": "^2.21.14",
"wagmi": "^2.12.14",
"viem": "^2.21.16",
"wagmi": "^2.12.16",
"zustand": "^4.5.5"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@opensea/seaport-js": "4.0.4",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query": "^5.59.0",
"bignumber.js": "^9.1.2",
"ethers": "^6.13.2",
"ethers": "^6.13.3",
"events": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"wagmi": "^2.12.14"
"wagmi": "^2.12.16"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitejs/plugin-react-swc": "^3.7.1",
"source-map-explorer": "^2.5.3",
"typescript": "^5.6.2",
"vite": "^5.4.8",
Expand Down
16 changes: 8 additions & 8 deletions packages/widget-playground-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@mui/material-nextjs": "^5.16.6",
"@rainbow-me/rainbowkit": "^2.1.6",
"@rainbow-me/rainbowkit": "^2.1.7",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.3",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query": "^5.59.0",
"core-js": "^3.38.1",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.4.0",
"next": "14.2.13",
"next": "14.2.14",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.21.14",
"wagmi": "^2.12.14",
"viem": "^2.21.16",
"wagmi": "^2.12.16",
"zustand": "^4.5.5"
},
"devDependencies": {
"@types/node": "^22.7.0",
"@types/react": "^18.3.9",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"eslint": "^8.57.1",
"eslint-config-next": "14.2.13",
"eslint-config-next": "14.2.14",
"typescript": "^5.6.2"
},
"private": true
Expand Down
10 changes: 5 additions & 5 deletions packages/widget-playground-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@
"@lifi/widget-playground": "^1.0.229",
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@rainbow-me/rainbowkit": "^2.1.6",
"@rainbow-me/rainbowkit": "^2.1.7",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.3",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query": "^5.59.0",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"viem": "^2.21.14",
"wagmi": "^2.12.14",
"viem": "^2.21.16",
"wagmi": "^2.12.16",
"zustand": "^4.5.5"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitejs/plugin-react-swc": "^3.7.1",
"rollup-plugin-polyfill-node": "^0.13.0",
"source-map-explorer": "^2.5.3",
"typescript": "^5.6.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
},
"devDependencies": {
"@types/lodash.isequal": "^4.5.8",
"@types/node": "^22.7.0",
"@types/react": "^18.3.9",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitejs/plugin-react-swc": "^3.7.1",
"cpy-cli": "^5.0.0",
"typescript": "^5.6.2",
"vite": "^5.4.8",
Expand Down
7 changes: 3 additions & 4 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.3",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query": "^5.59.0",
"@tanstack/react-virtual": "^3.10.8",
"i18next": "^23.15.1",
"microdiff": "^1.4.0",
Expand All @@ -68,9 +68,8 @@
"react-i18next": "^15.0.2",
"react-intersection-observer": "^9.13.1",
"react-router-dom": "^6.26.2",
"uuid": "^10.0.0",
"viem": "^2.21.14",
"wagmi": "^2.12.14",
"viem": "^2.21.16",
"wagmi": "^2.12.16",
"zustand": "^4.5.5"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/widget/src/hooks/useRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Route, RoutesResponse, Token } from '@lifi/sdk';
import { LiFiErrorCode, getContractCallsQuote, getRoutes } from '@lifi/sdk';
import { useAccount } from '@lifi/wallet-management';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import { v4 as uuidv4 } from 'uuid';
import { parseUnits } from 'viem';
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js';
import { useFieldValues } from '../stores/form/useFieldValues.js';
Expand Down Expand Up @@ -260,7 +259,7 @@ export const useRoutes = ({ observableRoute }: RoutesProps = {}) => {
}

const route: Route = {
id: uuidv4(),
id: crypto.randomUUID(),
fromChainId: contractCallQuote.action.fromChainId,
fromAmountUSD: contractCallQuote.estimate.fromAmountUSD || '',
fromAmount: contractCallQuote.action.fromAmount,
Expand Down
3 changes: 1 addition & 2 deletions packages/widget/src/utils/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type {
TokenAmount,
ToolsResponse,
} from '@lifi/sdk';
import { v4 as uuidv4 } from 'uuid';
import { formatUnits } from 'viem';
import type { RouteExecution } from '../stores/routes/types.js';

Expand Down Expand Up @@ -145,7 +144,7 @@ export const buildRouteFromTxHistory = (
gasCostUSD: sending.gasAmountUSD,
steps: [
{
id: uuidv4(),
id: crypto.randomUUID(),
type: 'lifi',
tool: tx.tool,
toolDetails: usedTool,
Expand Down
Loading

0 comments on commit 1e257fa

Please sign in to comment.