diff --git a/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-buy-now.tsx b/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-buy-now.tsx index 094d08ca..10008d00 100644 --- a/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-buy-now.tsx +++ b/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-buy-now.tsx @@ -57,7 +57,10 @@ export default function CollectionItemsBuyNow({ return; } - if (data.value < BigInt(tokenMarketData.listing.start_amount ?? 0)) { + if ( + !data || + data.value < BigInt(tokenMarketData.listing.start_amount ?? 0) + ) { sonner.error("Insufficient balance"); return; } diff --git a/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-filters-dialog.tsx b/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-filters-dialog.tsx index 1534d8c1..14b5b7f6 100644 --- a/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-filters-dialog.tsx +++ b/apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-filters-dialog.tsx @@ -1,4 +1,4 @@ -import { useQuery } from "react-query"; +import { useQuery } from "@tanstack/react-query"; import { Button } from "@ark-market/ui/button"; import { Dialog, DialogContent, DialogTitle } from "@ark-market/ui/dialog"; diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-create-listing.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-create-listing.tsx index 4f2d4476..4399363b 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-create-listing.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-create-listing.tsx @@ -5,9 +5,9 @@ import { useEffect, useState } from "react"; import { useCreateAuction, useCreateListing } from "@ark-project/react"; import { zodResolver } from "@hookform/resolvers/zod"; import { useAccount } from "@starknet-react/core"; +import { useQuery } from "@tanstack/react-query"; import moment from "moment"; import { useForm } from "react-hook-form"; -import { useQuery } from "react-query"; import { formatEther, parseEther } from "viem"; import * as z from "zod"; @@ -58,16 +58,14 @@ export function TokenActionsCreateListing({ const [isOpen, setIsOpen] = useState(false); const [modalEnabled, setModalEnabled] = useState(true); const [isAuction, setIsAuction] = useState(false); - const { data: collection } = useQuery( - ["collection", token.collection_address], - () => + const { data: collection } = useQuery({ + queryKey: ["collection", token.collection_address], + queryFn: () => getCollection({ collectionAddress: token.collection_address, }), - { - refetchInterval: 5_000, - }, - ); + refetchInterval: 5_000, + }); const { createListing, status } = useCreateListing(); const { create: createAuction, status: auctionStatus } = useCreateAuction(); const { toast } = useToast(); @@ -324,9 +322,7 @@ export function TokenActionsCreateListing({ }} >
- {field.value === formattedCollectionFloor && ( - - )} + {field.value === formattedCollectionFloor && }

Choose floor price of{" "} diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-make-offer.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-make-offer.tsx index ee1bdfe0..937dedb5 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-make-offer.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions-make-offer.tsx @@ -87,7 +87,7 @@ function TokenActionsMakeOffer({ token, small }: TokenActionsMakeOfferProps) { .refine( (val) => { const num = parseEther(val); - return num <= data.value; + return data && data.value >= num; }, { message: "You don't have enough funds in your wallet", diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions.tsx index d048b70b..30d29e90 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-actions.tsx @@ -1,7 +1,7 @@ "use client"; import { useAccount } from "@starknet-react/core"; -import { useQuery } from "react-query"; +import { useQuery } from "@tanstack/react-query"; import type { PropsWithClassName } from "@ark-market/ui"; import { areAddressesEqual, cn } from "@ark-market/ui"; @@ -25,18 +25,16 @@ export default function TokenActions({ className, }: TokenActionsProps) { const { address } = useAccount(); - const { data } = useQuery( - ["tokenMarketData", token.collection_address, token.token_id], - () => + const { data } = useQuery({ + queryKey: ["tokenMarketData", token.collection_address, token.token_id], + queryFn: () => getTokenMarketData({ contractAddress: token.collection_address, tokenId: token.token_id, }), - { - refetchInterval: 5_000, - initialData: tokenMarketData, - }, - ); + refetchInterval: 5_000, + initialData: tokenMarketData, + }); const isOwner = areAddressesEqual(address, data?.owner); diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-stats.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-stats.tsx index 8ebad030..d127867c 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-stats.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/token-stats.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; import { useAccount, useStarkProfile } from "@starknet-react/core"; -import { useQuery } from "react-query"; +import { useQuery } from "@tanstack/react-query"; import { formatEther } from "viem"; import type { PropsWithClassName } from "@ark-market/ui"; @@ -27,29 +27,25 @@ export default function TokenStats({ tokenMarketData, }: PropsWithClassName) { const { address } = useAccount(); - const { data } = useQuery( - ["tokenMarketData", token.collection_address, token.token_id], - () => + const { data } = useQuery({ + queryKey: ["tokenMarketData", token.collection_address, token.token_id], + queryFn: () => getTokenMarketData({ contractAddress: token.collection_address, tokenId: token.token_id, }), - { - refetchInterval: 5_000, - initialData: tokenMarketData, - }, - ); + refetchInterval: 5_000, + initialData: tokenMarketData, + }); - const { data: collection, isLoading } = useQuery( - ["collection", token.collection_address], - () => + const { data: collection, isLoading } = useQuery({ + queryKey: ["collection", token.collection_address], + queryFn: () => getCollection({ collectionAddress: token.collection_address, }), - { - refetchInterval: 5_000, - }, - ); + refetchInterval: 5_000, + }); const { data: starkProfile } = useStarkProfile({ address: data?.owner ?? tokenMarketData.owner, }); diff --git a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/tokens-actions-buy-now.tsx b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/tokens-actions-buy-now.tsx index ae08f539..8b348726 100644 --- a/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/tokens-actions-buy-now.tsx +++ b/apps/arkmarket/src/app/token/[contractAddress]/[tokenId]/components/tokens-actions-buy-now.tsx @@ -40,7 +40,10 @@ export default function TokenActionsBuyNow({ const { toast } = useToast(); const buy = async () => { - if (data.value < BigInt(tokenMarketData.listing.start_amount ?? 0)) { + if ( + !data || + data.value < BigInt(tokenMarketData.listing.start_amount ?? 0) + ) { sonner.error("Insufficient balance"); return; } diff --git a/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-header.tsx b/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-header.tsx index af4c15a6..ea980c11 100644 --- a/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-header.tsx +++ b/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-header.tsx @@ -2,8 +2,7 @@ import { useStarkProfile } from "@starknet-react/core"; -import type { PropsWithClassName } from "@ark-market/ui"; -import { cn, shortAddress } from "@ark-market/ui"; +import { shortAddress } from "@ark-market/ui"; import CopyButton from "~/components/copy-button"; import ProfilePicture from "~/components/profile-picture"; @@ -14,23 +13,17 @@ interface PortfolioHeaderProps { } export default function PortfolioHeader({ - className, walletAddress, -}: PropsWithClassName) { +}: PortfolioHeaderProps) { const { data: starkProfile } = useStarkProfile({ address: walletAddress }); const shortenedAddress = shortAddress(walletAddress); return ( -

+
@@ -49,7 +42,7 @@ export default function PortfolioHeader({ )}
- +
); } diff --git a/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-items-filters-content.tsx b/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-items-filters-content.tsx index bacbf561..d7044e8c 100644 --- a/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-items-filters-content.tsx +++ b/apps/arkmarket/src/app/wallet/[walletAddress]/components/portfolio-items-filters-content.tsx @@ -1,6 +1,6 @@ "use client"; -import { useMemo, useCallback } from "react"; +import { useCallback, useMemo } from "react"; import { useInfiniteQuery } from "@tanstack/react-query"; import { useQueryState } from "nuqs"; import { validateAndParseAddress } from "starknet"; @@ -171,7 +171,7 @@ export default function PortfolioItemsFiltersContent({ ellipsableStyles, )} > - Floor: {formatUnits(collection.floor ?? 0, 18)} + Floor: {formatUnits(collection.floor ?? 0n, 18)}

diff --git a/apps/arkmarket/src/components/providers.tsx b/apps/arkmarket/src/components/providers.tsx index f957992f..62a5a9a7 100644 --- a/apps/arkmarket/src/components/providers.tsx +++ b/apps/arkmarket/src/components/providers.tsx @@ -2,7 +2,7 @@ import type { PropsWithChildren } from "react"; import { ArkProvider } from "@ark-project/react"; -import { QueryClient, QueryClientProvider } from "react-query"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { ThemeProvider } from "@ark-market/ui/theme"; diff --git a/apps/arkmarket/src/components/system-status.tsx b/apps/arkmarket/src/components/system-status.tsx index 05fb2045..b0748624 100644 --- a/apps/arkmarket/src/components/system-status.tsx +++ b/apps/arkmarket/src/components/system-status.tsx @@ -1,6 +1,6 @@ "use client"; -import { useQuery } from "react-query"; +import { useQuery } from "@tanstack/react-query"; import { cn } from "@ark-market/ui"; import { @@ -28,12 +28,14 @@ const statuses = { }; export default function SystemStatus() { - const { isLoading, error, data } = useQuery("systemStatus", getSystemStatus, { + const { error, data } = useQuery({ + queryKey: ["systemStatus"], + queryFn: getSystemStatus, refetchInterval: 15_000, initialData: { status: "ok" }, }); - if (isLoading || error || !data) { + if (error) { return null; } diff --git a/apps/arkmarket/src/components/user-nav.tsx b/apps/arkmarket/src/components/user-nav.tsx index ff7e14a2..538c1df1 100644 --- a/apps/arkmarket/src/components/user-nav.tsx +++ b/apps/arkmarket/src/components/user-nav.tsx @@ -20,9 +20,10 @@ export function UserNav() { const { address, chainId } = useAccount(); const { data: lordsBalance } = useTokenBalance({ token: env.NEXT_PUBLIC_LORDS_TOKEN_ADDRESS }); const { chain } = useNetwork(); + const { address, chainId } = useAccount(); + const { data: ethBalance } = useBalance({ address, token: ETH }); const { data: starkProfile } = useStarkProfile({ address }); - - const isWrongNetwork = chainId !== chain.id && chainId !== undefined; + const isWrongNetwork = chainId && chainId !== chain.id; const nameOrShortAddress = starkProfile?.name ?? shortAddress(address ?? "0x"); const roundedEthBalance = parseFloat(lordsBalance.formatted ?? "0").toFixed(4); diff --git a/apps/arkmarket/src/components/wallet-account-balance.tsx b/apps/arkmarket/src/components/wallet-account-balance.tsx new file mode 100644 index 00000000..6b8fdb96 --- /dev/null +++ b/apps/arkmarket/src/components/wallet-account-balance.tsx @@ -0,0 +1,59 @@ +import { Ethereum, Starknet } from "@ark-market/ui/icons"; + +import { ETH, STRK } from "~/constants/tokens"; +import useBalance from "~/hooks/useBalance"; +import usePrices from "~/hooks/usePrices"; + +interface WalletAccountBalanceProps { + address: string; +} + +export default function WalletAccountBalance({ + address, +}: WalletAccountBalanceProps) { + const { convertInUsd } = usePrices(); + const { data: ethBalance } = useBalance({ address, token: ETH }); + const { data: strkBalance } = useBalance({ address, token: STRK }); + + const ethBalanceInUsd = convertInUsd({ + amount: ethBalance?.value, + token: "ethereum", + }); + const strkBalanceInUsd = convertInUsd({ + amount: strkBalance?.value, + token: "starknet", + }); + + if (!address) { + return null; + } + + return ( + <> +
+
+ + ETH +
+
+

{ethBalance?.rounded}

+

+ ${ethBalanceInUsd} +

+
+
+
+
+ + STRK +
+
+

{strkBalance?.rounded}

+

+ ${strkBalanceInUsd} +

+
+
+ + ); +} diff --git a/apps/arkmarket/src/components/wallet-account-content.tsx b/apps/arkmarket/src/components/wallet-account-content.tsx index 58418567..bc70d45c 100644 --- a/apps/arkmarket/src/components/wallet-account-content.tsx +++ b/apps/arkmarket/src/components/wallet-account-content.tsx @@ -89,7 +89,7 @@ export default function WalletAccountContent({ prefetch > -

My items

+

Profile

{isWebWallet && ( { + if (!address) { + throw new Error("address is required"); + } - return { - data: { - value: data as bigint, - formatted, - rounded: formatted ? parseFloat(formatted).toFixed(4) : "0.0", + if (!contract) { + throw new Error("contract is required"); + } + + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + const balance = (await contract.balanceOf(address)) as bigint; + const formatted = formatEther(balance); + + return { + value: balance, + formatted, + rounded: parseFloat(formatEther(balance)).toFixed(4), + }; }, + enabled: !!address, + refetchInterval: 15_000, + structuralSharing: false, + }); + + return { + data, isError, isLoading, + isPending, error, }; } diff --git a/apps/arkmarket/src/hooks/usePrices.ts b/apps/arkmarket/src/hooks/usePrices.ts index 86c43da7..f5a29303 100644 --- a/apps/arkmarket/src/hooks/usePrices.ts +++ b/apps/arkmarket/src/hooks/usePrices.ts @@ -1,4 +1,4 @@ -import { useQuery } from "react-query"; +import { useQuery } from "@tanstack/react-query"; import { formatEther } from "viem"; import getPrices from "~/lib/getPrices"; @@ -9,7 +9,9 @@ interface ConvertInUsdParams { } export default function usePrices() { - const { data, isLoading, isError, error } = useQuery(["prices"], getPrices, { + const { data, isLoading, isError, error } = useQuery({ + queryKey: ["prices"], + queryFn: getPrices, refetchInterval: 15_000, staleTime: 15_000, }); @@ -19,22 +21,26 @@ export default function usePrices() { amount = BigInt(0), }: ConvertInUsdParams) => { if (!data) { - return 0; + return "0.00"; } const amountInEther = parseFloat(formatEther(amount)); const price = data[token].price; + const amountInUsd = amountInEther * price; - return (amountInEther * price).toLocaleString("en-us", { - notation: "compact", - minimumFractionDigits: 2, + return amountInUsd.toLocaleString("en-US", { + minimumFractionDigits: 0, + maximumFractionDigits: 2, }); }; return { data: { ethereum: data?.ethereum.price, - ethereumFormatted: data?.ethereum.price.toFixed(2), + ethereumFormatted: data?.ethereum.price.toLocaleString("en-US", { + minimumFractionDigits: 0, + maximumFractionDigits: 2, + }), starknet: data?.starknet.price, starknetFormatted: data?.starknet.price.toFixed(2), lords: data?.lords.price, diff --git a/apps/arkmarket/src/types/index.ts b/apps/arkmarket/src/types/index.ts index c2e8a520..faf5165c 100644 --- a/apps/arkmarket/src/types/index.ts +++ b/apps/arkmarket/src/types/index.ts @@ -178,6 +178,7 @@ export type CollectionActivityType = export interface CollectionActivity { activity_type: CollectionActivityType; address: string; + collection_address: string; from: string; is_verified: boolean; name: string; diff --git a/package.json b/package.json index 1e8675e8..79345572 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,7 @@ "prettier": "@ark-market/prettier-config", "lint-staged": { "(apps|packages)/**/*.{js,ts,jsx,tsx}": [ - "pnpm lint:fix", - "pnpm format:fix" + "pnpm lint:fix" ] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3e8388c2..628c3aa2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,8 +7,8 @@ settings: catalogs: default: '@tanstack/react-query': - specifier: ^5.51.23 - version: 5.53.1 + specifier: ^5.53.3 + version: 5.53.3 '@trpc/client': specifier: ^11.0.0-rc.477 version: 11.0.0-rc.490 @@ -107,7 +107,7 @@ importers: version: 0.11.1(typescript@5.5.4)(zod@3.23.8) '@tanstack/react-query': specifier: 'catalog:' - version: 5.53.1(react@18.3.1) + version: 5.53.3(react@18.3.1) '@tanstack/react-table': specifier: ^8.20.5 version: 8.20.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -119,7 +119,7 @@ importers: version: 11.0.0-rc.490(@trpc/server@11.0.0-rc.490) '@trpc/react-query': specifier: 'catalog:' - version: 11.0.0-rc.490(@tanstack/react-query@5.53.1(react@18.3.1))(@trpc/client@11.0.0-rc.490(@trpc/server@11.0.0-rc.490))(@trpc/server@11.0.0-rc.490)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 11.0.0-rc.490(@tanstack/react-query@5.53.3(react@18.3.1))(@trpc/client@11.0.0-rc.490(@trpc/server@11.0.0-rc.490))(@trpc/server@11.0.0-rc.490)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@trpc/server': specifier: 'catalog:' version: 11.0.0-rc.490 @@ -2376,8 +2376,8 @@ packages: '@tanstack/query-core@5.53.1': resolution: {integrity: sha512-mvLG7s4Zy3Yvc2LsKm8BVafbmPrsReKgqwhmp4XKVmRW9us3KbWRqu3qBBfhVavcUUEHfNK7PvpTchvQpVdFpw==} - '@tanstack/react-query@5.53.1': - resolution: {integrity: sha512-35HU4836Ey1/W74BxmS8p9KHXcDRGPdkw6w3VX0Tc5S9v5acFl80oi/yc6nsmoLhu68wQkWMyX0h7y7cOtY5OA==} + '@tanstack/react-query@5.53.3': + resolution: {integrity: sha512-286mN/91CeM7vC6CZFLKYDHSw+WyMX6ekIvzoTbpM4xyPb99VSyCKPLyPgaOatKqYm6ooMBquSq9NGRdKgsJfg==} peerDependencies: react: ^18 || ^19 @@ -2822,10 +2822,6 @@ packages: resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} engines: {node: '>=10.0.0'} - big-integer@1.6.52: - resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==} - engines: {node: '>=0.6'} - binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -3214,9 +3210,6 @@ packages: detect-node-es@1.1.0: resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} - detect-node@2.1.0: - resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==} - didyoumean@1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} @@ -4079,9 +4072,6 @@ packages: resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==} hasBin: true - js-sha3@0.8.0: - resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -4275,9 +4265,6 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} - microseconds@0.2.0: - resolution: {integrity: sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==} - mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} @@ -4358,9 +4345,6 @@ packages: mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nano-time@1.0.0: - resolution: {integrity: sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==} - nanoid@3.3.7: resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -4500,9 +4484,6 @@ packages: resolution: {integrity: sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==} engines: {node: '>= 0.4'} - oblivious-set@1.0.0: - resolution: {integrity: sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==} - ofetch@1.3.4: resolution: {integrity: sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==} @@ -7844,7 +7825,7 @@ snapshots: '@starknet-react/core@2.9.0(get-starknet-core@3.3.3(starknet@6.11.0))(react@18.3.1)(starknet@6.11.0)': dependencies: '@starknet-react/chains': 0.1.7 - '@tanstack/react-query': 5.53.1(react@18.3.1) + '@tanstack/react-query': 5.53.3(react@18.3.1) eventemitter3: 5.0.1 get-starknet-core: 3.3.3(starknet@6.11.0) immutable: 4.3.7 @@ -7975,9 +7956,9 @@ snapshots: '@tanstack/query-core@5.53.1': {} - '@tanstack/react-query@5.53.1(react@18.3.1)': + '@tanstack/react-query@5.53.3(react@18.3.1)': dependencies: - '@tanstack/query-core': 5.53.1 + '@tanstack/query-core': 5.53.3 react: 18.3.1 '@tanstack/react-table@8.20.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': @@ -8006,9 +7987,9 @@ snapshots: dependencies: '@trpc/server': 11.0.0-rc.490 - '@trpc/react-query@11.0.0-rc.490(@tanstack/react-query@5.53.1(react@18.3.1))(@trpc/client@11.0.0-rc.490(@trpc/server@11.0.0-rc.490))(@trpc/server@11.0.0-rc.490)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@trpc/react-query@11.0.0-rc.490(@tanstack/react-query@5.53.3(react@18.3.1))(@trpc/client@11.0.0-rc.490(@trpc/server@11.0.0-rc.490))(@trpc/server@11.0.0-rc.490)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/react-query': 5.53.1(react@18.3.1) + '@tanstack/react-query': 5.53.3(react@18.3.1) '@trpc/client': 11.0.0-rc.490(@trpc/server@11.0.0-rc.490) '@trpc/server': 11.0.0-rc.490 react: 18.3.1 @@ -8624,8 +8605,6 @@ snapshots: basic-ftp@5.0.5: {} - big-integer@1.6.52: {} - binary-extensions@2.3.0: {} bl@4.1.0: @@ -9050,8 +9029,6 @@ snapshots: detect-node-es@1.1.0: {} - detect-node@2.1.0: {} - didyoumean@1.2.2: {} diff@4.0.2: {} @@ -10088,8 +10065,6 @@ snapshots: jiti@1.21.6: {} - js-sha3@0.8.0: {} - js-tokens@4.0.0: {} js-yaml@4.1.0: @@ -10297,8 +10272,6 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 - microseconds@0.2.0: {} - mime-db@1.52.0: {} mime-types@2.1.35: @@ -10370,10 +10343,6 @@ snapshots: object-assign: 4.1.1 thenify-all: 1.6.0 - nano-time@1.0.0: - dependencies: - big-integer: 1.6.52 - nanoid@3.3.7: {} natural-compare@1.4.0: {} @@ -10519,8 +10488,6 @@ snapshots: define-properties: 1.2.1 es-object-atoms: 1.0.0 - oblivious-set@1.0.0: {} - ofetch@1.3.4: dependencies: destr: 2.0.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 46b206cc..12462027 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,7 +4,7 @@ packages: - tooling/* catalog: - "@tanstack/react-query": ^5.51.23 + "@tanstack/react-query": ^5.53.3 "@trpc/client": ^11.0.0-rc.477 "@trpc/react-query": ^11.0.0-rc.477 "@trpc/server": ^11.0.0-rc.477