From 66ad437e3b99f4ce91bb2f169d425176c2b474d7 Mon Sep 17 00:00:00 2001 From: Gabriele Della Casa Venturelli Date: Thu, 31 Oct 2024 14:45:13 -0700 Subject: [PATCH] [core] Bumped `@aptos-connect/wallet-adapter-plugin` to "^2.2.1" (#442) * [core] Bumped `@aptos-connect/wallet-adapter-plugin` to "^2.2.1" * [example-dapp] Added flow for testing claims * [workspace] Generated changeset --- .changeset/mean-apricots-pay.md | 5 + apps/nextjs-example/components.json | 1 + apps/nextjs-example/package.json | 1 + apps/nextjs-example/src/app/layout.tsx | 11 +- .../components/ReactQueryClientProvider.tsx | 14 ++ .../src/components/WalletProvider.tsx | 10 +- .../src/hooks/useClaimSecretKey.ts | 64 ++++++ packages/wallet-adapter-core/package.json | 2 +- pnpm-lock.yaml | 188 ++++-------------- 9 files changed, 139 insertions(+), 157 deletions(-) create mode 100644 .changeset/mean-apricots-pay.md create mode 100644 apps/nextjs-example/src/components/ReactQueryClientProvider.tsx create mode 100644 apps/nextjs-example/src/hooks/useClaimSecretKey.ts diff --git a/.changeset/mean-apricots-pay.md b/.changeset/mean-apricots-pay.md new file mode 100644 index 00000000..7f5210f3 --- /dev/null +++ b/.changeset/mean-apricots-pay.md @@ -0,0 +1,5 @@ +--- +"@aptos-labs/wallet-adapter-core": minor +--- + +Bumped the Aptos Connect plugin to support claims diff --git a/apps/nextjs-example/components.json b/apps/nextjs-example/components.json index 268ae38d..2c8785ad 100644 --- a/apps/nextjs-example/components.json +++ b/apps/nextjs-example/components.json @@ -12,6 +12,7 @@ }, "aliases": { "components": "@/components", + "hooks": "@/hooks", "utils": "@/lib/utils" } } diff --git a/apps/nextjs-example/package.json b/apps/nextjs-example/package.json index e7cf7d2a..bdeb7d56 100644 --- a/apps/nextjs-example/package.json +++ b/apps/nextjs-example/package.json @@ -30,6 +30,7 @@ "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-toast": "^1.1.5", + "@tanstack/react-query": "^5.59.16", "@telegram-apps/sdk": "^2.0.0", "@trustwallet/aptos-wallet-adapter": "^0.1.6", "antd": "^5.1.2", diff --git a/apps/nextjs-example/src/app/layout.tsx b/apps/nextjs-example/src/app/layout.tsx index 016f23af..f9421ceb 100644 --- a/apps/nextjs-example/src/app/layout.tsx +++ b/apps/nextjs-example/src/app/layout.tsx @@ -9,6 +9,7 @@ import type { Metadata } from "next"; import { Inter as FontSans } from "next/font/google"; import { PropsWithChildren } from "react"; import { AutoConnectProvider } from "@/components/AutoConnectProvider"; +import { ReactQueryClientProvider } from '@/components/ReactQueryClientProvider'; const fontSans = FontSans({ subsets: ["latin"], @@ -37,10 +38,12 @@ export default function RootLayout({ children }: PropsWithChildren) { disableTransitionOnChange > - - {children} - - + + + {children} + + + diff --git a/apps/nextjs-example/src/components/ReactQueryClientProvider.tsx b/apps/nextjs-example/src/components/ReactQueryClientProvider.tsx new file mode 100644 index 00000000..023bd85a --- /dev/null +++ b/apps/nextjs-example/src/components/ReactQueryClientProvider.tsx @@ -0,0 +1,14 @@ +"use client" + +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { PropsWithChildren } from 'react'; + +const queryClient = new QueryClient(); + +export function ReactQueryClientProvider({ children }: PropsWithChildren) { + return ( + + {children} + + ); +} diff --git a/apps/nextjs-example/src/components/WalletProvider.tsx b/apps/nextjs-example/src/components/WalletProvider.tsx index f195c3cf..328ffbd4 100644 --- a/apps/nextjs-example/src/components/WalletProvider.tsx +++ b/apps/nextjs-example/src/components/WalletProvider.tsx @@ -10,6 +10,7 @@ import { TrustWallet } from "@trustwallet/aptos-wallet-adapter"; import { FewchaWallet } from "fewcha-plugin-wallet-adapter"; import { PropsWithChildren } from "react"; import { Network } from "@aptos-labs/ts-sdk"; +import { useClaimSecretKey } from '@/hooks/useClaimSecretKey'; import { useAutoConnect } from "./AutoConnectProvider"; import { useToast } from "./ui/use-toast"; @@ -17,6 +18,9 @@ export const WalletProvider = ({ children }: PropsWithChildren) => { const { autoConnect } = useAutoConnect(); const { toast } = useToast(); + // Enables claim flow when the `claim` query param is detected + const claimSecretKey = useClaimSecretKey(); + const wallets = [ new BitgetWallet(), new FewchaWallet(), @@ -34,7 +38,11 @@ export const WalletProvider = ({ children }: PropsWithChildren) => { dappConfig={{ network: Network.TESTNET, aptosApiKey: process.env.NEXT_PUBLIC_APTOS_API_KEY, - aptosConnect: { dappId: "57fa42a9-29c6-4f1e-939c-4eefa36d9ff5" }, + aptosConnect: { + claimSecretKey, + dappId: "57fa42a9-29c6-4f1e-939c-4eefa36d9ff5", + frontendBaseURL: 'http://localhost:3000' + }, mizuwallet: { manifestURL: "https://assets.mz.xyz/static/config/mizuwallet-connect-manifest.json", diff --git a/apps/nextjs-example/src/hooks/useClaimSecretKey.ts b/apps/nextjs-example/src/hooks/useClaimSecretKey.ts new file mode 100644 index 00000000..84049e50 --- /dev/null +++ b/apps/nextjs-example/src/hooks/useClaimSecretKey.ts @@ -0,0 +1,64 @@ +import { Account, AccountAddress, Aptos, AptosConfig, Ed25519PrivateKey, Network } from '@aptos-labs/ts-sdk'; +import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; +import { useSearchParams } from 'next/navigation'; +import { useEffect, useMemo } from 'react'; + +const claimSecretKeyStorageKey = '@wallet-adapter-example-dapp/claimSecretKey'; + +const config = new AptosConfig({ network: Network.TESTNET }); +const aptos = new Aptos(config); + +function getPersistedClaimSecretKey() { + if (typeof window === 'undefined') { + return undefined; + } + + const currentValue = window.localStorage.getItem(claimSecretKeyStorageKey) ?? undefined; + if (currentValue) { + return currentValue; + } + const newValue = Ed25519PrivateKey.generate().toString(); + window.localStorage.setItem(claimSecretKeyStorageKey, newValue); + return newValue; +} + +export function useClaimSecretKey() { + const claimEnabled = typeof window !== 'undefined' && new URL(window.location.href).searchParams.get('claim') !== null; + const claimSecretKey = claimEnabled ? getPersistedClaimSecretKey() : undefined; + const claimAccountAddress = useMemo(() => { + if (!claimSecretKey) { + return undefined; + } + const secretKey = new Ed25519PrivateKey(claimSecretKey); + const account = Account.fromPrivateKey({ privateKey: secretKey }); + return account.accountAddress; + }, [claimSecretKey]); + + const { data: claimableBalance } = useQuery({ + queryKey: ['accounts', claimAccountAddress, 'aptBalance'], + queryFn: async () => aptos.getAccountCoinAmount({ + accountAddress: claimAccountAddress!, + coinType: '0x1::aptos_coin::AptosCoin', + }), + enabled: claimAccountAddress !== undefined, + }); + + const { isPending: isFunding, mutate: fundAccount, isSuccess: isFunded } = useMutation({ + mutationFn: async (accountAddress: AccountAddress) => aptos.fundAccount({ + accountAddress, + amount: 1e8 - (claimableBalance ?? 0), + }), + }); + + useEffect(() => { + if (claimAccountAddress === undefined || claimableBalance === undefined) { + return; + } + + if (claimableBalance < 1e4 && !isFunded && !isFunding) { + fundAccount(claimAccountAddress); + } + }, [claimAccountAddress, claimSecretKey, claimableBalance, fundAccount, isFunded, isFunding]); + + return claimSecretKey; +} diff --git a/packages/wallet-adapter-core/package.json b/packages/wallet-adapter-core/package.json index 5b0baf0a..1958909b 100644 --- a/packages/wallet-adapter-core/package.json +++ b/packages/wallet-adapter-core/package.json @@ -50,7 +50,7 @@ "typescript": "^4.5.3" }, "dependencies": { - "@aptos-connect/wallet-adapter-plugin": "^2.1.1", + "@aptos-connect/wallet-adapter-plugin": "^2.2.1", "@aptos-labs/wallet-standard": "^0.2.0", "@atomrigslab/aptos-wallet-adapter": "^0.1.20", "@mizuwallet-sdk/aptos-wallet-adapter": "^0.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f9bb55c..d4e3fc36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,7 +53,7 @@ importers: version: 0.0.5 '@msafe/aptos-wallet-adapter': specifier: ^1.0.11 - version: 1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3) + version: 1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3) '@okwallet/aptos-wallet-adapter': specifier: ^0.0.3 version: 0.0.3 @@ -84,6 +84,9 @@ importers: '@radix-ui/react-toast': specifier: ^1.1.5 version: 1.2.1(@types/react-dom@18.3.0)(@types/react@18.3.5)(react-dom@18.3.1)(react@18.3.1) + '@tanstack/react-query': + specifier: ^5.59.16 + version: 5.59.16(react@18.3.1) '@telegram-apps/sdk': specifier: ^2.0.0 version: 2.4.0 @@ -180,7 +183,7 @@ importers: version: 0.0.5 '@msafe/aptos-wallet-adapter': specifier: ^1.0.11 - version: 1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3) + version: 1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3) '@nuxtjs/google-fonts': specifier: ^3.2.0 version: 3.2.0 @@ -319,8 +322,8 @@ importers: packages/wallet-adapter-core: dependencies: '@aptos-connect/wallet-adapter-plugin': - specifier: ^2.1.1 - version: 2.1.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) + specifier: ^2.2.1 + version: 2.2.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) '@aptos-labs/ts-sdk': specifier: ^1.27.1 version: 1.27.1 @@ -581,25 +584,25 @@ packages: resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} dev: true - /@aptos-connect/wallet-adapter-plugin@2.1.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0): - resolution: {integrity: sha512-nPWEQSUs/pk0d/MtJs4fYcxGFUryKxFsp6xrEd0IbzT/HBCDMvPnGlME7h34ybwlL0h6DuY0zL1LijsqJCsSrA==} + /@aptos-connect/wallet-adapter-plugin@2.2.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0): + resolution: {integrity: sha512-glbAw9Hb8MdW+lrqcZZXaLcZpH1T35vdMJUE8Erso/ydJ1LCh2DnNmjXuiDuv+YgF0dFzSMqqfgSELWPU0UiXA==} peerDependencies: '@aptos-labs/ts-sdk': 1.26.0 '@aptos-labs/wallet-standard': 0.2.0 dependencies: - '@aptos-connect/wallet-api': 0.1.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) + '@aptos-connect/wallet-api': 0.1.5(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) '@aptos-labs/ts-sdk': 1.27.1 '@aptos-labs/wallet-standard': 0.2.0(@aptos-labs/ts-sdk@1.27.1)(@wallet-standard/core@1.0.3) '@identity-connect/crypto': 0.2.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) - '@identity-connect/dapp-sdk': 0.9.6(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) + '@identity-connect/dapp-sdk': 0.9.8(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) transitivePeerDependencies: - '@telegram-apps/bridge' - aptos - debug dev: false - /@aptos-connect/wallet-api@0.1.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0): - resolution: {integrity: sha512-cQXGj/Irb6Bl/w9J7LZCCbtyo0I0rhOWvh5DgvDq/ew9vk+Vgebl4ZHPetjdmEJWbmj2IpxSoi6UBYqxZIEn8Q==} + /@aptos-connect/wallet-api@0.1.5(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0): + resolution: {integrity: sha512-KwEPyivXP9iYWjw1gTG06GoLd2wzVjIWec0TLLeNBkvpE1TTSm9yma37CfbwYI3iizYi4EL4h7dqppKuG5VzrQ==} peerDependencies: '@aptos-labs/ts-sdk': 1.26.0 '@aptos-labs/wallet-standard': ^0.1.0 @@ -619,7 +622,7 @@ packages: '@telegram-apps/bridge': ^1.0.0 aptos: ^1.20.0 dependencies: - '@aptos-connect/wallet-api': 0.1.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) + '@aptos-connect/wallet-api': 0.1.5(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) '@aptos-labs/ts-sdk': 1.27.1 '@aptos-labs/wallet-standard': 0.2.0(@aptos-labs/ts-sdk@1.27.1)(@wallet-standard/core@1.0.3) '@telegram-apps/bridge': 1.2.1 @@ -692,17 +695,17 @@ packages: - debug dev: false - /@aptos-labs/wallet-adapter-core@4.18.0(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0): - resolution: {integrity: sha512-VtjYWThy4vWvHihQWZYBXspJmc1ElsUflIRxB4pD/kfEsYBR1mGErNng/lfvEZbWuKZ3O0s2mt+BWeYng4/YYQ==} + /@aptos-labs/wallet-adapter-core@4.18.1(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0): + resolution: {integrity: sha512-6IAdb1RHKBFiSrTo5H0YH2A7W1U5cf/8EA4x9yH6xviWsXhlsAUuIeSXZM4BGpk3GG3Y2YsKtouuMB5LRh1iZw==} peerDependencies: '@aptos-labs/ts-sdk': ^1.27.1 aptos: ^1.21.0 dependencies: - '@aptos-connect/wallet-adapter-plugin': 2.1.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) + '@aptos-connect/wallet-adapter-plugin': 2.2.1(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) '@aptos-labs/ts-sdk': 1.27.1 '@aptos-labs/wallet-standard': 0.2.0(@aptos-labs/ts-sdk@1.27.1)(@wallet-standard/core@1.0.3) '@atomrigslab/aptos-wallet-adapter': 0.1.21(@aptos-labs/ts-sdk@1.27.1) - '@mizuwallet-sdk/aptos-wallet-adapter': 0.2.6(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0) + '@mizuwallet-sdk/aptos-wallet-adapter': 0.3.1(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@wallet-standard/core@1.0.3) aptos: 1.21.0 buffer: 6.0.3 eventemitter3: 4.0.7 @@ -712,9 +715,7 @@ packages: - '@mizuwallet-sdk/protocol' - '@telegram-apps/bridge' - '@wallet-standard/core' - - bufferutil - debug - - utf-8-validate dev: false /@aptos-labs/wallet-standard@0.0.11: @@ -1242,24 +1243,6 @@ packages: aptos: 1.21.0 dev: false - /@blocto/sdk@0.10.3(aptos@1.21.0): - resolution: {integrity: sha512-9Ot5R3YULaX8IIRGyVYXhoGC01H+kaXCqwfLWzUSKciNYT2GxiF547LEAnT1a7e5HMrJdqjQ+94OsS32fHmq9A==} - peerDependencies: - aptos: ^1.3.14 - peerDependenciesMeta: - aptos: - optional: true - dependencies: - aptos: 1.21.0 - buffer: 6.0.3 - eip1193-provider: 1.0.1 - js-sha3: 0.8.0 - transitivePeerDependencies: - - bufferutil - - debug - - utf-8-validate - dev: false - /@changesets/apply-release-plan@7.0.5: resolution: {integrity: sha512-1cWCk+ZshEkSVEZrm2fSj1Gz8sYvxgUL4Q78+1ZZqeqfuevPTPk033/yUZ3df8BKMohkqqHfzj0HOOrG0KtXTw==} dependencies: @@ -2722,7 +2705,7 @@ packages: peerDependencies: '@aptos-labs/ts-sdk': 1.18.1 dependencies: - '@aptos-connect/wallet-api': 0.1.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) + '@aptos-connect/wallet-api': 0.1.5(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) '@aptos-labs/ts-sdk': 1.27.1 '@noble/hashes': 1.5.0 ed2curve: 0.3.0 @@ -2732,13 +2715,13 @@ packages: - aptos dev: false - /@identity-connect/dapp-sdk@0.9.6(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0): - resolution: {integrity: sha512-lrwBUD0xKT7sbTFbc+veUWqf1CPn1ESZuSsLciBo3szWt3MjlfW6hFWimBibPWas58ZohKDu6vZBA8da/T9VWw==} + /@identity-connect/dapp-sdk@0.9.8(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0): + resolution: {integrity: sha512-Od1YrxHwLVX/vLOl1gtOrf3LlaoZYs7V4GvKOhihvMl1XzkoqS5izZsbkUyWMtl/uYWqSz73evGv0melwmHcgw==} peerDependencies: '@aptos-labs/ts-sdk': 1.26.0 '@aptos-labs/wallet-standard': ^0.1.0 dependencies: - '@aptos-connect/wallet-api': 0.1.4(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) + '@aptos-connect/wallet-api': 0.1.5(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(aptos@1.21.0) '@aptos-connect/web-transport': 0.0.8(@aptos-labs/ts-sdk@1.27.1)(@aptos-labs/wallet-standard@0.2.0)(@telegram-apps/bridge@1.2.1)(aptos@1.21.0) '@aptos-labs/ts-sdk': 1.27.1 '@aptos-labs/wallet-standard': 0.2.0(@aptos-labs/ts-sdk@1.27.1)(@wallet-standard/core@1.0.3) @@ -3052,35 +3035,6 @@ packages: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - /@json-rpc-tools/provider@1.7.6: - resolution: {integrity: sha512-z7D3xvJ33UfCGv77n40lbzOYjZKVM3k2+5cV7xS8G6SCvKTzMkhkUYuD/qzQUNT4cG/lv0e9mRToweEEVLVVmA==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. - dependencies: - '@json-rpc-tools/utils': 1.7.6 - axios: 0.21.4 - safe-json-utils: 1.1.1 - ws: 7.5.10 - transitivePeerDependencies: - - bufferutil - - debug - - utf-8-validate - dev: false - - /@json-rpc-tools/types@1.7.6: - resolution: {integrity: sha512-nDSqmyRNEqEK9TZHtM15uNnDljczhCUdBmRhpNZ95bIPKEDQ+nTDmGMFd2lLin3upc5h2VVVd9tkTDdbXUhDIQ==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. - dependencies: - keyvaluestorage-interface: 1.0.0 - dev: false - - /@json-rpc-tools/utils@1.7.6: - resolution: {integrity: sha512-HjA8x/U/Q78HRRe19yh8HVKoZ+Iaoo3YZjakJYxR+rw52NHo6jM+VE9b8+7ygkCFXl/EHID5wh/MkXaE/jGyYw==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. - dependencies: - '@json-rpc-tools/types': 1.7.6 - '@pedrouid/environment': 1.0.1 - dev: false - /@koa/router@12.0.1: resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} engines: {node: '>= 12'} @@ -3214,28 +3168,6 @@ packages: resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} dev: true - /@mizuwallet-sdk/aptos-wallet-adapter@0.2.6(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0): - resolution: {integrity: sha512-FY5LdP+OaqcKud00EE9RnehJsBcLvY18j8u7PsBonQFJwY5nZzvz/OAZ650kKiNDD3q0s2XZbjgxehkGb+6W1w==} - peerDependencies: - '@mizuwallet-sdk/core': '>=1.3.2' - '@mizuwallet-sdk/protocol': 0.0.1 - dependencies: - '@aptos-labs/ts-sdk': 1.27.1 - '@aptos-labs/wallet-standard': 0.1.0-ms.1(@aptos-labs/ts-sdk@1.27.1)(@wallet-standard/core@1.0.3) - '@blocto/sdk': 0.10.3(aptos@1.21.0) - '@mizuwallet-sdk/core': 1.4.0(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/protocol@0.0.1)(graphql-request@7.1.0) - '@mizuwallet-sdk/protocol': 0.0.1 - '@msafe/aptos-wallet': 6.1.1 - buffer: 6.0.3 - postmate: 1.5.2 - transitivePeerDependencies: - - '@wallet-standard/core' - - aptos - - bufferutil - - debug - - utf-8-validate - dev: false - /@mizuwallet-sdk/aptos-wallet-adapter@0.3.1(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@wallet-standard/core@1.0.3): resolution: {integrity: sha512-gWqU446xZHiRoChXhoNqGLtjgRFfI2TLtDuCsaqcZlIhGfMm/9S8frrjVFaoiqIaEJKz6TZqqlHxUD3pk3mr/Q==} peerDependencies: @@ -3252,20 +3184,6 @@ packages: - debug dev: false - /@mizuwallet-sdk/core@1.4.0(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/protocol@0.0.1)(graphql-request@7.1.0): - resolution: {integrity: sha512-03jKqKr+P4kCgcNQT2YNXmFBRVmeZ88vpEFKpQ9SaorCY4L9lF56kJS4Y+e/+A4Gb1bnqA7xuFmnEz13LjsZyg==} - peerDependencies: - '@aptos-labs/ts-sdk': '>=1.14.0' - '@mizuwallet-sdk/protocol': 0.0.2 - graphql-request: '>=7.0.1' - dependencies: - '@aptos-labs/ts-sdk': 1.27.1 - '@mizuwallet-sdk/protocol': 0.0.1 - buffer: 6.0.3 - graphql-request: 7.1.0(graphql@16.9.0) - jwt-decode: 4.0.0 - dev: false - /@mizuwallet-sdk/core@1.4.0(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/protocol@0.0.6)(graphql-request@7.1.0): resolution: {integrity: sha512-03jKqKr+P4kCgcNQT2YNXmFBRVmeZ88vpEFKpQ9SaorCY4L9lF56kJS4Y+e/+A4Gb1bnqA7xuFmnEz13LjsZyg==} peerDependencies: @@ -3280,14 +3198,6 @@ packages: jwt-decode: 4.0.0 dev: false - /@mizuwallet-sdk/protocol@0.0.1: - resolution: {integrity: sha512-LTkygWdCL4ao7XvmrUq570waMMA9EKDWV/GH7/NbTndLUQqJDp5hIM08E99FdplpI02mdA89/o6uTtfmd/Pstg==} - dependencies: - '@microsoft/fetch-event-source': 2.0.1 - tweetnacl: 1.0.3 - tweetnacl-util: 0.15.1 - dev: false - /@mizuwallet-sdk/protocol@0.0.6: resolution: {integrity: sha512-I6ibbdPmPqsqc4JfCfI9qplZ2RcqeUxawyYBNb3TNhibMqQhoVUUaczt9kLuML20ODTvvZW/ja+5S6PXSzWPiw==} dependencies: @@ -3318,10 +3228,10 @@ packages: ts-toolbelt: 9.6.0 dev: false - /@msafe/aptos-wallet-adapter@1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3): + /@msafe/aptos-wallet-adapter@1.1.3(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3): resolution: {integrity: sha512-/5ftbNac9j2Vc6YOqET4IdkhiJnMzuy9LcnGP8ptLWHVuye5P/pAjIpv0A07gOM4/siUJQzlXkBxXdLYF9p8wQ==} dependencies: - '@aptos-labs/wallet-adapter-core': 4.18.0(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.1)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0) + '@aptos-labs/wallet-adapter-core': 4.18.1(@aptos-labs/ts-sdk@1.27.1)(@mizuwallet-sdk/core@1.4.0)(@mizuwallet-sdk/protocol@0.0.6)(@telegram-apps/bridge@1.2.1)(@wallet-standard/core@1.0.3)(aptos@1.21.0) '@msafe/aptos-wallet': 6.1.1 aptos: 1.21.0 transitivePeerDependencies: @@ -3330,9 +3240,7 @@ packages: - '@mizuwallet-sdk/protocol' - '@telegram-apps/bridge' - '@wallet-standard/core' - - bufferutil - debug - - utf-8-validate dev: false /@msafe/aptos-wallet@6.1.1: @@ -4188,10 +4096,6 @@ packages: '@parcel/watcher-win32-x64': 2.4.1 dev: true - /@pedrouid/environment@1.0.1: - resolution: {integrity: sha512-HaW78NszGzRZd9SeoI3JD11JqY+lubnaOx7Pewj5pfjqWXOEATpeKIFb9Z4t2WBUK2iryiXX3lzWwmYWgUL0Ug==} - dev: false - /@pkgjs/parseargs@0.11.0: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -5342,6 +5246,19 @@ packages: defer-to-connect: 2.0.1 dev: false + /@tanstack/query-core@5.59.16: + resolution: {integrity: sha512-crHn+G3ltqb5JG0oUv6q+PMz1m1YkjpASrXTU+sYWW9pLk0t2GybUHNRqYPZWhxgjPaVGC4yp92gSFEJgYEsPw==} + dev: false + + /@tanstack/react-query@5.59.16(react@18.3.1): + resolution: {integrity: sha512-MuyWheG47h6ERd4PKQ6V8gDyBu3ThNG22e1fRVwvq6ap3EqsFhyuxCAwhNP/03m/mLg+DAb0upgbPaX6VB+CkQ==} + peerDependencies: + react: ^18 || ^19 + dependencies: + '@tanstack/query-core': 5.59.16 + react: 18.3.1 + dev: false + /@tanstack/virtual-core@3.10.7: resolution: {integrity: sha512-ND5dfsU0n9F4gROzwNNDJmg6y8n9pI8YWxtgbfJ5UcNn7Hx+MxEXtXcQ189tS7sh8pmCObgz2qSiyRKTZxT4dg==} dev: false @@ -6893,14 +6810,6 @@ packages: resolution: {integrity: sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==} engines: {node: '>=4'} - /axios@0.21.4: - resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} - dependencies: - follow-redirects: 1.15.9 - transitivePeerDependencies: - - debug - dev: false - /axios@1.7.4: resolution: {integrity: sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==} dependencies: @@ -8102,17 +8011,6 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: true - /eip1193-provider@1.0.1: - resolution: {integrity: sha512-kSuqwQ26d7CzuS/t3yRXo2Su2cVH0QfvyKbr2H7Be7O5YDyIq4hQGCNTo5wRdP07bt+E2R/8nPCzey4ojBHf7g==} - deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. - dependencies: - '@json-rpc-tools/provider': 1.7.6 - transitivePeerDependencies: - - bufferutil - - debug - - utf-8-validate - dev: false - /ejs@3.1.10: resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} engines: {node: '>=0.10.0'} @@ -11514,10 +11412,6 @@ packages: dependencies: json-buffer: 3.0.1 - /keyvaluestorage-interface@1.0.0: - resolution: {integrity: sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==} - dev: false - /kleur@3.0.3: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} @@ -13242,10 +13136,6 @@ packages: picocolors: 1.1.0 source-map-js: 1.2.1 - /postmate@1.5.2: - resolution: {integrity: sha512-EHLlEmrUA/hALls49oBrtE7BzDXXjB9EiO4MZpsoO3R/jRuBmD+2WKQuYAbeuVEpTzrPpUTT79z2cz4qaFgPRg==} - dev: false - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -14346,10 +14236,6 @@ packages: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} dev: true - /safe-json-utils@1.1.1: - resolution: {integrity: sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ==} - dev: false - /safe-regex-test@1.0.3: resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} engines: {node: '>= 0.4'}