diff --git a/.env.example b/.env.example index ddbd65ef..6d35cd44 100644 --- a/.env.example +++ b/.env.example @@ -19,6 +19,9 @@ NEXT_PUBLIC_LIVEPEER_API_KEY= # Website URL NEXT_PUBLIC_SITE_URL= +# WalletConnect Project: https://cloud.walletconnect.com/ +NEXT_PUBLIC_WC_PROJECT_ID= + # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Private Variables # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- diff --git a/app/(general)/integration/erc20/[chainId]/[address]/page.tsx b/app/(general)/integration/erc20/[chainId]/[address]/page.tsx index dd8e0c27..7b718eda 100644 --- a/app/(general)/integration/erc20/[chainId]/[address]/page.tsx +++ b/app/(general)/integration/erc20/[chainId]/[address]/page.tsx @@ -1,6 +1,6 @@ "use client" -import { Address } from "wagmi" +import { type Address } from "viem" import { ERC20Read } from "@/integrations/erc20/components/erc20-read" diff --git a/app/(general)/integration/etherscan/page.tsx b/app/(general)/integration/etherscan/page.tsx index 1335532a..719b137b 100644 --- a/app/(general)/integration/etherscan/page.tsx +++ b/app/(general)/integration/etherscan/page.tsx @@ -3,7 +3,7 @@ import Link from "next/link" import { turboIntegrations } from "@/data/turbo-integrations" import { LuBook } from "react-icons/lu" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" @@ -26,7 +26,7 @@ import { IsSignedIn } from "@/integrations/siwe/components/is-signed-in" import { IsSignedOut } from "@/integrations/siwe/components/is-signed-out" export default function EtherscanPage() { - const { chain } = useNetwork() + const { chain } = useAccount() const { isLoading, data } = useEtherscanAccountTransactions({ chainId: chain?.id || 1, }) diff --git a/app/(general)/integration/pooltogether-v4/opengraph-image.tsx b/app/(general)/integration/pooltogether-v4/opengraph-image.tsx deleted file mode 100644 index a5dc0470..00000000 --- a/app/(general)/integration/pooltogether-v4/opengraph-image.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { IntegrationOgImage } from "@/components/ui/social/og-image-integrations" - -export const runtime = "edge" -export const size = { - width: 1200, - height: 630, -} - -export default IntegrationOgImage("pooltogether_v4") diff --git a/app/(general)/integration/pooltogether-v4/page.tsx b/app/(general)/integration/pooltogether-v4/page.tsx deleted file mode 100644 index 824530b2..00000000 --- a/app/(general)/integration/pooltogether-v4/page.tsx +++ /dev/null @@ -1,79 +0,0 @@ -import Link from "next/link" -import { turboIntegrations } from "@/data/turbo-integrations" -import { LuBook } from "react-icons/lu" - -import { cn } from "@/lib/utils" -import { buttonVariants } from "@/components/ui/button" -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" -import { WalletConnect } from "@/components/blockchain/wallet-connect" -import { - PageHeader, - PageHeaderCTA, - PageHeaderDescription, - PageHeaderHeading, -} from "@/components/layout/page-header" -import { PageSection } from "@/components/layout/page-section" -import { IsWalletConnected } from "@/components/shared/is-wallet-connected" -import { IsWalletDisconnected } from "@/components/shared/is-wallet-disconnected" -import { LightDarkImage } from "@/components/shared/light-dark-image" -import { PoolTogetherFormDeposit } from "@/integrations/pooltogether-v4/components/form-yield-source-prize-pool-deposit" -import { PoolTogetherFormWithdraw } from "@/integrations/pooltogether-v4/components/form-yield-source-prize-pool-withdraw" - -export default function PoolTogetherPage() { - return ( -
- - - PoolTogether - - PoolTogether is a prize savings protocol, enable you to win by saving. - - - - - Documentation - - - - - - - Deposit - Withdraw - - - - - - -
- -
-
-
- - - - - -
- -
-
-
-
-
-
- ) -} diff --git a/app/(general)/integration/pooltogether-v4/twitter-image.tsx b/app/(general)/integration/pooltogether-v4/twitter-image.tsx deleted file mode 100644 index 215a2a59..00000000 --- a/app/(general)/integration/pooltogether-v4/twitter-image.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import Image from "./opengraph-image" - -export const runtime = "edge" -export const size = { - width: 1200, - height: 630, -} - -export default Image diff --git a/app/dashboard/transactions/page.tsx b/app/dashboard/transactions/page.tsx index b8bd8143..d2a62c2a 100644 --- a/app/dashboard/transactions/page.tsx +++ b/app/dashboard/transactions/page.tsx @@ -1,6 +1,6 @@ "use client" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { useUser } from "@/lib/hooks/use-user" import { IsWalletConnected } from "@/components/shared/is-wallet-connected" @@ -40,7 +40,7 @@ export default function PageDashboardTransactions() { const Table = () => { const { user } = useUser() - const { chain } = useNetwork() + const { chain } = useAccount() const { isLoading, data } = useEtherscanAccountTransactions( { chainId: chain?.id || 1, diff --git a/components/app/app-users-table.tsx b/components/app/app-users-table.tsx index 23a0feb8..bab0f511 100644 --- a/components/app/app-users-table.tsx +++ b/components/app/app-users-table.tsx @@ -1,5 +1,5 @@ import { HTMLAttributes, useMemo } from "react" -import { Address } from "wagmi" +import { type Address } from "viem" import { Address as AddressComponent } from "@/components/blockchain/address" import type { Users } from "@/app/api/app/users/route" diff --git a/components/blockchain/address.tsx b/components/blockchain/address.tsx index b3b2a0fe..e587f715 100644 --- a/components/blockchain/address.tsx +++ b/components/blockchain/address.tsx @@ -1,5 +1,6 @@ import { HTMLAttributes } from "react" -import { useNetwork, type Address as AddressType } from "wagmi" +import { type Address as AddressType } from "viem" +import { useAccount } from "wagmi" import { LinkComponent } from "../shared/link-component" @@ -16,7 +17,7 @@ export const Address = ({ isLink, ...props }: AddressProps) => { - const { chain } = useNetwork() + const { chain } = useAccount() const blockExplorerUrl = chain?.blockExplorers?.default.url const formattedAddress = truncate ? `${address.slice(0, 6)}...${address.slice(-4)}` diff --git a/components/blockchain/block-explorer-link.tsx b/components/blockchain/block-explorer-link.tsx index 456f89d8..cc80fb93 100644 --- a/components/blockchain/block-explorer-link.tsx +++ b/components/blockchain/block-explorer-link.tsx @@ -1,5 +1,6 @@ import { HTMLAttributes } from "react" -import { Address, useNetwork } from "wagmi" +import { type Address } from "viem" +import { useAccount } from "wagmi" import { cn } from "@/lib/utils" @@ -17,7 +18,7 @@ export const BlockExplorerLink = ({ type = "address", ...props }: BlockExplorerLinkProps) => { - const { chain } = useNetwork() + const { chain } = useAccount() const blockExplorer = chain?.blockExplorers?.default if (!address) return null diff --git a/components/blockchain/handle-wallet-events.tsx b/components/blockchain/handle-wallet-events.tsx index bb8efc40..e4ddc1c7 100644 --- a/components/blockchain/handle-wallet-events.tsx +++ b/components/blockchain/handle-wallet-events.tsx @@ -1,7 +1,7 @@ "use client" import { ReactNode } from "react" -import { useAccount } from "wagmi" +import { useAccountEffect } from "wagmi" import { useUser } from "@/lib/hooks/use-user" import { siweLogout } from "@/integrations/siwe/actions/siwe-logout" @@ -12,7 +12,7 @@ interface HandleWalletEventsProps { export const HandleWalletEvents = ({ children }: HandleWalletEventsProps) => { const { mutateUser } = useUser() - useAccount({ + useAccountEffect({ async onDisconnect() { await siweLogout() await mutateUser() diff --git a/components/blockchain/network-status.tsx b/components/blockchain/network-status.tsx index be1b7e06..eaa36f63 100644 --- a/components/blockchain/network-status.tsx +++ b/components/blockchain/network-status.tsx @@ -1,7 +1,7 @@ "use client" import Link from "next/link" -import { useBlockNumber, useNetwork } from "wagmi" +import { useAccount, useBlockNumber } from "wagmi" import { cn } from "@/lib/utils" import { GetNetworkColor } from "@/lib/utils/get-network-color" @@ -18,7 +18,7 @@ const badgeVariants: Record, string> = { export function NetworkStatus() { const { data } = useBlockNumber() - const { chain } = useNetwork() + const { chain } = useAccount() const blockExplorerUrl = chain?.blockExplorers?.default.url if (!chain || !blockExplorerUrl) return null diff --git a/components/blockchain/wallet-nonce.tsx b/components/blockchain/wallet-nonce.tsx index 5aa5cc92..7e072ce2 100644 --- a/components/blockchain/wallet-nonce.tsx +++ b/components/blockchain/wallet-nonce.tsx @@ -1,20 +1,13 @@ import { HTMLAttributes } from "react" -import { useAccount, usePublicClient, useQuery } from "wagmi" +import { useAccount, useTransactionCount } from "wagmi" type WalletNonceProps = Omit, "children"> export const WalletNonce = ({ className, ...props }: WalletNonceProps) => { - const publicClient = usePublicClient() const { address } = useAccount() - const { data: nonce } = useQuery(["wallet-nonce", address, publicClient], { - queryFn: async () => { - if (!publicClient || !address) return - return await publicClient.getTransactionCount({ - address, - }) - }, - enabled: !!address && !!publicClient, + const { data: nonce } = useTransactionCount({ + address, }) return ( diff --git a/components/providers/rainbow-kit.tsx b/components/providers/rainbow-kit.tsx index 0bb9f527..202ad252 100644 --- a/components/providers/rainbow-kit.tsx +++ b/components/providers/rainbow-kit.tsx @@ -2,56 +2,42 @@ import "@rainbow-me/rainbowkit/styles.css" -import { ReactNode } from "react" +import { type ReactNode } from "react" +import { env } from "@/env.mjs" import { - connectorsForWallets, darkTheme, + getDefaultConfig, lightTheme, RainbowKitProvider, } from "@rainbow-me/rainbowkit" -import { - coinbaseWallet, - injectedWallet, - metaMaskWallet, - rainbowWallet, - walletConnectWallet, -} from "@rainbow-me/rainbowkit/wallets" -import { createConfig, WagmiConfig } from "wagmi" +import { QueryClient, QueryClientProvider } from "@tanstack/react-query" +import { WagmiProvider } from "wagmi" -import { chains, publicClient, webSocketPublicClient } from "@/config/networks" +import { chains, transports } from "@/config/networks" import { siteConfig } from "@/config/site" import { useColorMode } from "@/lib/state/color-mode" -const connectors = connectorsForWallets([ - { - groupName: "Recommended", - wallets: [ - injectedWallet({ chains }), - metaMaskWallet({ chains }), - rainbowWallet({ chains }), - coinbaseWallet({ chains, appName: siteConfig.name }), - walletConnectWallet({ chains }), - ], - }, -]) - -const wagmiConfig = createConfig({ - autoConnect: true, - connectors, - publicClient, - webSocketPublicClient, +const wagmiConfig = getDefaultConfig({ + appName: siteConfig.title, + projectId: env.NEXT_PUBLIC_WC_PROJECT_ID, + chains, + transports, + ssr: true, }) +const queryClient = new QueryClient() + export function RainbowKit({ children }: { children: ReactNode }) { const [colorMode] = useColorMode() return ( - - - {children} - - + + + + {children} + + + ) } diff --git a/components/providers/root-provider.tsx b/components/providers/root-provider.tsx index 1730bdfa..876446a3 100644 --- a/components/providers/root-provider.tsx +++ b/components/providers/root-provider.tsx @@ -1,7 +1,6 @@ "use client" import { ReactNode } from "react" -import { QueryClient, QueryClientProvider } from "@tanstack/react-query" import { ThemeProvider } from "next-themes" import { Provider as RWBProvider } from "react-wrap-balancer" @@ -9,7 +8,6 @@ import { useIsMounted } from "@/lib/hooks/use-is-mounted" import HandleWalletEvents from "@/components/blockchain/handle-wallet-events" import { RainbowKit } from "@/components/providers/rainbow-kit" -const queryClient = new QueryClient() interface RootProviderProps { children: ReactNode } @@ -23,13 +21,11 @@ export default function RootProvider({ children }: RootProviderProps) { enableSystem disableTransitionOnChange > - - - - {children} - - - + + + {children} + + ) : null } diff --git a/components/shared/example-demos.tsx b/components/shared/example-demos.tsx index 1ae6b14e..cb85190b 100644 --- a/components/shared/example-demos.tsx +++ b/components/shared/example-demos.tsx @@ -299,31 +299,6 @@ const demos = [ ), }, - { - title: turboIntegrations.pooltogether_v4.name, - description: turboIntegrations.pooltogether_v4.description, - href: turboIntegrations.pooltogether_v4.href, - demo: ( -
- - PoolTogether logo - - - PoolTogether logo - -
- ), - }, { title: turboIntegrations.livepeer.name, description: turboIntegrations.livepeer.description, diff --git a/config/networks.ts b/config/networks.ts index 2c1fa8a1..56cd2dd4 100644 --- a/config/networks.ts +++ b/config/networks.ts @@ -1,127 +1,50 @@ // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // Networks // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -import { env } from "@/env.mjs" -import { Chain, ChainProviderFn, configureChains } from "wagmi" +import { http } from "wagmi" import { arbitrum, - arbitrumGoerli as arbitrumGoerliNoIcon, - baseGoerli as baseGoerliNoIcon, - base as baseNoIcon, - celoAlfajores as celoAlfajoresNoIcon, - celo as celoNoIcon, - gnosisChiado as gnosisChiadoNoIcon, - gnosis as gnosisNoIcon, - goerli as goerliNoIcon, + arbitrumSepolia, + base, + baseSepolia, + gnosis, + gnosisChiado, hardhat, mainnet, optimism, - optimismGoerli, + optimismSepolia, polygon, polygonMumbai, - sepolia as sepoliaNoIcon, + sepolia, } from "wagmi/chains" -import { alchemyProvider } from "wagmi/providers/alchemy" -import { infuraProvider } from "wagmi/providers/infura" -import { publicProvider } from "wagmi/providers/public" - -const goerli = { - ...goerliNoIcon, - iconUrl: "/icons/NetworkEthereumTest.svg", -} -const sepolia = { - ...sepoliaNoIcon, - iconUrl: "/icons/NetworkEthereumTest.svg", -} -const arbitrumGoerli = { - ...arbitrumGoerliNoIcon, - iconUrl: "/icons/NetworkArbitrumTest.svg", -} -const base = { - ...baseNoIcon, - iconUrl: "/icons/NetworkBaseTest.svg", -} - -const baseGoerli = { - ...baseGoerliNoIcon, - iconUrl: "/icons/NetworkBaseTest.svg", -} -const celo = { - ...celoNoIcon, - iconUrl: "/icons/NetworkCelo.svg", -} -const celoAlfajores = { - ...celoAlfajoresNoIcon, - iconUrl: "/icons/NetworkCeloTest.svg", -} -const gnosis = { - ...gnosisNoIcon, - iconUrl: "/icons/NetworkGnosis.svg", -} -const gnosisChiado = { - ...gnosisChiadoNoIcon, - iconUrl: "/icons/NetworkGnosis.svg", -} -export const ETH_CHAINS_TEST = [ - mainnet, - goerli, - sepolia, - polygonMumbai, - celoAlfajores, - gnosisChiado, - hardhat, -] -export const ETH_CHAINS_L2_TEST = [baseGoerli, optimismGoerli, arbitrumGoerli] -export const ETH_CHAINS_PROD = [ +export const chains = [ mainnet, optimism, arbitrum, polygon, - celo, gnosis, - goerli, + hardhat, base, - baseGoerli, + baseSepolia, polygonMumbai, -] -export const ETH_CHAINS_DEV = - env.NEXT_PUBLIC_PROD_NETWORKS_DEV === "true" - ? [...ETH_CHAINS_PROD, ...ETH_CHAINS_TEST, ...ETH_CHAINS_L2_TEST] - : [...ETH_CHAINS_TEST, ...ETH_CHAINS_L2_TEST] - -export const CHAINS: Chain[] = - process.env.NODE_ENV === "production" ? ETH_CHAINS_PROD : ETH_CHAINS_DEV - -const PROVIDERS: ChainProviderFn[] = [] - -if (env.NEXT_PUBLIC_ALCHEMY_API_KEY) { - if (!env.NEXT_PUBLIC_ALCHEMY_API_KEY) - throw new Error("NEXT_PUBLIC_ALCHEMY_API_KEY is not defined") - PROVIDERS.push( - alchemyProvider({ - apiKey: env.NEXT_PUBLIC_ALCHEMY_API_KEY, - }) - ) -} - -if (env.NEXT_PUBLIC_INFURA_API_KEY) { - if (!env.NEXT_PUBLIC_INFURA_API_KEY) - throw new Error("NEXT_PUBLIC_INFURA_API_KEY is not defined") - PROVIDERS.push( - infuraProvider({ - apiKey: env.NEXT_PUBLIC_INFURA_API_KEY, - }) - ) -} - -// Fallback to public provider -// Only include public provider if no other providers are available. -if (PROVIDERS.length === 0 || env.NEXT_PUBLIC_USE_PUBLIC_PROVIDER === "true") { - PROVIDERS.push(publicProvider()) -} - -export const { chains, publicClient, webSocketPublicClient } = configureChains( - CHAINS, - PROVIDERS -) + mainnet, + sepolia, + polygonMumbai, + gnosisChiado, + optimismSepolia, + arbitrumSepolia, +] as const + +export const transports = { + [mainnet.id]: http(), + [sepolia.id]: http(), + [polygonMumbai.id]: http(), + [gnosisChiado.id]: http(), + [hardhat.id]: http(), + [optimism.id]: http(), + [arbitrum.id]: http(), + [polygon.id]: http(), + [gnosis.id]: http(), + [base.id]: http(), +} as const diff --git a/data/turbo-integrations.ts b/data/turbo-integrations.ts index 4d26d3ff..45c44f4f 100644 --- a/data/turbo-integrations.ts +++ b/data/turbo-integrations.ts @@ -102,16 +102,6 @@ export const turboIntegrations = { imgDark: "/integrations/openai-dark.svg", category: "general", }, - pooltogether_v4: { - name: "PoolTogether", - href: "/integration/pooltogether-v4", - url: "https://pooltogether.com/", - description: - "PoolTogether is a prize savings protocol, enable you to win by saving.", - imgLight: "/integrations/pooltogether.svg", - imgDark: "/integrations/pooltogether.svg", - category: "protocols", - }, livepeer: { name: "Livepeer", href: "/integration/livepeer", diff --git a/env.mjs b/env.mjs index 775e646d..57ac69d2 100644 --- a/env.mjs +++ b/env.mjs @@ -31,6 +31,7 @@ export const env = createEnv({ NEXT_PUBLIC_INFURA_API_KEY: z.string().min(1).optional(), NEXT_PUBLIC_LIVEPEER_API_KEY: z.string().min(1).optional(), NEXT_PUBLIC_SITE_URL: z.string().url().optional(), + NEXT_PUBLIC_WC_PROJECT_ID: z.string().min(1), }, runtimeEnv: { NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, @@ -52,5 +53,6 @@ export const env = createEnv({ NEXT_PUBLIC_INFURA_API_KEY: process.env.NEXT_PUBLIC_INFURA_API_KEY, NEXT_PUBLIC_LIVEPEER_API_KEY: process.env.NEXT_PUBLIC_LIVEPEER_API_KEY, NEXT_PUBLIC_SITE_URL: process.env.NEXT_PUBLIC_SITE_URL, + NEXT_PUBLIC_WC_PROJECT_ID: process.env.NEXT_PUBLIC_WC_PROJECT_ID, }, }) diff --git a/integrations/aave/components/asset-to-borrow-item.tsx b/integrations/aave/components/asset-to-borrow-item.tsx index f83017fd..3417e37b 100644 --- a/integrations/aave/components/asset-to-borrow-item.tsx +++ b/integrations/aave/components/asset-to-borrow-item.tsx @@ -3,9 +3,9 @@ import { useEffect, useState } from "react" import Image from "next/image" import { parseUnits } from "viem" -import { useAccount, useWaitForTransaction } from "wagmi" +import { useAccount, useWaitForTransactionReceipt } from "wagmi" -import { useErc20Decimals } from "@/lib/generated/blockchain" +import { useReadErc20Decimals } from "@/lib/generated/blockchain" import { useToast } from "@/lib/hooks/use-toast" import { Button } from "@/components/ui/button" import { @@ -24,7 +24,7 @@ import { } from "@/components/ui/select" import { ContractWriteButton } from "@/components/blockchain/contract-write-button" -import { usePoolBorrow } from "../generated/aave-wagmi" +import { useWritePoolBorrow } from "../generated/aave-wagmi" import { useAave } from "../hooks/use-aave" interface IAssetToSupplyItem { @@ -50,7 +50,7 @@ export const AssetToBorrowItem = ({ const { address: user } = useAccount() const [borrowAmount, setBorrowAmount] = useState("") const [borrowVariableRateMode, setBorrowVariableRateMode] = useState(true) - const { data: decimals } = useErc20Decimals({ address }) + const { data: decimals } = useReadErc20Decimals({ address }) const [open, setOpen] = useState(false) const { toast } = useToast() @@ -64,22 +64,13 @@ export const AssetToBorrowItem = ({ const { data, - isLoading: isLoadingWrite, - write: borrowWrite, - } = usePoolBorrow({ - address: poolAddress, - args: [ - address, - parseUnits(`${Number(borrowAmount)}`, decimals ?? 18), - borrowVariableRateMode ? BigInt(2) : BigInt(1), - 0, - user as `0x${string}`, - ], - }) + isPending: isLoadingWrite, + writeContract: borrowWrite, + } = useWritePoolBorrow() const { isLoading: isLoadingTx, isSuccess: isSuccessTx } = - useWaitForTransaction({ - hash: data?.hash, + useWaitForTransactionReceipt({ + hash: data, }) const buttonAction = () => { @@ -88,7 +79,16 @@ export const AssetToBorrowItem = ({ "You have to borrow more than the amount supplied on stable rate mode!" ) } - borrowWrite() + borrowWrite({ + address: poolAddress, + args: [ + address, + parseUnits(`${Number(borrowAmount)}`, decimals ?? 18), + borrowVariableRateMode ? BigInt(2) : BigInt(1), + 0, + user as `0x${string}`, + ], + }) } const setMaxAmount = () => diff --git a/integrations/aave/components/asset-to-supply-item.tsx b/integrations/aave/components/asset-to-supply-item.tsx index b6528700..3aeb3db7 100644 --- a/integrations/aave/components/asset-to-supply-item.tsx +++ b/integrations/aave/components/asset-to-supply-item.tsx @@ -4,13 +4,13 @@ import { useEffect, useState } from "react" import Image from "next/image" import { TiTick } from "react-icons/ti" import { formatUnits, parseUnits } from "viem" -import { useAccount, useWaitForTransaction } from "wagmi" +import { useAccount, useWaitForTransactionReceipt } from "wagmi" import { - useErc20Allowance, - useErc20Approve, - useErc20BalanceOf, - useErc20Decimals, + useReadErc20Allowance, + useReadErc20BalanceOf, + useReadErc20Decimals, + useWriteErc20Approve, } from "@/lib/generated/blockchain" import { useToast } from "@/lib/hooks/use-toast" import { Button } from "@/components/ui/button" @@ -23,7 +23,7 @@ import { } from "@/components/ui/dialog" import { ContractWriteButton } from "@/components/blockchain/contract-write-button" -import { usePoolSupply } from "../generated/aave-wagmi" +import { useWritePoolSupply } from "../generated/aave-wagmi" import { useAave } from "../hooks/use-aave" interface IAssetToSupplyItem { @@ -47,16 +47,14 @@ export const AssetToSupplyItem = ({ const [supplyAmount, setSupplyAmount] = useState("") const [open, setOpen] = useState(false) - const { data: tokenBalance } = useErc20BalanceOf({ + const { data: tokenBalance } = useReadErc20BalanceOf({ address, args: user ? [user] : undefined, - watch: true, }) - const { data: decimals } = useErc20Decimals({ address }) - const allowance = useErc20Allowance({ + const { data: decimals } = useReadErc20Decimals({ address }) + const allowance = useReadErc20Allowance({ address, args: user ? [user, poolAddress] : undefined, - watch: true, }).data const { toast } = useToast() @@ -71,34 +69,23 @@ export const AssetToSupplyItem = ({ const { data: dataApprove, - isLoading: isLoadingApproveWrite, - write: approveWrite, - } = useErc20Approve({ - address, - args: [poolAddress, parseUnits(`${Number(supplyAmount)}`, decimals ?? 18)], - }) + isPending: isLoadingApproveWrite, + writeContract: approveWrite, + } = useWriteErc20Approve() - const { isLoading: isLoadingApproveTx } = useWaitForTransaction({ - hash: dataApprove?.hash, + const { isLoading: isLoadingApproveTx } = useWaitForTransactionReceipt({ + hash: dataApprove, }) const { data: dataSupply, - isLoading: isLoadingSupplyWrite, - write: supplyWrite, - } = usePoolSupply({ - address: poolAddress, - args: [ - address, - parseUnits(`${Number(supplyAmount)}`, decimals ?? 18), - user as `0x${string}`, - 0, - ], - }) + isPending: isLoadingSupplyWrite, + writeContract: supplyWrite, + } = useWritePoolSupply() const { isLoading: isLoadingSupplyTx, isSuccess: isSuccessTx } = - useWaitForTransaction({ - hash: dataSupply?.hash, + useWaitForTransactionReceipt({ + hash: dataSupply, }) const buttonAction = () => { @@ -106,9 +93,23 @@ export const AssetToSupplyItem = ({ Number(formatUnits(allowance ?? BigInt(1), decimals ?? 18)) < Number(supplyAmount) ) { - approveWrite() + approveWrite({ + address, + args: [ + poolAddress, + parseUnits(`${Number(supplyAmount)}`, decimals ?? 18), + ], + }) } else { - supplyWrite() + supplyWrite({ + address: poolAddress, + args: [ + address, + parseUnits(`${Number(supplyAmount)}`, decimals ?? 18), + user as `0x${string}`, + 0, + ], + }) } } diff --git a/integrations/aave/components/borrowed-assets-item.tsx b/integrations/aave/components/borrowed-assets-item.tsx index a68a26c8..5137bf80 100644 --- a/integrations/aave/components/borrowed-assets-item.tsx +++ b/integrations/aave/components/borrowed-assets-item.tsx @@ -4,14 +4,14 @@ import { useEffect, useState } from "react" import Image from "next/image" import { TiArrowRight } from "react-icons/ti" import { formatUnits, parseUnits } from "viem" -import { useAccount, useWaitForTransaction } from "wagmi" +import { useAccount, useWaitForTransactionReceipt } from "wagmi" import { - useErc20Allowance, - useErc20Approve, - useErc20BalanceOf, - useErc20Decimals, - useErc20Symbol, + useReadErc20Allowance, + useReadErc20BalanceOf, + useReadErc20Decimals, + useReadErc20Symbol, + useWriteErc20Approve, } from "@/lib/generated/blockchain" import { useToast } from "@/lib/hooks/use-toast" import { Button } from "@/components/ui/button" @@ -32,9 +32,9 @@ import { import { ContractWriteButton } from "@/components/blockchain/contract-write-button" import { - usePoolRepay, - usePoolRepayWithATokens, - usePoolSwapBorrowRateMode, + useWritePoolRepay, + useWritePoolRepayWithATokens, + useWritePoolSwapBorrowRateMode, } from "../generated/aave-wagmi" import { useAave } from "../hooks/use-aave" import { limitDecimals } from "../utils" @@ -65,17 +65,15 @@ export const BorrowedAssetsItem = ({ const [repayWithATokens, setRepayWithATokens] = useState(false) const [open, setOpen] = useState(false) - const symbol = getSymbol(useErc20Symbol({ address }).data) - const { data: tokenBalance } = useErc20BalanceOf({ + const symbol = getSymbol(useReadErc20Symbol({ address }).data) + const { data: tokenBalance } = useReadErc20BalanceOf({ address, args: user ? [user] : undefined, - watch: true, }) - const { data: decimals } = useErc20Decimals({ address }) - const allowance = useErc20Allowance({ + const { data: decimals } = useReadErc20Decimals({ address }) + const allowance = useReadErc20Allowance({ address, args: user ? [user, poolAddress] : undefined, - watch: true, }).data const { toast } = useToast() @@ -90,60 +88,40 @@ export const BorrowedAssetsItem = ({ const { data: dataApprove, - isLoading: isLoadingApproveWrite, - write: approveWrite, - } = useErc20Approve({ - address, - args: [poolAddress, parseUnits(`${Number(repayAmount)}`, decimals ?? 18)], - }) + isPending: isLoadingApproveWrite, + writeContract: approveWrite, + } = useWriteErc20Approve() - const { isLoading: isLoadingApproveTx } = useWaitForTransaction({ - hash: dataApprove?.hash, + const { isLoading: isLoadingApproveTx } = useWaitForTransactionReceipt({ + hash: dataApprove, }) const { data: dataRepay, - isLoading: isLoadingRepayWrite, - write: repayWrite, - } = usePoolRepay({ - address: poolAddress, - args: [ - address, - parseUnits(`${Number(repayAmount)}`, decimals ?? 18), - rateMode, - user as `0x${string}`, - ], - }) + isPending: isLoadingRepayWrite, + writeContract: repayWrite, + } = useWritePoolRepay() const { isLoading: isLoadingRepayTx, isSuccess: isSuccessRepayTx } = - useWaitForTransaction({ - hash: dataRepay?.hash, + useWaitForTransactionReceipt({ + hash: dataRepay, }) const { data: dataRepayATokens, - isLoading: isLoadingRepayATokensWrite, - write: repayWithATokensWrite, - } = usePoolRepayWithATokens({ - address: poolAddress, - args: [ - address, - parseUnits(`${Number(repayAmount)}`, decimals ?? 18), - rateMode, - ], - }) + isPending: isLoadingRepayATokensWrite, + writeContract: repayWithATokensWrite, + } = useWritePoolRepayWithATokens() const { isLoading: isLoadingRepayATokensTx, isSuccess: isSuccessRepayATokensTx, - } = useWaitForTransaction({ - hash: dataRepayATokens?.hash, + } = useWaitForTransactionReceipt({ + hash: dataRepayATokens, }) - const { write: swapBorrowRateModeWrite } = usePoolSwapBorrowRateMode({ - address: poolAddress, - args: [address, rateMode], - }) + const { writeContract: swapBorrowRateModeWrite } = + useWritePoolSwapBorrowRateMode() const getRepayBalance = () => repayWithATokens ? aTokenBalance : tokenBalance @@ -153,12 +131,33 @@ export const BorrowedAssetsItem = ({ Number(formatUnits(allowance ?? BigInt(1), decimals ?? 18)) < Number(repayAmount) ) { - approveWrite() + approveWrite({ + address, + args: [ + poolAddress, + parseUnits(`${Number(repayAmount)}`, decimals ?? 18), + ], + }) } else { if (repayWithATokens) { - repayWithATokensWrite() + repayWithATokensWrite({ + address: poolAddress, + args: [ + address, + parseUnits(`${Number(repayAmount)}`, decimals ?? 18), + rateMode, + ], + }) } else { - repayWrite() + repayWrite({ + address: poolAddress, + args: [ + address, + parseUnits(`${Number(repayAmount)}`, decimals ?? 18), + rateMode, + user as `0x${string}`, + ], + }) } } } @@ -208,7 +207,12 @@ export const BorrowedAssetsItem = ({ switchNetwork?.(+e)} + onValueChange={(e) => switchChain?.({ chainId: Number(e) })} > diff --git a/integrations/aave/components/supplied-assets-item.tsx b/integrations/aave/components/supplied-assets-item.tsx index 227c776a..ebf5cb90 100644 --- a/integrations/aave/components/supplied-assets-item.tsx +++ b/integrations/aave/components/supplied-assets-item.tsx @@ -4,9 +4,12 @@ import { useEffect, useState } from "react" import Image from "next/image" import { TiArrowRight } from "react-icons/ti" import { parseUnits } from "viem" -import { useAccount, useWaitForTransaction } from "wagmi" +import { useAccount, useWaitForTransactionReceipt } from "wagmi" -import { useErc20Decimals, useErc20Symbol } from "@/lib/generated/blockchain" +import { + useReadErc20Decimals, + useReadErc20Symbol, +} from "@/lib/generated/blockchain" import { useToast } from "@/lib/hooks/use-toast" import { Button } from "@/components/ui/button" import { @@ -20,8 +23,8 @@ import { Switch } from "@/components/ui/switch" import { ContractWriteButton } from "@/components/blockchain/contract-write-button" import { - usePoolSetUserUseReserveAsCollateral, - usePoolWithdraw, + useWritePoolSetUserUseReserveAsCollateral, + useWritePoolWithdraw, } from "../generated/aave-wagmi" import { useAave } from "../hooks/use-aave" @@ -46,8 +49,8 @@ export const SuppliedAssetsItem = ({ const { address: user } = useAccount() const { poolAddress } = useAave() - const symbol = getSymbol(useErc20Symbol({ address }).data) - const { data: decimals } = useErc20Decimals({ address }) + const symbol = getSymbol(useReadErc20Symbol({ address }).data) + const { data: decimals } = useReadErc20Decimals({ address }) const [withdrawAmount, setWithdrawAmount] = useState("") const [open, setOpen] = useState(false) @@ -63,11 +66,17 @@ export const SuppliedAssetsItem = ({ } const switchCollateralUsage = () => { - writeSetUserUseReserveAsCollateral() + writeSetUserUseReserveAsCollateral({ + address: poolAddress, + args: [address, !collateralEnabled], + }) } const buttonAction = () => { - withdrawWrite() + withdrawWrite({ + address: poolAddress, + args: [address, getWithdrawAmount(), user as `0x${string}`], + }) } const getWithdrawAmount = () => { @@ -76,25 +85,19 @@ export const SuppliedAssetsItem = ({ const { error: setUserUseReserveAsCollateralError, - write: writeSetUserUseReserveAsCollateral, - } = usePoolSetUserUseReserveAsCollateral({ - address: poolAddress, - args: [address, !collateralEnabled], - }) + writeContract: writeSetUserUseReserveAsCollateral, + } = useWritePoolSetUserUseReserveAsCollateral() const { error: withdrawError, data: data, - isLoading: isLoadingWrite, - write: withdrawWrite, - } = usePoolWithdraw({ - address: poolAddress, - args: [address, getWithdrawAmount(), user as `0x${string}`], - }) + isPending: isLoadingWrite, + writeContract: withdrawWrite, + } = useWritePoolWithdraw() const { isLoading: isLoadingTx, isSuccess: isSuccessTx } = - useWaitForTransaction({ - hash: data?.hash, + useWaitForTransactionReceipt({ + hash: data, }) const setMaxAmount = () => setWithdrawAmount(balance.toString()) diff --git a/integrations/aave/generated/aave-wagmi.ts b/integrations/aave/generated/aave-wagmi.ts index ca8be506..53df471e 100644 --- a/integrations/aave/generated/aave-wagmi.ts +++ b/integrations/aave/generated/aave-wagmi.ts @@ -1,3631 +1,2333 @@ -// Generated by @wagmi/cli@1.1.0 on 8/24/2023 at 7:35:30 PM import { - useContractEvent, - UseContractEventConfig, - useContractRead, - UseContractReadConfig, - useContractWrite, - UseContractWriteConfig, - usePrepareContractWrite, - UsePrepareContractWriteConfig, -} from "wagmi" -import { - PrepareWriteContractResult, - ReadContractResult, - WriteContractMode, -} from "wagmi/actions" - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// ui-pool-data-provider -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const uiPoolDataProviderABI = [ - { - stateMutability: "nonpayable", - type: "constructor", - inputs: [ - { - name: "_networkBaseTokenPriceInUsdProxyAggregator", - internalType: "contract IEACAggregatorProxy", - type: "address", - }, - { - name: "_marketReferenceCurrencyPriceInUsdProxyAggregator", - internalType: "contract IEACAggregatorProxy", - type: "address", - }, - ], - }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "ETH_CURRENCY_UNIT", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], - }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "MKR_ADDRESS", - outputs: [{ name: "", internalType: "address", type: "address" }], - }, - { - stateMutability: "pure", - type: "function", - inputs: [{ name: "_bytes32", internalType: "bytes32", type: "bytes32" }], - name: "bytes32ToString", - outputs: [{ name: "", internalType: "string", type: "string" }], - }, - { - stateMutability: "view", - type: "function", - inputs: [ - { - name: "provider", - internalType: "contract IPoolAddressesProvider", - type: "address", - }, - ], - name: "getReservesData", - outputs: [ - { - name: "", - internalType: "struct IUiPoolDataProviderV3.AggregatedReserveData[]", - type: "tuple[]", - components: [ - { name: "underlyingAsset", internalType: "address", type: "address" }, - { name: "name", internalType: "string", type: "string" }, - { name: "symbol", internalType: "string", type: "string" }, - { name: "decimals", internalType: "uint256", type: "uint256" }, - { - name: "baseLTVasCollateral", - internalType: "uint256", - type: "uint256", - }, - { - name: "reserveLiquidationThreshold", - internalType: "uint256", - type: "uint256", - }, - { - name: "reserveLiquidationBonus", - internalType: "uint256", - type: "uint256", - }, - { name: "reserveFactor", internalType: "uint256", type: "uint256" }, - { - name: "usageAsCollateralEnabled", - internalType: "bool", - type: "bool", - }, - { name: "borrowingEnabled", internalType: "bool", type: "bool" }, - { - name: "stableBorrowRateEnabled", - internalType: "bool", - type: "bool", - }, - { name: "isActive", internalType: "bool", type: "bool" }, - { name: "isFrozen", internalType: "bool", type: "bool" }, - { name: "liquidityIndex", internalType: "uint128", type: "uint128" }, - { - name: "variableBorrowIndex", - internalType: "uint128", - type: "uint128", - }, - { name: "liquidityRate", internalType: "uint128", type: "uint128" }, - { - name: "variableBorrowRate", - internalType: "uint128", - type: "uint128", - }, - { - name: "stableBorrowRate", - internalType: "uint128", - type: "uint128", - }, - { - name: "lastUpdateTimestamp", - internalType: "uint40", - type: "uint40", - }, - { name: "aTokenAddress", internalType: "address", type: "address" }, - { - name: "stableDebtTokenAddress", - internalType: "address", - type: "address", - }, - { - name: "variableDebtTokenAddress", - internalType: "address", - type: "address", - }, - { - name: "interestRateStrategyAddress", - internalType: "address", - type: "address", - }, - { - name: "availableLiquidity", - internalType: "uint256", - type: "uint256", - }, - { - name: "totalPrincipalStableDebt", - internalType: "uint256", - type: "uint256", - }, - { - name: "averageStableRate", - internalType: "uint256", - type: "uint256", - }, - { - name: "stableDebtLastUpdateTimestamp", - internalType: "uint256", - type: "uint256", - }, - { - name: "totalScaledVariableDebt", - internalType: "uint256", - type: "uint256", - }, - { - name: "priceInMarketReferenceCurrency", - internalType: "uint256", - type: "uint256", - }, - { name: "priceOracle", internalType: "address", type: "address" }, - { - name: "variableRateSlope1", - internalType: "uint256", - type: "uint256", - }, - { - name: "variableRateSlope2", - internalType: "uint256", - type: "uint256", - }, - { - name: "stableRateSlope1", - internalType: "uint256", - type: "uint256", - }, - { - name: "stableRateSlope2", - internalType: "uint256", - type: "uint256", - }, - { - name: "baseStableBorrowRate", - internalType: "uint256", - type: "uint256", - }, - { - name: "baseVariableBorrowRate", - internalType: "uint256", - type: "uint256", - }, - { - name: "optimalUsageRatio", - internalType: "uint256", - type: "uint256", - }, - { name: "isPaused", internalType: "bool", type: "bool" }, - { name: "isSiloedBorrowing", internalType: "bool", type: "bool" }, - { - name: "accruedToTreasury", - internalType: "uint128", - type: "uint128", - }, - { name: "unbacked", internalType: "uint128", type: "uint128" }, - { - name: "isolationModeTotalDebt", - internalType: "uint128", - type: "uint128", - }, - { name: "flashLoanEnabled", internalType: "bool", type: "bool" }, - { name: "debtCeiling", internalType: "uint256", type: "uint256" }, - { - name: "debtCeilingDecimals", - internalType: "uint256", - type: "uint256", - }, - { name: "eModeCategoryId", internalType: "uint8", type: "uint8" }, - { name: "borrowCap", internalType: "uint256", type: "uint256" }, - { name: "supplyCap", internalType: "uint256", type: "uint256" }, - { name: "eModeLtv", internalType: "uint16", type: "uint16" }, - { - name: "eModeLiquidationThreshold", - internalType: "uint16", - type: "uint16", - }, - { - name: "eModeLiquidationBonus", - internalType: "uint16", - type: "uint16", - }, - { - name: "eModePriceSource", - internalType: "address", - type: "address", - }, - { name: "eModeLabel", internalType: "string", type: "string" }, - { name: "borrowableInIsolation", internalType: "bool", type: "bool" }, - ], - }, - { - name: "", - internalType: "struct IUiPoolDataProviderV3.BaseCurrencyInfo", - type: "tuple", - components: [ - { - name: "marketReferenceCurrencyUnit", - internalType: "uint256", - type: "uint256", - }, - { - name: "marketReferenceCurrencyPriceInUsd", - internalType: "int256", - type: "int256", - }, - { - name: "networkBaseTokenPriceInUsd", - internalType: "int256", - type: "int256", - }, - { - name: "networkBaseTokenPriceDecimals", - internalType: "uint8", - type: "uint8", - }, - ], - }, - ], - }, - { - stateMutability: "view", - type: "function", - inputs: [ - { - name: "provider", - internalType: "contract IPoolAddressesProvider", - type: "address", - }, - ], - name: "getReservesList", - outputs: [{ name: "", internalType: "address[]", type: "address[]" }], - }, - { - stateMutability: "view", - type: "function", - inputs: [ - { - name: "provider", - internalType: "contract IPoolAddressesProvider", - type: "address", - }, - { name: "user", internalType: "address", type: "address" }, - ], - name: "getUserReservesData", - outputs: [ - { - name: "", - internalType: "struct IUiPoolDataProviderV3.UserReserveData[]", - type: "tuple[]", - components: [ - { name: "underlyingAsset", internalType: "address", type: "address" }, - { - name: "scaledATokenBalance", - internalType: "uint256", - type: "uint256", - }, - { - name: "usageAsCollateralEnabledOnUser", - internalType: "bool", - type: "bool", - }, - { - name: "stableBorrowRate", - internalType: "uint256", - type: "uint256", - }, - { - name: "scaledVariableDebt", - internalType: "uint256", - type: "uint256", - }, - { - name: "principalStableDebt", - internalType: "uint256", - type: "uint256", - }, - { - name: "stableBorrowLastUpdateTimestamp", - internalType: "uint256", - type: "uint256", - }, - ], - }, - { name: "", internalType: "uint8", type: "uint8" }, - ], - }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "marketReferenceCurrencyPriceInUsdProxyAggregator", - outputs: [ - { - name: "", - internalType: "contract IEACAggregatorProxy", - type: "address", - }, - ], - }, - { - stateMutability: "view", - type: "function", - inputs: [], - name: "networkBaseTokenPriceInUsdProxyAggregator", - outputs: [ - { - name: "", - internalType: "contract IEACAggregatorProxy", - type: "address", - }, - ], - }, -] as const + createUseReadContract, + createUseWriteContract, + createUseSimulateContract, + createUseWatchContractEvent, +} from 'wagmi/codegen' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // pool ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -export const poolABI = [ +export const poolAbi = [ { - stateMutability: "nonpayable", - type: "constructor", + stateMutability: 'nonpayable', + type: 'constructor', inputs: [ { - name: "provider", - internalType: "contract IPoolAddressesProvider", - type: "address", + name: 'provider', + internalType: 'contract IPoolAddressesProvider', + type: 'address', }, ], }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "backer", - internalType: "address", - type: "address", + name: 'backer', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, - { name: "fee", internalType: "uint256", type: "uint256", indexed: false }, + { name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false }, ], - name: "BackUnbacked", + name: 'BackUnbacked', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "user", - internalType: "address", - type: "address", + name: 'user', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "onBehalfOf", - internalType: "address", - type: "address", + name: 'onBehalfOf', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "interestRateMode", - internalType: "enum DataTypes.InterestRateMode", - type: "uint8", + name: 'interestRateMode', + internalType: 'enum DataTypes.InterestRateMode', + type: 'uint8', indexed: false, }, { - name: "borrowRate", - internalType: "uint256", - type: "uint256", + name: 'borrowRate', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "referralCode", - internalType: "uint16", - type: "uint16", + name: 'referralCode', + internalType: 'uint16', + type: 'uint16', indexed: true, }, ], - name: "Borrow", + name: 'Borrow', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "target", - internalType: "address", - type: "address", + name: 'target', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "initiator", - internalType: "address", - type: "address", + name: 'initiator', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "asset", - internalType: "address", - type: "address", + name: 'asset', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "interestRateMode", - internalType: "enum DataTypes.InterestRateMode", - type: "uint8", + name: 'interestRateMode', + internalType: 'enum DataTypes.InterestRateMode', + type: 'uint8', indexed: false, }, { - name: "premium", - internalType: "uint256", - type: "uint256", + name: 'premium', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "referralCode", - internalType: "uint16", - type: "uint16", + name: 'referralCode', + internalType: 'uint16', + type: 'uint16', indexed: true, }, ], - name: "FlashLoan", + name: 'FlashLoan', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "asset", - internalType: "address", - type: "address", + name: 'asset', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "totalDebt", - internalType: "uint256", - type: "uint256", + name: 'totalDebt', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "IsolationModeTotalDebtUpdated", + name: 'IsolationModeTotalDebtUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "collateralAsset", - internalType: "address", - type: "address", + name: 'collateralAsset', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "debtAsset", - internalType: "address", - type: "address", + name: 'debtAsset', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "debtToCover", - internalType: "uint256", - type: "uint256", + name: 'debtToCover', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "liquidatedCollateralAmount", - internalType: "uint256", - type: "uint256", + name: 'liquidatedCollateralAmount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "liquidator", - internalType: "address", - type: "address", + name: 'liquidator', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "receiveAToken", - internalType: "bool", - type: "bool", + name: 'receiveAToken', + internalType: 'bool', + type: 'bool', indexed: false, }, ], - name: "LiquidationCall", + name: 'LiquidationCall', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "user", - internalType: "address", - type: "address", + name: 'user', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "onBehalfOf", - internalType: "address", - type: "address", + name: 'onBehalfOf', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "referralCode", - internalType: "uint16", - type: "uint16", + name: 'referralCode', + internalType: 'uint16', + type: 'uint16', indexed: true, }, ], - name: "MintUnbacked", + name: 'MintUnbacked', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amountMinted", - internalType: "uint256", - type: "uint256", + name: 'amountMinted', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "MintedToTreasury", + name: 'MintedToTreasury', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, ], - name: "RebalanceStableBorrowRate", + name: 'RebalanceStableBorrowRate', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "repayer", - internalType: "address", - type: "address", + name: 'repayer', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "useATokens", - internalType: "bool", - type: "bool", + name: 'useATokens', + internalType: 'bool', + type: 'bool', indexed: false, }, ], - name: "Repay", + name: 'Repay', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "liquidityRate", - internalType: "uint256", - type: "uint256", + name: 'liquidityRate', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "stableBorrowRate", - internalType: "uint256", - type: "uint256", + name: 'stableBorrowRate', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "variableBorrowRate", - internalType: "uint256", - type: "uint256", + name: 'variableBorrowRate', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "liquidityIndex", - internalType: "uint256", - type: "uint256", + name: 'liquidityIndex', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "variableBorrowIndex", - internalType: "uint256", - type: "uint256", + name: 'variableBorrowIndex', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "ReserveDataUpdated", + name: 'ReserveDataUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, ], - name: "ReserveUsedAsCollateralDisabled", + name: 'ReserveUsedAsCollateralDisabled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, ], - name: "ReserveUsedAsCollateralEnabled", + name: 'ReserveUsedAsCollateralEnabled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "user", - internalType: "address", - type: "address", + name: 'user', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "onBehalfOf", - internalType: "address", - type: "address", + name: 'onBehalfOf', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "referralCode", - internalType: "uint16", - type: "uint16", + name: 'referralCode', + internalType: 'uint16', + type: 'uint16', indexed: true, }, ], - name: "Supply", + name: 'Supply', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "interestRateMode", - internalType: "enum DataTypes.InterestRateMode", - type: "uint8", + name: 'interestRateMode', + internalType: 'enum DataTypes.InterestRateMode', + type: 'uint8', indexed: false, }, ], - name: "SwapBorrowRateMode", + name: 'SwapBorrowRateMode', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ - { name: "user", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "categoryId", - internalType: "uint8", - type: "uint8", + name: 'categoryId', + internalType: 'uint8', + type: 'uint8', indexed: false, }, ], - name: "UserEModeSet", + name: 'UserEModeSet', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "reserve", - internalType: "address", - type: "address", + name: 'reserve', + internalType: 'address', + type: 'address', indexed: true, }, - { name: "user", internalType: "address", type: "address", indexed: true }, - { name: "to", internalType: "address", type: "address", indexed: true }, + { name: 'user', internalType: 'address', type: 'address', indexed: true }, + { name: 'to', internalType: 'address', type: 'address', indexed: true }, { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "Withdraw", + name: 'Withdraw', }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "ADDRESSES_PROVIDER", + name: 'ADDRESSES_PROVIDER', outputs: [ { - name: "", - internalType: "contract IPoolAddressesProvider", - type: "address", + name: '', + internalType: 'contract IPoolAddressesProvider', + type: 'address', }, ], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "BRIDGE_PROTOCOL_FEE", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'BRIDGE_PROTOCOL_FEE', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "FLASHLOAN_PREMIUM_TOTAL", - outputs: [{ name: "", internalType: "uint128", type: "uint128" }], + name: 'FLASHLOAN_PREMIUM_TOTAL', + outputs: [{ name: '', internalType: 'uint128', type: 'uint128' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "FLASHLOAN_PREMIUM_TO_PROTOCOL", - outputs: [{ name: "", internalType: "uint128", type: "uint128" }], + name: 'FLASHLOAN_PREMIUM_TO_PROTOCOL', + outputs: [{ name: '', internalType: 'uint128', type: 'uint128' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "MAX_NUMBER_RESERVES", - outputs: [{ name: "", internalType: "uint16", type: "uint16" }], + name: 'MAX_NUMBER_RESERVES', + outputs: [{ name: '', internalType: 'uint16', type: 'uint16' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "MAX_STABLE_RATE_BORROW_SIZE_PERCENT", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'MAX_STABLE_RATE_BORROW_SIZE_PERCENT', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "POOL_REVISION", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'POOL_REVISION', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "fee", internalType: "uint256", type: "uint256" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'fee', internalType: 'uint256', type: 'uint256' }, ], - name: "backUnbacked", + name: 'backUnbacked', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "interestRateMode", internalType: "uint256", type: "uint256" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'interestRateMode', internalType: 'uint256', type: 'uint256' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, ], - name: "borrow", + name: 'borrow', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "id", internalType: "uint8", type: "uint8" }, + { name: 'id', internalType: 'uint8', type: 'uint8' }, { - name: "category", - internalType: "struct DataTypes.EModeCategory", - type: "tuple", + name: 'category', + internalType: 'struct DataTypes.EModeCategory', + type: 'tuple', components: [ - { name: "ltv", internalType: "uint16", type: "uint16" }, + { name: 'ltv', internalType: 'uint16', type: 'uint16' }, { - name: "liquidationThreshold", - internalType: "uint16", - type: "uint16", + name: 'liquidationThreshold', + internalType: 'uint16', + type: 'uint16', }, - { name: "liquidationBonus", internalType: "uint16", type: "uint16" }, - { name: "priceSource", internalType: "address", type: "address" }, - { name: "label", internalType: "string", type: "string" }, + { name: 'liquidationBonus', internalType: 'uint16', type: 'uint16' }, + { name: 'priceSource', internalType: 'address', type: 'address' }, + { name: 'label', internalType: 'string', type: 'string' }, ], }, ], - name: "configureEModeCategory", + name: 'configureEModeCategory', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, ], - name: "deposit", + name: 'deposit', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "dropReserve", + stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'dropReserve', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "from", internalType: "address", type: "address" }, - { name: "to", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "balanceFromBefore", internalType: "uint256", type: "uint256" }, - { name: "balanceToBefore", internalType: "uint256", type: "uint256" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'from', internalType: 'address', type: 'address' }, + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'balanceFromBefore', internalType: 'uint256', type: 'uint256' }, + { name: 'balanceToBefore', internalType: 'uint256', type: 'uint256' }, ], - name: "finalizeTransfer", + name: 'finalizeTransfer', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "receiverAddress", internalType: "address", type: "address" }, - { name: "assets", internalType: "address[]", type: "address[]" }, - { name: "amounts", internalType: "uint256[]", type: "uint256[]" }, + { name: 'receiverAddress', internalType: 'address', type: 'address' }, + { name: 'assets', internalType: 'address[]', type: 'address[]' }, + { name: 'amounts', internalType: 'uint256[]', type: 'uint256[]' }, { - name: "interestRateModes", - internalType: "uint256[]", - type: "uint256[]", + name: 'interestRateModes', + internalType: 'uint256[]', + type: 'uint256[]', }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "params", internalType: "bytes", type: "bytes" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'params', internalType: 'bytes', type: 'bytes' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, ], - name: "flashLoan", + name: 'flashLoan', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "receiverAddress", internalType: "address", type: "address" }, - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "params", internalType: "bytes", type: "bytes" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, + { name: 'receiverAddress', internalType: 'address', type: 'address' }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'params', internalType: 'bytes', type: 'bytes' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, ], - name: "flashLoanSimple", + name: 'flashLoanSimple', outputs: [], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "getConfiguration", + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'getConfiguration', outputs: [ { - name: "", - internalType: "struct DataTypes.ReserveConfigurationMap", - type: "tuple", + name: '', + internalType: 'struct DataTypes.ReserveConfigurationMap', + type: 'tuple', components: [ - { name: "data", internalType: "uint256", type: "uint256" }, + { name: 'data', internalType: 'uint256', type: 'uint256' }, ], }, ], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "id", internalType: "uint8", type: "uint8" }], - name: "getEModeCategoryData", + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'id', internalType: 'uint8', type: 'uint8' }], + name: 'getEModeCategoryData', outputs: [ { - name: "", - internalType: "struct DataTypes.EModeCategory", - type: "tuple", + name: '', + internalType: 'struct DataTypes.EModeCategory', + type: 'tuple', components: [ - { name: "ltv", internalType: "uint16", type: "uint16" }, + { name: 'ltv', internalType: 'uint16', type: 'uint16' }, { - name: "liquidationThreshold", - internalType: "uint16", - type: "uint16", + name: 'liquidationThreshold', + internalType: 'uint16', + type: 'uint16', }, - { name: "liquidationBonus", internalType: "uint16", type: "uint16" }, - { name: "priceSource", internalType: "address", type: "address" }, - { name: "label", internalType: "string", type: "string" }, + { name: 'liquidationBonus', internalType: 'uint16', type: 'uint16' }, + { name: 'priceSource', internalType: 'address', type: 'address' }, + { name: 'label', internalType: 'string', type: 'string' }, ], }, ], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "id", internalType: "uint16", type: "uint16" }], - name: "getReserveAddressById", - outputs: [{ name: "", internalType: "address", type: "address" }], + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'id', internalType: 'uint16', type: 'uint16' }], + name: 'getReserveAddressById', + outputs: [{ name: '', internalType: 'address', type: 'address' }], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "getReserveData", + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'getReserveData', outputs: [ { - name: "", - internalType: "struct DataTypes.ReserveData", - type: "tuple", + name: '', + internalType: 'struct DataTypes.ReserveData', + type: 'tuple', components: [ { - name: "configuration", - internalType: "struct DataTypes.ReserveConfigurationMap", - type: "tuple", + name: 'configuration', + internalType: 'struct DataTypes.ReserveConfigurationMap', + type: 'tuple', components: [ - { name: "data", internalType: "uint256", type: "uint256" }, + { name: 'data', internalType: 'uint256', type: 'uint256' }, ], }, - { name: "liquidityIndex", internalType: "uint128", type: "uint128" }, + { name: 'liquidityIndex', internalType: 'uint128', type: 'uint128' }, { - name: "currentLiquidityRate", - internalType: "uint128", - type: "uint128", + name: 'currentLiquidityRate', + internalType: 'uint128', + type: 'uint128', }, { - name: "variableBorrowIndex", - internalType: "uint128", - type: "uint128", + name: 'variableBorrowIndex', + internalType: 'uint128', + type: 'uint128', }, { - name: "currentVariableBorrowRate", - internalType: "uint128", - type: "uint128", + name: 'currentVariableBorrowRate', + internalType: 'uint128', + type: 'uint128', }, { - name: "currentStableBorrowRate", - internalType: "uint128", - type: "uint128", + name: 'currentStableBorrowRate', + internalType: 'uint128', + type: 'uint128', }, { - name: "lastUpdateTimestamp", - internalType: "uint40", - type: "uint40", + name: 'lastUpdateTimestamp', + internalType: 'uint40', + type: 'uint40', }, - { name: "id", internalType: "uint16", type: "uint16" }, - { name: "aTokenAddress", internalType: "address", type: "address" }, + { name: 'id', internalType: 'uint16', type: 'uint16' }, + { name: 'aTokenAddress', internalType: 'address', type: 'address' }, { - name: "stableDebtTokenAddress", - internalType: "address", - type: "address", + name: 'stableDebtTokenAddress', + internalType: 'address', + type: 'address', }, { - name: "variableDebtTokenAddress", - internalType: "address", - type: "address", + name: 'variableDebtTokenAddress', + internalType: 'address', + type: 'address', }, { - name: "interestRateStrategyAddress", - internalType: "address", - type: "address", + name: 'interestRateStrategyAddress', + internalType: 'address', + type: 'address', }, { - name: "accruedToTreasury", - internalType: "uint128", - type: "uint128", + name: 'accruedToTreasury', + internalType: 'uint128', + type: 'uint128', }, - { name: "unbacked", internalType: "uint128", type: "uint128" }, + { name: 'unbacked', internalType: 'uint128', type: 'uint128' }, { - name: "isolationModeTotalDebt", - internalType: "uint128", - type: "uint128", + name: 'isolationModeTotalDebt', + internalType: 'uint128', + type: 'uint128', }, ], }, ], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "getReserveNormalizedIncome", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'getReserveNormalizedIncome', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "getReserveNormalizedVariableDebt", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'getReserveNormalizedVariableDebt', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "getReservesList", - outputs: [{ name: "", internalType: "address[]", type: "address[]" }], + name: 'getReservesList', + outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "getUserAccountData", + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'getUserAccountData', outputs: [ - { name: "totalCollateralBase", internalType: "uint256", type: "uint256" }, - { name: "totalDebtBase", internalType: "uint256", type: "uint256" }, + { name: 'totalCollateralBase', internalType: 'uint256', type: 'uint256' }, + { name: 'totalDebtBase', internalType: 'uint256', type: 'uint256' }, { - name: "availableBorrowsBase", - internalType: "uint256", - type: "uint256", + name: 'availableBorrowsBase', + internalType: 'uint256', + type: 'uint256', }, { - name: "currentLiquidationThreshold", - internalType: "uint256", - type: "uint256", + name: 'currentLiquidationThreshold', + internalType: 'uint256', + type: 'uint256', }, - { name: "ltv", internalType: "uint256", type: "uint256" }, - { name: "healthFactor", internalType: "uint256", type: "uint256" }, + { name: 'ltv', internalType: 'uint256', type: 'uint256' }, + { name: 'healthFactor', internalType: 'uint256', type: 'uint256' }, ], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "getUserConfiguration", + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'getUserConfiguration', outputs: [ { - name: "", - internalType: "struct DataTypes.UserConfigurationMap", - type: "tuple", + name: '', + internalType: 'struct DataTypes.UserConfigurationMap', + type: 'tuple', components: [ - { name: "data", internalType: "uint256", type: "uint256" }, + { name: 'data', internalType: 'uint256', type: 'uint256' }, ], }, ], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "getUserEMode", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'getUserEMode', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "aTokenAddress", internalType: "address", type: "address" }, - { name: "stableDebtAddress", internalType: "address", type: "address" }, - { name: "variableDebtAddress", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'aTokenAddress', internalType: 'address', type: 'address' }, + { name: 'stableDebtAddress', internalType: 'address', type: 'address' }, + { name: 'variableDebtAddress', internalType: 'address', type: 'address' }, { - name: "interestRateStrategyAddress", - internalType: "address", - type: "address", + name: 'interestRateStrategyAddress', + internalType: 'address', + type: 'address', }, ], - name: "initReserve", + name: 'initReserve', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ { - name: "provider", - internalType: "contract IPoolAddressesProvider", - type: "address", + name: 'provider', + internalType: 'contract IPoolAddressesProvider', + type: 'address', }, ], - name: "initialize", + name: 'initialize', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "collateralAsset", internalType: "address", type: "address" }, - { name: "debtAsset", internalType: "address", type: "address" }, - { name: "user", internalType: "address", type: "address" }, - { name: "debtToCover", internalType: "uint256", type: "uint256" }, - { name: "receiveAToken", internalType: "bool", type: "bool" }, + { name: 'collateralAsset', internalType: 'address', type: 'address' }, + { name: 'debtAsset', internalType: 'address', type: 'address' }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'debtToCover', internalType: 'uint256', type: 'uint256' }, + { name: 'receiveAToken', internalType: 'bool', type: 'bool' }, ], - name: "liquidationCall", + name: 'liquidationCall', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "assets", internalType: "address[]", type: "address[]" }], - name: "mintToTreasury", + stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: 'assets', internalType: 'address[]', type: 'address[]' }], + name: 'mintToTreasury', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, ], - name: "mintUnbacked", + name: 'mintUnbacked', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "user", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'user', internalType: 'address', type: 'address' }, ], - name: "rebalanceStableBorrowRate", + name: 'rebalanceStableBorrowRate', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "interestRateMode", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'interestRateMode', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, ], - name: "repay", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'repay', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "interestRateMode", internalType: "uint256", type: "uint256" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'interestRateMode', internalType: 'uint256', type: 'uint256' }, ], - name: "repayWithATokens", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'repayWithATokens', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "interestRateMode", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "deadline", internalType: "uint256", type: "uint256" }, - { name: "permitV", internalType: "uint8", type: "uint8" }, - { name: "permitR", internalType: "bytes32", type: "bytes32" }, - { name: "permitS", internalType: "bytes32", type: "bytes32" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'interestRateMode', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'deadline', internalType: 'uint256', type: 'uint256' }, + { name: 'permitV', internalType: 'uint8', type: 'uint8' }, + { name: 'permitR', internalType: 'bytes32', type: 'bytes32' }, + { name: 'permitS', internalType: 'bytes32', type: 'bytes32' }, ], - name: "repayWithPermit", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'repayWithPermit', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "token", internalType: "address", type: "address" }, - { name: "to", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, + { name: 'token', internalType: 'address', type: 'address' }, + { name: 'to', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], - name: "rescueTokens", + name: 'rescueTokens', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "asset", internalType: "address", type: "address" }], - name: "resetIsolationModeTotalDebt", + stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: 'asset', internalType: 'address', type: 'address' }], + name: 'resetIsolationModeTotalDebt', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, { - name: "configuration", - internalType: "struct DataTypes.ReserveConfigurationMap", - type: "tuple", + name: 'configuration', + internalType: 'struct DataTypes.ReserveConfigurationMap', + type: 'tuple', components: [ - { name: "data", internalType: "uint256", type: "uint256" }, + { name: 'data', internalType: 'uint256', type: 'uint256' }, ], }, ], - name: "setConfiguration", + name: 'setConfiguration', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "rateStrategyAddress", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'rateStrategyAddress', internalType: 'address', type: 'address' }, ], - name: "setReserveInterestRateStrategyAddress", + name: 'setReserveInterestRateStrategyAddress', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "categoryId", internalType: "uint8", type: "uint8" }], - name: "setUserEMode", + stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: 'categoryId', internalType: 'uint8', type: 'uint8' }], + name: 'setUserEMode', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "useAsCollateral", internalType: "bool", type: "bool" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'useAsCollateral', internalType: 'bool', type: 'bool' }, ], - name: "setUserUseReserveAsCollateral", + name: 'setUserUseReserveAsCollateral', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, ], - name: "supply", + name: 'supply', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "onBehalfOf", internalType: "address", type: "address" }, - { name: "referralCode", internalType: "uint16", type: "uint16" }, - { name: "deadline", internalType: "uint256", type: "uint256" }, - { name: "permitV", internalType: "uint8", type: "uint8" }, - { name: "permitR", internalType: "bytes32", type: "bytes32" }, - { name: "permitS", internalType: "bytes32", type: "bytes32" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'onBehalfOf', internalType: 'address', type: 'address' }, + { name: 'referralCode', internalType: 'uint16', type: 'uint16' }, + { name: 'deadline', internalType: 'uint256', type: 'uint256' }, + { name: 'permitV', internalType: 'uint8', type: 'uint8' }, + { name: 'permitR', internalType: 'bytes32', type: 'bytes32' }, + { name: 'permitS', internalType: 'bytes32', type: 'bytes32' }, ], - name: "supplyWithPermit", + name: 'supplyWithPermit', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "interestRateMode", internalType: "uint256", type: "uint256" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'interestRateMode', internalType: 'uint256', type: 'uint256' }, ], - name: "swapBorrowRateMode", + name: 'swapBorrowRateMode', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", - inputs: [{ name: "protocolFee", internalType: "uint256", type: "uint256" }], - name: "updateBridgeProtocolFee", + stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: 'protocolFee', internalType: 'uint256', type: 'uint256' }], + name: 'updateBridgeProtocolFee', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ { - name: "flashLoanPremiumTotal", - internalType: "uint128", - type: "uint128", + name: 'flashLoanPremiumTotal', + internalType: 'uint128', + type: 'uint128', }, { - name: "flashLoanPremiumToProtocol", - internalType: "uint128", - type: "uint128", + name: 'flashLoanPremiumToProtocol', + internalType: 'uint128', + type: 'uint128', }, ], - name: "updateFlashloanPremiums", + name: 'updateFlashloanPremiums', outputs: [], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "asset", internalType: "address", type: "address" }, - { name: "amount", internalType: "uint256", type: "uint256" }, - { name: "to", internalType: "address", type: "address" }, + { name: 'asset', internalType: 'address', type: 'address' }, + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'to', internalType: 'address', type: 'address' }, ], - name: "withdraw", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], + name: 'withdraw', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// React +// ui-pool-data-provider ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__. - */ -export function useUiPoolDataProviderRead< - TFunctionName extends string, - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"ETH_CURRENCY_UNIT"`. - */ -export function useUiPoolDataProviderEthCurrencyUnit< - TFunctionName extends "ETH_CURRENCY_UNIT", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "ETH_CURRENCY_UNIT", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"MKR_ADDRESS"`. - */ -export function useUiPoolDataProviderMkrAddress< - TFunctionName extends "MKR_ADDRESS", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "MKR_ADDRESS", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"bytes32ToString"`. - */ -export function useUiPoolDataProviderBytes32ToString< - TFunctionName extends "bytes32ToString", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "bytes32ToString", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"getReservesData"`. - */ -export function useUiPoolDataProviderGetReservesData< - TFunctionName extends "getReservesData", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "getReservesData", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"getReservesList"`. - */ -export function useUiPoolDataProviderGetReservesList< - TFunctionName extends "getReservesList", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "getReservesList", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"getUserReservesData"`. - */ -export function useUiPoolDataProviderGetUserReservesData< - TFunctionName extends "getUserReservesData", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "getUserReservesData", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"marketReferenceCurrencyPriceInUsdProxyAggregator"`. - */ -export function useUiPoolDataProviderMarketReferenceCurrencyPriceInUsdProxyAggregator< - TFunctionName extends "marketReferenceCurrencyPriceInUsdProxyAggregator", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "marketReferenceCurrencyPriceInUsdProxyAggregator", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link uiPoolDataProviderABI}__ and `functionName` set to `"networkBaseTokenPriceInUsdProxyAggregator"`. - */ -export function useUiPoolDataProviderNetworkBaseTokenPriceInUsdProxyAggregator< - TFunctionName extends "networkBaseTokenPriceInUsdProxyAggregator", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: uiPoolDataProviderABI, - functionName: "networkBaseTokenPriceInUsdProxyAggregator", - ...config, - } as UseContractReadConfig< - typeof uiPoolDataProviderABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__. - */ -export function usePoolRead< - TFunctionName extends string, - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" - > = {} as any -) { - return useContractRead({ abi: poolABI, ...config } as UseContractReadConfig< - typeof poolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"ADDRESSES_PROVIDER"`. - */ -export function usePoolAddressesProvider< - TFunctionName extends "ADDRESSES_PROVIDER", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "ADDRESSES_PROVIDER", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"BRIDGE_PROTOCOL_FEE"`. - */ -export function usePoolBridgeProtocolFee< - TFunctionName extends "BRIDGE_PROTOCOL_FEE", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "BRIDGE_PROTOCOL_FEE", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"FLASHLOAN_PREMIUM_TOTAL"`. - */ -export function usePoolFlashloanPremiumTotal< - TFunctionName extends "FLASHLOAN_PREMIUM_TOTAL", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "FLASHLOAN_PREMIUM_TOTAL", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"FLASHLOAN_PREMIUM_TO_PROTOCOL"`. - */ -export function usePoolFlashloanPremiumToProtocol< - TFunctionName extends "FLASHLOAN_PREMIUM_TO_PROTOCOL", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "FLASHLOAN_PREMIUM_TO_PROTOCOL", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"MAX_NUMBER_RESERVES"`. - */ -export function usePoolMaxNumberReserves< - TFunctionName extends "MAX_NUMBER_RESERVES", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "MAX_NUMBER_RESERVES", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"MAX_STABLE_RATE_BORROW_SIZE_PERCENT"`. - */ -export function usePoolMaxStableRateBorrowSizePercent< - TFunctionName extends "MAX_STABLE_RATE_BORROW_SIZE_PERCENT", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "MAX_STABLE_RATE_BORROW_SIZE_PERCENT", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"POOL_REVISION"`. - */ -export function usePoolPoolRevision< - TFunctionName extends "POOL_REVISION", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "POOL_REVISION", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getConfiguration"`. - */ -export function usePoolGetConfiguration< - TFunctionName extends "getConfiguration", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getConfiguration", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getEModeCategoryData"`. - */ -export function usePoolGetEModeCategoryData< - TFunctionName extends "getEModeCategoryData", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getEModeCategoryData", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getReserveAddressById"`. - */ -export function usePoolGetReserveAddressById< - TFunctionName extends "getReserveAddressById", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getReserveAddressById", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getReserveData"`. - */ -export function usePoolGetReserveData< - TFunctionName extends "getReserveData", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getReserveData", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getReserveNormalizedIncome"`. - */ -export function usePoolGetReserveNormalizedIncome< - TFunctionName extends "getReserveNormalizedIncome", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getReserveNormalizedIncome", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getReserveNormalizedVariableDebt"`. - */ -export function usePoolGetReserveNormalizedVariableDebt< - TFunctionName extends "getReserveNormalizedVariableDebt", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getReserveNormalizedVariableDebt", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getReservesList"`. - */ -export function usePoolGetReservesList< - TFunctionName extends "getReservesList", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getReservesList", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getUserAccountData"`. - */ -export function usePoolGetUserAccountData< - TFunctionName extends "getUserAccountData", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getUserAccountData", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getUserConfiguration"`. - */ -export function usePoolGetUserConfiguration< - TFunctionName extends "getUserConfiguration", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getUserConfiguration", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"getUserEMode"`. - */ -export function usePoolGetUserEMode< - TFunctionName extends "getUserEMode", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: poolABI, - functionName: "getUserEMode", - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__. - */ -export function usePoolWrite< - TFunctionName extends string, - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - TFunctionName, - TMode - > - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"backUnbacked"`. - */ -export function usePoolBackUnbacked< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "backUnbacked" - >["request"]["abi"], - "backUnbacked", - TMode - > & { functionName?: "backUnbacked" } - : UseContractWriteConfig & { - abi?: never - functionName?: "backUnbacked" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "backUnbacked", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"borrow"`. - */ -export function usePoolBorrow( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - "borrow", - TMode - > & { functionName?: "borrow" } - : UseContractWriteConfig & { - abi?: never - functionName?: "borrow" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "borrow", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"configureEModeCategory"`. - */ -export function usePoolConfigureEModeCategory< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "configureEModeCategory" - >["request"]["abi"], - "configureEModeCategory", - TMode - > & { functionName?: "configureEModeCategory" } - : UseContractWriteConfig< - typeof poolABI, - "configureEModeCategory", - TMode - > & { - abi?: never - functionName?: "configureEModeCategory" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "configureEModeCategory", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"deposit"`. - */ -export function usePoolDeposit( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - "deposit", - TMode - > & { functionName?: "deposit" } - : UseContractWriteConfig & { - abi?: never - functionName?: "deposit" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "deposit", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"dropReserve"`. - */ -export function usePoolDropReserve( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "dropReserve" - >["request"]["abi"], - "dropReserve", - TMode - > & { functionName?: "dropReserve" } - : UseContractWriteConfig & { - abi?: never - functionName?: "dropReserve" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "dropReserve", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"finalizeTransfer"`. - */ -export function usePoolFinalizeTransfer< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "finalizeTransfer" - >["request"]["abi"], - "finalizeTransfer", - TMode - > & { functionName?: "finalizeTransfer" } - : UseContractWriteConfig & { - abi?: never - functionName?: "finalizeTransfer" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "finalizeTransfer", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"flashLoan"`. - */ -export function usePoolFlashLoan( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "flashLoan" - >["request"]["abi"], - "flashLoan", - TMode - > & { functionName?: "flashLoan" } - : UseContractWriteConfig & { - abi?: never - functionName?: "flashLoan" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "flashLoan", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"flashLoanSimple"`. - */ -export function usePoolFlashLoanSimple< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "flashLoanSimple" - >["request"]["abi"], - "flashLoanSimple", - TMode - > & { functionName?: "flashLoanSimple" } - : UseContractWriteConfig & { - abi?: never - functionName?: "flashLoanSimple" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "flashLoanSimple", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"initReserve"`. - */ -export function usePoolInitReserve( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "initReserve" - >["request"]["abi"], - "initReserve", - TMode - > & { functionName?: "initReserve" } - : UseContractWriteConfig & { - abi?: never - functionName?: "initReserve" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "initReserve", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"initialize"`. - */ -export function usePoolInitialize( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "initialize" - >["request"]["abi"], - "initialize", - TMode - > & { functionName?: "initialize" } - : UseContractWriteConfig & { - abi?: never - functionName?: "initialize" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "initialize", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"liquidationCall"`. - */ -export function usePoolLiquidationCall< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "liquidationCall" - >["request"]["abi"], - "liquidationCall", - TMode - > & { functionName?: "liquidationCall" } - : UseContractWriteConfig & { - abi?: never - functionName?: "liquidationCall" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "liquidationCall", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"mintToTreasury"`. - */ -export function usePoolMintToTreasury< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "mintToTreasury" - >["request"]["abi"], - "mintToTreasury", - TMode - > & { functionName?: "mintToTreasury" } - : UseContractWriteConfig & { - abi?: never - functionName?: "mintToTreasury" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "mintToTreasury", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"mintUnbacked"`. - */ -export function usePoolMintUnbacked< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "mintUnbacked" - >["request"]["abi"], - "mintUnbacked", - TMode - > & { functionName?: "mintUnbacked" } - : UseContractWriteConfig & { - abi?: never - functionName?: "mintUnbacked" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "mintUnbacked", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"rebalanceStableBorrowRate"`. - */ -export function usePoolRebalanceStableBorrowRate< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "rebalanceStableBorrowRate" - >["request"]["abi"], - "rebalanceStableBorrowRate", - TMode - > & { functionName?: "rebalanceStableBorrowRate" } - : UseContractWriteConfig< - typeof poolABI, - "rebalanceStableBorrowRate", - TMode - > & { - abi?: never - functionName?: "rebalanceStableBorrowRate" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "rebalanceStableBorrowRate", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repay"`. - */ -export function usePoolRepay( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - "repay", - TMode - > & { functionName?: "repay" } - : UseContractWriteConfig & { - abi?: never - functionName?: "repay" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "repay", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repayWithATokens"`. - */ -export function usePoolRepayWithATokens< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "repayWithATokens" - >["request"]["abi"], - "repayWithATokens", - TMode - > & { functionName?: "repayWithATokens" } - : UseContractWriteConfig & { - abi?: never - functionName?: "repayWithATokens" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "repayWithATokens", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repayWithPermit"`. - */ -export function usePoolRepayWithPermit< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "repayWithPermit" - >["request"]["abi"], - "repayWithPermit", - TMode - > & { functionName?: "repayWithPermit" } - : UseContractWriteConfig & { - abi?: never - functionName?: "repayWithPermit" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "repayWithPermit", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"rescueTokens"`. - */ -export function usePoolRescueTokens< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "rescueTokens" - >["request"]["abi"], - "rescueTokens", - TMode - > & { functionName?: "rescueTokens" } - : UseContractWriteConfig & { - abi?: never - functionName?: "rescueTokens" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "rescueTokens", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"resetIsolationModeTotalDebt"`. - */ -export function usePoolResetIsolationModeTotalDebt< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "resetIsolationModeTotalDebt" - >["request"]["abi"], - "resetIsolationModeTotalDebt", - TMode - > & { functionName?: "resetIsolationModeTotalDebt" } - : UseContractWriteConfig< - typeof poolABI, - "resetIsolationModeTotalDebt", - TMode - > & { - abi?: never - functionName?: "resetIsolationModeTotalDebt" - } = {} as any -) { - return useContractWrite( - { - abi: poolABI, - functionName: "resetIsolationModeTotalDebt", - ...config, - } as any - ) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setConfiguration"`. - */ -export function usePoolSetConfiguration< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "setConfiguration" - >["request"]["abi"], - "setConfiguration", - TMode - > & { functionName?: "setConfiguration" } - : UseContractWriteConfig & { - abi?: never - functionName?: "setConfiguration" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "setConfiguration", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setReserveInterestRateStrategyAddress"`. - */ -export function usePoolSetReserveInterestRateStrategyAddress< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "setReserveInterestRateStrategyAddress" - >["request"]["abi"], - "setReserveInterestRateStrategyAddress", - TMode - > & { functionName?: "setReserveInterestRateStrategyAddress" } - : UseContractWriteConfig< - typeof poolABI, - "setReserveInterestRateStrategyAddress", - TMode - > & { - abi?: never - functionName?: "setReserveInterestRateStrategyAddress" - } = {} as any -) { - return useContractWrite< - typeof poolABI, - "setReserveInterestRateStrategyAddress", - TMode - >({ - abi: poolABI, - functionName: "setReserveInterestRateStrategyAddress", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setUserEMode"`. - */ -export function usePoolSetUserEMode< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "setUserEMode" - >["request"]["abi"], - "setUserEMode", - TMode - > & { functionName?: "setUserEMode" } - : UseContractWriteConfig & { - abi?: never - functionName?: "setUserEMode" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "setUserEMode", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setUserUseReserveAsCollateral"`. - */ -export function usePoolSetUserUseReserveAsCollateral< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "setUserUseReserveAsCollateral" - >["request"]["abi"], - "setUserUseReserveAsCollateral", - TMode - > & { functionName?: "setUserUseReserveAsCollateral" } - : UseContractWriteConfig< - typeof poolABI, - "setUserUseReserveAsCollateral", - TMode - > & { - abi?: never - functionName?: "setUserUseReserveAsCollateral" - } = {} as any -) { - return useContractWrite< - typeof poolABI, - "setUserUseReserveAsCollateral", - TMode - >({ - abi: poolABI, - functionName: "setUserUseReserveAsCollateral", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"supply"`. - */ -export function usePoolSupply( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - "supply", - TMode - > & { functionName?: "supply" } - : UseContractWriteConfig & { - abi?: never - functionName?: "supply" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "supply", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"supplyWithPermit"`. - */ -export function usePoolSupplyWithPermit< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "supplyWithPermit" - >["request"]["abi"], - "supplyWithPermit", - TMode - > & { functionName?: "supplyWithPermit" } - : UseContractWriteConfig & { - abi?: never - functionName?: "supplyWithPermit" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "supplyWithPermit", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"swapBorrowRateMode"`. - */ -export function usePoolSwapBorrowRateMode< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "swapBorrowRateMode" - >["request"]["abi"], - "swapBorrowRateMode", - TMode - > & { functionName?: "swapBorrowRateMode" } - : UseContractWriteConfig & { - abi?: never - functionName?: "swapBorrowRateMode" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "swapBorrowRateMode", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"updateBridgeProtocolFee"`. - */ -export function usePoolUpdateBridgeProtocolFee< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "updateBridgeProtocolFee" - >["request"]["abi"], - "updateBridgeProtocolFee", - TMode - > & { functionName?: "updateBridgeProtocolFee" } - : UseContractWriteConfig< - typeof poolABI, - "updateBridgeProtocolFee", - TMode - > & { - abi?: never - functionName?: "updateBridgeProtocolFee" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "updateBridgeProtocolFee", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"updateFlashloanPremiums"`. - */ -export function usePoolUpdateFlashloanPremiums< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "updateFlashloanPremiums" - >["request"]["abi"], - "updateFlashloanPremiums", - TMode - > & { functionName?: "updateFlashloanPremiums" } - : UseContractWriteConfig< - typeof poolABI, - "updateFlashloanPremiums", - TMode - > & { - abi?: never - functionName?: "updateFlashloanPremiums" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "updateFlashloanPremiums", - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"withdraw"`. - */ -export function usePoolWithdraw( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof poolABI, - "withdraw" - >["request"]["abi"], - "withdraw", - TMode - > & { functionName?: "withdraw" } - : UseContractWriteConfig & { - abi?: never - functionName?: "withdraw" - } = {} as any -) { - return useContractWrite({ - abi: poolABI, - functionName: "withdraw", - ...config, - } as any) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__. - */ -export function usePreparePoolWrite( - config: Omit< - UsePrepareContractWriteConfig, - "abi" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"backUnbacked"`. - */ -export function usePreparePoolBackUnbacked( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "backUnbacked", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"borrow"`. - */ -export function usePreparePoolBorrow( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "borrow", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"configureEModeCategory"`. - */ -export function usePreparePoolConfigureEModeCategory( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "configureEModeCategory", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"deposit"`. - */ -export function usePreparePoolDeposit( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "deposit", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"dropReserve"`. - */ -export function usePreparePoolDropReserve( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "dropReserve", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"finalizeTransfer"`. - */ -export function usePreparePoolFinalizeTransfer( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "finalizeTransfer", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"flashLoan"`. - */ -export function usePreparePoolFlashLoan( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "flashLoan", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"flashLoanSimple"`. - */ -export function usePreparePoolFlashLoanSimple( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "flashLoanSimple", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"initReserve"`. - */ -export function usePreparePoolInitReserve( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "initReserve", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"initialize"`. - */ -export function usePreparePoolInitialize( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "initialize", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"liquidationCall"`. - */ -export function usePreparePoolLiquidationCall( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "liquidationCall", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"mintToTreasury"`. - */ -export function usePreparePoolMintToTreasury( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "mintToTreasury", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"mintUnbacked"`. - */ -export function usePreparePoolMintUnbacked( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "mintUnbacked", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"rebalanceStableBorrowRate"`. - */ -export function usePreparePoolRebalanceStableBorrowRate( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "rebalanceStableBorrowRate", - ...config, - } as UsePrepareContractWriteConfig< - typeof poolABI, - "rebalanceStableBorrowRate" - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repay"`. - */ -export function usePreparePoolRepay( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "repay", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repayWithATokens"`. - */ -export function usePreparePoolRepayWithATokens( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "repayWithATokens", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"repayWithPermit"`. - */ -export function usePreparePoolRepayWithPermit( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "repayWithPermit", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"rescueTokens"`. - */ -export function usePreparePoolRescueTokens( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "rescueTokens", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"resetIsolationModeTotalDebt"`. - */ -export function usePreparePoolResetIsolationModeTotalDebt( - config: Omit< - UsePrepareContractWriteConfig< - typeof poolABI, - "resetIsolationModeTotalDebt" - >, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "resetIsolationModeTotalDebt", - ...config, - } as UsePrepareContractWriteConfig< - typeof poolABI, - "resetIsolationModeTotalDebt" - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setConfiguration"`. - */ -export function usePreparePoolSetConfiguration( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "setConfiguration", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setReserveInterestRateStrategyAddress"`. - */ -export function usePreparePoolSetReserveInterestRateStrategyAddress( - config: Omit< - UsePrepareContractWriteConfig< - typeof poolABI, - "setReserveInterestRateStrategyAddress" - >, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "setReserveInterestRateStrategyAddress", - ...config, - } as UsePrepareContractWriteConfig< - typeof poolABI, - "setReserveInterestRateStrategyAddress" - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setUserEMode"`. - */ -export function usePreparePoolSetUserEMode( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "setUserEMode", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"setUserUseReserveAsCollateral"`. - */ -export function usePreparePoolSetUserUseReserveAsCollateral( - config: Omit< - UsePrepareContractWriteConfig< - typeof poolABI, - "setUserUseReserveAsCollateral" - >, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "setUserUseReserveAsCollateral", - ...config, - } as UsePrepareContractWriteConfig< - typeof poolABI, - "setUserUseReserveAsCollateral" - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"supply"`. - */ -export function usePreparePoolSupply( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "supply", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"supplyWithPermit"`. - */ -export function usePreparePoolSupplyWithPermit( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "supplyWithPermit", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"swapBorrowRateMode"`. - */ -export function usePreparePoolSwapBorrowRateMode( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "swapBorrowRateMode", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"updateBridgeProtocolFee"`. - */ -export function usePreparePoolUpdateBridgeProtocolFee( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "updateBridgeProtocolFee", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"updateFlashloanPremiums"`. - */ -export function usePreparePoolUpdateFlashloanPremiums( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "updateFlashloanPremiums", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolABI}__ and `functionName` set to `"withdraw"`. - */ -export function usePreparePoolWithdraw( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: poolABI, - functionName: "withdraw", - ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__. - */ -export function usePoolEvent( - config: Omit< - UseContractEventConfig, - "abi" - > = {} as any -) { - return useContractEvent({ abi: poolABI, ...config } as UseContractEventConfig< - typeof poolABI, - TEventName - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"BackUnbacked"`. - */ -export function usePoolBackUnbackedEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "BackUnbacked", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"Borrow"`. - */ -export function usePoolBorrowEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "Borrow", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"FlashLoan"`. - */ -export function usePoolFlashLoanEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "FlashLoan", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"IsolationModeTotalDebtUpdated"`. - */ -export function usePoolIsolationModeTotalDebtUpdatedEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "IsolationModeTotalDebtUpdated", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"LiquidationCall"`. - */ -export function usePoolLiquidationCallEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "LiquidationCall", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"MintUnbacked"`. - */ -export function usePoolMintUnbackedEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "MintUnbacked", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"MintedToTreasury"`. - */ -export function usePoolMintedToTreasuryEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "MintedToTreasury", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"RebalanceStableBorrowRate"`. - */ -export function usePoolRebalanceStableBorrowRateEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "RebalanceStableBorrowRate", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"Repay"`. - */ -export function usePoolRepayEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "Repay", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"ReserveDataUpdated"`. - */ -export function usePoolReserveDataUpdatedEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "ReserveDataUpdated", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"ReserveUsedAsCollateralDisabled"`. - */ -export function usePoolReserveUsedAsCollateralDisabledEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "ReserveUsedAsCollateralDisabled", - ...config, - } as UseContractEventConfig< - typeof poolABI, - "ReserveUsedAsCollateralDisabled" - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"ReserveUsedAsCollateralEnabled"`. - */ -export function usePoolReserveUsedAsCollateralEnabledEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "ReserveUsedAsCollateralEnabled", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"Supply"`. - */ -export function usePoolSupplyEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "Supply", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"SwapBorrowRateMode"`. - */ -export function usePoolSwapBorrowRateModeEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "SwapBorrowRateMode", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"UserEModeSet"`. - */ -export function usePoolUserEModeSetEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "UserEModeSet", - ...config, - } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolABI}__ and `eventName` set to `"Withdraw"`. - */ -export function usePoolWithdrawEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: poolABI, - eventName: "Withdraw", - ...config, - } as UseContractEventConfig) -} +export const uiPoolDataProviderAbi = [ + { + stateMutability: 'nonpayable', + type: 'constructor', + inputs: [ + { + name: '_networkBaseTokenPriceInUsdProxyAggregator', + internalType: 'contract IEACAggregatorProxy', + type: 'address', + }, + { + name: '_marketReferenceCurrencyPriceInUsdProxyAggregator', + internalType: 'contract IEACAggregatorProxy', + type: 'address', + }, + ], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'ETH_CURRENCY_UNIT', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'MKR_ADDRESS', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + }, + { + stateMutability: 'pure', + type: 'function', + inputs: [{ name: '_bytes32', internalType: 'bytes32', type: 'bytes32' }], + name: 'bytes32ToString', + outputs: [{ name: '', internalType: 'string', type: 'string' }], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [ + { + name: 'provider', + internalType: 'contract IPoolAddressesProvider', + type: 'address', + }, + ], + name: 'getReservesData', + outputs: [ + { + name: '', + internalType: 'struct IUiPoolDataProviderV3.AggregatedReserveData[]', + type: 'tuple[]', + components: [ + { name: 'underlyingAsset', internalType: 'address', type: 'address' }, + { name: 'name', internalType: 'string', type: 'string' }, + { name: 'symbol', internalType: 'string', type: 'string' }, + { name: 'decimals', internalType: 'uint256', type: 'uint256' }, + { + name: 'baseLTVasCollateral', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'reserveLiquidationThreshold', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'reserveLiquidationBonus', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'reserveFactor', internalType: 'uint256', type: 'uint256' }, + { + name: 'usageAsCollateralEnabled', + internalType: 'bool', + type: 'bool', + }, + { name: 'borrowingEnabled', internalType: 'bool', type: 'bool' }, + { + name: 'stableBorrowRateEnabled', + internalType: 'bool', + type: 'bool', + }, + { name: 'isActive', internalType: 'bool', type: 'bool' }, + { name: 'isFrozen', internalType: 'bool', type: 'bool' }, + { name: 'liquidityIndex', internalType: 'uint128', type: 'uint128' }, + { + name: 'variableBorrowIndex', + internalType: 'uint128', + type: 'uint128', + }, + { name: 'liquidityRate', internalType: 'uint128', type: 'uint128' }, + { + name: 'variableBorrowRate', + internalType: 'uint128', + type: 'uint128', + }, + { + name: 'stableBorrowRate', + internalType: 'uint128', + type: 'uint128', + }, + { + name: 'lastUpdateTimestamp', + internalType: 'uint40', + type: 'uint40', + }, + { name: 'aTokenAddress', internalType: 'address', type: 'address' }, + { + name: 'stableDebtTokenAddress', + internalType: 'address', + type: 'address', + }, + { + name: 'variableDebtTokenAddress', + internalType: 'address', + type: 'address', + }, + { + name: 'interestRateStrategyAddress', + internalType: 'address', + type: 'address', + }, + { + name: 'availableLiquidity', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'totalPrincipalStableDebt', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'averageStableRate', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'stableDebtLastUpdateTimestamp', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'totalScaledVariableDebt', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'priceInMarketReferenceCurrency', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'priceOracle', internalType: 'address', type: 'address' }, + { + name: 'variableRateSlope1', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'variableRateSlope2', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'stableRateSlope1', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'stableRateSlope2', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'baseStableBorrowRate', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'baseVariableBorrowRate', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'optimalUsageRatio', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'isPaused', internalType: 'bool', type: 'bool' }, + { name: 'isSiloedBorrowing', internalType: 'bool', type: 'bool' }, + { + name: 'accruedToTreasury', + internalType: 'uint128', + type: 'uint128', + }, + { name: 'unbacked', internalType: 'uint128', type: 'uint128' }, + { + name: 'isolationModeTotalDebt', + internalType: 'uint128', + type: 'uint128', + }, + { name: 'flashLoanEnabled', internalType: 'bool', type: 'bool' }, + { name: 'debtCeiling', internalType: 'uint256', type: 'uint256' }, + { + name: 'debtCeilingDecimals', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'eModeCategoryId', internalType: 'uint8', type: 'uint8' }, + { name: 'borrowCap', internalType: 'uint256', type: 'uint256' }, + { name: 'supplyCap', internalType: 'uint256', type: 'uint256' }, + { name: 'eModeLtv', internalType: 'uint16', type: 'uint16' }, + { + name: 'eModeLiquidationThreshold', + internalType: 'uint16', + type: 'uint16', + }, + { + name: 'eModeLiquidationBonus', + internalType: 'uint16', + type: 'uint16', + }, + { + name: 'eModePriceSource', + internalType: 'address', + type: 'address', + }, + { name: 'eModeLabel', internalType: 'string', type: 'string' }, + { name: 'borrowableInIsolation', internalType: 'bool', type: 'bool' }, + ], + }, + { + name: '', + internalType: 'struct IUiPoolDataProviderV3.BaseCurrencyInfo', + type: 'tuple', + components: [ + { + name: 'marketReferenceCurrencyUnit', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'marketReferenceCurrencyPriceInUsd', + internalType: 'int256', + type: 'int256', + }, + { + name: 'networkBaseTokenPriceInUsd', + internalType: 'int256', + type: 'int256', + }, + { + name: 'networkBaseTokenPriceDecimals', + internalType: 'uint8', + type: 'uint8', + }, + ], + }, + ], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [ + { + name: 'provider', + internalType: 'contract IPoolAddressesProvider', + type: 'address', + }, + ], + name: 'getReservesList', + outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [ + { + name: 'provider', + internalType: 'contract IPoolAddressesProvider', + type: 'address', + }, + { name: 'user', internalType: 'address', type: 'address' }, + ], + name: 'getUserReservesData', + outputs: [ + { + name: '', + internalType: 'struct IUiPoolDataProviderV3.UserReserveData[]', + type: 'tuple[]', + components: [ + { name: 'underlyingAsset', internalType: 'address', type: 'address' }, + { + name: 'scaledATokenBalance', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'usageAsCollateralEnabledOnUser', + internalType: 'bool', + type: 'bool', + }, + { + name: 'stableBorrowRate', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'scaledVariableDebt', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'principalStableDebt', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'stableBorrowLastUpdateTimestamp', + internalType: 'uint256', + type: 'uint256', + }, + ], + }, + { name: '', internalType: 'uint8', type: 'uint8' }, + ], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'marketReferenceCurrencyPriceInUsdProxyAggregator', + outputs: [ + { + name: '', + internalType: 'contract IEACAggregatorProxy', + type: 'address', + }, + ], + }, + { + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'networkBaseTokenPriceInUsdProxyAggregator', + outputs: [ + { + name: '', + internalType: 'contract IEACAggregatorProxy', + type: 'address', + }, + ], + }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// React +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ + */ +export const useReadPool = /*#__PURE__*/ createUseReadContract({ abi: poolAbi }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"ADDRESSES_PROVIDER"` + */ +export const useReadPoolAddressesProvider = /*#__PURE__*/ createUseReadContract( + { abi: poolAbi, functionName: 'ADDRESSES_PROVIDER' }, +) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"BRIDGE_PROTOCOL_FEE"` + */ +export const useReadPoolBridgeProtocolFee = /*#__PURE__*/ createUseReadContract( + { abi: poolAbi, functionName: 'BRIDGE_PROTOCOL_FEE' }, +) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"FLASHLOAN_PREMIUM_TOTAL"` + */ +export const useReadPoolFlashloanPremiumTotal = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'FLASHLOAN_PREMIUM_TOTAL', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"FLASHLOAN_PREMIUM_TO_PROTOCOL"` + */ +export const useReadPoolFlashloanPremiumToProtocol = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'FLASHLOAN_PREMIUM_TO_PROTOCOL', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"MAX_NUMBER_RESERVES"` + */ +export const useReadPoolMaxNumberReserves = /*#__PURE__*/ createUseReadContract( + { abi: poolAbi, functionName: 'MAX_NUMBER_RESERVES' }, +) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"MAX_STABLE_RATE_BORROW_SIZE_PERCENT"` + */ +export const useReadPoolMaxStableRateBorrowSizePercent = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'MAX_STABLE_RATE_BORROW_SIZE_PERCENT', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"POOL_REVISION"` + */ +export const useReadPoolPoolRevision = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'POOL_REVISION', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getConfiguration"` + */ +export const useReadPoolGetConfiguration = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getConfiguration', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getEModeCategoryData"` + */ +export const useReadPoolGetEModeCategoryData = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getEModeCategoryData', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getReserveAddressById"` + */ +export const useReadPoolGetReserveAddressById = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getReserveAddressById', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getReserveData"` + */ +export const useReadPoolGetReserveData = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getReserveData', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getReserveNormalizedIncome"` + */ +export const useReadPoolGetReserveNormalizedIncome = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getReserveNormalizedIncome', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getReserveNormalizedVariableDebt"` + */ +export const useReadPoolGetReserveNormalizedVariableDebt = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getReserveNormalizedVariableDebt', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getReservesList"` + */ +export const useReadPoolGetReservesList = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getReservesList', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getUserAccountData"` + */ +export const useReadPoolGetUserAccountData = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getUserAccountData', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getUserConfiguration"` + */ +export const useReadPoolGetUserConfiguration = + /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getUserConfiguration', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"getUserEMode"` + */ +export const useReadPoolGetUserEMode = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'getUserEMode', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ + */ +export const useWritePool = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"backUnbacked"` + */ +export const useWritePoolBackUnbacked = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'backUnbacked', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"borrow"` + */ +export const useWritePoolBorrow = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'borrow', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"configureEModeCategory"` + */ +export const useWritePoolConfigureEModeCategory = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'configureEModeCategory', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"deposit"` + */ +export const useWritePoolDeposit = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'deposit', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"dropReserve"` + */ +export const useWritePoolDropReserve = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'dropReserve', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"finalizeTransfer"` + */ +export const useWritePoolFinalizeTransfer = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'finalizeTransfer', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"flashLoan"` + */ +export const useWritePoolFlashLoan = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'flashLoan', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"flashLoanSimple"` + */ +export const useWritePoolFlashLoanSimple = /*#__PURE__*/ createUseWriteContract( + { abi: poolAbi, functionName: 'flashLoanSimple' }, +) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"initReserve"` + */ +export const useWritePoolInitReserve = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'initReserve', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"initialize"` + */ +export const useWritePoolInitialize = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'initialize', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"liquidationCall"` + */ +export const useWritePoolLiquidationCall = /*#__PURE__*/ createUseWriteContract( + { abi: poolAbi, functionName: 'liquidationCall' }, +) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"mintToTreasury"` + */ +export const useWritePoolMintToTreasury = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'mintToTreasury', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"mintUnbacked"` + */ +export const useWritePoolMintUnbacked = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'mintUnbacked', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"rebalanceStableBorrowRate"` + */ +export const useWritePoolRebalanceStableBorrowRate = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'rebalanceStableBorrowRate', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repay"` + */ +export const useWritePoolRepay = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'repay', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repayWithATokens"` + */ +export const useWritePoolRepayWithATokens = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'repayWithATokens', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repayWithPermit"` + */ +export const useWritePoolRepayWithPermit = /*#__PURE__*/ createUseWriteContract( + { abi: poolAbi, functionName: 'repayWithPermit' }, +) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"rescueTokens"` + */ +export const useWritePoolRescueTokens = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'rescueTokens', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"resetIsolationModeTotalDebt"` + */ +export const useWritePoolResetIsolationModeTotalDebt = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'resetIsolationModeTotalDebt', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setConfiguration"` + */ +export const useWritePoolSetConfiguration = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'setConfiguration', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setReserveInterestRateStrategyAddress"` + */ +export const useWritePoolSetReserveInterestRateStrategyAddress = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'setReserveInterestRateStrategyAddress', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setUserEMode"` + */ +export const useWritePoolSetUserEMode = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'setUserEMode', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setUserUseReserveAsCollateral"` + */ +export const useWritePoolSetUserUseReserveAsCollateral = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'setUserUseReserveAsCollateral', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"supply"` + */ +export const useWritePoolSupply = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'supply', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"supplyWithPermit"` + */ +export const useWritePoolSupplyWithPermit = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'supplyWithPermit', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"swapBorrowRateMode"` + */ +export const useWritePoolSwapBorrowRateMode = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'swapBorrowRateMode', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"updateBridgeProtocolFee"` + */ +export const useWritePoolUpdateBridgeProtocolFee = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'updateBridgeProtocolFee', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"updateFlashloanPremiums"` + */ +export const useWritePoolUpdateFlashloanPremiums = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'updateFlashloanPremiums', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"withdraw"` + */ +export const useWritePoolWithdraw = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'withdraw', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ + */ +export const useSimulatePool = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"backUnbacked"` + */ +export const useSimulatePoolBackUnbacked = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'backUnbacked', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"borrow"` + */ +export const useSimulatePoolBorrow = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'borrow', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"configureEModeCategory"` + */ +export const useSimulatePoolConfigureEModeCategory = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'configureEModeCategory', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"deposit"` + */ +export const useSimulatePoolDeposit = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'deposit', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"dropReserve"` + */ +export const useSimulatePoolDropReserve = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'dropReserve', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"finalizeTransfer"` + */ +export const useSimulatePoolFinalizeTransfer = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'finalizeTransfer', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"flashLoan"` + */ +export const useSimulatePoolFlashLoan = /*#__PURE__*/ createUseSimulateContract( + { abi: poolAbi, functionName: 'flashLoan' }, +) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"flashLoanSimple"` + */ +export const useSimulatePoolFlashLoanSimple = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'flashLoanSimple', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"initReserve"` + */ +export const useSimulatePoolInitReserve = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'initReserve', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"initialize"` + */ +export const useSimulatePoolInitialize = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'initialize', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"liquidationCall"` + */ +export const useSimulatePoolLiquidationCall = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'liquidationCall', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"mintToTreasury"` + */ +export const useSimulatePoolMintToTreasury = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'mintToTreasury', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"mintUnbacked"` + */ +export const useSimulatePoolMintUnbacked = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'mintUnbacked', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"rebalanceStableBorrowRate"` + */ +export const useSimulatePoolRebalanceStableBorrowRate = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'rebalanceStableBorrowRate', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repay"` + */ +export const useSimulatePoolRepay = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'repay', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repayWithATokens"` + */ +export const useSimulatePoolRepayWithATokens = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'repayWithATokens', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"repayWithPermit"` + */ +export const useSimulatePoolRepayWithPermit = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'repayWithPermit', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"rescueTokens"` + */ +export const useSimulatePoolRescueTokens = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'rescueTokens', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"resetIsolationModeTotalDebt"` + */ +export const useSimulatePoolResetIsolationModeTotalDebt = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'resetIsolationModeTotalDebt', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setConfiguration"` + */ +export const useSimulatePoolSetConfiguration = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'setConfiguration', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setReserveInterestRateStrategyAddress"` + */ +export const useSimulatePoolSetReserveInterestRateStrategyAddress = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'setReserveInterestRateStrategyAddress', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setUserEMode"` + */ +export const useSimulatePoolSetUserEMode = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'setUserEMode', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setUserUseReserveAsCollateral"` + */ +export const useSimulatePoolSetUserUseReserveAsCollateral = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'setUserUseReserveAsCollateral', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"supply"` + */ +export const useSimulatePoolSupply = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'supply', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"supplyWithPermit"` + */ +export const useSimulatePoolSupplyWithPermit = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'supplyWithPermit', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"swapBorrowRateMode"` + */ +export const useSimulatePoolSwapBorrowRateMode = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'swapBorrowRateMode', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"updateBridgeProtocolFee"` + */ +export const useSimulatePoolUpdateBridgeProtocolFee = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'updateBridgeProtocolFee', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"updateFlashloanPremiums"` + */ +export const useSimulatePoolUpdateFlashloanPremiums = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'updateFlashloanPremiums', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"withdraw"` + */ +export const useSimulatePoolWithdraw = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'withdraw', +}) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ + */ +export const useWatchPoolEvent = /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, +}) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"BackUnbacked"` + */ +export const useWatchPoolBackUnbackedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'BackUnbacked', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Borrow"` + */ +export const useWatchPoolBorrowEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'Borrow', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"FlashLoan"` + */ +export const useWatchPoolFlashLoanEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'FlashLoan', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"IsolationModeTotalDebtUpdated"` + */ +export const useWatchPoolIsolationModeTotalDebtUpdatedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'IsolationModeTotalDebtUpdated', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"LiquidationCall"` + */ +export const useWatchPoolLiquidationCallEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'LiquidationCall', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"MintUnbacked"` + */ +export const useWatchPoolMintUnbackedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'MintUnbacked', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"MintedToTreasury"` + */ +export const useWatchPoolMintedToTreasuryEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'MintedToTreasury', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"RebalanceStableBorrowRate"` + */ +export const useWatchPoolRebalanceStableBorrowRateEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'RebalanceStableBorrowRate', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Repay"` + */ +export const useWatchPoolRepayEvent = /*#__PURE__*/ createUseWatchContractEvent( + { abi: poolAbi, eventName: 'Repay' }, +) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"ReserveDataUpdated"` + */ +export const useWatchPoolReserveDataUpdatedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'ReserveDataUpdated', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"ReserveUsedAsCollateralDisabled"` + */ +export const useWatchPoolReserveUsedAsCollateralDisabledEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'ReserveUsedAsCollateralDisabled', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"ReserveUsedAsCollateralEnabled"` + */ +export const useWatchPoolReserveUsedAsCollateralEnabledEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'ReserveUsedAsCollateralEnabled', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Supply"` + */ +export const useWatchPoolSupplyEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'Supply', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"SwapBorrowRateMode"` + */ +export const useWatchPoolSwapBorrowRateModeEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'SwapBorrowRateMode', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"UserEModeSet"` + */ +export const useWatchPoolUserEModeSetEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'UserEModeSet', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Withdraw"` + */ +export const useWatchPoolWithdrawEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'Withdraw', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ + */ +export const useReadUiPoolDataProvider = /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"ETH_CURRENCY_UNIT"` + */ +export const useReadUiPoolDataProviderEthCurrencyUnit = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'ETH_CURRENCY_UNIT', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"MKR_ADDRESS"` + */ +export const useReadUiPoolDataProviderMkrAddress = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'MKR_ADDRESS', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"bytes32ToString"` + */ +export const useReadUiPoolDataProviderBytes32ToString = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'bytes32ToString', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"getReservesData"` + */ +export const useReadUiPoolDataProviderGetReservesData = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'getReservesData', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"getReservesList"` + */ +export const useReadUiPoolDataProviderGetReservesList = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'getReservesList', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"getUserReservesData"` + */ +export const useReadUiPoolDataProviderGetUserReservesData = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'getUserReservesData', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"marketReferenceCurrencyPriceInUsdProxyAggregator"` + */ +export const useReadUiPoolDataProviderMarketReferenceCurrencyPriceInUsdProxyAggregator = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'marketReferenceCurrencyPriceInUsdProxyAggregator', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link uiPoolDataProviderAbi}__ and `functionName` set to `"networkBaseTokenPriceInUsdProxyAggregator"` + */ +export const useReadUiPoolDataProviderNetworkBaseTokenPriceInUsdProxyAggregator = + /*#__PURE__*/ createUseReadContract({ + abi: uiPoolDataProviderAbi, + functionName: 'networkBaseTokenPriceInUsdProxyAggregator', + }) diff --git a/integrations/aave/hooks/use-aave.ts b/integrations/aave/hooks/use-aave.ts index 1c3d65a0..e2e86b60 100644 --- a/integrations/aave/hooks/use-aave.ts +++ b/integrations/aave/hooks/use-aave.ts @@ -1,11 +1,11 @@ "use client" import { useEffect, useState } from "react" -import { useAccount, useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { - useUiPoolDataProviderGetReservesData, - useUiPoolDataProviderGetUserReservesData, + useReadUiPoolDataProviderGetReservesData, + useReadUiPoolDataProviderGetUserReservesData, } from "../generated/aave-wagmi" import { getDefaultUseAaveState } from "../utils" import { MarketDataType, marketsData } from "../utils/market-config" @@ -17,26 +17,23 @@ import { } from "../utils/types" export const useAave = () => { - const { address: user } = useAccount() - const { chain } = useNetwork() + const { address: user, chain } = useAccount() const [market, setMarket] = useState(null) const [data, setData] = useState(getDefaultUseAaveState()) - const { data: reservesData } = useUiPoolDataProviderGetReservesData({ + const { data: reservesData } = useReadUiPoolDataProviderGetReservesData({ address: market?.addresses.UI_POOL_DATA_PROVIDER, args: market ? [market?.addresses.LENDING_POOL_ADDRESS_PROVIDER] : undefined, - watch: true, }) - const userReservesData = useUiPoolDataProviderGetUserReservesData({ + const userReservesData = useReadUiPoolDataProviderGetUserReservesData({ address: market?.addresses.UI_POOL_DATA_PROVIDER, args: market && user ? [market?.addresses.LENDING_POOL_ADDRESS_PROVIDER, user] : undefined, - watch: true, }).data?.[0] as UserReserveData[] useEffect(() => { @@ -54,6 +51,7 @@ export const useAave = () => { const usdData = userReservesData.map((userReserveData) => { const reserveData = reservesData?.[0].find( + // @ts-ignore (reserve) => reserve.underlyingAsset === userReserveData.underlyingAsset ) as ReserveData diff --git a/integrations/arweave/components/arweave-account/form/hook.ts b/integrations/arweave/components/arweave-account/form/hook.ts index 3e56d708..ec82f29d 100644 --- a/integrations/arweave/components/arweave-account/form/hook.ts +++ b/integrations/arweave/components/arweave-account/form/hook.ts @@ -36,7 +36,7 @@ const useEditProfileAPI = () => { export const useArweaveAccountForm = () => { const { account, wallet } = useArweaveWallet() - const { mutate, data, isLoading, isError, error, isSuccess } = + const { mutate, data, isPending, isError, error, isSuccess } = useEditProfileAPI() const profileSchema = z.object({ handleName: z.string().min(1), @@ -98,7 +98,7 @@ export const useArweaveAccountForm = () => { error, data, isError, - isLoading, + isPending, isSuccess, profileSchema, form, diff --git a/integrations/arweave/components/arweave-account/form/index.tsx b/integrations/arweave/components/arweave-account/form/index.tsx index e2d3aa91..acdd34fb 100644 --- a/integrations/arweave/components/arweave-account/form/index.tsx +++ b/integrations/arweave/components/arweave-account/form/index.tsx @@ -33,7 +33,7 @@ const ArweaveAccountForm = () => { const { onSubmit, form, - isLoading, + isPending, isError, isSuccess, error, @@ -83,17 +83,16 @@ const ArweaveAccountForm = () => { {isError ? ( - (error as { insufficientBalance: boolean }) - .insufficientBalance ? ( + (error as any).insufficientBalance ? ( ) : (
diff --git a/integrations/arweave/components/form-new-post/hook.ts b/integrations/arweave/components/form-new-post/hook.ts index ef33871d..dce3dd1a 100644 --- a/integrations/arweave/components/form-new-post/hook.ts +++ b/integrations/arweave/components/form-new-post/hook.ts @@ -51,7 +51,7 @@ const useCreateArweavePostAPI = () => { export const useArweavePostForm = () => { const { wallet } = useArweaveWallet() - const { mutate, data, isLoading, isError, error, isSuccess } = + const { mutate, data, isPending, isError, error, isSuccess } = useCreateArweavePostAPI() const txSchema = z.object({ data: z.string(), @@ -128,7 +128,7 @@ export const useArweavePostForm = () => { error, data, isError, - isLoading, + isPending, isSuccess, txSchema, form, diff --git a/integrations/arweave/components/form-new-post/index.tsx b/integrations/arweave/components/form-new-post/index.tsx index 1c4de373..95263791 100644 --- a/integrations/arweave/components/form-new-post/index.tsx +++ b/integrations/arweave/components/form-new-post/index.tsx @@ -30,7 +30,7 @@ export const FormNewPost = () => { const { onSubmit, form, - isLoading, + isPending, isError, isSuccess, error, @@ -155,13 +155,12 @@ export const FormNewPost = () => { {isError ? ( - (error as { insufficientBalance: boolean }) - .insufficientBalance ? ( + (error as any).insufficientBalance ? ( ) : (
diff --git a/integrations/connext/components/form-connext-xtransfer.tsx b/integrations/connext/components/form-connext-xtransfer.tsx index c048551b..5c9ec38e 100644 --- a/integrations/connext/components/form-connext-xtransfer.tsx +++ b/integrations/connext/components/form-connext-xtransfer.tsx @@ -5,13 +5,12 @@ import Image from "next/image" import { motion } from "framer-motion" import { MdOutlineSwapHoriz } from "react-icons/md" import { RxCross2 } from "react-icons/rx" -import { formatUnits, parseUnits } from "viem" +import { Address, formatUnits, parseUnits } from "viem" import { useAccount, useBalance, - useNetwork, useSendTransaction, - useSwitchNetwork, + useSwitchChain, } from "wagmi" import { FADE_DOWN_ANIMATION_VARIANTS } from "@/config/design" @@ -53,9 +52,8 @@ export function FormConnextXTransfer({ isMainnet, setIsMainnet, }: FormConnextXTransferProps) { - const { chain } = useNetwork() - const { address } = useAccount() - const { isLoading: isSwitchingChain, switchNetwork } = useSwitchNetwork() + const { address, chain } = useAccount() + const { isPending: isSwitchingChain, switchChain } = useSwitchChain() const [originChain, setOriginChain] = useState(optimismDomainId) const [destinationChain, setDestinationChain] = useState(arbitrumDomainId) @@ -80,7 +78,6 @@ export function FormConnextXTransfer({ (contract) => contract.chain_id === getChain(originChain)?.chain_id )?.contract_address as `0x${string}`, chainId: getChain(originChain)?.chain_id ?? 1, - watch: true, }) const { data: destinationBalance } = useBalance({ address, @@ -88,7 +85,6 @@ export function FormConnextXTransfer({ (contract) => contract.chain_id === getChain(destinationChain)?.chain_id )?.contract_address as `0x${string}`, chainId: getChain(destinationChain)?.chain_id ?? 1, - watch: true, }) const transferSupported = useSupportedTransfer({ @@ -157,17 +153,17 @@ export function FormConnextXTransfer({ const transfers = useLatestTransfers(isMainnet) const { - isLoading: txLoading, + isPending: txLoading, isSuccess: txSuccess, reset: txReset, sendTransaction, - } = useSendTransaction(xcallRequest) + } = useSendTransaction() const { - isLoading: approveTxLoading, + isPending: approveTxLoading, isSuccess: approveTxSuccess, reset: approveTxReset, sendTransaction: approveSendTransaction, - } = useSendTransaction(approveRequest) + } = useSendTransaction() const isInOriginChain = () => { return chain?.id === getChain(originChain)?.chain_id @@ -192,10 +188,20 @@ export function FormConnextXTransfer({ const sendTx = () => { if (approveRequest && !contractApproved) { setContractApproved(true) - return approveSendTransaction?.() + return approveSendTransaction?.({ + to: approveRequest?.to as Address, + value: approveRequest?.value, + data: approveRequest?.data, + chainId: getChain(originChain)?.chain_id, + }) } if (xcallRequest) { - sendTransaction?.() + sendTransaction?.({ + to: xcallRequest?.to as Address, + value: xcallRequest?.value, + data: xcallRequest?.data, + chainId: getChain(originChain)?.chain_id, + }) } } @@ -259,7 +265,7 @@ export function FormConnextXTransfer({ const originChainData = getChain(originChain) if (!isInOriginChain()) { - switchNetwork?.(originChainData?.chain_id) + switchChain?.({ chainId: originChainData?.chain_id! }) } } diff --git a/integrations/connext/hooks/use-approve-if-needed.ts b/integrations/connext/hooks/use-approve-if-needed.ts index 6454607f..930b5789 100644 --- a/integrations/connext/hooks/use-approve-if-needed.ts +++ b/integrations/connext/hooks/use-approve-if-needed.ts @@ -42,13 +42,17 @@ export const useApproveIfNeeded = ({ return data.txRequest } - const { data: request, isLoading } = useQuery( - ["approveIfNeeded", isMainnet, originDomain, assetAddress, amount], - { - queryFn: fetchData, - enabled: !!originDomain && !!assetAddress && !!amount, // only fetch if all params are truthy - } - ) + const { data: request, isLoading } = useQuery({ + queryKey: [ + "approveIfNeeded", + isMainnet, + originDomain, + assetAddress, + amount, + ], + queryFn: fetchData, + enabled: !!originDomain && !!assetAddress && !!amount, // only fetch if all params are truthy + }) return { request, isLoading } } diff --git a/integrations/connext/hooks/use-estimated-amount.ts b/integrations/connext/hooks/use-estimated-amount.ts index 3dcccbe1..2c108d62 100644 --- a/integrations/connext/hooks/use-estimated-amount.ts +++ b/integrations/connext/hooks/use-estimated-amount.ts @@ -38,8 +38,8 @@ export const useEstimatedAmount = ({ } const { data: { amount: estimatedAmount, isFastPath } = {}, isLoading } = - useQuery( - [ + useQuery({ + queryKey: [ "estimatedAmount", isMainnet, originDomain, @@ -47,15 +47,13 @@ export const useEstimatedAmount = ({ originTokenAddress, amount, ], - { - queryFn: fetchData, - enabled: - !!originDomain && - !!destinationDomain && - !!originTokenAddress && - !!amount, // only fetch if all params are truthy - } - ) + queryFn: fetchData, + enabled: + !!originDomain && + !!destinationDomain && + !!originTokenAddress && + !!amount, // only fetch if all params are truthy + }) return { estimatedAmount: estimatedAmount || "0", diff --git a/integrations/connext/hooks/use-estimated-relayer-fee.ts b/integrations/connext/hooks/use-estimated-relayer-fee.ts index 75af0182..5eda52f8 100644 --- a/integrations/connext/hooks/use-estimated-relayer-fee.ts +++ b/integrations/connext/hooks/use-estimated-relayer-fee.ts @@ -30,13 +30,16 @@ export const useEstimatedRelayerFee = ({ return data } - const { data: { relayerFee } = {} } = useQuery( - ["estimatedRelayerFee", isMainnet, originDomain, destinationDomain], - { - queryFn: fetchData, - enabled: !!originDomain && !!destinationDomain, // only fetch if both params are truthy - } - ) + const { data: { relayerFee } = {} } = useQuery({ + queryKey: [ + "estimatedRelayerFee", + isMainnet, + originDomain, + destinationDomain, + ], + queryFn: fetchData, + enabled: !!originDomain && !!destinationDomain, // only fetch if both params are truthy + }) return relayerFee || "0" } diff --git a/integrations/connext/hooks/use-latest-transfers.ts b/integrations/connext/hooks/use-latest-transfers.ts index cc33e8e2..71b46fb7 100644 --- a/integrations/connext/hooks/use-latest-transfers.ts +++ b/integrations/connext/hooks/use-latest-transfers.ts @@ -24,13 +24,11 @@ export const useLatestTransfers = (isMainnet: boolean) => { return data.transfers } - const { data: transfers = [] } = useQuery( - ["latestTransfers", isMainnet, address], - { - queryFn: fetchTransfers, - refetchInterval: 10000, // Refetch data every 10 seconds - } - ) + const { data: transfers = [] } = useQuery({ + queryKey: ["latestTransfers", isMainnet, address], + queryFn: fetchTransfers, + refetchInterval: 10000, // Refetch data every 10 seconds + }) return transfers } diff --git a/integrations/connext/hooks/use-xcall.ts b/integrations/connext/hooks/use-xcall.ts index ad100e9d..52a0b6e7 100644 --- a/integrations/connext/hooks/use-xcall.ts +++ b/integrations/connext/hooks/use-xcall.ts @@ -33,8 +33,8 @@ export const useXcall = ({ }: XCallArgs): IXCall => { const { address } = useAccount() - const { data, isLoading } = useQuery( - [ + const { data, isLoading } = useQuery({ + queryKey: [ "xcall", isMainnet, origin, @@ -45,33 +45,31 @@ export const useXcall = ({ relayerFee, address, ], - { - queryFn: async () => { - const response = await axios.post( - `/api/connext/xcall`, - { - environment: isMainnet ? "mainnet" : "testnet", - origin, - destination, - to, - asset, - amount, - signer: address, - relayerFee, - slippage: "300", - } - ) - return response.data.txRequest - }, - enabled: - !!origin && - !!destination && - !!to && - !!asset && - !!amount && - relayerFee !== "0", - } - ) + queryFn: async () => { + const response = await axios.post( + `/api/connext/xcall`, + { + environment: isMainnet ? "mainnet" : "testnet", + origin, + destination, + to, + asset, + amount, + signer: address, + relayerFee, + slippage: "300", + } + ) + return response.data.txRequest + }, + enabled: + !!origin && + !!destination && + !!to && + !!asset && + !!amount && + relayerFee !== "0", + }) return { request: data, isLoading } } diff --git a/integrations/defi-llama/hooks/coins/use-chart.ts b/integrations/defi-llama/hooks/coins/use-chart.ts index 46a7be30..8f9f6c67 100644 --- a/integrations/defi-llama/hooks/coins/use-chart.ts +++ b/integrations/defi-llama/hooks/coins/use-chart.ts @@ -55,7 +55,7 @@ export function useChart({ searchWidth = DEFAULT_SEARCH_WIDTH, spanDataPoints, period, - cacheTime = DEFAULT_CACHE_TIME, + gcTime = DEFAULT_CACHE_TIME, enabled, ...options }: UseChartProps) { @@ -67,7 +67,8 @@ export function useChart({ Array.isArray(coins) ? coins : [coins] ) - return useQuery(["defi-llama", "chart", coins], { + return useQuery({ + queryKey: ["defi-llama", "chart", coins], queryFn: async () => { const url = new URL(`${DEFI_LLAMA_API_URL}/chart/${formattedCoins}`) const params = new URLSearchParams() diff --git a/integrations/defi-llama/hooks/coins/use-current-token-price.ts b/integrations/defi-llama/hooks/coins/use-current-token-price.ts index 6dc44166..239ae619 100644 --- a/integrations/defi-llama/hooks/coins/use-current-token-price.ts +++ b/integrations/defi-llama/hooks/coins/use-current-token-price.ts @@ -39,7 +39,7 @@ interface UseCurrentTokenPriceProps extends QueryOptions { export function useCurrentTokenPrice({ coins, searchWidth = DEFAULT_SEARCH_WIDTH, - cacheTime = DEFAULT_CACHE_TIME, + gcTime = DEFAULT_CACHE_TIME, enabled, ...options }: UseCurrentTokenPriceProps) { @@ -74,7 +74,8 @@ export function useCurrentTokenPrice({ } } - return useQuery(["defi-llama", "current-price", coins, searchWidth], { + return useQuery({ + queryKey: ["defi-llama", "current-price", coins, searchWidth], queryFn: fetcher, enabled: !!coins && enabled, ...options, diff --git a/integrations/defi-llama/hooks/coins/use-historical-token-price.ts b/integrations/defi-llama/hooks/coins/use-historical-token-price.ts index a5eb6325..1bc14f76 100644 --- a/integrations/defi-llama/hooks/coins/use-historical-token-price.ts +++ b/integrations/defi-llama/hooks/coins/use-historical-token-price.ts @@ -41,7 +41,7 @@ interface UseHistoricalTokenPriceProps extends QueryOptions { export function useHistoricalTokenPrice({ coins, searchWidth = DEFAULT_SEARCH_WIDTH, - cacheTime = DEFAULT_CACHE_TIME, + gcTime = DEFAULT_CACHE_TIME, enabled, timestamp, ...options @@ -77,14 +77,12 @@ export function useHistoricalTokenPrice({ } } - return useQuery( - ["defi-llama", "historical-price", coins, searchWidth, timestamp], - { - queryFn: fetcher, - enabled: !!coins && enabled, - ...options, - } - ) + return useQuery({ + queryKey: ["defi-llama", "historical-price", coins, searchWidth, timestamp], + queryFn: fetcher, + enabled: !!coins && enabled, + ...options, + }) } interface UseHistoricalNativeTokenPriceProps diff --git a/integrations/defi-llama/hooks/coins/use-token-percentage-change.ts b/integrations/defi-llama/hooks/coins/use-token-percentage-change.ts index 5981db36..e39a0490 100644 --- a/integrations/defi-llama/hooks/coins/use-token-percentage-change.ts +++ b/integrations/defi-llama/hooks/coins/use-token-percentage-change.ts @@ -40,7 +40,7 @@ export function useTokenPercentageChange({ period = "1d", lookForward = false, timestamp = Date.now() / 1000, - cacheTime = DEFAULT_CACHE_TIME, + gcTime = DEFAULT_CACHE_TIME, enabled, ...options }: UseTokenPercentageChangeProps) { @@ -72,8 +72,8 @@ export function useTokenPercentageChange({ } } - return useQuery( - [ + return useQuery({ + queryKey: [ "defi-llama", "percentage-change-price", coins, @@ -81,12 +81,10 @@ export function useTokenPercentageChange({ lookForward, timestamp, ], - { - queryFn: fetcher, - enabled: !!coins && enabled, - ...options, - } - ) + queryFn: fetcher, + enabled: !!coins && enabled, + ...options, + }) } interface UseNativeTokenPercentageChangeProps diff --git a/integrations/disco/components/disco-profile-basic.tsx b/integrations/disco/components/disco-profile-basic.tsx index b668e571..f1cb5ddb 100644 --- a/integrations/disco/components/disco-profile-basic.tsx +++ b/integrations/disco/components/disco-profile-basic.tsx @@ -2,7 +2,7 @@ import { HTMLAttributes } from "react" import Image from "next/image" import { LuExternalLink } from "react-icons/lu" import ReactMarkdown from "react-markdown" -import type { Address } from "wagmi" +import type { Address } from "viem" import { useUser } from "@/lib/hooks/use-user" import { cn } from "@/lib/utils" @@ -49,8 +49,8 @@ export const DiscoProfileBasic = ({ alt="Profile Avatar" className="mx-auto max-w-full rounded-lg border-4 shadow-xl lg:ml-0" height={240} - loader={() => data?.profile?.avatar} - src={data?.profile?.avatar} + loader={() => data?.profile?.avatar || ""} + src={data?.profile?.avatar || ""} width={240} /> )} diff --git a/integrations/disco/components/disco-profile-credentials.tsx b/integrations/disco/components/disco-profile-credentials.tsx index 4b46f6b8..2fd73e74 100644 --- a/integrations/disco/components/disco-profile-credentials.tsx +++ b/integrations/disco/components/disco-profile-credentials.tsx @@ -1,5 +1,5 @@ import { HTMLAttributes } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" import { useUser } from "@/lib/hooks/use-user" import { cn } from "@/lib/utils" diff --git a/integrations/disco/components/form-issue-proof-of-hack/hook.ts b/integrations/disco/components/form-issue-proof-of-hack/hook.ts index c5482d2d..b4c65a3f 100644 --- a/integrations/disco/components/form-issue-proof-of-hack/hook.ts +++ b/integrations/disco/components/form-issue-proof-of-hack/hook.ts @@ -5,7 +5,7 @@ import { z } from "zod" import { useDiscoIssueProofOfHack } from "../../hooks/use-disco-issue-proof-of-hack" export const useDiscoIssueForm = () => { - const { mutate, data, isLoading, isError, error, isSuccess } = + const { mutate, data, isPending, isError, error, isSuccess } = useDiscoIssueProofOfHack() const discoSchema = z.object({ eventDate: z.string().transform((value) => { @@ -69,7 +69,7 @@ export const useDiscoIssueForm = () => { error, data, isError, - isLoading, + isPending, isSuccess, discoSchema, form, diff --git a/integrations/disco/components/form-issue-proof-of-hack/index.tsx b/integrations/disco/components/form-issue-proof-of-hack/index.tsx index 00bdfec1..391f8ad2 100644 --- a/integrations/disco/components/form-issue-proof-of-hack/index.tsx +++ b/integrations/disco/components/form-issue-proof-of-hack/index.tsx @@ -19,7 +19,7 @@ import { issueProofOfHackFormControls } from "./controls" import { useDiscoIssueForm } from "./hook" export function FormCredentialIssuanceProofOfHack() { - const { onSubmit, form, isLoading, isError, isSuccess, error, data } = + const { onSubmit, form, isPending, isError, isSuccess, error, data } = useDiscoIssueForm() const { handleSubmit, register } = form const { toast, dismiss } = useToast() @@ -77,9 +77,9 @@ export function FormCredentialIssuanceProofOfHack() {
diff --git a/integrations/disco/hooks/use-disco-get-credentials-from-did.ts b/integrations/disco/hooks/use-disco-get-credentials-from-did.ts index 913b4e2a..c369f507 100644 --- a/integrations/disco/hooks/use-disco-get-credentials-from-did.ts +++ b/integrations/disco/hooks/use-disco-get-credentials-from-did.ts @@ -1,9 +1,10 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" import { appDiscoGetCredentialsFromDID } from "@/integrations/disco/routes/get-credentials-from-did/client" export const useDiscoGetCredentialsFromDID = (did?: string, queryKey?: any) => { - return useQuery(["discoCredentialsFromDID", did, queryKey], () => - appDiscoGetCredentialsFromDID(did) - ) + return useQuery({ + queryKey: ["discoCredentialsFromDID", did, queryKey], + queryFn: () => appDiscoGetCredentialsFromDID(did), + }) } diff --git a/integrations/disco/hooks/use-disco-get-profile-from-address.ts b/integrations/disco/hooks/use-disco-get-profile-from-address.ts index e1ace9d2..55208ce5 100644 --- a/integrations/disco/hooks/use-disco-get-profile-from-address.ts +++ b/integrations/disco/hooks/use-disco-get-profile-from-address.ts @@ -1,5 +1,5 @@ import { useQuery } from "@tanstack/react-query" -import type { Address } from "wagmi" +import type { Address } from "viem" import { appDiscoGetProfileFromAddress } from "@/integrations/disco/routes/get-profile-from-address/client" @@ -7,7 +7,8 @@ export const useDiscoGetProfileFromAddress = ( address?: Address, queryKey?: any ) => { - return useQuery(["discoProfileFromAddress", address, queryKey], async () => - appDiscoGetProfileFromAddress(address) - ) + return useQuery({ + queryKey: ["discoProfileFromAddress", address, queryKey], + queryFn: () => appDiscoGetProfileFromAddress(address), + }) } diff --git a/integrations/disco/hooks/use-disco-get-profile-from-did.ts b/integrations/disco/hooks/use-disco-get-profile-from-did.ts index 2dfa2e1e..18e4d84a 100644 --- a/integrations/disco/hooks/use-disco-get-profile-from-did.ts +++ b/integrations/disco/hooks/use-disco-get-profile-from-did.ts @@ -1,9 +1,10 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" import { appDiscoGetCredentialsFromDID } from "@/integrations/disco/routes/get-credentials-from-did/client" export const useDiscoGetProfileFromDID = (did?: string, queryKey?: any) => { - return useQuery(["discoProfileFromDID", did, queryKey], () => - appDiscoGetCredentialsFromDID(did) - ) + return useQuery({ + queryKey: ["discoProfileFromDID", did, queryKey], + queryFn: () => appDiscoGetCredentialsFromDID(did), + }) } diff --git a/integrations/disco/routes/get-profile-from-address/client.ts b/integrations/disco/routes/get-profile-from-address/client.ts index 33faddbc..89f94c03 100644 --- a/integrations/disco/routes/get-profile-from-address/client.ts +++ b/integrations/disco/routes/get-profile-from-address/client.ts @@ -1,5 +1,5 @@ import axios from "axios" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Profile } from "../../utils/types" diff --git a/integrations/disco/routes/get-profile-from-did/client.ts b/integrations/disco/routes/get-profile-from-did/client.ts index 9510bfa4..852a27ce 100644 --- a/integrations/disco/routes/get-profile-from-did/client.ts +++ b/integrations/disco/routes/get-profile-from-did/client.ts @@ -1,5 +1,5 @@ import axios from "axios" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Profile } from "../../utils/types" diff --git a/integrations/erc1155/components/erc1155-contract-uri.tsx b/integrations/erc1155/components/erc1155-contract-uri.tsx index 741d1025..7aafc949 100644 --- a/integrations/erc1155/components/erc1155-contract-uri.tsx +++ b/integrations/erc1155/components/erc1155-contract-uri.tsx @@ -1,4 +1,4 @@ -import { useErc1155ContractUri } from "../generated/erc1155-wagmi" +import { useReadErc1155ContractUri } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" export function ERC1155ContractUri({ @@ -7,7 +7,7 @@ export function ERC1155ContractUri({ className, ...props }: ERC1155Props) { - const { data } = useErc1155ContractUri({ + const { data } = useReadErc1155ContractUri({ address, chainId, }) diff --git a/integrations/erc1155/components/erc1155-deploy-test.tsx b/integrations/erc1155/components/erc1155-deploy-test.tsx index ac4b2cbb..f0e88628 100644 --- a/integrations/erc1155/components/erc1155-deploy-test.tsx +++ b/integrations/erc1155/components/erc1155-deploy-test.tsx @@ -26,6 +26,7 @@ export function Erc1155DeployTest() { let hash: `0x${string}` | undefined try { + // @ts-ignore hash = await walletClient.deployContract({ abi: erc1155ABI, bytecode: erc1155ByteCode, @@ -37,6 +38,7 @@ export function Erc1155DeployTest() { setIsSigning(false) setIsWaitingTransaction(true) try { + // @ts-ignore const receipt = await publicClient.waitForTransactionReceipt({ hash }) if (!receipt.contractAddress) return diff --git a/integrations/erc1155/components/erc1155-deploy.tsx b/integrations/erc1155/components/erc1155-deploy.tsx index efc1d268..bca9ac4b 100644 --- a/integrations/erc1155/components/erc1155-deploy.tsx +++ b/integrations/erc1155/components/erc1155-deploy.tsx @@ -1,4 +1,5 @@ import { FormEvent, useState } from "react" +import { deployContract, waitForTransactionReceipt } from "viem/actions" import { usePublicClient, useWalletClient } from "wagmi" import { Card, CardContent, CardFooter } from "@/components/ui/card" @@ -28,7 +29,8 @@ export function Erc1155Deploy() { let hash: `0x${string}` | undefined try { - hash = await walletClient.deployContract({ + // @ts-ignore + hash = await deployContract(walletClient, { abi: erc1155ABI, bytecode: erc1155ByteCode, args: [name, symbol], @@ -40,7 +42,10 @@ export function Erc1155Deploy() { setIsSigning(false) setIsWaitingTransaction(true) try { - const receipt = await publicClient.waitForTransactionReceipt({ hash }) + if (!publicClient || !hash) return + const receipt = await waitForTransactionReceipt(publicClient, { + hash, + }) if (!receipt.contractAddress) return setIsWaitingTransaction(false) diff --git a/integrations/erc1155/components/erc1155-name.tsx b/integrations/erc1155/components/erc1155-name.tsx index ccab47ef..46c268b4 100644 --- a/integrations/erc1155/components/erc1155-name.tsx +++ b/integrations/erc1155/components/erc1155-name.tsx @@ -1,4 +1,4 @@ -import { useErc1155Name } from "../generated/erc1155-wagmi" +import { useReadErc1155Name } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" export function Erc1155Name({ @@ -7,7 +7,7 @@ export function Erc1155Name({ className, ...props }: ERC1155Props) { - const { data } = useErc1155Name({ + const { data } = useReadErc1155Name({ address, chainId, }) diff --git a/integrations/erc1155/components/erc1155-owner-of.tsx b/integrations/erc1155/components/erc1155-owner-of.tsx index b0b99b96..75dfa7f0 100644 --- a/integrations/erc1155/components/erc1155-owner-of.tsx +++ b/integrations/erc1155/components/erc1155-owner-of.tsx @@ -1,4 +1,4 @@ -import { useErc1155AccountsByToken } from "../generated/erc1155-wagmi" +import { useReadErc1155AccountsByToken } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" interface ERC1155OwnerOfProps extends ERC1155Props { @@ -12,11 +12,10 @@ export function Erc1155OwnerOf({ tokenId, ...props }: ERC1155OwnerOfProps) { - const { data } = useErc1155AccountsByToken({ + const { data } = useReadErc1155AccountsByToken({ address, chainId, args: [tokenId], - watch: true, }) return ( diff --git a/integrations/erc1155/components/erc1155-read.tsx b/integrations/erc1155/components/erc1155-read.tsx index 9fc49abd..d872b9bf 100644 --- a/integrations/erc1155/components/erc1155-read.tsx +++ b/integrations/erc1155/components/erc1155-read.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Separator } from "@/components/ui/separator" diff --git a/integrations/erc1155/components/erc1155-symbol.tsx b/integrations/erc1155/components/erc1155-symbol.tsx index dd7ab036..e9049e09 100644 --- a/integrations/erc1155/components/erc1155-symbol.tsx +++ b/integrations/erc1155/components/erc1155-symbol.tsx @@ -1,4 +1,4 @@ -import { useErc1155Symbol } from "../generated/erc1155-wagmi" +import { useReadErc1155Symbol } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" export function Erc1155Symbol({ @@ -7,7 +7,7 @@ export function Erc1155Symbol({ className, ...props }: ERC1155Props) { - const { data } = useErc1155Symbol({ + const { data } = useReadErc1155Symbol({ address, chainId, }) diff --git a/integrations/erc1155/components/erc1155-token-total-supply.tsx b/integrations/erc1155/components/erc1155-token-total-supply.tsx index 75ad2675..4b6482ec 100644 --- a/integrations/erc1155/components/erc1155-token-total-supply.tsx +++ b/integrations/erc1155/components/erc1155-token-total-supply.tsx @@ -1,4 +1,4 @@ -import { useErc1155TotalSupply } from "../generated/erc1155-wagmi" +import { useReadErc1155TotalSupply } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" interface ERC1155TotalSupplyProps extends ERC1155Props { @@ -12,11 +12,10 @@ export function ERC1155TokenTotalSupply({ tokenId, ...props }: ERC1155TotalSupplyProps) { - const { data } = useErc1155TotalSupply({ + const { data } = useReadErc1155TotalSupply({ address, chainId, args: [tokenId], - watch: true, }) return ( diff --git a/integrations/erc1155/components/erc1155-token-uri.tsx b/integrations/erc1155/components/erc1155-token-uri.tsx index fbde1df1..f33969ea 100644 --- a/integrations/erc1155/components/erc1155-token-uri.tsx +++ b/integrations/erc1155/components/erc1155-token-uri.tsx @@ -1,4 +1,4 @@ -import { useErc1155Uri } from "../generated/erc1155-wagmi" +import { useReadErc1155Uri } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" interface ERC1155TokenUriProps extends ERC1155Props { @@ -12,7 +12,7 @@ export function ERC1155TokenUri({ tokenId, ...props }: ERC1155TokenUriProps) { - const { data: tokenUriData } = useErc1155Uri({ + const { data: tokenUriData } = useReadErc1155Uri({ address, chainId, args: [tokenId], diff --git a/integrations/erc1155/components/erc1155-write-approve-for-all.tsx b/integrations/erc1155/components/erc1155-write-approve-for-all.tsx index ed53588e..0494a787 100644 --- a/integrations/erc1155/components/erc1155-write-approve-for-all.tsx +++ b/integrations/erc1155/components/erc1155-write-approve-for-all.tsx @@ -1,7 +1,7 @@ import { useForm } from "react-hook-form" import { useDebounce } from "usehooks-ts" -import { BaseError } from "viem" -import { Address, useWaitForTransaction } from "wagmi" +import { type Address, type BaseError } from "viem" +import { useWaitForTransactionReceipt } from "wagmi" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Separator } from "@/components/ui/separator" @@ -9,8 +9,8 @@ import { ContractWriteButton } from "@/components/blockchain/contract-write-butt import { TransactionStatus } from "@/components/blockchain/transaction-status" import { - useErc1155SetApprovalForAll, - usePrepareErc1155SetApprovalForAll, + useSimulateErc1155SetApprovalForAll, + useWriteErc1155SetApprovalForAll, } from "../generated/erc1155-wagmi" interface Erc1155WriteSetApprovalForAllProps { @@ -26,27 +26,33 @@ export function Erc1155WriteApproveForAll({ const debouncedToAddress = useDebounce(watchToAddress, 500) const debouncedShouldApproved = useDebounce(watchShouldApproved, 500) - const { config, error, isError } = usePrepareErc1155SetApprovalForAll({ + const { + data: config, + error, + isError, + } = useSimulateErc1155SetApprovalForAll({ address, args: debouncedToAddress && debouncedShouldApproved ? [debouncedToAddress, debouncedShouldApproved] : undefined, - enabled: Boolean(debouncedToAddress && debouncedShouldApproved), + query: { + enabled: Boolean(debouncedToAddress && debouncedShouldApproved), + }, }) const { data, - write, - isLoading: isLoadingWrite, - } = useErc1155SetApprovalForAll(config) + writeContract, + isPending: isLoadingWrite, + } = useWriteErc1155SetApprovalForAll() - const { isLoading: isLoadingTx, isSuccess } = useWaitForTransaction({ - hash: data?.hash, + const { isLoading: isLoadingTx, isSuccess } = useWaitForTransactionReceipt({ + hash: data, }) const onSubmit = () => { - write?.() + writeContract?.(config!.request) } return ( @@ -66,13 +72,13 @@ export function Erc1155WriteApproveForAll({ isLoadingWrite={isLoadingWrite} loadingTxText="Approving..." type="submit" - write={!!write} + write={!!writeContract} > Approve For All { - write?.() + writeContract?.(config!.request) } return ( @@ -65,13 +75,13 @@ export function Erc1155WriteApprove({ address }: Erc1155WriteApproveProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Approving..." type="submit" - write={!!write} + write={!!writeContract} > Approve { - write?.() + writeContract?.(config!.request) } return ( @@ -147,13 +153,13 @@ export function Erc1155WriteBatchTransfer({ isLoadingWrite={isLoadingWrite} loadingTxText="Transferring..." type="submit" - write={!!write} + write={!!writeContract} > Batch Transfer { - write?.() + writeContract?.(config!.request) } return ( @@ -89,13 +99,13 @@ export function Erc1155WriteMint({ address }: Erc1155WriteMintProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Minting..." type="submit" - write={!!write} + write={!!writeContract} > Mint { - write?.() + writeContract?.(config!.request) } return ( @@ -98,13 +104,13 @@ export function Erc1155WriteTransfer({ address }: Erc1155WriteTransferProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Transferring..." type="submit" - write={!!write} + write={!!writeContract} > Transfer >( - config: Omit, 'abi'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, ...config } as UseContractReadConfig) -} +export const useReadErc1155AccountsByToken = + /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'accountsByToken', + }) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"Fungible"`. - */ -export function useErc1155Fungible>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'Fungible', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"allowance"` + */ +export const useReadErc1155Allowance = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'allowance', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"balanceOf"` + */ +export const useReadErc1155BalanceOf = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'balanceOf', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"balanceOfBatch"` + */ +export const useReadErc1155BalanceOfBatch = /*#__PURE__*/ createUseReadContract( + { abi: erc1155Abi, functionName: 'balanceOfBatch' }, +) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"contractURI"` + */ +export const useReadErc1155ContractUri = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'contractURI', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"isApprovedForAll"` + */ +export const useReadErc1155IsApprovedForAll = + /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'isApprovedForAll', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"name"` + */ +export const useReadErc1155Name = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'name', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"owner"` + */ +export const useReadErc1155Owner = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'owner', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"supportsInterface"` + */ +export const useReadErc1155SupportsInterface = + /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'supportsInterface', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"symbol"` + */ +export const useReadErc1155Symbol = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'symbol', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"tokensByAccount"` + */ +export const useReadErc1155TokensByAccount = + /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'tokensByAccount', + }) -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"NonFungible"`. - */ -export function useErc1155NonFungible>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'NonFungible', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"NonFungible2nd"`. +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"totalHolders"` + */ +export const useReadErc1155TotalHolders = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'totalHolders', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"totalSupply"` + */ +export const useReadErc1155TotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'totalSupply', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"uri"` + */ +export const useReadErc1155Uri = /*#__PURE__*/ createUseReadContract({ + abi: erc1155Abi, + functionName: 'uri', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ + */ +export const useWriteErc1155 = /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"approve"` + */ +export const useWriteErc1155Approve = /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'approve', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"mint"` */ -export function useErc1155NonFungible2nd>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'NonFungible2nd', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"accountsByToken"`. +export const useWriteErc1155Mint = /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'mint', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"mintBatch"` */ -export function useErc1155AccountsByToken< - TFunctionName extends 'accountsByToken', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc1155ABI, functionName: 'accountsByToken', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"allowance"`. +export const useWriteErc1155MintBatch = /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'mintBatch', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"renounceOwnership"` */ -export function useErc1155Allowance>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'allowance', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"balanceOf"`. +export const useWriteErc1155RenounceOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'renounceOwnership', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"safeBatchTransferFrom"` */ -export function useErc1155BalanceOf>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'balanceOf', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"balanceOfBatch"`. - */ -export function useErc1155BalanceOfBatch>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'balanceOfBatch', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"contractURI"`. - */ -export function useErc1155ContractUri>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'contractURI', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"isApprovedForAll"`. - */ -export function useErc1155IsApprovedForAll< - TFunctionName extends 'isApprovedForAll', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc1155ABI, functionName: 'isApprovedForAll', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"name"`. - */ -export function useErc1155Name>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'name', ...config } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"owner"`. - */ -export function useErc1155Owner>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'owner', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"supportsInterface"`. - */ -export function useErc1155SupportsInterface< - TFunctionName extends 'supportsInterface', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc1155ABI, functionName: 'supportsInterface', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"symbol"`. - */ -export function useErc1155Symbol>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'symbol', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"tokensByAccount"`. - */ -export function useErc1155TokensByAccount< - TFunctionName extends 'tokensByAccount', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc1155ABI, functionName: 'tokensByAccount', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"totalHolders"`. - */ -export function useErc1155TotalHolders>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'totalHolders', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"totalSupply"`. - */ -export function useErc1155TotalSupply>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'totalSupply', ...config } as UseContractReadConfig< - typeof erc1155ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"uri"`. - */ -export function useErc1155Uri>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc1155ABI, functionName: 'uri', ...config } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__. - */ -export function useErc1155Write( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"approve"`. - */ -export function useErc1155Approve( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'approve', TMode> & { - functionName?: 'approve' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'approve' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'approve', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"mint"`. - */ -export function useErc1155Mint( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'mint', TMode> & { functionName?: 'mint' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'mint' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'mint', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"mintBatch"`. - */ -export function useErc1155MintBatch( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'mintBatch', TMode> & { - functionName?: 'mintBatch' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'mintBatch' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'mintBatch', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"renounceOwnership"`. - */ -export function useErc1155RenounceOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'renounceOwnership', TMode> & { - functionName?: 'renounceOwnership' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'renounceOwnership' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'renounceOwnership', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"safeBatchTransferFrom"`. - */ -export function useErc1155SafeBatchTransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'safeBatchTransferFrom', - TMode - > & { functionName?: 'safeBatchTransferFrom' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'safeBatchTransferFrom' - } = {} as any -) { - return useContractWrite({ - abi: erc1155ABI, +export const useWriteErc1155SafeBatchTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, functionName: 'safeBatchTransferFrom', - ...config, - } as any) -} - + }) + /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"safeTransferFrom"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"safeTransferFrom"` */ -export function useErc1155SafeTransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'safeTransferFrom', TMode> & { - functionName?: 'safeTransferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'safeTransferFrom' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'safeTransferFrom', ...config } as any) -} +export const useWriteErc1155SafeTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'safeTransferFrom', + }) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"setApprovalForAll"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"setApprovalForAll"` */ -export function useErc1155SetApprovalForAll( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'setApprovalForAll', TMode> & { - functionName?: 'setApprovalForAll' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setApprovalForAll' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'setApprovalForAll', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"transferOwnership"`. - */ -export function useErc1155TransferOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferOwnership', TMode> & { - functionName?: 'transferOwnership' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferOwnership' - } = {} as any -) { - return useContractWrite({ abi: erc1155ABI, functionName: 'transferOwnership', ...config } as any) -} - +export const useWriteErc1155SetApprovalForAll = + /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'setApprovalForAll', + }) + /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"transferOwnership"` */ -export function usePrepareErc1155Write( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, ...config } as UsePrepareContractWriteConfig) -} +export const useWriteErc1155TransferOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: erc1155Abi, + functionName: 'transferOwnership', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ */ -export function usePrepareErc1155Approve( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'approve', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'approve' - >) -} +export const useSimulateErc1155 = /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"mint"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"approve"` */ -export function usePrepareErc1155Mint(config: Omit, 'abi' | 'functionName'> = {} as any) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'mint', ...config } as UsePrepareContractWriteConfig) -} +export const useSimulateErc1155Approve = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'approve', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"mintBatch"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"mint"` */ -export function usePrepareErc1155MintBatch( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'mintBatch', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'mintBatch' - >) -} +export const useSimulateErc1155Mint = /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'mint', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"renounceOwnership"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"mintBatch"` */ -export function usePrepareErc1155RenounceOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'renounceOwnership', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'renounceOwnership' - >) -} +export const useSimulateErc1155MintBatch = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'mintBatch', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"safeBatchTransferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"renounceOwnership"` */ -export function usePrepareErc1155SafeBatchTransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'safeBatchTransferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'safeBatchTransferFrom' - >) -} +export const useSimulateErc1155RenounceOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'renounceOwnership', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"safeBatchTransferFrom"` + */ +export const useSimulateErc1155SafeBatchTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'safeBatchTransferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"safeTransferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"safeTransferFrom"` */ -export function usePrepareErc1155SafeTransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'safeTransferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'safeTransferFrom' - >) -} +export const useSimulateErc1155SafeTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'safeTransferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"setApprovalForAll"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"setApprovalForAll"` */ -export function usePrepareErc1155SetApprovalForAll( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'setApprovalForAll', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'setApprovalForAll' - >) -} +export const useSimulateErc1155SetApprovalForAll = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'setApprovalForAll', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc1155ABI}__ and `functionName` set to `"transferOwnership"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc1155Abi}__ and `functionName` set to `"transferOwnership"` */ -export function usePrepareErc1155TransferOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc1155ABI, functionName: 'transferOwnership', ...config } as UsePrepareContractWriteConfig< - typeof erc1155ABI, - 'transferOwnership' - >) -} +export const useSimulateErc1155TransferOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc1155Abi, + functionName: 'transferOwnership', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ */ -export function useErc1155Event(config: Omit, 'abi'> = {} as any) { - return useContractEvent({ abi: erc1155ABI, ...config } as UseContractEventConfig) -} +export const useWatchErc1155Event = /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, +}) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"Approval"` */ -export function useErc1155ApprovalEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc1155ABI, eventName: 'Approval', ...config } as UseContractEventConfig) -} +export const useWatchErc1155ApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'Approval', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"ApprovalForAll"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"ApprovalForAll"` */ -export function useErc1155ApprovalForAllEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc1155ABI, eventName: 'ApprovalForAll', ...config } as UseContractEventConfig) -} +export const useWatchErc1155ApprovalForAllEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'ApprovalForAll', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"OwnershipTransferred"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"OwnershipTransferred"` */ -export function useErc1155OwnershipTransferredEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc1155ABI, eventName: 'OwnershipTransferred', ...config } as UseContractEventConfig< - typeof erc1155ABI, - 'OwnershipTransferred' - >) -} +export const useWatchErc1155OwnershipTransferredEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'OwnershipTransferred', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"TransferBatch"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"TransferBatch"` */ -export function useErc1155TransferBatchEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc1155ABI, eventName: 'TransferBatch', ...config } as UseContractEventConfig) -} +export const useWatchErc1155TransferBatchEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'TransferBatch', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"TransferSingle"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"TransferSingle"` */ -export function useErc1155TransferSingleEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc1155ABI, eventName: 'TransferSingle', ...config } as UseContractEventConfig) -} +export const useWatchErc1155TransferSingleEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'TransferSingle', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc1155ABI}__ and `eventName` set to `"URI"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc1155Abi}__ and `eventName` set to `"URI"` */ -export function useErc1155UriEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc1155ABI, eventName: 'URI', ...config } as UseContractEventConfig) -} +export const useWatchErc1155UriEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc1155Abi, + eventName: 'URI', + }) diff --git a/integrations/erc1155/hooks/use-erc1155-metadata.ts b/integrations/erc1155/hooks/use-erc1155-metadata.ts index f24cafc9..f67f749c 100644 --- a/integrations/erc1155/hooks/use-erc1155-metadata.ts +++ b/integrations/erc1155/hooks/use-erc1155-metadata.ts @@ -1,6 +1,6 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" -import { useErc1155Uri } from "../generated/erc1155-wagmi" +import { useReadErc1155Uri } from "../generated/erc1155-wagmi" import { ERC1155Props } from "../utils/types" interface useERC1155MetadataProps @@ -37,33 +37,31 @@ export function useERC1155Metadata({ tokenId, ipfsGatewayUrl = "https://gateway.ipfs.io", }: useERC1155MetadataProps) { - const { data: tokenUriData } = useErc1155Uri({ + const { data: tokenUriData } = useReadErc1155Uri({ address, chainId, args: [tokenId], }) - const metadataQuery = useQuery( - [address, chainId, "uri", tokenId, tokenUriData], - { - queryFn: async () => { - if (!tokenUriData) throw new Error("No tokenUri found") - const uri = tokenUriData.replace("ipfs://", "") - const response = await fetch(`${ipfsGatewayUrl}/${uri}`) + const metadataQuery = useQuery({ + queryKey: [address, chainId, "uri", tokenId.toString(), tokenUriData], + queryFn: async () => { + if (!tokenUriData) throw new Error("No tokenUri found") + const uri = tokenUriData.replace("ipfs://", "") + const response = await fetch(`${ipfsGatewayUrl}/${uri}`) - const json = (await response.json()) as IERC1155Metadata + const json = (await response.json()) as IERC1155Metadata - if (!json.image) throw new Error("No image found in metadata") - if (!json.attributes) throw new Error("No attributes found in metadata") + if (!json.image) throw new Error("No image found in metadata") + if (!json.attributes) throw new Error("No attributes found in metadata") - json.image = json.image.startsWith("ipfs://") - ? json.image.replace("ipfs://", `${ipfsGatewayUrl}/`) - : json.image - return json - }, - enabled: !!tokenUriData, - } - ) + json.image = json.image.startsWith("ipfs://") + ? json.image.replace("ipfs://", `${ipfsGatewayUrl}/`) + : json.image + return json + }, + enabled: !!tokenUriData, + }) return metadataQuery } diff --git a/integrations/erc1155/hooks/use-erc1155-token-storage.ts b/integrations/erc1155/hooks/use-erc1155-token-storage.ts index 846767f0..263b16b1 100644 --- a/integrations/erc1155/hooks/use-erc1155-token-storage.ts +++ b/integrations/erc1155/hooks/use-erc1155-token-storage.ts @@ -1,6 +1,6 @@ import { useCallback } from "react" import { atom, SetStateAction, useAtom, WritableAtom } from "jotai" -import type { Address } from "wagmi" +import type { Address } from "viem" type TokenType = Address | undefined diff --git a/integrations/erc1155/utils/types.ts b/integrations/erc1155/utils/types.ts index 8b2f1a89..b4290e8c 100644 --- a/integrations/erc1155/utils/types.ts +++ b/integrations/erc1155/utils/types.ts @@ -1,5 +1,5 @@ import { HTMLAttributes } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" export interface ERC1155Props extends HTMLAttributes { address?: Address diff --git a/integrations/erc20/components/erc20-deploy.tsx b/integrations/erc20/components/erc20-deploy.tsx index f6567db7..fec731ca 100644 --- a/integrations/erc20/components/erc20-deploy.tsx +++ b/integrations/erc20/components/erc20-deploy.tsx @@ -31,6 +31,7 @@ export function DeployERC20Contract() { let hash: `0x${string}` | undefined try { + // @ts-ignore hash = await walletClient.deployContract({ abi: erc20MintableABI, bytecode: erc20MintableByteCode, @@ -44,6 +45,7 @@ export function DeployERC20Contract() { setIsSigning(false) setIsWaitingTransaction(true) try { + // @ts-ignore const receipt = await publicClient.waitForTransactionReceipt({ hash }) if (!receipt.contractAddress) return diff --git a/integrations/erc20/components/erc20-event-mint.tsx b/integrations/erc20/components/erc20-event-mint.tsx index 00e00db4..9b63af2f 100644 --- a/integrations/erc20/components/erc20-event-mint.tsx +++ b/integrations/erc20/components/erc20-event-mint.tsx @@ -1,8 +1,7 @@ import { useState } from "react" -import { formatEther, zeroAddress } from "viem" -import type { Address } from "wagmi" +import { formatEther, zeroAddress, type Address } from "viem" -import { useErc20TransferEvent } from "../generated/erc20-wagmi" +import { useWatchErc20TransferEvent } from "../generated/erc20-wagmi" import { useERC20TokenStorage } from "../hooks/use-erc20-token-storage" export default function ERC20EventMint() { @@ -13,9 +12,9 @@ export default function ERC20EventMint() { amount: bigint }>() - useErc20TransferEvent({ + useWatchErc20TransferEvent({ address: token, - listener(logs) { + onLogs(logs) { const { args } = logs[0] const { _from, _to, _value } = args if (_from == zeroAddress && _to && _value) { diff --git a/integrations/erc20/components/erc20-event-transfer.tsx b/integrations/erc20/components/erc20-event-transfer.tsx index 694a5292..10915553 100644 --- a/integrations/erc20/components/erc20-event-transfer.tsx +++ b/integrations/erc20/components/erc20-event-transfer.tsx @@ -1,8 +1,7 @@ import { useState } from "react" -import { formatEther, zeroAddress } from "viem" -import type { Address } from "wagmi" +import { formatEther, zeroAddress, type Address } from "viem" -import { useErc20TransferEvent } from "../generated/erc20-wagmi" +import { useWatchErc20TransferEvent } from "../generated/erc20-wagmi" import { useERC20TokenStorage } from "../hooks/use-erc20-token-storage" export default function ERC20EventTransfer() { @@ -13,9 +12,9 @@ export default function ERC20EventTransfer() { amount: bigint }>() - useErc20TransferEvent({ + useWatchErc20TransferEvent({ address: token, - listener(logs) { + onLogs(logs) { const { args } = logs[0] const { _from, _to, _value } = args if (_from !== zeroAddress && _from && _to && _value) { diff --git a/integrations/erc20/components/erc20-read.tsx b/integrations/erc20/components/erc20-read.tsx index 59bba516..9e72dde3 100644 --- a/integrations/erc20/components/erc20-read.tsx +++ b/integrations/erc20/components/erc20-read.tsx @@ -2,8 +2,8 @@ import { HTMLAttributes } from "react" import { ConnectButton } from "@rainbow-me/rainbowkit" -import { formatUnits } from "viem" -import { Address, useAccount } from "wagmi" +import { formatUnits, type Address } from "viem" +import { useAccount } from "wagmi" import { cn } from "@/lib/utils" import { Card, CardContent, CardFooter } from "@/components/ui/card" @@ -12,11 +12,11 @@ import { IsWalletConnected } from "@/components/shared/is-wallet-connected" import { IsWalletDisconnected } from "@/components/shared/is-wallet-disconnected" import { - useErc20BalanceOf, - useErc20Decimals, - useErc20Name, - useErc20Symbol, - useErc20TotalSupply, + useReadErc20BalanceOf, + useReadErc20Decimals, + useReadErc20Name, + useReadErc20Symbol, + useReadErc20TotalSupply, } from "../generated/erc20-wagmi" interface ERC20Props extends HTMLAttributes { @@ -44,7 +44,7 @@ export function ERC20Name({ className, ...props }: ERC20ChainIdProps) { - const { data } = useErc20Name({ + const { data } = useReadErc20Name({ address, chainId, }) @@ -61,7 +61,7 @@ export function ERC20Symbol({ className, ...props }: ERC20ChainIdProps) { - const { data } = useErc20Symbol({ + const { data } = useReadErc20Symbol({ address, chainId, }) @@ -78,12 +78,12 @@ export function ERC20TotalSupply({ className, ...props }: ERC20ChainIdProps) { - const { data: decimals } = useErc20Decimals({ + const { data: decimals } = useReadErc20Decimals({ address, chainId, }) - const { data } = useErc20TotalSupply({ + const { data } = useReadErc20TotalSupply({ address, chainId, }) @@ -101,7 +101,7 @@ export function ERC20Decimals({ className, ...props }: ERC20ChainIdProps) { - const { data } = useErc20Decimals({ + const { data } = useReadErc20Decimals({ address, chainId, }) @@ -119,15 +119,14 @@ export function ERC20Balance({ ...props }: ERC20ChainIdProps) { const { address: accountAddress } = useAccount() - const { data: decimals } = useErc20Decimals({ + const { data: decimals } = useReadErc20Decimals({ address, chainId, }) - const { data } = useErc20BalanceOf({ + const { data } = useReadErc20BalanceOf({ chainId, address, args: accountAddress ? [accountAddress] : undefined, - watch: true, }) if (!data || !decimals) return null diff --git a/integrations/erc20/components/erc20-write-mint.tsx b/integrations/erc20/components/erc20-write-mint.tsx index 6fb272d5..5274b0fc 100644 --- a/integrations/erc20/components/erc20-write-mint.tsx +++ b/integrations/erc20/components/erc20-write-mint.tsx @@ -1,8 +1,8 @@ import { ConnectButton } from "@rainbow-me/rainbowkit" import { useForm } from "react-hook-form" import { useDebounce } from "usehooks-ts" -import { BaseError, parseEther } from "viem" -import { Address, useAccount, useWaitForTransaction } from "wagmi" +import { parseEther, type Address, type BaseError } from "viem" +import { useAccount, useWaitForTransactionReceipt } from "wagmi" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Separator } from "@/components/ui/separator" @@ -12,8 +12,8 @@ import { IsWalletConnected } from "@/components/shared/is-wallet-connected" import { IsWalletDisconnected } from "@/components/shared/is-wallet-disconnected" import { - useErc20MintableMint, - usePrepareErc20MintableMint, + useSimulateErc20MintableMint, + useWriteErc20MintableMint, } from "../generated/erc20-wagmi" import ERC20EventMint from "./erc20-event-mint" @@ -32,27 +32,33 @@ function ERC20ContractMintTokens({ address }: ERC20WriteMintProps) { debouncedAmount && !isNaN(Number(debouncedAmount)) ) - const { config, error, isError } = usePrepareErc20MintableMint({ + const { + data: config, + error, + isError, + } = useSimulateErc20MintableMint({ address, args: accountAddress && isValidAmount ? [accountAddress, parseEther(`${Number(debouncedAmount)}`)] : undefined, - enabled: Boolean(address && isValidAmount), + query: { + enabled: Boolean(accountAddress && isValidAmount), + }, }) const { data, - write, - isLoading: isLoadingWrite, - } = useErc20MintableMint(config) + writeContract, + isPending: isLoadingWrite, + } = useWriteErc20MintableMint() - const { isLoading: isLoadingTx, isSuccess } = useWaitForTransaction({ - hash: data?.hash, + const { isLoading: isLoadingTx, isSuccess } = useWaitForTransactionReceipt({ + hash: data, }) const onSubmit = () => { - write?.() + writeContract?.(config!.request) } return ( @@ -64,13 +70,13 @@ function ERC20ContractMintTokens({ address }: ERC20WriteMintProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Minting..." type="submit" - write={!!write} + write={!!writeContract} > Mint { - write?.() + writeContract?.(config!.request) } return ( @@ -65,13 +75,13 @@ export function ERC20ContractTransferTokens({ isLoadingWrite={isLoadingWrite} loadingTxText="Transferring..." type="submit" - write={!!write} + write={!!writeContract} > Transfer >( - config: Omit, 'abi'> = {} as any -) { - return useContractRead({ abi: erc20ABI, ...config } as UseContractReadConfig) -} +export const useReadErc20Name = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'name', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"totalSupply"` */ -export function useErc20Name>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'name', ...config } as UseContractReadConfig) -} +export const useReadErc20TotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'totalSupply', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"totalSupply"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"balances"` */ -export function useErc20TotalSupply>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'totalSupply', ...config } as UseContractReadConfig< - typeof erc20ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20Balances = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'balances', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"balances"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"decimals"` */ -export function useErc20Balances>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'balances', ...config } as UseContractReadConfig) -} +export const useReadErc20Decimals = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'decimals', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"decimals"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"allowed"` */ -export function useErc20Decimals>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'decimals', ...config } as UseContractReadConfig) -} +export const useReadErc20Allowed = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'allowed', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"allowed"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"balanceOf"` */ -export function useErc20Allowed>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'allowed', ...config } as UseContractReadConfig) -} +export const useReadErc20BalanceOf = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'balanceOf', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"symbol"` */ -export function useErc20BalanceOf>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'balanceOf', ...config } as UseContractReadConfig< - typeof erc20ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20Symbol = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'symbol', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"symbol"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"allowance"` */ -export function useErc20Symbol>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'symbol', ...config } as UseContractReadConfig) -} +export const useReadErc20Allowance = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'allowance', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"allowance"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ */ -export function useErc20Allowance>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20ABI, functionName: 'allowance', ...config } as UseContractReadConfig< - typeof erc20ABI, - TFunctionName, - TSelectData - >) -} +export const useWriteErc20 = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"approve"` */ -export function useErc20Write( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: erc20ABI, ...config } as any) -} +export const useWriteErc20Approve = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'approve', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transferFrom"` */ -export function useErc20Approve( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'approve', TMode> & { - functionName?: 'approve' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'approve' - } = {} as any -) { - return useContractWrite({ abi: erc20ABI, functionName: 'approve', ...config } as any) -} +export const useWriteErc20TransferFrom = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'transferFrom', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transfer"` */ -export function useErc20TransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferFrom', TMode> & { - functionName?: 'transferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferFrom' - } = {} as any -) { - return useContractWrite({ abi: erc20ABI, functionName: 'transferFrom', ...config } as any) -} +export const useWriteErc20Transfer = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'transfer', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ */ -export function useErc20Transfer( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transfer', TMode> & { - functionName?: 'transfer' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transfer' - } = {} as any -) { - return useContractWrite({ abi: erc20ABI, functionName: 'transfer', ...config } as any) -} +export const useSimulateErc20 = /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"approve"` */ -export function usePrepareErc20Write( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20ABI, ...config } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20Approve = /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, + functionName: 'approve', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transferFrom"` */ -export function usePrepareErc20Approve(config: Omit, 'abi' | 'functionName'> = {} as any) { - return usePrepareContractWrite({ abi: erc20ABI, functionName: 'approve', ...config } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20TransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transfer"` */ -export function usePrepareErc20TransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20ABI, functionName: 'transferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc20ABI, - 'transferFrom' - >) -} +export const useSimulateErc20Transfer = /*#__PURE__*/ createUseSimulateContract( + { abi: erc20Abi, functionName: 'transfer' }, +) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ */ -export function usePrepareErc20Transfer( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20ABI, functionName: 'transfer', ...config } as UsePrepareContractWriteConfig) -} +export const useWatchErc20Event = /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, +}) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ and `eventName` set to `"Transfer"` */ -export function useErc20Event(config: Omit, 'abi'> = {} as any) { - return useContractEvent({ abi: erc20ABI, ...config } as UseContractEventConfig) -} +export const useWatchErc20TransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, + eventName: 'Transfer', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ and `eventName` set to `"Approval"` */ -export function useErc20TransferEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc20ABI, eventName: 'Transfer', ...config } as UseContractEventConfig) -} +export const useWatchErc20ApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, + eventName: 'Approval', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ */ -export function useErc20ApprovalEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc20ABI, eventName: 'Approval', ...config } as UseContractEventConfig) -} +export const useReadErc20Mintable = /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"allowance"` */ -export function useErc20MintableRead>( - config: Omit, 'abi'> = {} as any -) { - return useContractRead({ abi: erc20MintableABI, ...config } as UseContractReadConfig) -} +export const useReadErc20MintableAllowance = + /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, + functionName: 'allowance', + }) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"allowance"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"balanceOf"` */ -export function useErc20MintableAllowance< - TFunctionName extends 'allowance', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc20MintableABI, functionName: 'allowance', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20MintableBalanceOf = + /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, + functionName: 'balanceOf', + }) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"decimals"` */ -export function useErc20MintableBalanceOf< - TFunctionName extends 'balanceOf', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc20MintableABI, functionName: 'balanceOf', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20MintableDecimals = /*#__PURE__*/ createUseReadContract( + { abi: erc20MintableAbi, functionName: 'decimals' }, +) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"decimals"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"name"` */ -export function useErc20MintableDecimals>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20MintableABI, functionName: 'decimals', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20MintableName = /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, + functionName: 'name', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"symbol"` */ -export function useErc20MintableName>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20MintableABI, functionName: 'name', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"symbol"`. +export const useReadErc20MintableSymbol = /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, + functionName: 'symbol', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"totalSupply"` */ -export function useErc20MintableSymbol>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc20MintableABI, functionName: 'symbol', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"totalSupply"`. +export const useReadErc20MintableTotalSupply = + /*#__PURE__*/ createUseReadContract({ + abi: erc20MintableAbi, + functionName: 'totalSupply', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ */ -export function useErc20MintableTotalSupply< - TFunctionName extends 'totalSupply', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc20MintableABI, functionName: 'totalSupply', ...config } as UseContractReadConfig< - typeof erc20MintableABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__. - */ -export function useErc20MintableWrite( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: erc20MintableABI, ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"approve"`. - */ -export function useErc20MintableApprove( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'approve', TMode> & { - functionName?: 'approve' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'approve' - } = {} as any -) { - return useContractWrite({ abi: erc20MintableABI, functionName: 'approve', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"decreaseAllowance"`. - */ -export function useErc20MintableDecreaseAllowance( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'decreaseAllowance', - TMode - > & { functionName?: 'decreaseAllowance' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'decreaseAllowance' - } = {} as any -) { - return useContractWrite({ - abi: erc20MintableABI, +export const useWriteErc20Mintable = /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"approve"` + */ +export const useWriteErc20MintableApprove = + /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, + functionName: 'approve', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"decreaseAllowance"` + */ +export const useWriteErc20MintableDecreaseAllowance = + /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, functionName: 'decreaseAllowance', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"increaseAllowance"`. - */ -export function useErc20MintableIncreaseAllowance( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'increaseAllowance', - TMode - > & { functionName?: 'increaseAllowance' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'increaseAllowance' - } = {} as any -) { - return useContractWrite({ - abi: erc20MintableABI, + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"increaseAllowance"` + */ +export const useWriteErc20MintableIncreaseAllowance = + /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, functionName: 'increaseAllowance', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"mint"`. - */ -export function useErc20MintableMint( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'mint', TMode> & { functionName?: 'mint' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'mint' - } = {} as any -) { - return useContractWrite({ abi: erc20MintableABI, functionName: 'mint', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"transfer"`. - */ -export function useErc20MintableTransfer( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transfer', TMode> & { - functionName?: 'transfer' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transfer' - } = {} as any -) { - return useContractWrite({ abi: erc20MintableABI, functionName: 'transfer', ...config } as any) -} + }) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"transferFrom"`. - */ -export function useErc20MintableTransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferFrom', TMode> & { - functionName?: 'transferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferFrom' - } = {} as any -) { - return useContractWrite({ abi: erc20MintableABI, functionName: 'transferFrom', ...config } as any) -} + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"mint"` + */ +export const useWriteErc20MintableMint = /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, + functionName: 'mint', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"transfer"` */ -export function usePrepareErc20MintableWrite( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, ...config } as UsePrepareContractWriteConfig) -} +export const useWriteErc20MintableTransfer = + /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, + functionName: 'transfer', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"transferFrom"` */ -export function usePrepareErc20MintableApprove( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'approve', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'approve' - >) -} +export const useWriteErc20MintableTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: erc20MintableAbi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"decreaseAllowance"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ */ -export function usePrepareErc20MintableDecreaseAllowance( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'decreaseAllowance', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'decreaseAllowance' - >) -} +export const useSimulateErc20Mintable = /*#__PURE__*/ createUseSimulateContract( + { abi: erc20MintableAbi }, +) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"increaseAllowance"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"approve"` */ -export function usePrepareErc20MintableIncreaseAllowance( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'increaseAllowance', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'increaseAllowance' - >) -} +export const useSimulateErc20MintableApprove = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'approve', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"mint"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"decreaseAllowance"` */ -export function usePrepareErc20MintableMint( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'mint', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'mint' - >) -} +export const useSimulateErc20MintableDecreaseAllowance = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'decreaseAllowance', + }) -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"transfer"`. - */ -export function usePrepareErc20MintableTransfer( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'transfer', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'transfer' - >) -} +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"increaseAllowance"` + */ +export const useSimulateErc20MintableIncreaseAllowance = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'increaseAllowance', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"mint"` + */ +export const useSimulateErc20MintableMint = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'mint', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20MintableABI}__ and `functionName` set to `"transferFrom"`. - */ -export function usePrepareErc20MintableTransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc20MintableABI, functionName: 'transferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc20MintableABI, - 'transferFrom' - >) -} + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"transfer"` + */ +export const useSimulateErc20MintableTransfer = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'transfer', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20MintableAbi}__ and `functionName` set to `"transferFrom"` + */ +export const useSimulateErc20MintableTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20MintableAbi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20MintableABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20MintableAbi}__ */ -export function useErc20MintableEvent( - config: Omit, 'abi'> = {} as any -) { - return useContractEvent({ abi: erc20MintableABI, ...config } as UseContractEventConfig) -} +export const useWatchErc20MintableEvent = + /*#__PURE__*/ createUseWatchContractEvent({ abi: erc20MintableAbi }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20MintableABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20MintableAbi}__ and `eventName` set to `"Approval"` */ -export function useErc20MintableApprovalEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc20MintableABI, eventName: 'Approval', ...config } as UseContractEventConfig) -} +export const useWatchErc20MintableApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20MintableAbi, + eventName: 'Approval', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20MintableABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20MintableAbi}__ and `eventName` set to `"Transfer"` */ -export function useErc20MintableTransferEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc20MintableABI, eventName: 'Transfer', ...config } as UseContractEventConfig) -} +export const useWatchErc20MintableTransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20MintableAbi, + eventName: 'Transfer', + }) diff --git a/integrations/erc20/hooks/use-erc20-token-storage.ts b/integrations/erc20/hooks/use-erc20-token-storage.ts index b3d3dd3f..6b7f8310 100644 --- a/integrations/erc20/hooks/use-erc20-token-storage.ts +++ b/integrations/erc20/hooks/use-erc20-token-storage.ts @@ -1,6 +1,6 @@ import { useCallback } from "react" import { atom, SetStateAction, useAtom, WritableAtom } from "jotai" -import type { Address } from "wagmi" +import type { Address } from "viem" type TokenType = Address | undefined diff --git a/integrations/erc721/components/erc721-deploy.tsx b/integrations/erc721/components/erc721-deploy.tsx index 737e4541..4e936cf2 100644 --- a/integrations/erc721/components/erc721-deploy.tsx +++ b/integrations/erc721/components/erc721-deploy.tsx @@ -1,6 +1,7 @@ "use client" import { FormEvent, useState } from "react" +import { deployContract, waitForTransactionReceipt } from "viem/actions" import { usePublicClient, useWalletClient } from "wagmi" import { Card, CardContent, CardFooter } from "@/components/ui/card" @@ -30,7 +31,8 @@ export function ERC721Deploy() { let hash: `0x${string}` | undefined try { - hash = await walletClient.deployContract({ + // @ts-ignore + hash = await deployContract(walletClient, { abi: erc721ABI, bytecode: erc721ByteCode, args: [name, symbol], @@ -42,7 +44,11 @@ export function ERC721Deploy() { setIsSigning(false) setIsWaitingTransaction(true) try { - const receipt = await publicClient.waitForTransactionReceipt({ hash }) + if (!publicClient || !hash) return + const receipt = await waitForTransactionReceipt(publicClient, { + hash, + }) + if (!receipt.contractAddress) return setIsWaitingTransaction(false) diff --git a/integrations/erc721/components/erc721-name.tsx b/integrations/erc721/components/erc721-name.tsx index 0bb0daa0..9f7924a0 100644 --- a/integrations/erc721/components/erc721-name.tsx +++ b/integrations/erc721/components/erc721-name.tsx @@ -1,4 +1,4 @@ -import { useErc721Name } from "../generated/erc721-wagmi" +import { useReadErc721Name } from "../generated/erc721-wagmi" import { ERC721Props } from "../utils/types" export function ERC721Name({ @@ -7,7 +7,7 @@ export function ERC721Name({ className, ...props }: ERC721Props) { - const { data } = useErc721Name({ + const { data } = useReadErc721Name({ address, chainId, }) diff --git a/integrations/erc721/components/erc721-owner-of.tsx b/integrations/erc721/components/erc721-owner-of.tsx index df22f9de..aff72d5c 100644 --- a/integrations/erc721/components/erc721-owner-of.tsx +++ b/integrations/erc721/components/erc721-owner-of.tsx @@ -1,4 +1,4 @@ -import { useErc721OwnerOf } from "../generated/erc721-wagmi" +import { useReadErc721OwnerOf } from "../generated/erc721-wagmi" import { ERC721Props } from "../utils/types" interface ERC721OwnerOfProps extends ERC721Props { @@ -12,11 +12,10 @@ export function ERC721OwnerOf({ tokenId, ...props }: ERC721OwnerOfProps) { - const { data } = useErc721OwnerOf({ + const { data } = useReadErc721OwnerOf({ address, chainId, args: [tokenId], - watch: true, }) return ( diff --git a/integrations/erc721/components/erc721-read.tsx b/integrations/erc721/components/erc721-read.tsx index b11b5692..bceef5da 100644 --- a/integrations/erc721/components/erc721-read.tsx +++ b/integrations/erc721/components/erc721-read.tsx @@ -1,7 +1,7 @@ "use client" import { useState } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Separator } from "@/components/ui/separator" diff --git a/integrations/erc721/components/erc721-set-token-storage.tsx b/integrations/erc721/components/erc721-set-token-storage.tsx index 0f171e6a..635e05c2 100644 --- a/integrations/erc721/components/erc721-set-token-storage.tsx +++ b/integrations/erc721/components/erc721-set-token-storage.tsx @@ -1,5 +1,5 @@ import { FormEvent, useEffect, useMemo, useState } from "react" -import { Address, isAddress } from "viem" +import { isAddress, type Address } from "viem" import { Button } from "@/components/ui/button" import { Card, CardContent, CardFooter } from "@/components/ui/card" diff --git a/integrations/erc721/components/erc721-symbol.tsx b/integrations/erc721/components/erc721-symbol.tsx index 24fe3ff2..dc9b3b5c 100644 --- a/integrations/erc721/components/erc721-symbol.tsx +++ b/integrations/erc721/components/erc721-symbol.tsx @@ -1,4 +1,4 @@ -import { useErc721Symbol } from "../generated/erc721-wagmi" +import { useReadErc721Symbol } from "../generated/erc721-wagmi" import { ERC721Props } from "../utils/types" export function ERC721Symbol({ @@ -7,7 +7,7 @@ export function ERC721Symbol({ className, ...props }: ERC721Props) { - const { data } = useErc721Symbol({ + const { data } = useReadErc721Symbol({ address, chainId, }) diff --git a/integrations/erc721/components/erc721-total-supply.tsx b/integrations/erc721/components/erc721-total-supply.tsx index 346c963f..8088cbe1 100644 --- a/integrations/erc721/components/erc721-total-supply.tsx +++ b/integrations/erc721/components/erc721-total-supply.tsx @@ -1,4 +1,4 @@ -import { useErc721TotalSupply } from "../generated/erc721-wagmi" +import { useReadErc721TotalSupply } from "../generated/erc721-wagmi" import { ERC721Props } from "../utils/types" export function ERC721TotalSupply({ @@ -7,10 +7,9 @@ export function ERC721TotalSupply({ className, ...props }: ERC721Props) { - const { data } = useErc721TotalSupply({ + const { data } = useReadErc721TotalSupply({ address, chainId, - watch: true, }) return ( diff --git a/integrations/erc721/components/erc721-write-approve.tsx b/integrations/erc721/components/erc721-write-approve.tsx index ec484632..f9bb9145 100644 --- a/integrations/erc721/components/erc721-write-approve.tsx +++ b/integrations/erc721/components/erc721-write-approve.tsx @@ -1,7 +1,7 @@ import { useForm } from "react-hook-form" import { useDebounce } from "usehooks-ts" -import { BaseError } from "viem" -import { Address, useWaitForTransaction } from "wagmi" +import { type Address, type BaseError } from "viem" +import { useWaitForTransactionReceipt } from "wagmi" import { Card, CardContent, CardFooter } from "@/components/ui/card" import { Separator } from "@/components/ui/separator" @@ -9,8 +9,8 @@ import { ContractWriteButton } from "@/components/blockchain/contract-write-butt import { TransactionStatus } from "@/components/blockchain/transaction-status" import { - useErc721Approve, - usePrepareErc721Approve, + useSimulateErc721Approve, + useWriteErc721Approve, } from "../generated/erc721-wagmi" interface Erc721WriteApproveProps { @@ -24,23 +24,33 @@ export function Erc721WriteApprove({ address }: Erc721WriteApproveProps) { const debouncedToAddress = useDebounce(watchToAddress, 500) const debouncedTokenId = useDebounce(watchTokenId, 500) - const { config, error, isError } = usePrepareErc721Approve({ + const { + data: config, + error, + isError, + } = useSimulateErc721Approve({ address, args: debouncedToAddress && debouncedTokenId ? [debouncedToAddress, BigInt(debouncedTokenId)] : undefined, - enabled: Boolean(debouncedToAddress && debouncedTokenId), + query: { + enabled: Boolean(debouncedToAddress && debouncedTokenId), + }, }) - const { data, write, isLoading: isLoadingWrite } = useErc721Approve(config) + const { + data, + writeContract, + isPending: isLoadingWrite, + } = useWriteErc721Approve() - const { isLoading: isLoadingTx, isSuccess } = useWaitForTransaction({ - hash: data?.hash, + const { isLoading: isLoadingTx, isSuccess } = useWaitForTransactionReceipt({ + hash: data, }) const onSubmit = () => { - write?.() + writeContract?.(config!.request) } return ( @@ -56,13 +66,13 @@ export function Erc721WriteApprove({ address }: Erc721WriteApproveProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Approving..." type="submit" - write={!!write} + write={!!writeContract} > Approve { - write?.() + writeContract?.(config!.request) } return ( @@ -66,13 +76,13 @@ export function Erc721WriteMint({ address }: Erc721WriteMintProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Minting..." type="submit" - write={!!write} + write={!!writeContract} > Mint { - write?.() + writeContract?.(config!.request) } return ( @@ -88,13 +89,13 @@ export function Erc721WriteTransfer({ address }: Erc721WriteTransferProps) { isLoadingWrite={isLoadingWrite} loadingTxText="Transferring..." type="submit" - write={!!write} + write={!!writeContract} > Transfer >( - config: Omit, 'abi'> = {} as any -) { - return useContractRead({ abi: erc721ABI, ...config } as UseContractReadConfig) -} +export const useReadErc721IsApprovedForAll = + /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'isApprovedForAll', + }) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"name"` */ -export function useErc721BalanceOf>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'balanceOf', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc721Name = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'name', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"getApproved"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"owner"` */ -export function useErc721GetApproved>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'getApproved', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc721Owner = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'owner', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"isApprovedForAll"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"ownerOf"` */ -export function useErc721IsApprovedForAll< - TFunctionName extends 'isApprovedForAll', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc721ABI, functionName: 'isApprovedForAll', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc721OwnerOf = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'ownerOf', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"supportsInterface"` */ -export function useErc721Name>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'name', ...config } as UseContractReadConfig) -} +export const useReadErc721SupportsInterface = + /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'supportsInterface', + }) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"owner"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"symbol"` */ -export function useErc721Owner>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'owner', ...config } as UseContractReadConfig) -} +export const useReadErc721Symbol = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'symbol', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"ownerOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"tokenByIndex"` */ -export function useErc721OwnerOf>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'ownerOf', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc721TokenByIndex = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'tokenByIndex', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"supportsInterface"`. - */ -export function useErc721SupportsInterface< - TFunctionName extends 'supportsInterface', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc721ABI, functionName: 'supportsInterface', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"tokenOfOwnerByIndex"` + */ +export const useReadErc721TokenOfOwnerByIndex = + /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'tokenOfOwnerByIndex', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"tokenURI"` + */ +export const useReadErc721TokenUri = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'tokenURI', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"totalSupply"` + */ +export const useReadErc721TotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: erc721Abi, + functionName: 'totalSupply', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ + */ +export const useWriteErc721 = /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"approve"` + */ +export const useWriteErc721Approve = /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'approve', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"renounceOwnership"` + */ +export const useWriteErc721RenounceOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'renounceOwnership', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"safeMint"` + */ +export const useWriteErc721SafeMint = /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'safeMint', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"safeTransferFrom"` + */ +export const useWriteErc721SafeTransferFrom = + /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'safeTransferFrom', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"setApprovalForAll"` + */ +export const useWriteErc721SetApprovalForAll = + /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'setApprovalForAll', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"transferFrom"` + */ +export const useWriteErc721TransferFrom = /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'transferFrom', +}) -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"symbol"`. - */ -export function useErc721Symbol>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'symbol', ...config } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"tokenByIndex"`. - */ -export function useErc721TokenByIndex>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'tokenByIndex', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"tokenOfOwnerByIndex"`. - */ -export function useErc721TokenOfOwnerByIndex< - TFunctionName extends 'tokenOfOwnerByIndex', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: erc721ABI, functionName: 'tokenOfOwnerByIndex', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"tokenURI"`. - */ -export function useErc721TokenUri>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'tokenURI', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"totalSupply"`. - */ -export function useErc721TotalSupply>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: erc721ABI, functionName: 'totalSupply', ...config } as UseContractReadConfig< - typeof erc721ABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__. - */ -export function useErc721Write( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"approve"`. - */ -export function useErc721Approve( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'approve', TMode> & { - functionName?: 'approve' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'approve' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'approve', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"renounceOwnership"`. - */ -export function useErc721RenounceOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'renounceOwnership', TMode> & { - functionName?: 'renounceOwnership' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'renounceOwnership' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'renounceOwnership', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"safeMint"`. - */ -export function useErc721SafeMint( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'safeMint', TMode> & { - functionName?: 'safeMint' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'safeMint' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'safeMint', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"safeTransferFrom"`. - */ -export function useErc721SafeTransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'safeTransferFrom', TMode> & { - functionName?: 'safeTransferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'safeTransferFrom' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'safeTransferFrom', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"setApprovalForAll"`. - */ -export function useErc721SetApprovalForAll( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'setApprovalForAll', TMode> & { - functionName?: 'setApprovalForAll' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setApprovalForAll' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'setApprovalForAll', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"transferFrom"`. - */ -export function useErc721TransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferFrom', TMode> & { - functionName?: 'transferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferFrom' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'transferFrom', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"transferOwnership"`. - */ -export function useErc721TransferOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferOwnership', TMode> & { - functionName?: 'transferOwnership' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferOwnership' - } = {} as any -) { - return useContractWrite({ abi: erc721ABI, functionName: 'transferOwnership', ...config } as any) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__. - */ -export function usePrepareErc721Write( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, ...config } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"approve"`. - */ -export function usePrepareErc721Approve( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'approve', ...config } as UsePrepareContractWriteConfig) -} +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"transferOwnership"` + */ +export const useWriteErc721TransferOwnership = + /*#__PURE__*/ createUseWriteContract({ + abi: erc721Abi, + functionName: 'transferOwnership', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ + */ +export const useSimulateErc721 = /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"approve"` + */ +export const useSimulateErc721Approve = /*#__PURE__*/ createUseSimulateContract( + { abi: erc721Abi, functionName: 'approve' }, +) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"renounceOwnership"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"renounceOwnership"` */ -export function usePrepareErc721RenounceOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'renounceOwnership', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'renounceOwnership' - >) -} +export const useSimulateErc721RenounceOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'renounceOwnership', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"safeMint"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"safeMint"` */ -export function usePrepareErc721SafeMint( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'safeMint', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'safeMint' - >) -} +export const useSimulateErc721SafeMint = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'safeMint', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"safeTransferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"safeTransferFrom"` */ -export function usePrepareErc721SafeTransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'safeTransferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'safeTransferFrom' - >) -} +export const useSimulateErc721SafeTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'safeTransferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"setApprovalForAll"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"setApprovalForAll"` */ -export function usePrepareErc721SetApprovalForAll( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'setApprovalForAll', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'setApprovalForAll' - >) -} +export const useSimulateErc721SetApprovalForAll = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'setApprovalForAll', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"transferFrom"` */ -export function usePrepareErc721TransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'transferFrom', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'transferFrom' - >) -} +export const useSimulateErc721TransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc721ABI}__ and `functionName` set to `"transferOwnership"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc721Abi}__ and `functionName` set to `"transferOwnership"` */ -export function usePrepareErc721TransferOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: erc721ABI, functionName: 'transferOwnership', ...config } as UsePrepareContractWriteConfig< - typeof erc721ABI, - 'transferOwnership' - >) -} +export const useSimulateErc721TransferOwnership = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc721Abi, + functionName: 'transferOwnership', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ */ -export function useErc721Event(config: Omit, 'abi'> = {} as any) { - return useContractEvent({ abi: erc721ABI, ...config } as UseContractEventConfig) -} +export const useWatchErc721Event = /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, +}) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"Approval"` */ -export function useErc721ApprovalEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc721ABI, eventName: 'Approval', ...config } as UseContractEventConfig) -} +export const useWatchErc721ApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'Approval', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"ApprovalForAll"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"ApprovalForAll"` */ -export function useErc721ApprovalForAllEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc721ABI, eventName: 'ApprovalForAll', ...config } as UseContractEventConfig) -} +export const useWatchErc721ApprovalForAllEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'ApprovalForAll', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"BatchMetadataUpdate"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"BatchMetadataUpdate"` */ -export function useErc721BatchMetadataUpdateEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc721ABI, eventName: 'BatchMetadataUpdate', ...config } as UseContractEventConfig< - typeof erc721ABI, - 'BatchMetadataUpdate' - >) -} +export const useWatchErc721BatchMetadataUpdateEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'BatchMetadataUpdate', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"MetadataUpdate"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"MetadataUpdate"` */ -export function useErc721MetadataUpdateEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc721ABI, eventName: 'MetadataUpdate', ...config } as UseContractEventConfig) -} +export const useWatchErc721MetadataUpdateEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'MetadataUpdate', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"OwnershipTransferred"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"OwnershipTransferred"` */ -export function useErc721OwnershipTransferredEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: erc721ABI, eventName: 'OwnershipTransferred', ...config } as UseContractEventConfig< - typeof erc721ABI, - 'OwnershipTransferred' - >) -} +export const useWatchErc721OwnershipTransferredEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'OwnershipTransferred', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc721ABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc721Abi}__ and `eventName` set to `"Transfer"` */ -export function useErc721TransferEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: erc721ABI, eventName: 'Transfer', ...config } as UseContractEventConfig) -} +export const useWatchErc721TransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc721Abi, + eventName: 'Transfer', + }) diff --git a/integrations/erc721/hooks/use-erc721-metadata.ts b/integrations/erc721/hooks/use-erc721-metadata.ts index 62b38510..afb5ecde 100644 --- a/integrations/erc721/hooks/use-erc721-metadata.ts +++ b/integrations/erc721/hooks/use-erc721-metadata.ts @@ -1,6 +1,6 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" -import { useErc721TokenUri } from "../generated/erc721-wagmi" +import { useReadErc721TokenUri } from "../generated/erc721-wagmi" import { ERC721Props } from "../utils/types" interface useERC721MetadataProps @@ -36,32 +36,30 @@ export function useERC721Metadata({ tokenId, ipfsGatewayUrl = "https://cloudflare-ipfs.com/ipfs", }: useERC721MetadataProps) { - const { data: tokenUriData } = useErc721TokenUri({ + const { data: tokenUriData } = useReadErc721TokenUri({ address, chainId, args: [tokenId], }) - const metadataQuery = useQuery( - [address, chainId, "tokenUri", tokenId, tokenUriData], - { - queryFn: async () => { - if (!tokenUriData) throw new Error("No tokenUri found") - const uri = tokenUriData.replace("ipfs://", "") - const response = await fetch(`${ipfsGatewayUrl}/${uri}`) - const json = (await response.json()) as IERC721Metadata + const metadataQuery = useQuery({ + queryKey: [address, chainId, "tokenUri", tokenId.toString(), tokenUriData], + queryFn: async () => { + if (!tokenUriData) throw new Error("No tokenUri found") + const uri = tokenUriData.replace("ipfs://", "") + const response = await fetch(`${ipfsGatewayUrl}/${uri}`) + const json = (await response.json()) as IERC721Metadata - if (!json.image) throw new Error("No image found in metadata") - if (!json.attributes) throw new Error("No attributes found in metadata") + if (!json.image) throw new Error("No image found in metadata") + if (!json.attributes) throw new Error("No attributes found in metadata") - json.image = json.image.startsWith("ipfs://") - ? json.image.replace("ipfs://", `${ipfsGatewayUrl}/`) - : json.image - return json - }, - enabled: !!tokenUriData, - } - ) + json.image = json.image.startsWith("ipfs://") + ? json.image.replace("ipfs://", `${ipfsGatewayUrl}/`) + : json.image + return json + }, + enabled: !!tokenUriData, + }) return metadataQuery } diff --git a/integrations/erc721/hooks/use-erc721-token-storage.ts b/integrations/erc721/hooks/use-erc721-token-storage.ts index 618bb613..896686fb 100644 --- a/integrations/erc721/hooks/use-erc721-token-storage.ts +++ b/integrations/erc721/hooks/use-erc721-token-storage.ts @@ -1,6 +1,6 @@ import { useCallback } from "react" import { atom, SetStateAction, useAtom, WritableAtom } from "jotai" -import type { Address } from "wagmi" +import type { Address } from "viem" type TokenType = Address | undefined diff --git a/integrations/erc721/utils/types.ts b/integrations/erc721/utils/types.ts index 1828dc2b..646088cf 100644 --- a/integrations/erc721/utils/types.ts +++ b/integrations/erc721/utils/types.ts @@ -1,5 +1,5 @@ import { HTMLAttributes } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" export interface ERC721Props extends HTMLAttributes { address?: Address diff --git a/integrations/etherscan/components/transactions-table.tsx b/integrations/etherscan/components/transactions-table.tsx index e574b014..b254ae24 100644 --- a/integrations/etherscan/components/transactions-table.tsx +++ b/integrations/etherscan/components/transactions-table.tsx @@ -1,5 +1,5 @@ import { useMemo } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Address as AddressComponent } from "@/components/blockchain/address" diff --git a/integrations/etherscan/hooks/use-etherscan-account-transactions.ts b/integrations/etherscan/hooks/use-etherscan-account-transactions.ts index 488d2b36..8e93baac 100644 --- a/integrations/etherscan/hooks/use-etherscan-account-transactions.ts +++ b/integrations/etherscan/hooks/use-etherscan-account-transactions.ts @@ -1,4 +1,4 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" import { appEtherscanAccountTransactions } from "@/integrations/etherscan/actions/etherscan-account-transactions/client" @@ -6,11 +6,9 @@ export const useEtherscanAccountTransactions = ( params?: BlockPagination, queryKey?: any ) => { - return useQuery( - ["accountTransactions", params, queryKey], - () => appEtherscanAccountTransactions(params), - { - cacheTime: 0, - } - ) + return useQuery({ + queryKey: ["accountTransactions", params, queryKey], + queryFn: () => appEtherscanAccountTransactions(params), + gcTime: 0, + }) } diff --git a/integrations/etherscan/utils/types.ts b/integrations/etherscan/utils/types.ts index 7ae13fac..593a36d3 100644 --- a/integrations/etherscan/utils/types.ts +++ b/integrations/etherscan/utils/types.ts @@ -1,4 +1,4 @@ -import type { Address } from "wagmi" +import type { Address } from "viem" export interface Transaction { blockHash: string diff --git a/integrations/gelato/components/create-task/create-task.tsx b/integrations/gelato/components/create-task/create-task.tsx index b7b5c9d7..21231635 100644 --- a/integrations/gelato/components/create-task/create-task.tsx +++ b/integrations/gelato/components/create-task/create-task.tsx @@ -5,7 +5,7 @@ import { ethers } from "ethers" import moment from "moment" import { FormProvider, useForm } from "react-hook-form" import { FaExternalLinkAlt, FaSpinner } from "react-icons/fa" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { useEthersSigner } from "@/lib/hooks/web3/use-ethers-signer" import { Button } from "@/components/ui/button" @@ -66,14 +66,14 @@ export function CreateTask() { }, }) - const { chain } = useNetwork() + const { chain } = useAccount() const router = useRouter() const signer = useEthersSigner() const { - isLoading: createTaskIsLoading, + isPending: createTaskIsLoading, isError: createTaskIsError, mutateAsync: createTask, } = useNewTask() @@ -189,6 +189,7 @@ export function CreateTask() {
{shouldShowResolverInputs && } {shouldShowRestrictionInfo && ( + // @ts-ignore )} {shouldShowIntervalInput && } diff --git a/integrations/gelato/components/rename-task.tsx b/integrations/gelato/components/rename-task.tsx index 0405070d..e1a143a6 100644 --- a/integrations/gelato/components/rename-task.tsx +++ b/integrations/gelato/components/rename-task.tsx @@ -27,7 +27,7 @@ export function RenameTask({ mode: "all", }) - const { mutateAsync: renameTask, isLoading } = useRenameTask() + const { mutateAsync: renameTask, isPending } = useRenameTask() const onSubmit = async () => { const { name } = form.getValues() @@ -64,10 +64,10 @@ export function RenameTask({ diff --git a/integrations/gelato/components/task-view/task-view.tsx b/integrations/gelato/components/task-view/task-view.tsx index 67c09874..6d186112 100644 --- a/integrations/gelato/components/task-view/task-view.tsx +++ b/integrations/gelato/components/task-view/task-view.tsx @@ -3,7 +3,7 @@ import Link from "next/link" import moment from "moment" import { FaEdit, FaExternalLinkAlt, FaTimesCircle } from "react-icons/fa" import { FiChevronLeft } from "react-icons/fi" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { useAbi, useTask } from "../../hooks" import { useTaskResolver } from "../../hooks/use-task-resolver" @@ -30,7 +30,7 @@ export function TaskView({ taskId }: TasKViewProps) { const [showRename, setShowRename] = useState(false) const { data: taskWithName, isLoading, refetch } = useTask({ taskId }) - const { chain } = useNetwork() + const { chain } = useAccount() const { data: abi } = useAbi({ contractAddress: taskWithName?.task.execAddress as string, diff --git a/integrations/gelato/hooks/use-abi.ts b/integrations/gelato/hooks/use-abi.ts index bb2c8628..d8fdcd7c 100644 --- a/integrations/gelato/hooks/use-abi.ts +++ b/integrations/gelato/hooks/use-abi.ts @@ -1,7 +1,7 @@ import { useQuery } from "@tanstack/react-query" import axios from "axios" import { isAddress } from "viem" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { GELATO_CONSTANTS } from "../utils/constants" import { ExplorerFetchAbiResponse } from "../utils/types" @@ -28,9 +28,10 @@ const abiFetcher = async ({ } export const useAbi = ({ contractAddress }: { contractAddress: string }) => { - const { chain } = useNetwork() + const { chain } = useAccount() - return useQuery(["gelato-contract-abi", chain?.id, contractAddress], { + return useQuery({ + queryKey: ["gelato-contract-abi", chain?.id, contractAddress], queryFn: () => { if (!chain?.id || !contractAddress || !isAddress(contractAddress)) { throw new Error("Invalid Parameters") diff --git a/integrations/gelato/hooks/use-active-tasks.ts b/integrations/gelato/hooks/use-active-tasks.ts index 4a4e1362..043d134b 100644 --- a/integrations/gelato/hooks/use-active-tasks.ts +++ b/integrations/gelato/hooks/use-active-tasks.ts @@ -1,6 +1,6 @@ import { useQuery } from "@tanstack/react-query" import { request } from "graphql-request" -import { useAccount, useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { GetAllTaskDataDocument, @@ -27,13 +27,13 @@ const fetchActiveTasks = ({ address, gqlEndpoint }: FetchActiveTasksProps) => { } export const useActiveTasks = () => { - const { chain } = useNetwork() - const { address } = useAccount() + const { address, chain } = useAccount() const { automateSdk } = useGelatoAutomateSdk() const chainId = chain?.id - return useQuery(["gelato-tasks", address, automateSdk], { + return useQuery({ + queryKey: ["gelato-tasks", address, automateSdk], queryFn: async () => { if (!chainId || !GELATO_CONSTANTS.networks[chainId] || !address) throw new Error("Missing Parameters") diff --git a/integrations/gelato/hooks/use-automate-sdk.ts b/integrations/gelato/hooks/use-automate-sdk.ts index 553d05dd..71af4f10 100644 --- a/integrations/gelato/hooks/use-automate-sdk.ts +++ b/integrations/gelato/hooks/use-automate-sdk.ts @@ -1,13 +1,13 @@ import { useEffect, useState } from "react" import { AutomateSDK } from "@gelatonetwork/automate-sdk" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { useEthersSigner } from "@/lib/hooks/web3/use-ethers-signer" export const useGelatoAutomateSdk = () => { const [automateSdk, setAutomateSdk] = useState() - const { chain } = useNetwork() + const { chain } = useAccount() const signer = useEthersSigner() diff --git a/integrations/gelato/hooks/use-is-automate-supported.ts b/integrations/gelato/hooks/use-is-automate-supported.ts index 883bf007..00c41f75 100644 --- a/integrations/gelato/hooks/use-is-automate-supported.ts +++ b/integrations/gelato/hooks/use-is-automate-supported.ts @@ -1,8 +1,8 @@ import { isAutomateSupported } from "@gelatonetwork/automate-sdk" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" export const useIsAutomateSupported = () => { - const { chain } = useNetwork() + const { chain } = useAccount() return chain?.id ? isAutomateSupported(chain.id) : false } diff --git a/integrations/gelato/hooks/use-msg-sender.ts b/integrations/gelato/hooks/use-msg-sender.ts index 91fb0963..c105fd9e 100644 --- a/integrations/gelato/hooks/use-msg-sender.ts +++ b/integrations/gelato/hooks/use-msg-sender.ts @@ -5,7 +5,8 @@ import { useGelatoAutomateSdk } from "./use-automate-sdk" export const useMsgSender = () => { const { automateSdk } = useGelatoAutomateSdk() - return useQuery(["msg-sender", automateSdk], { + return useQuery({ + queryKey: ["msg-sender", automateSdk], queryFn: () => { return automateSdk?.getDedicatedMsgSender() }, diff --git a/integrations/gelato/hooks/use-task-resolver.ts b/integrations/gelato/hooks/use-task-resolver.ts index 7f484ffb..74c660ef 100644 --- a/integrations/gelato/hooks/use-task-resolver.ts +++ b/integrations/gelato/hooks/use-task-resolver.ts @@ -1,13 +1,14 @@ import { useQuery } from "@tanstack/react-query" import axios from "axios" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { FetchResolverResponse } from "../utils/types" export const useTaskResolver = ({ taskId }: { taskId: string }) => { - const { chain } = useNetwork() + const { chain } = useAccount() - return useQuery(["gelato-task-resolver", taskId, chain?.id], { + return useQuery({ + queryKey: ["gelato-task-resolver", taskId, chain?.id], queryFn: async () => { const response = await axios.get( `https://ops-task.fra.gelato.digital/1514007e8336fa99e6fe/api/contracts/${ diff --git a/integrations/gelato/hooks/use-task.ts b/integrations/gelato/hooks/use-task.ts index 4288643b..b0d1cb08 100644 --- a/integrations/gelato/hooks/use-task.ts +++ b/integrations/gelato/hooks/use-task.ts @@ -1,6 +1,6 @@ import { useQuery } from "@tanstack/react-query" import request from "graphql-request" -import { useNetwork } from "wagmi" +import { useAccount } from "wagmi" import { GetTaskDocument, @@ -25,9 +25,10 @@ const fetchTask = ({ id, gqlEndpoint }: FetchTaskProps) => { export const useTask = ({ taskId }: { taskId: string }) => { const { automateSdk } = useGelatoAutomateSdk() - const { chain } = useNetwork() + const { chain } = useAccount() - return useQuery(["gelato-task", taskId, automateSdk], { + return useQuery({ + queryKey: ["gelato-task", taskId, automateSdk], queryFn: async () => { const taskNames = await automateSdk?.getTaskNames([taskId]) const task = await fetchTask({ diff --git a/integrations/gitcoin-passport/hooks/use-submit-passport.ts b/integrations/gitcoin-passport/hooks/use-submit-passport.ts index 838e1dae..be29b232 100644 --- a/integrations/gitcoin-passport/hooks/use-submit-passport.ts +++ b/integrations/gitcoin-passport/hooks/use-submit-passport.ts @@ -77,6 +77,7 @@ export const useSubmitPassport = () => { useEffect(() => { if (signMessageMutation.error ?? signMessageMutation.error) handleToast( + // @ts-ignore String(signMessageMutation.error ?? signMessageMutation.error) ) }, [signMessageMutation.error, signMessageMutation.error]) @@ -84,6 +85,6 @@ export const useSubmitPassport = () => { return { submitPassport, isLoading: - signMessageMutation.isLoading || submitPassportMutation.isLoading, + signMessageMutation.isPending || submitPassportMutation.isPending, } } diff --git a/integrations/lit-protocol/hooks/use-lit-client.ts b/integrations/lit-protocol/hooks/use-lit-client.ts index 2e945911..c5a3e379 100644 --- a/integrations/lit-protocol/hooks/use-lit-client.ts +++ b/integrations/lit-protocol/hooks/use-lit-client.ts @@ -1,6 +1,6 @@ import * as LitJsSdk from "@lit-protocol/lit-node-client" import { LitProtocolMessage } from "@prisma/client" -import { useAccount, useNetwork, useSignMessage } from "wagmi" +import { useAccount, useSignMessage } from "wagmi" import { siweMessage } from "@/integrations/siwe/actions/siwe-message" @@ -10,8 +10,7 @@ import { AccessControlConditions } from "../utils/types" export const useLitClient = () => { const { signMessageAsync } = useSignMessage() - const { address } = useAccount() - const { chain } = useNetwork() + const { address, chain } = useAccount() /** * Get auth signature using siwe diff --git a/integrations/moralis/hooks/events/use-get-contract-events.ts b/integrations/moralis/hooks/events/use-get-contract-events.ts index 87b2ff25..ce983685 100644 --- a/integrations/moralis/hooks/events/use-get-contract-events.ts +++ b/integrations/moralis/hooks/events/use-get-contract-events.ts @@ -20,7 +20,8 @@ export function useGetContractEvents({ enabled, }: GetContractEventsArgs) { console - return useQuery(["get-contract-events", chain, address, topic, abi], { + return useQuery({ + queryKey: ["get-contract-events", chain, address, topic, abi], queryFn: async () => { const res = await fetch( `/integration/moralis/api/events/getContractEvents`, @@ -55,7 +56,8 @@ export function useGetContractEventsRaw({ abi, enabled, }: GetContractEventsArgs) { - return useQuery(["get-contract-events-raw", chain, address, topic, abi], { + return useQuery({ + queryKey: ["get-contract-events-raw", chain, address, topic, abi], queryFn: async () => { const res = await fetch( `/integration/moralis/api/events/getContractEvents`, diff --git a/integrations/moralis/hooks/events/use-get-contract-logs.ts b/integrations/moralis/hooks/events/use-get-contract-logs.ts index 19e39257..d820c757 100644 --- a/integrations/moralis/hooks/events/use-get-contract-logs.ts +++ b/integrations/moralis/hooks/events/use-get-contract-logs.ts @@ -15,7 +15,8 @@ export function useGetContractLogs({ address, enabled, }: GetContractLogsArgs) { - return useQuery(["get-contract-logs", chain, address], { + return useQuery({ + queryKey: ["get-contract-logs", chain, address], queryFn: async () => { const res = await fetch( `/integration/moralis/api/events/getContractLogs`, @@ -46,7 +47,8 @@ export function useGetContractLogsRaw({ address, enabled, }: GetContractLogsArgs) { - return useQuery(["get-contract-logs-raw", chain, address], { + return useQuery({ + queryKey: ["get-contract-logs-raw", chain, address], queryFn: async () => { const res = await fetch( `/integration/moralis/api/events/getContractLogs`, diff --git a/integrations/moralis/hooks/transaction/use-get-internal-transactions.ts b/integrations/moralis/hooks/transaction/use-get-internal-transactions.ts index 95305190..460349b7 100644 --- a/integrations/moralis/hooks/transaction/use-get-internal-transactions.ts +++ b/integrations/moralis/hooks/transaction/use-get-internal-transactions.ts @@ -15,7 +15,8 @@ export function useGetInternalTransactions({ transactionHash, enabled, }: GetInternalTransactionsArgs) { - return useQuery(["get-internal-transactions", chain, transactionHash], { + return useQuery({ + queryKey: ["get-internal-transactions", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getInternalTransactions?chain=${chain}&transactionHash=${transactionHash}&format=result` @@ -36,7 +37,8 @@ export function useGetInternalTransactionsRaw({ transactionHash, enabled, }: GetInternalTransactionsArgs) { - return useQuery(["get-internal-transactions-raw", chain, transactionHash], { + return useQuery({ + queryKey: ["get-internal-transactions-raw", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getInternalTransactions?chain=${chain}&transactionHash=${transactionHash}&format=raw` diff --git a/integrations/moralis/hooks/transaction/use-get-transaction-verbose.ts b/integrations/moralis/hooks/transaction/use-get-transaction-verbose.ts index e2da6f0d..d2490bdb 100644 --- a/integrations/moralis/hooks/transaction/use-get-transaction-verbose.ts +++ b/integrations/moralis/hooks/transaction/use-get-transaction-verbose.ts @@ -15,7 +15,8 @@ export function useGetTransactionVerbose({ transactionHash, enabled, }: GetTransactionVerboseArgs) { - return useQuery(["get-transaction-verbose", chain, transactionHash], { + return useQuery({ + queryKey: ["get-transaction-verbose", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getTransactionVerbose?chain=${chain}&transactionHash=${transactionHash}&format=result` @@ -36,7 +37,8 @@ export function useGetTransactionVerboseRaw({ transactionHash, enabled, }: GetTransactionVerboseArgs) { - return useQuery(["get-transaction-verbose-raw", chain, transactionHash], { + return useQuery({ + queryKey: ["get-transaction-verbose-raw", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getTransactionVerbose?chain=${chain}&transactionHash=${transactionHash}&format=raw` diff --git a/integrations/moralis/hooks/transaction/use-get-transaction.ts b/integrations/moralis/hooks/transaction/use-get-transaction.ts index 488a699d..f5f2d59e 100644 --- a/integrations/moralis/hooks/transaction/use-get-transaction.ts +++ b/integrations/moralis/hooks/transaction/use-get-transaction.ts @@ -15,7 +15,8 @@ export function useGetTransaction({ transactionHash, enabled, }: GetTransactionArgs) { - return useQuery(["get-transaction", chain, transactionHash], { + return useQuery({ + queryKey: ["get-transaction", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getTransaction?chain=${chain}&transactionHash=${transactionHash}&format=result` @@ -36,7 +37,8 @@ export function useGetTransactionRaw({ transactionHash, enabled, }: GetTransactionArgs) { - return useQuery(["get-transaction-raw", chain, transactionHash], { + return useQuery({ + queryKey: ["get-transaction-raw", chain, transactionHash], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getTransaction?chain=${chain}&transactionHash=${transactionHash}&format=raw` diff --git a/integrations/moralis/hooks/transaction/use-get-wallet-transactions-verbose.ts b/integrations/moralis/hooks/transaction/use-get-wallet-transactions-verbose.ts index 96004f3e..9dd215b0 100644 --- a/integrations/moralis/hooks/transaction/use-get-wallet-transactions-verbose.ts +++ b/integrations/moralis/hooks/transaction/use-get-wallet-transactions-verbose.ts @@ -15,7 +15,8 @@ export function useGetWalletTransactionsVerbose({ address, enabled, }: GetWalletTransactionsVerbose) { - return useQuery(["get-wallet-transactions-verbose", chain, address], { + return useQuery({ + queryKey: ["get-wallet-transactions-verbose", chain, address], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getWalletTransactionsVerbose?chain=${chain}&address=${address}&format=result` @@ -36,7 +37,8 @@ export function useGetWalletTransactionsVerboseRaw({ address, enabled, }: GetWalletTransactionsVerbose) { - return useQuery(["get-wallet-transactions-verbose-raw", chain, address], { + return useQuery({ + queryKey: ["get-wallet-transactions-verbose-raw", chain, address], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getWalletTransactionsVerbose?chain=${chain}&address=${address}&format=raw` diff --git a/integrations/moralis/hooks/transaction/use-get-wallet-transactions.ts b/integrations/moralis/hooks/transaction/use-get-wallet-transactions.ts index f2b6dc69..b76897d0 100644 --- a/integrations/moralis/hooks/transaction/use-get-wallet-transactions.ts +++ b/integrations/moralis/hooks/transaction/use-get-wallet-transactions.ts @@ -15,7 +15,8 @@ export function useGetWalletTransactions({ address, enabled, }: GetWalletTransactionsArgs) { - return useQuery(["get-wallet-transactions", chain, address], { + return useQuery({ + queryKey: ["get-wallet-transactions", chain, address], queryFn: async (): Promise => { const res = await fetch( `/integration/moralis/api/transaction/getWalletTransactions?chain=${chain}&address=${address}&format=result` @@ -36,7 +37,8 @@ export function useGetWalletTransactionsRaw({ address, enabled, }: GetWalletTransactionsArgs) { - return useQuery(["get-wallet-transactions-raw", chain, address], { + return useQuery({ + queryKey: ["get-wallet-transactions-raw", chain, address], queryFn: async () => { const res = await fetch( `/integration/moralis/api/transaction/getWalletTransactions?chain=${chain}&address=${address}&format=raw` diff --git a/integrations/pooltogether-v4/README.md b/integrations/pooltogether-v4/README.md deleted file mode 100644 index 8fc965be..00000000 --- a/integrations/pooltogether-v4/README.md +++ /dev/null @@ -1,59 +0,0 @@ -# PoolTogether - TurboETH Integration - -[PoolTogether](https://pooltogether.com/) is a decentralized protocol that combines savings and lottery mechanics. It allows users to pool their funds together, generating interest, and providing them with a chance to win prizes. - -This React Hook provides developers with a streamlined way to deposit or withdraw funds from [PoolTogether](https://pooltogether.com/) on Ethereum, Polygon and Optimism chains. - -## Features - -- Deposit on PoolTogether V4 -- Withdraw from PoolTogether V4 - ---- - -## Components - -`PoolTogetherFormWithdraw` -A React component that renders a form to withdraw from PoolTogether. - -`PoolTogetherFormDeposit` -A React component that renders a form to deposit on PoolTogether. -Users can choose the amount of approval if they have never interacted with the protocol. - -**Minimum deposit is 2 USDC.** - ---- - -## Hooks - -`useLoadContractFromChainId` : Return used contracts from the current network - -`useUsdcApproval` : Return true if a user's USDC allowance is sufficient, false otherwise. - -`useUserBalanceDeposit` : Return of the user's balance for the depositable token - -`useUserBalanceWithdraw` : Return of the user's balance for the withdrawable token - -## File Structure - -``` -integrations/pooltogether-v4 -├─ abis/ -│ ├─ yield-source-prize-pool-abi.ts -│ ├─ yield-source-prize-pool-bytecode.ts -├─ components/ -│ ├─ form-yield-source-prize-pool-deposit.tsx -│ ├─ form-yield-source-prize-pool-withdraw.tsx -├─ generated/ -│ ├─ pooltogether-v4-wagmi.ts -├─ hooks/ -│ ├─ use-load-contract-from-chain-id.ts -│ ├─ use-user-balance.ts -├─ utils/ -│ ├─ constants.ts -│ ├─ prize-pool-contract-list.ts -│ ├─ ticket-contract-list.ts -│ ├─ usdc-contract-list.ts -├─ README.md -├─ wagmi.config.ts -``` diff --git a/integrations/pooltogether-v4/abis/yield-source-prize-pool-abi.ts b/integrations/pooltogether-v4/abis/yield-source-prize-pool-abi.ts deleted file mode 100644 index ef16fd24..00000000 --- a/integrations/pooltogether-v4/abis/yield-source-prize-pool-abi.ts +++ /dev/null @@ -1,844 +0,0 @@ -export const yieldSourcePrizePoolABI = [ - { - inputs: [ - { - internalType: "address", - name: "_owner", - type: "address", - }, - { - internalType: "contract IYieldSource", - name: "_yieldSource", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "AwardCaptured", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "winner", - type: "address", - }, - { - indexed: true, - internalType: "contract ITicket", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Awarded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "winner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "AwardedExternalERC20", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "winner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "tokenIds", - type: "uint256[]", - }, - ], - name: "AwardedExternalERC721", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "balanceCap", - type: "uint256", - }, - ], - name: "BalanceCapSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract ITicket", - name: "token", - type: "address", - }, - ], - name: "ControlledTokenAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "yieldSource", - type: "address", - }, - ], - name: "Deployed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "operator", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: true, - internalType: "contract ITicket", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Deposited", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "error", - type: "bytes", - }, - ], - name: "ErrorAwardingExternalERC721", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "liquidityCap", - type: "uint256", - }, - ], - name: "LiquidityCapSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pendingOwner", - type: "address", - }, - ], - name: "OwnershipOffered", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "prizeStrategy", - type: "address", - }, - ], - name: "PrizeStrategySet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Swept", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract ITicket", - name: "ticket", - type: "address", - }, - ], - name: "TicketSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "TransferredExternalERC20", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "operator", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "contract ITicket", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "redeemed", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, - { - inputs: [], - name: "VERSION", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "award", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "awardBalance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "address", - name: "_externalToken", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "awardExternalERC20", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "address", - name: "_externalToken", - type: "address", - }, - { - internalType: "uint256[]", - name: "_tokenIds", - type: "uint256[]", - }, - ], - name: "awardExternalERC721", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "balance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_externalToken", - type: "address", - }, - ], - name: "canAwardExternal", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "captureAwardBalance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "claimOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract ICompLike", - name: "_compLike", - type: "address", - }, - { - internalType: "address", - name: "_to", - type: "address", - }, - ], - name: "compLikeDelegate", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "depositTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "address", - name: "_delegate", - type: "address", - }, - ], - name: "depositToAndDelegate", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getAccountedBalance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getBalanceCap", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getLiquidityCap", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getPrizeStrategy", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getTicket", - outputs: [ - { - internalType: "contract ITicket", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "contract ITicket", - name: "_controlledToken", - type: "address", - }, - ], - name: "isControlled", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - name: "onERC721Received", - outputs: [ - { - internalType: "bytes4", - name: "", - type: "bytes4", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pendingOwner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_balanceCap", - type: "uint256", - }, - ], - name: "setBalanceCap", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_liquidityCap", - type: "uint256", - }, - ], - name: "setLiquidityCap", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_prizeStrategy", - type: "address", - }, - ], - name: "setPrizeStrategy", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract ITicket", - name: "_ticket", - type: "address", - }, - ], - name: "setTicket", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "sweep", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "address", - name: "_externalToken", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "transferExternalERC20", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_from", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "withdrawFrom", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "yieldSource", - outputs: [ - { - internalType: "contract IYieldSource", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const diff --git a/integrations/pooltogether-v4/abis/yield-source-prize-pool-bytecode.ts b/integrations/pooltogether-v4/abis/yield-source-prize-pool-bytecode.ts deleted file mode 100644 index 3b3071ac..00000000 --- a/integrations/pooltogether-v4/abis/yield-source-prize-pool-bytecode.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const yieldSourcePrizePoolByteCode = - "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80637b99adb11161010f578063c002c4d6116100a2578063e6d8a94b11610071578063e6d8a94b14610441578063f2fde38b14610449578063ffa1ad741461045c578063ffaad6a5146104a557600080fd5b8063c002c4d6146103fb578063d7a169eb1461040c578063d804abaf1461041f578063e30c39781461043057600080fd5b8063aec9c307116100de578063aec9c307146103b1578063b15a49c1146103c4578063b2470e5c146103cc578063b69ef8a8146103f357600080fd5b80637b99adb1146103675780638da5cb5b1461037a57806391ca480e1461038b5780639470b0bd1461039e57600080fd5b806333e5761f11610187578063630665b411610156578063630665b4146103315780636a3fd4f914610339578063715018a61461034c57806378b3d3271461035457600080fd5b806333e5761f1461030657806335faa4161461030e5780634e71e0c8146103165780635d8a776e1461031e57600080fd5b80631c65c78b116101c35780631c65c78b1461029d57806321df0da7146102c05780632b0ab144146102e05780632f7627e3146102f357600080fd5b806308234319146101f557806313f55e391461020c578063150b7a021461022157806316960d551461028a575b600080fd5b6005545b6040519081526020015b60405180910390f35b61021f61021a366004612480565b6104b8565b005b61025961022f3660046124c1565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610203565b61021f6102983660046123eb565b61057a565b6102b06102ab3660046123b1565b610844565b6040519015158152602001610203565b6102c86109eb565b6040516001600160a01b039091168152602001610203565b61021f6102ee366004612480565b6109fa565b61021f6103013660046125f0565b610aa9565b6101f9610c06565b61021f610c10565b61021f610d98565b61021f61032c366004612560565b610e26565b6007546101f9565b6102b06103473660046123b1565b610f4c565b61021f610f5d565b6102b06103623660046123b1565b610fd2565b61021f610375366004612629565b610feb565b6000546001600160a01b03166102c8565b61021f6103993660046123b1565b611060565b6101f96103ac366004612560565b6110d2565b6102b06103bf366004612629565b611233565b6006546101f9565b6102c87f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a6481565b6101f96112a7565b6003546001600160a01b03166102c8565b61021f61041a36600461258c565b6112b1565b6004546001600160a01b03166102c8565b6001546001600160a01b03166102c8565b6101f96113f1565b61021f6104573660046123b1565b6114ef565b6104986040518060400160405280600581526020017f342e302e3000000000000000000000000000000000000000000000000000000081525081565b60405161020391906126e7565b61021f6104b3366004612560565b61162b565b6004546001600160a01b031633146105175760405162461bcd60e51b815260206004820152601c60248201527f5072697a65506f6f6c2f6f6e6c792d7072697a6553747261746567790000000060448201526064015b60405180910390fd5b6105228383836116ec565b1561057557816001600160a01b0316836001600160a01b03167fb0bac59718cd343c80a813518afcf36846cfcfe6d56e2b3cab9bd49f5f9b251c8360405161056c91815260200190565b60405180910390a35b505050565b6004546001600160a01b031633146105d45760405162461bcd60e51b815260206004820152601c60248201527f5072697a65506f6f6c2f6f6e6c792d7072697a65537472617465677900000000604482015260640161050e565b6105dd8361176f565b6106295760405162461bcd60e51b815260206004820181905260248201527f5072697a65506f6f6c2f696e76616c69642d65787465726e616c2d746f6b656e604482015260640161050e565b806106335761083e565b60008167ffffffffffffffff81111561064e5761064e61279c565b604051908082528060200260200182016040528015610677578160200160208202803683370190505b5090506000805b838110156107e857856001600160a01b03166342842e0e30898888868181106106a9576106a9612786565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561071857600080fd5b505af1925050508015610729575060015b61079a573d808015610757576040519150601f19603f3d011682016040523d82523d6000602084013e61075c565b606091505b507f17e975018310f88872b58d4d8263adca83cf5c1893496ea2a86923dab15276ad8160405161078c91906126e7565b60405180910390a1506107d6565b600191508484828181106107b0576107b0612786565b905060200201358382815181106107c9576107c9612786565b6020026020010181815250505b806107e081612755565b91505061067e565b50801561083b57846001600160a01b0316866001600160a01b03167f69c2de32bc4d47f488e72626a6cfdee85089342e52675e7de79c4b417623960c8460405161083291906126a3565b60405180910390a35b50505b50505050565b6000336108596000546001600160a01b031690565b6001600160a01b0316146108af5760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b6001600160a01b03821661092b5760405162461bcd60e51b815260206004820152602160248201527f5072697a65506f6f6c2f7469636b65742d6e6f742d7a65726f2d61646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161050e565b6003546001600160a01b0316156109845760405162461bcd60e51b815260206004820152601c60248201527f5072697a65506f6f6c2f7469636b65742d616c72656164792d73657400000000604482015260640161050e565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091556040517f9f9d59c87dbdc6ca82d9e5924782004b9aebc366c505c0ccab12f61e2a9f332190600090a26109e3600019611836565b506001919050565b60006109f5611872565b905090565b6004546001600160a01b03163314610a545760405162461bcd60e51b815260206004820152601c60248201527f5072697a65506f6f6c2f6f6e6c792d7072697a65537472617465677900000000604482015260640161050e565b610a5f8383836116ec565b1561057557816001600160a01b0316836001600160a01b03167fc65f48aca3b7a99b7443d04b8ffbb073156179bc628dc3f7def50477489734698360405161056c91815260200190565b33610abc6000546001600160a01b031690565b6001600160a01b031614610b125760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c9190612642565b1115610c02576040517f5c19a95c0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152831690635c19a95c90602401600060405180830381600087803b158015610bee57600080fd5b505af115801561083b573d6000803e3d6000fd5b5050565b60006109f5611905565b600280541415610c625760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161050e565b6002805533610c796000546001600160a01b031690565b6001600160a01b031614610ccf5760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b6000610cd9611872565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610d1a57600080fd5b505afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d529190612642565b9050610d5d8161199b565b6040518181527f7f221332ee403570bf4d61630b58189ea566ff1635269001e9df6a890f413dd89060200160405180910390a1506001600255565b6001546001600160a01b03163314610df25760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c652f63616c6c65722d6e6f742d70656e64696e674f776e657200604482015260640161050e565b600154610e07906001600160a01b0316611a74565b6001805473ffffffffffffffffffffffffffffffffffffffff19169055565b6004546001600160a01b03163314610e805760405162461bcd60e51b815260206004820152601c60248201527f5072697a65506f6f6c2f6f6e6c792d7072697a65537472617465677900000000604482015260640161050e565b80610e89575050565b60075480821115610edc5760405162461bcd60e51b815260206004820152601d60248201527f5072697a65506f6f6c2f61776172642d657863656564732d617661696c000000604482015260640161050e565b8181036007556003546001600160a01b0316610ef9848483611ad1565b806001600160a01b0316846001600160a01b03167fe2554529d99ab7a67db6b4cea2b32c7d55ae325f958861e05f304fdded867e3185604051610f3e91815260200190565b60405180910390a350505050565b6000610f578261176f565b92915050565b33610f706000546001600160a01b031690565b6001600160a01b031614610fc65760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b610fd06000611a74565b565b6003546000906001600160a01b03808416911614610f57565b33610ffe6000546001600160a01b031690565b6001600160a01b0316146110545760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b61105d81611b51565b50565b336110736000546001600160a01b031690565b6001600160a01b0316146110c95760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b61105d81611b86565b60006002805414156111265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161050e565b600280556003546040517f631b5dfb0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0385811660248301526044820185905290911690819063631b5dfb90606401600060405180830381600087803b15801561119957600080fd5b505af11580156111ad573d6000803e3d6000fd5b5050505060006111bc84611c33565b90506111db85826111cb611872565b6001600160a01b03169190611ce9565b60408051858152602081018390526001600160a01b03808516929088169133917fe56473357106d0cdea364a045d5ab7abb44b6bd1c0f092ba3734983a43459f8f910160405180910390a46001600255949350505050565b6000336112486000546001600160a01b031690565b6001600160a01b03161461129e5760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b6109e382611836565b60006109f5611d92565b6002805414156113035760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161050e565b600280558161131181611e23565b61135d5760405162461bcd60e51b815260206004820152601f60248201527f5072697a65506f6f6c2f657863656564732d6c69717569646974792d63617000604482015260640161050e565b611368338585611e59565b6003546040517f33e39b610000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038481166024830152909116906333e39b6190604401600060405180830381600087803b1580156113ce57600080fd5b505af11580156113e2573d6000803e3d6000fd5b50506001600255505050505050565b60006002805414156114455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161050e565b600280556000611453611905565b6007549091506000611463611d92565b9050600083821161147557600061147f565b61147f8483612712565b9050600083821161149157600061149b565b61149b8483612712565b905080156114e157600782905560405181815291935083917fce2b6e507c7ca1a20ce136810f524eefc19ba4c7e4866eb6cc0cba76e778d4be9060200160405180910390a15b505060016002555092915050565b336115026000546001600160a01b031690565b6001600160a01b0316146115585760405162461bcd60e51b815260206004820152601860248201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604482015260640161050e565b6001600160a01b0381166115d45760405162461bcd60e51b815260206004820152602560248201527f4f776e61626c652f70656e64696e674f776e65722d6e6f742d7a65726f2d616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161050e565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f239a2ddded15777fa246aed5f7e1a9bc69a39d4eb4a397034d1d85766cca7d4c90600090a250565b60028054141561167d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161050e565b600280558061168b81611e23565b6116d75760405162461bcd60e51b815260206004820152601f60248201527f5072697a65506f6f6c2f657863656564732d6c69717569646974792d63617000604482015260640161050e565b6116e2338484611e59565b5050600160025550565b60006116f78361176f565b6117435760405162461bcd60e51b815260206004820181905260248201527f5072697a65506f6f6c2f696e76616c69642d65787465726e616c2d746f6b656e604482015260640161050e565b8161175057506000611768565b6117646001600160a01b0384168584611ce9565b5060015b9392505050565b60007f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a646001600160a01b03838116908216148015906117685750806001600160a01b031663c89039c56040518163ffffffff1660e01b815260040160206040518083038186803b1580156117e257600080fd5b505afa1580156117f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181a91906123ce565b6001600160a01b0316836001600160a01b031614159392505050565b60058190556040518181527f439b9ac8f2088164a8d80921758209db1623cf1a37a48913679ef3a43d7a5cf7906020015b60405180910390a150565b60007f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a646001600160a01b031663c89039c56040518163ffffffff1660e01b815260040160206040518083038186803b1580156118cd57600080fd5b505afa1580156118e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f591906123ce565b600354604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561196357600080fd5b505afa158015611977573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f59190612642565b6119d87f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a64826119c8611872565b6001600160a01b03169190611f4b565b6040517f87a6eeef000000000000000000000000000000000000000000000000000000008152600481018290523060248201527f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a646001600160a01b0316906387a6eeef90604401600060405180830381600087803b158015611a5957600080fd5b505af1158015611a6d573d6000803e3d6000fd5b5050505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f5d7b07580000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201849052821690635d7b075890604401600060405180830381600087803b158015611b3457600080fd5b505af1158015611b48573d6000803e3d6000fd5b50505050505050565b60068190556040518181527f3ff20538222f568f27ff436c0c49dfd3e48d5b8f86533a3f759dc1c7089775ab90602001611867565b6001600160a01b038116611bdc5760405162461bcd60e51b815260206004820181905260248201527f5072697a65506f6f6c2f7072697a6553747261746567792d6e6f742d7a65726f604482015260640161050e565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f7f58dc86bc2e435cb77ca0edb1df55e25f90caf2d6bd866971715437d456a21290600090a250565b6040517f013054c2000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a646001600160a01b03169063013054c290602401602060405180830381600087803b158015611cb157600080fd5b505af1158015611cc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f579190612642565b6040516001600160a01b0383166024820152604481018290526105759084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261203e565b6040517fb99152d00000000000000000000000000000000000000000000000000000000081523060048201526000907f00000000000000000000000032e8d4c9d1b711bc958d0ce8d14b41f77bb03a646001600160a01b03169063b99152d090602401602060405180830381600087803b158015611e0f57600080fd5b505af1158015611977573d6000803e3d6000fd5b600654600090600019811415611e3c5750600192915050565b8083611e46611905565b611e5091906126fa565b11159392505050565b611e638282612123565b611eaf5760405162461bcd60e51b815260206004820152601d60248201527f5072697a65506f6f6c2f657863656564732d62616c616e63652d636170000000604482015260640161050e565b6003546001600160a01b0316611eda843084611ec9611872565b6001600160a01b03169291906121d1565b611ee5838383611ad1565b611eee8261199b565b806001600160a01b0316836001600160a01b0316856001600160a01b03167f4174a9435a04d04d274c76779cad136a41fde6937c56241c09ab9d3c7064a1a985604051611f3d91815260200190565b60405180910390a450505050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015611fb057600080fd5b505afa158015611fc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe89190612642565b611ff291906126fa565b6040516001600160a01b03851660248201526044810182905290915061083e9085907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611d2e565b6000612093826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122229092919063ffffffff16565b80519091501561057557808060200190518101906120b191906125ce565b6105755760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161050e565b60055460009060001981141561213d576001915050610f57565b6003546040516370a0823160e01b81526001600160a01b038681166004830152839286929116906370a082319060240160206040518083038186803b15801561218557600080fd5b505afa158015612199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bd9190612642565b6121c791906126fa565b1115949350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261083e9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611d2e565b60606122318484600085612239565b949350505050565b6060824710156122b15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161050e565b843b6122ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161050e565b600080866001600160a01b0316858760405161231b9190612687565b60006040518083038185875af1925050503d8060008114612358576040519150601f19603f3d011682016040523d82523d6000602084013e61235d565b606091505b509150915061236d828286612378565b979650505050505050565b60608315612387575081611768565b8251156123975782518084602001fd5b8160405162461bcd60e51b815260040161050e91906126e7565b6000602082840312156123c357600080fd5b8135611768816127b2565b6000602082840312156123e057600080fd5b8151611768816127b2565b6000806000806060858703121561240157600080fd5b843561240c816127b2565b9350602085013561241c816127b2565b9250604085013567ffffffffffffffff8082111561243957600080fd5b818701915087601f83011261244d57600080fd5b81358181111561245c57600080fd5b8860208260051b850101111561247157600080fd5b95989497505060200194505050565b60008060006060848603121561249557600080fd5b83356124a0816127b2565b925060208401356124b0816127b2565b929592945050506040919091013590565b6000806000806000608086880312156124d957600080fd5b85356124e4816127b2565b945060208601356124f4816127b2565b935060408601359250606086013567ffffffffffffffff8082111561251857600080fd5b818801915088601f83011261252c57600080fd5b81358181111561253b57600080fd5b89602082850101111561254d57600080fd5b9699959850939650602001949392505050565b6000806040838503121561257357600080fd5b823561257e816127b2565b946020939093013593505050565b6000806000606084860312156125a157600080fd5b83356125ac816127b2565b92506020840135915060408401356125c3816127b2565b809150509250925092565b6000602082840312156125e057600080fd5b8151801515811461176857600080fd5b6000806040838503121561260357600080fd5b823561260e816127b2565b9150602083013561261e816127b2565b809150509250929050565b60006020828403121561263b57600080fd5b5035919050565b60006020828403121561265457600080fd5b5051919050565b60008151808452612673816020860160208601612729565b601f01601f19169290920160200192915050565b60008251612699818460208701612729565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156126db578351835292840192918401916001016126bf565b50909695505050505050565b602081526000611768602083018461265b565b6000821982111561270d5761270d612770565b500190565b60008282101561272457612724612770565b500390565b60005b8381101561274457818101518382015260200161272c565b8381111561083e5750506000910152565b600060001982141561276957612769612770565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461105d57600080fdfea26469706673582212203b9a3eacc5bab3d0c6daf5f532edf73ef2faa59f656eff65b25c33ffa0f2203464736f6c63430008060033" diff --git a/integrations/pooltogether-v4/components/form-yield-source-prize-pool-deposit.tsx b/integrations/pooltogether-v4/components/form-yield-source-prize-pool-deposit.tsx deleted file mode 100644 index 0e756ae1..00000000 --- a/integrations/pooltogether-v4/components/form-yield-source-prize-pool-deposit.tsx +++ /dev/null @@ -1,216 +0,0 @@ -"use client" - -import { useLoadContractFromChainId } from "@/actions/pooltogether-v4/hooks/use-load-contract-from-chain-id" -import { PRIZE_POOL_CONTRACT } from "@/actions/pooltogether-v4/utils/prize-pool-contract-list" -import { USDC_CONTRACT } from "@/actions/pooltogether-v4/utils/usdc-contract-list" -import * as Form from "@radix-ui/react-form" -import { useForm } from "react-hook-form" -import { LuExternalLink } from "react-icons/lu" -import { useDebounce } from "usehooks-ts" -import { formatUnits, parseUnits, type BaseError } from "viem" -import { useAccount, useSwitchNetwork, useWaitForTransaction } from "wagmi" - -import { - useErc20Allowance, - useErc20Approve, - useErc20Decimals, -} from "@/lib/generated/blockchain" -import { Button } from "@/components/ui/button" -import { Card, CardContent, CardFooter } from "@/components/ui/card" -import { Separator } from "@/components/ui/separator" -import { ContractWriteButton } from "@/components/blockchain/contract-write-button" -import { TransactionStatus } from "@/components/blockchain/transaction-status" -import { LinkComponent } from "@/components/shared/link-component" -import { - usePoolTogetherPrizePoolDepositToAndDelegate, - usePreparePoolTogetherPrizePoolDepositToAndDelegate, -} from "@/integrations/pooltogether-v4/generated/pooltogether-v4-wagmi" -import { useUserBalance } from "@/integrations/pooltogether-v4/hooks/use-user-balance" - -import { MINIMUM_DEPOSIT_AMOUNT } from "../utils/constants" - -interface FormSchema { - depositAmount: string -} - -export function PoolTogetherFormDeposit() { - const { register, watch, handleSubmit, setValue } = useForm() - const { address } = useAccount() - const { switchNetwork } = useSwitchNetwork() - const prizePoolAddress = useLoadContractFromChainId(PRIZE_POOL_CONTRACT) - const usdcAddress = useLoadContractFromChainId(USDC_CONTRACT) - - const userBalance = useUserBalance({ type: "deposit" }) - const { data: decimals } = useErc20Decimals({ address: usdcAddress }) - const { data: allowance } = useErc20Allowance({ - address: usdcAddress, - args: address && prizePoolAddress ? [address, prizePoolAddress] : undefined, - enabled: Boolean(address && prizePoolAddress), - watch: true, - }) - - const debouncedDepositAmount = useDebounce(watch("depositAmount"), 500) - const bigIntDepositAmount = isNaN(Number(debouncedDepositAmount)) - ? BigInt(0) - : parseUnits(`${Number(debouncedDepositAmount)}`, decimals || 6) - - const isValidContractCall = - address && - !isNaN(Number(debouncedDepositAmount)) && - Number(debouncedDepositAmount) >= MINIMUM_DEPOSIT_AMOUNT - - const { config, error, isError, refetch } = - usePreparePoolTogetherPrizePoolDepositToAndDelegate({ - address: prizePoolAddress, - args: isValidContractCall - ? [address, bigIntDepositAmount, address] - : undefined, - enabled: Boolean(isValidContractCall), - }) - - const { - data, - write, - isLoading: isLoadingWrite, - } = usePoolTogetherPrizePoolDepositToAndDelegate(config) - - const { isLoading: isLoadingTx, isSuccess } = useWaitForTransaction({ - hash: data?.hash, - onSuccess: () => setValue("depositAmount", ""), - }) - - const { - data: approveData, - write: writeApproval, - isLoading: isLoadingWriteApprove, - } = useErc20Approve({ - address: usdcAddress, - args: isValidContractCall - ? [prizePoolAddress, bigIntDepositAmount] - : undefined, - }) - - const { isLoading: isLoadingTxApprove } = useWaitForTransaction({ - hash: approveData?.hash, - onSuccess: async () => refetch(), - }) - - const isApproved = allowance ? allowance >= bigIntDepositAmount : false - - const onSubmit = () => { - if (isApproved) { - write?.() - } else { - writeApproval?.() - } - } - - if (!prizePoolAddress) { - return ( -
- -
- ) - } - - return ( - - - - -
- Amount - - - setValue( - "depositAmount", - formatUnits(userBalance, decimals || 1) - ) - } - > - {Number(formatUnits(userBalance, decimals || 1)).toFixed(2)}{" "} - USDC - - -
- - - -
- {!isNaN(Number(debouncedDepositAmount)) && - Number(debouncedDepositAmount) > 0 && - Number(debouncedDepositAmount) < MINIMUM_DEPOSIT_AMOUNT && ( -
{ - setValue("depositAmount", "2") - }} - > - - Min. 2 USDC - -
- )} -
- - - {isApproved ? "Deposit" : "Approve"} - - -
- -
- {isSuccess && ( -
- Manage your account on - - PoolTogether{" "} - - -
- )} -
- - -

Deposit

-

- Start saving today -

-
-
- ) -} diff --git a/integrations/pooltogether-v4/components/form-yield-source-prize-pool-withdraw.tsx b/integrations/pooltogether-v4/components/form-yield-source-prize-pool-withdraw.tsx deleted file mode 100644 index f55c1d79..00000000 --- a/integrations/pooltogether-v4/components/form-yield-source-prize-pool-withdraw.tsx +++ /dev/null @@ -1,149 +0,0 @@ -"use client" - -import { useLoadContractFromChainId } from "@/actions/pooltogether-v4/hooks/use-load-contract-from-chain-id" -import { useUserBalance } from "@/actions/pooltogether-v4/hooks/use-user-balance" -import { PRIZE_POOL_CONTRACT } from "@/actions/pooltogether-v4/utils/prize-pool-contract-list" -import { TICKET_CONTRACT } from "@/actions/pooltogether-v4/utils/ticket-contract-list" -import * as Form from "@radix-ui/react-form" -import { useForm } from "react-hook-form" -import { useDebounce } from "usehooks-ts" -import { BaseError, formatUnits, parseUnits } from "viem" -import { useAccount, useSwitchNetwork, useWaitForTransaction } from "wagmi" - -import { FADE_DOWN_ANIMATION_VARIANTS } from "@/config/design" -import { useErc20Decimals } from "@/lib/generated/blockchain" -import { Button } from "@/components/ui/button" -import { Card, CardContent, CardFooter } from "@/components/ui/card" -import { Separator } from "@/components/ui/separator" -import { ContractWriteButton } from "@/components/blockchain/contract-write-button" -import { TransactionStatus } from "@/components/blockchain/transaction-status" -import { - usePoolTogetherPrizePoolWithdrawFrom, - usePreparePoolTogetherPrizePoolWithdrawFrom, -} from "@/integrations/pooltogether-v4/generated/pooltogether-v4-wagmi" - -interface FormSchema { - withdrawAmount: string -} - -export function PoolTogetherFormWithdraw() { - const { register, watch, handleSubmit, setValue } = useForm() - const { address } = useAccount() - const { switchNetwork } = useSwitchNetwork() - const userBalance = useUserBalance({ type: "withdraw" }) - const prizePoolAddress = useLoadContractFromChainId(PRIZE_POOL_CONTRACT) - const ticketAddress = useLoadContractFromChainId(TICKET_CONTRACT) - - const { data: decimals } = useErc20Decimals({ address: ticketAddress }) - - const debouncedWithdrawAmount = useDebounce(watch("withdrawAmount"), 500) - - const isValidContractCall = - address && - debouncedWithdrawAmount && - !isNaN(Number(debouncedWithdrawAmount)) && - Number(debouncedWithdrawAmount) > 0 - - const { config, error, isError, refetch } = - usePreparePoolTogetherPrizePoolWithdrawFrom({ - address: prizePoolAddress, - args: isValidContractCall - ? [ - address, - parseUnits(`${Number(debouncedWithdrawAmount)}`, decimals || 6), - ] - : undefined, - enabled: Boolean(isValidContractCall), - }) - - const { - data, - write, - isLoading: isLoadingWrite, - } = usePoolTogetherPrizePoolWithdrawFrom(config) - - const { isLoading: isLoadingTx, isSuccess } = useWaitForTransaction({ - hash: data?.hash, - onSuccess: async () => { - setValue("withdrawAmount", "") - await refetch() - }, - }) - - const onSubmit = () => { - write?.() - } - - if (!prizePoolAddress) { - return ( -
- -
- ) - } - - return ( - - - - -
- Amount - - - setValue( - "withdrawAmount", - formatUnits(userBalance, decimals || 1) - ) - } - > - {Number(formatUnits(userBalance, decimals || 1)).toFixed(2)}{" "} - USDC - - -
- - - -
-
- - - Withdraw - - -
-
- -
-
-
- - -

Withdraw

-

- Start saving today -

-
-
- ) -} diff --git a/integrations/pooltogether-v4/generated/pooltogether-v4-wagmi.ts b/integrations/pooltogether-v4/generated/pooltogether-v4-wagmi.ts deleted file mode 100644 index 4f4f3974..00000000 --- a/integrations/pooltogether-v4/generated/pooltogether-v4-wagmi.ts +++ /dev/null @@ -1,1385 +0,0 @@ -// Generated by @wagmi/cli@1.1.0 on 6/8/2023 at 8:47:42 AM -import { - UseContractEventConfig, - UseContractReadConfig, - UseContractWriteConfig, - UsePrepareContractWriteConfig, - useContractEvent, - useContractRead, - useContractWrite, - usePrepareContractWrite, -} from 'wagmi' -import { PrepareWriteContractResult, ReadContractResult, WriteContractMode } from 'wagmi/actions' - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// poolTogetherPrizePool -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const poolTogetherPrizePoolABI = [ - { - stateMutability: 'nonpayable', - type: 'constructor', - inputs: [ - { name: '_owner', internalType: 'address', type: 'address' }, - { name: '_yieldSource', internalType: 'contract IYieldSource', type: 'address' }, - ], - }, - { type: 'event', anonymous: false, inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }], name: 'AwardCaptured' }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'winner', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'contract ITicket', type: 'address', indexed: true }, - { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }, - ], - name: 'Awarded', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'winner', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'address', type: 'address', indexed: true }, - { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }, - ], - name: 'AwardedExternalERC20', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'winner', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'address', type: 'address', indexed: true }, - { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]', indexed: false }, - ], - name: 'AwardedExternalERC721', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'balanceCap', internalType: 'uint256', type: 'uint256', indexed: false }], - name: 'BalanceCapSet', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'token', internalType: 'contract ITicket', type: 'address', indexed: true }], - name: 'ControlledTokenAdded', - }, - { type: 'event', anonymous: false, inputs: [{ name: 'yieldSource', internalType: 'address', type: 'address', indexed: true }], name: 'Deployed' }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'operator', internalType: 'address', type: 'address', indexed: true }, - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'contract ITicket', type: 'address', indexed: true }, - { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }, - ], - name: 'Deposited', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes', indexed: false }], - name: 'ErrorAwardingExternalERC721', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'liquidityCap', internalType: 'uint256', type: 'uint256', indexed: false }], - name: 'LiquidityCapSet', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'pendingOwner', internalType: 'address', type: 'address', indexed: true }], - name: 'OwnershipOffered', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true }, - { name: 'newOwner', internalType: 'address', type: 'address', indexed: true }, - ], - name: 'OwnershipTransferred', - }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'prizeStrategy', internalType: 'address', type: 'address', indexed: true }], - name: 'PrizeStrategySet', - }, - { type: 'event', anonymous: false, inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }], name: 'Swept' }, - { - type: 'event', - anonymous: false, - inputs: [{ name: 'ticket', internalType: 'contract ITicket', type: 'address', indexed: true }], - name: 'TicketSet', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'address', type: 'address', indexed: true }, - { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }, - ], - name: 'TransferredExternalERC20', - }, - { - type: 'event', - anonymous: false, - inputs: [ - { name: 'operator', internalType: 'address', type: 'address', indexed: true }, - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { name: 'token', internalType: 'contract ITicket', type: 'address', indexed: true }, - { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false }, - { name: 'redeemed', internalType: 'uint256', type: 'uint256', indexed: false }, - ], - name: 'Withdrawal', - }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'VERSION', outputs: [{ name: '', internalType: 'string', type: 'string' }] }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'award', - outputs: [], - }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'awardBalance', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }] }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_externalToken', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'awardExternalERC20', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_externalToken', internalType: 'address', type: 'address' }, - { name: '_tokenIds', internalType: 'uint256[]', type: 'uint256[]' }, - ], - name: 'awardExternalERC721', - outputs: [], - }, - { stateMutability: 'nonpayable', type: 'function', inputs: [], name: 'balance', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }] }, - { - stateMutability: 'view', - type: 'function', - inputs: [{ name: '_externalToken', internalType: 'address', type: 'address' }], - name: 'canAwardExternal', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [], - name: 'captureAwardBalance', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { stateMutability: 'nonpayable', type: 'function', inputs: [], name: 'claimOwnership', outputs: [] }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_compLike', internalType: 'contract ICompLike', type: 'address' }, - { name: '_to', internalType: 'address', type: 'address' }, - ], - name: 'compLikeDelegate', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'depositTo', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - { name: '_delegate', internalType: 'address', type: 'address' }, - ], - name: 'depositToAndDelegate', - outputs: [], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getAccountedBalance', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'getBalanceCap', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }] }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getLiquidityCap', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getPrizeStrategy', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getTicket', - outputs: [{ name: '', internalType: 'contract ITicket', type: 'address' }], - }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'getToken', outputs: [{ name: '', internalType: 'address', type: 'address' }] }, - { - stateMutability: 'view', - type: 'function', - inputs: [{ name: '_controlledToken', internalType: 'contract ITicket', type: 'address' }], - name: 'isControlled', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - }, - { - stateMutability: 'pure', - type: 'function', - inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'uint256', type: 'uint256' }, - { name: '', internalType: 'bytes', type: 'bytes' }, - ], - name: 'onERC721Received', - outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], - }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'owner', outputs: [{ name: '', internalType: 'address', type: 'address' }] }, - { stateMutability: 'view', type: 'function', inputs: [], name: 'pendingOwner', outputs: [{ name: '', internalType: 'address', type: 'address' }] }, - { stateMutability: 'nonpayable', type: 'function', inputs: [], name: 'renounceOwnership', outputs: [] }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [{ name: '_balanceCap', internalType: 'uint256', type: 'uint256' }], - name: 'setBalanceCap', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [{ name: '_liquidityCap', internalType: 'uint256', type: 'uint256' }], - name: 'setLiquidityCap', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [{ name: '_prizeStrategy', internalType: 'address', type: 'address' }], - name: 'setPrizeStrategy', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [{ name: '_ticket', internalType: 'contract ITicket', type: 'address' }], - name: 'setTicket', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - }, - { stateMutability: 'nonpayable', type: 'function', inputs: [], name: 'sweep', outputs: [] }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_to', internalType: 'address', type: 'address' }, - { name: '_externalToken', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'transferExternalERC20', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [{ name: '_newOwner', internalType: 'address', type: 'address' }], - name: 'transferOwnership', - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [ - { name: '_from', internalType: 'address', type: 'address' }, - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'withdrawFrom', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'yieldSource', - outputs: [{ name: '', internalType: 'contract IYieldSource', type: 'address' }], - }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// React -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__. - */ -export function usePoolTogetherPrizePoolRead< - TFunctionName extends string, - TSelectData = ReadContractResult ->(config: Omit, 'abi'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"VERSION"`. - */ -export function usePoolTogetherPrizePoolVersion< - TFunctionName extends 'VERSION', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'VERSION', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"awardBalance"`. - */ -export function usePoolTogetherPrizePoolAwardBalance< - TFunctionName extends 'awardBalance', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'awardBalance', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"canAwardExternal"`. - */ -export function usePoolTogetherPrizePoolCanAwardExternal< - TFunctionName extends 'canAwardExternal', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'canAwardExternal', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getAccountedBalance"`. - */ -export function usePoolTogetherPrizePoolGetAccountedBalance< - TFunctionName extends 'getAccountedBalance', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getAccountedBalance', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getBalanceCap"`. - */ -export function usePoolTogetherPrizePoolGetBalanceCap< - TFunctionName extends 'getBalanceCap', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getBalanceCap', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getLiquidityCap"`. - */ -export function usePoolTogetherPrizePoolGetLiquidityCap< - TFunctionName extends 'getLiquidityCap', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getLiquidityCap', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getPrizeStrategy"`. - */ -export function usePoolTogetherPrizePoolGetPrizeStrategy< - TFunctionName extends 'getPrizeStrategy', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getPrizeStrategy', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getTicket"`. - */ -export function usePoolTogetherPrizePoolGetTicket< - TFunctionName extends 'getTicket', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getTicket', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"getToken"`. - */ -export function usePoolTogetherPrizePoolGetToken< - TFunctionName extends 'getToken', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'getToken', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"isControlled"`. - */ -export function usePoolTogetherPrizePoolIsControlled< - TFunctionName extends 'isControlled', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'isControlled', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"onERC721Received"`. - */ -export function usePoolTogetherPrizePoolOnErc721Received< - TFunctionName extends 'onERC721Received', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'onERC721Received', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"owner"`. - */ -export function usePoolTogetherPrizePoolOwner< - TFunctionName extends 'owner', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'owner', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"pendingOwner"`. - */ -export function usePoolTogetherPrizePoolPendingOwner< - TFunctionName extends 'pendingOwner', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'pendingOwner', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"yieldSource"`. - */ -export function usePoolTogetherPrizePoolYieldSource< - TFunctionName extends 'yieldSource', - TSelectData = ReadContractResult ->(config: Omit, 'abi' | 'functionName'> = {} as any) { - return useContractRead({ abi: poolTogetherPrizePoolABI, functionName: 'yieldSource', ...config } as UseContractReadConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName, - TSelectData - >) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__. - */ -export function usePoolTogetherPrizePoolWrite( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: poolTogetherPrizePoolABI, ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"award"`. - */ -export function usePoolTogetherPrizePoolAward( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'award', TMode> & { - functionName?: 'award' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'award' - } = {} as any -) { - return useContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'award', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"awardExternalERC20"`. - */ -export function usePoolTogetherPrizePoolAwardExternalErc20( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'awardExternalERC20', - TMode - > & { functionName?: 'awardExternalERC20' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'awardExternalERC20' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'awardExternalERC20', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"awardExternalERC721"`. - */ -export function usePoolTogetherPrizePoolAwardExternalErc721( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'awardExternalERC721', - TMode - > & { functionName?: 'awardExternalERC721' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'awardExternalERC721' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'awardExternalERC721', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"balance"`. - */ -export function usePoolTogetherPrizePoolBalance( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'balance', TMode> & { - functionName?: 'balance' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'balance' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'balance', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"captureAwardBalance"`. - */ -export function usePoolTogetherPrizePoolCaptureAwardBalance( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'captureAwardBalance', - TMode - > & { functionName?: 'captureAwardBalance' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'captureAwardBalance' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'captureAwardBalance', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"claimOwnership"`. - */ -export function usePoolTogetherPrizePoolClaimOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'claimOwnership', - TMode - > & { functionName?: 'claimOwnership' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'claimOwnership' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'claimOwnership', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"compLikeDelegate"`. - */ -export function usePoolTogetherPrizePoolCompLikeDelegate( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'compLikeDelegate', - TMode - > & { functionName?: 'compLikeDelegate' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'compLikeDelegate' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'compLikeDelegate', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"depositTo"`. - */ -export function usePoolTogetherPrizePoolDepositTo( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'depositTo', TMode> & { - functionName?: 'depositTo' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'depositTo' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'depositTo', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"depositToAndDelegate"`. - */ -export function usePoolTogetherPrizePoolDepositToAndDelegate( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'depositToAndDelegate', - TMode - > & { functionName?: 'depositToAndDelegate' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'depositToAndDelegate' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'depositToAndDelegate', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"renounceOwnership"`. - */ -export function usePoolTogetherPrizePoolRenounceOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'renounceOwnership', - TMode - > & { functionName?: 'renounceOwnership' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'renounceOwnership' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'renounceOwnership', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setBalanceCap"`. - */ -export function usePoolTogetherPrizePoolSetBalanceCap( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'setBalanceCap', - TMode - > & { functionName?: 'setBalanceCap' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setBalanceCap' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'setBalanceCap', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setLiquidityCap"`. - */ -export function usePoolTogetherPrizePoolSetLiquidityCap( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'setLiquidityCap', - TMode - > & { functionName?: 'setLiquidityCap' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setLiquidityCap' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'setLiquidityCap', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setPrizeStrategy"`. - */ -export function usePoolTogetherPrizePoolSetPrizeStrategy( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'setPrizeStrategy', - TMode - > & { functionName?: 'setPrizeStrategy' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setPrizeStrategy' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'setPrizeStrategy', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setTicket"`. - */ -export function usePoolTogetherPrizePoolSetTicket( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'setTicket', TMode> & { - functionName?: 'setTicket' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'setTicket' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'setTicket', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"sweep"`. - */ -export function usePoolTogetherPrizePoolSweep( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'sweep', TMode> & { - functionName?: 'sweep' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'sweep' - } = {} as any -) { - return useContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'sweep', ...config } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"transferExternalERC20"`. - */ -export function usePoolTogetherPrizePoolTransferExternalErc20( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'transferExternalERC20', - TMode - > & { functionName?: 'transferExternalERC20' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferExternalERC20' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'transferExternalERC20', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"transferOwnership"`. - */ -export function usePoolTogetherPrizePoolTransferOwnership( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult['request']['abi'], - 'transferOwnership', - TMode - > & { functionName?: 'transferOwnership' } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferOwnership' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'transferOwnership', - ...config, - } as any) -} - -/** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"withdrawFrom"`. - */ -export function usePoolTogetherPrizePoolWithdrawFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'withdrawFrom', TMode> & { - functionName?: 'withdrawFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'withdrawFrom' - } = {} as any -) { - return useContractWrite({ - abi: poolTogetherPrizePoolABI, - functionName: 'withdrawFrom', - ...config, - } as any) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__. - */ -export function usePreparePoolTogetherPrizePoolWrite( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - TFunctionName - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"award"`. - */ -export function usePreparePoolTogetherPrizePoolAward( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'award', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'award' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"awardExternalERC20"`. - */ -export function usePreparePoolTogetherPrizePoolAwardExternalErc20( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'awardExternalERC20', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'awardExternalERC20' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"awardExternalERC721"`. - */ -export function usePreparePoolTogetherPrizePoolAwardExternalErc721( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'awardExternalERC721', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'awardExternalERC721' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"balance"`. - */ -export function usePreparePoolTogetherPrizePoolBalance( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'balance', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'balance' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"captureAwardBalance"`. - */ -export function usePreparePoolTogetherPrizePoolCaptureAwardBalance( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'captureAwardBalance', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'captureAwardBalance' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"claimOwnership"`. - */ -export function usePreparePoolTogetherPrizePoolClaimOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'claimOwnership', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'claimOwnership' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"compLikeDelegate"`. - */ -export function usePreparePoolTogetherPrizePoolCompLikeDelegate( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'compLikeDelegate', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'compLikeDelegate' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"depositTo"`. - */ -export function usePreparePoolTogetherPrizePoolDepositTo( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'depositTo', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'depositTo' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"depositToAndDelegate"`. - */ -export function usePreparePoolTogetherPrizePoolDepositToAndDelegate( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'depositToAndDelegate', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'depositToAndDelegate' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"renounceOwnership"`. - */ -export function usePreparePoolTogetherPrizePoolRenounceOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'renounceOwnership', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'renounceOwnership' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setBalanceCap"`. - */ -export function usePreparePoolTogetherPrizePoolSetBalanceCap( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'setBalanceCap', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'setBalanceCap' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setLiquidityCap"`. - */ -export function usePreparePoolTogetherPrizePoolSetLiquidityCap( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'setLiquidityCap', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'setLiquidityCap' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setPrizeStrategy"`. - */ -export function usePreparePoolTogetherPrizePoolSetPrizeStrategy( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'setPrizeStrategy', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'setPrizeStrategy' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"setTicket"`. - */ -export function usePreparePoolTogetherPrizePoolSetTicket( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'setTicket', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'setTicket' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"sweep"`. - */ -export function usePreparePoolTogetherPrizePoolSweep( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'sweep', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'sweep' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"transferExternalERC20"`. - */ -export function usePreparePoolTogetherPrizePoolTransferExternalErc20( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'transferExternalERC20', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'transferExternalERC20' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"transferOwnership"`. - */ -export function usePreparePoolTogetherPrizePoolTransferOwnership( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'transferOwnership', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'transferOwnership' - >) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `functionName` set to `"withdrawFrom"`. - */ -export function usePreparePoolTogetherPrizePoolWithdrawFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: poolTogetherPrizePoolABI, functionName: 'withdrawFrom', ...config } as UsePrepareContractWriteConfig< - typeof poolTogetherPrizePoolABI, - 'withdrawFrom' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__. - */ -export function usePoolTogetherPrizePoolEvent( - config: Omit, 'abi'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, ...config } as UseContractEventConfig) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"AwardCaptured"`. - */ -export function usePoolTogetherPrizePoolAwardCapturedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'AwardCaptured', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'AwardCaptured' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"Awarded"`. - */ -export function usePoolTogetherPrizePoolAwardedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'Awarded', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'Awarded' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"AwardedExternalERC20"`. - */ -export function usePoolTogetherPrizePoolAwardedExternalErc20Event( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'AwardedExternalERC20', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'AwardedExternalERC20' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"AwardedExternalERC721"`. - */ -export function usePoolTogetherPrizePoolAwardedExternalErc721Event( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'AwardedExternalERC721', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'AwardedExternalERC721' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"BalanceCapSet"`. - */ -export function usePoolTogetherPrizePoolBalanceCapSetEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'BalanceCapSet', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'BalanceCapSet' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"ControlledTokenAdded"`. - */ -export function usePoolTogetherPrizePoolControlledTokenAddedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'ControlledTokenAdded', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'ControlledTokenAdded' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"Deployed"`. - */ -export function usePoolTogetherPrizePoolDeployedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'Deployed', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'Deployed' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"Deposited"`. - */ -export function usePoolTogetherPrizePoolDepositedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'Deposited', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'Deposited' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"ErrorAwardingExternalERC721"`. - */ -export function usePoolTogetherPrizePoolErrorAwardingExternalErc721Event( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'ErrorAwardingExternalERC721', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'ErrorAwardingExternalERC721' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"LiquidityCapSet"`. - */ -export function usePoolTogetherPrizePoolLiquidityCapSetEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'LiquidityCapSet', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'LiquidityCapSet' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"OwnershipOffered"`. - */ -export function usePoolTogetherPrizePoolOwnershipOfferedEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'OwnershipOffered', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'OwnershipOffered' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"OwnershipTransferred"`. - */ -export function usePoolTogetherPrizePoolOwnershipTransferredEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'OwnershipTransferred', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'OwnershipTransferred' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"PrizeStrategySet"`. - */ -export function usePoolTogetherPrizePoolPrizeStrategySetEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'PrizeStrategySet', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'PrizeStrategySet' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"Swept"`. - */ -export function usePoolTogetherPrizePoolSweptEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'Swept', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'Swept' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"TicketSet"`. - */ -export function usePoolTogetherPrizePoolTicketSetEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'TicketSet', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'TicketSet' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"TransferredExternalERC20"`. - */ -export function usePoolTogetherPrizePoolTransferredExternalErc20Event( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'TransferredExternalERC20', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'TransferredExternalERC20' - >) -} - -/** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link poolTogetherPrizePoolABI}__ and `eventName` set to `"Withdrawal"`. - */ -export function usePoolTogetherPrizePoolWithdrawalEvent( - config: Omit, 'abi' | 'eventName'> = {} as any -) { - return useContractEvent({ abi: poolTogetherPrizePoolABI, eventName: 'Withdrawal', ...config } as UseContractEventConfig< - typeof poolTogetherPrizePoolABI, - 'Withdrawal' - >) -} diff --git a/integrations/pooltogether-v4/hooks/use-load-contract-from-chain-id.ts b/integrations/pooltogether-v4/hooks/use-load-contract-from-chain-id.ts deleted file mode 100644 index fab26c25..00000000 --- a/integrations/pooltogether-v4/hooks/use-load-contract-from-chain-id.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { useNetwork, type Address } from "wagmi" - -interface ContractChainList { - [key: number]: Address -} - -export const useLoadContractFromChainId = (list: ContractChainList) => { - const { chain } = useNetwork() - return list[chain?.id || 1] -} diff --git a/integrations/pooltogether-v4/hooks/use-user-balance.ts b/integrations/pooltogether-v4/hooks/use-user-balance.ts deleted file mode 100644 index 55562042..00000000 --- a/integrations/pooltogether-v4/hooks/use-user-balance.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { useLoadContractFromChainId } from "@/actions/pooltogether-v4/hooks/use-load-contract-from-chain-id" -import { TICKET_CONTRACT } from "@/actions/pooltogether-v4/utils/ticket-contract-list" -import { USDC_CONTRACT } from "@/actions/pooltogether-v4/utils/usdc-contract-list" -import { useAccount, useChainId } from "wagmi" - -import { useErc20BalanceOf } from "@/lib/generated/blockchain" - -export function useUserBalance({ type }: { type: "deposit" | "withdraw" }) { - const { address: accountAddress } = useAccount() - const chainId = useChainId() - - const address = useLoadContractFromChainId( - type === "deposit" ? USDC_CONTRACT : TICKET_CONTRACT - ) - const { data: erc20Balance } = useErc20BalanceOf({ - chainId, - address, - watch: true, - args: accountAddress ? [accountAddress] : undefined, - }) - - return erc20Balance ?? BigInt(0) -} diff --git a/integrations/pooltogether-v4/utils/constants.ts b/integrations/pooltogether-v4/utils/constants.ts deleted file mode 100644 index 1d9ee523..00000000 --- a/integrations/pooltogether-v4/utils/constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const MINIMUM_DEPOSIT_AMOUNT = 2 diff --git a/integrations/pooltogether-v4/utils/prize-pool-contract-list.ts b/integrations/pooltogether-v4/utils/prize-pool-contract-list.ts deleted file mode 100644 index ff3dbc53..00000000 --- a/integrations/pooltogether-v4/utils/prize-pool-contract-list.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const PRIZE_POOL_CONTRACT = { - 1: "0xd89a09084555a7D0ABe7B111b1f78DFEdDd638Be", - 10: "0x79Bc8bD53244bC8a9C8c27509a2d573650A83373", - 137: "0x19DE635fb3678D8B8154E37d8C9Cdf182Fe84E60", -} as const diff --git a/integrations/pooltogether-v4/utils/ticket-contract-list.ts b/integrations/pooltogether-v4/utils/ticket-contract-list.ts deleted file mode 100644 index c1a68cf4..00000000 --- a/integrations/pooltogether-v4/utils/ticket-contract-list.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const TICKET_CONTRACT = { - 1: "0xdd4d117723C257CEe402285D3aCF218E9A8236E1", - 10: "0x62BB4fc73094c83B5e952C2180B23fA7054954c4", - 137: "0x6a304dFdb9f808741244b6bfEe65ca7B3b3A6076", -} as const diff --git a/integrations/pooltogether-v4/utils/usdc-contract-list.ts b/integrations/pooltogether-v4/utils/usdc-contract-list.ts deleted file mode 100644 index 1b4b9b67..00000000 --- a/integrations/pooltogether-v4/utils/usdc-contract-list.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const USDC_CONTRACT = { - 1: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - 10: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607", - 137: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", -} as const diff --git a/integrations/pooltogether-v4/wagmi.config.ts b/integrations/pooltogether-v4/wagmi.config.ts deleted file mode 100644 index 34a67abf..00000000 --- a/integrations/pooltogether-v4/wagmi.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineConfig } from "@wagmi/cli" -import { react } from "@wagmi/cli/plugins" - -import { yieldSourcePrizePoolABI } from "./abis/yield-source-prize-pool-abi" - -export default defineConfig({ - out: "./integrations/pooltogether-v4/generated/pooltogether-v4-wagmi.ts", - - contracts: [ - { - name: "poolTogetherPrizePool", - abi: yieldSourcePrizePoolABI, - }, - ], - plugins: [react()], -}) diff --git a/integrations/push-protocol/components/subscribe-button.tsx b/integrations/push-protocol/components/subscribe-button.tsx index 199c7d30..e2882747 100644 --- a/integrations/push-protocol/components/subscribe-button.tsx +++ b/integrations/push-protocol/components/subscribe-button.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react" import { SubscribeOptionsType } from "@pushprotocol/restapi/src/lib/channels" import { ImSpinner2 } from "react-icons/im" -import { useAccount, useNetwork, useSwitchNetwork } from "wagmi" +import { useAccount, useSwitchChain } from "wagmi" import { useEthersSigner } from "@/lib/hooks/web3/use-ethers-signer" @@ -28,14 +28,12 @@ export function SubscribeButton({ const channelChainId = pushEnvToChainId(env) const { address } = useAccount() - const { chain } = useNetwork() + const { chain } = useAccount() const signer = useEthersSigner() - const { switchNetworkAsync } = useSwitchNetwork({ - chainId: channelChainId, - }) + const { switchChainAsync } = useSwitchChain() - const { isLoading: subLoading, mutateAsync: subscribe } = useSubscribe() - const { isLoading: unsubLoading, mutateAsync: unsubscribe } = useUnsubscribe() + const { isPending: subLoading, mutateAsync: subscribe } = useSubscribe() + const { isPending: unsubLoading, mutateAsync: unsubscribe } = useUnsubscribe() const { data: userSubscriptions, isLoading: userSubsIsLoading } = useUserSubscriptions({ @@ -60,7 +58,9 @@ export function SubscribeButton({ if (!signer || !address) return if (channelChainId !== chain?.id) { - await switchNetworkAsync?.() + await switchChainAsync?.({ + chainId: channelChainId, + }) } const args: SubscribeOptionsType = { diff --git a/integrations/push-protocol/hooks/use-channel.ts b/integrations/push-protocol/hooks/use-channel.ts index b6122141..7c1acd63 100644 --- a/integrations/push-protocol/hooks/use-channel.ts +++ b/integrations/push-protocol/hooks/use-channel.ts @@ -37,7 +37,8 @@ const fetchChannel = async ({ channel, env }: UseChannelProps) => { } export const useChannel = ({ channel, env }: UseChannelProps) => { - return useQuery(["channel", channel, env], { + return useQuery({ + queryKey: ["channel", channel, env], queryFn: () => fetchChannel({ channel, env }), refetchOnWindowFocus: false, }) diff --git a/integrations/push-protocol/hooks/use-chats.ts b/integrations/push-protocol/hooks/use-chats.ts index f3f512f5..34cba49c 100644 --- a/integrations/push-protocol/hooks/use-chats.ts +++ b/integrations/push-protocol/hooks/use-chats.ts @@ -15,12 +15,10 @@ export const useChats = ({ pgpPrivateKey, toDecrypt, }: UseChatsProps) => { - return useQuery( - ["chats", account, env, page, limit, pgpPrivateKey, toDecrypt], - { - queryFn: () => - fetchChats({ account, env, page, limit, pgpPrivateKey, toDecrypt }), - refetchOnWindowFocus: false, - } - ) + return useQuery({ + queryKey: ["chats", account, env, page, limit, pgpPrivateKey, toDecrypt], + queryFn: () => + fetchChats({ account, env, page, limit, pgpPrivateKey, toDecrypt }), + refetchOnWindowFocus: false, + }) } diff --git a/integrations/push-protocol/hooks/use-notifications.ts b/integrations/push-protocol/hooks/use-notifications.ts index 41355337..ddb9e134 100644 --- a/integrations/push-protocol/hooks/use-notifications.ts +++ b/integrations/push-protocol/hooks/use-notifications.ts @@ -25,7 +25,8 @@ export const useNotifications = ({ limit, raw, }: UseNotificationsProps) => { - return useQuery(["notifications", user, spam, env, page, limit, raw], { + return useQuery({ + queryKey: ["notifications", user, spam, env, page, limit, raw], queryFn: () => fetchNotifications({ user, spam, env, page, limit, raw }), refetchOnWindowFocus: false, }) diff --git a/integrations/push-protocol/hooks/use-search-channels.ts b/integrations/push-protocol/hooks/use-search-channels.ts index 2dfd6b64..4a9d50f2 100644 --- a/integrations/push-protocol/hooks/use-search-channels.ts +++ b/integrations/push-protocol/hooks/use-search-channels.ts @@ -23,7 +23,8 @@ export const useSearchChannels = ({ page, limit, }: UseSearchChannelProps) => { - return useQuery(["search-channels", query, env, page, limit], { + return useQuery({ + queryKey: ["search-channels", query, env, page, limit], queryFn: () => searchChannels({ query, env, page, limit }), refetchOnWindowFocus: false, }) diff --git a/integrations/push-protocol/hooks/use-user-subscriptions.ts b/integrations/push-protocol/hooks/use-user-subscriptions.ts index 48f20cd9..0adf9d1a 100644 --- a/integrations/push-protocol/hooks/use-user-subscriptions.ts +++ b/integrations/push-protocol/hooks/use-user-subscriptions.ts @@ -17,7 +17,8 @@ export const useUserSubscriptions = ({ env, user, }: UseUserSubscriptionProps) => { - return useQuery(["user-subscriptions", env, user], { + return useQuery({ + queryKey: ["user-subscriptions", env, user], queryFn: () => fetchUserSubscriptions({ env, user }), refetchOnWindowFocus: false, }) diff --git a/integrations/session-keys/components/delete-session-key.tsx b/integrations/session-keys/components/delete-session-key.tsx index d0470db2..4a9c9d25 100644 --- a/integrations/session-keys/components/delete-session-key.tsx +++ b/integrations/session-keys/components/delete-session-key.tsx @@ -1,5 +1,5 @@ import type { Dispatch, SetStateAction } from "react" -import type { Address } from "wagmi" +import type { Address } from "viem" import { Button } from "@/components/ui/button" diff --git a/integrations/session-keys/components/list-session-keys.tsx b/integrations/session-keys/components/list-session-keys.tsx index 2767ff49..cbba08ba 100644 --- a/integrations/session-keys/components/list-session-keys.tsx +++ b/integrations/session-keys/components/list-session-keys.tsx @@ -1,7 +1,7 @@ import { useState, type Dispatch, type SetStateAction } from "react" import { AnimatePresence, motion } from "framer-motion" import { BsCheck2 } from "react-icons/bs" -import type { Address } from "wagmi" +import type { Address } from "viem" import { truncateEthAddress } from "@/lib/utils" import { Button } from "@/components/ui/button" diff --git a/integrations/session-keys/database.ts b/integrations/session-keys/database.ts index 5061efa6..f2b15717 100644 --- a/integrations/session-keys/database.ts +++ b/integrations/session-keys/database.ts @@ -1,5 +1,5 @@ import Dexie, { Table } from "dexie" -import type { Address } from "wagmi" +import type { Address } from "viem" export interface SessionKey { id: string diff --git a/integrations/session-keys/hooks/use-session-keys.ts b/integrations/session-keys/hooks/use-session-keys.ts index 9cda1a55..3e8c6bd2 100644 --- a/integrations/session-keys/hooks/use-session-keys.ts +++ b/integrations/session-keys/hooks/use-session-keys.ts @@ -1,6 +1,6 @@ import { useLiveQuery } from "dexie-react-hooks" +import type { Address } from "viem" import { generatePrivateKey, privateKeyToAccount } from "viem/accounts" -import type { Address } from "wagmi" import { SessionKeysDB } from "../database" diff --git a/integrations/siwe/actions/siwe-login.ts b/integrations/siwe/actions/siwe-login.ts index d764d5d4..076a3500 100644 --- a/integrations/siwe/actions/siwe-login.ts +++ b/integrations/siwe/actions/siwe-login.ts @@ -1,12 +1,13 @@ -import { Address } from "wagmi" -import { SignMessageArgs } from "wagmi/dist/actions" +import { type Address } from "viem" +import { type SignMessageParameters } from "wagmi/actions" +import { SignMessageMutateAsync } from "wagmi/query" import { siweMessage } from "./siwe-message" interface SiweLoginProps { address: Address chainId: number - signMessageAsync: (args?: SignMessageArgs | undefined) => Promise
+ signMessageAsync: SignMessageMutateAsync } export const siweLogin = async ({ diff --git a/integrations/siwe/actions/siwe-message.ts b/integrations/siwe/actions/siwe-message.ts index c9910c5f..094c0cfa 100644 --- a/integrations/siwe/actions/siwe-message.ts +++ b/integrations/siwe/actions/siwe-message.ts @@ -1,13 +1,13 @@ import { SiweMessage } from "siwe" -import type { Address } from "wagmi" -import { SignMessageArgs } from "wagmi/dist/actions" +import { type Address } from "viem" +import { SignMessageMutateAsync } from "wagmi/query" import { siteConfig } from "@/config/site" interface SiweMessageOptions { address: string chainId: number - signMessageAsync: (args?: SignMessageArgs | undefined) => Promise
+ signMessageAsync: SignMessageMutateAsync } /** diff --git a/integrations/siwe/components/button-siwe-login.tsx b/integrations/siwe/components/button-siwe-login.tsx index c59f5e70..08cc926e 100644 --- a/integrations/siwe/components/button-siwe-login.tsx +++ b/integrations/siwe/components/button-siwe-login.tsx @@ -1,7 +1,7 @@ "use client" import { HTMLAttributes } from "react" -import { useAccount, useNetwork, useSignMessage } from "wagmi" +import { useAccount, useSignMessage } from "wagmi" import { useUser } from "@/lib/hooks/use-user" import { cn } from "@/lib/utils" @@ -20,9 +20,8 @@ export const ButtonSIWELogin = ({ ...props }: ButtonSIWELoginProps) => { const { mutateUser } = useUser() - const { isLoading, signMessageAsync } = useSignMessage() - const { address } = useAccount() - const { chain } = useNetwork() + const { isPending, signMessageAsync } = useSignMessage() + const { address, chain } = useAccount() const handleCreateMessage = async () => { try { @@ -35,7 +34,7 @@ export const ButtonSIWELogin = ({ } const classes = cn("relative", className) const labelClasses = cn({ - "opacity-0": isLoading, + "opacity-0": isPending, }) return ( @@ -48,7 +47,7 @@ export const ButtonSIWELogin = ({ onClick={() => void handleCreateMessage()} {...props} > - {isLoading && ( + {isPending && ( )} {children || label || "Logout"} diff --git a/integrations/starter/generated/starter-wagmi.ts b/integrations/starter/generated/starter-wagmi.ts index 948827a4..7cc21249 100644 --- a/integrations/starter/generated/starter-wagmi.ts +++ b/integrations/starter/generated/starter-wagmi.ts @@ -1,22 +1,24 @@ -// Generated by @wagmi/cli@1.1.0 on 6/19/2023 at 9:30:24 AM import { - useContractRead, - UseContractReadConfig, - useContractWrite, - UseContractWriteConfig, - usePrepareContractWrite, - UsePrepareContractWriteConfig, - useContractEvent, - UseContractEventConfig, -} from 'wagmi' -import { ReadContractResult, WriteContractMode, PrepareWriteContractResult } from 'wagmi/actions' + createUseReadContract, + createUseWriteContract, + createUseSimulateContract, + createUseWatchContractEvent, +} from 'wagmi/codegen' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // starter ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -export const starterABI = [ - { constant: true, payable: false, stateMutability: 'view', type: 'function', inputs: [], name: 'name', outputs: [{ name: '', type: 'string' }] }, +export const starterAbi = [ + { + constant: true, + payable: false, + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'name', + outputs: [{ name: '', type: 'string' }], + }, { constant: false, payable: false, @@ -60,7 +62,15 @@ export const starterABI = [ name: 'balances', outputs: [{ name: '', type: 'uint256' }], }, - { constant: true, payable: false, stateMutability: 'view', type: 'function', inputs: [], name: 'decimals', outputs: [{ name: '', type: 'uint8' }] }, + { + constant: true, + payable: false, + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'decimals', + outputs: [{ name: '', type: 'uint8' }], + }, { constant: true, payable: false, @@ -82,7 +92,15 @@ export const starterABI = [ name: 'balanceOf', outputs: [{ name: 'balance', type: 'uint256' }], }, - { constant: true, payable: false, stateMutability: 'view', type: 'function', inputs: [], name: 'symbol', outputs: [{ name: '', type: 'string' }] }, + { + constant: true, + payable: false, + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'symbol', + outputs: [{ name: '', type: 'string' }], + }, { constant: false, payable: false, @@ -145,237 +163,161 @@ export const starterABI = [ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ */ -export function useStarterRead>( - config: Omit, 'abi'> = {} as any -) { - return useContractRead({ abi: starterABI, ...config } as UseContractReadConfig) -} +export const useReadStarter = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"name"` */ -export function useStarterName>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'name', ...config } as UseContractReadConfig) -} +export const useReadStarterName = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'name', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"totalSupply"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"totalSupply"` */ -export function useStarterTotalSupply>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'totalSupply', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterTotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'totalSupply', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"balances"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"balances"` */ -export function useStarterBalances>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'balances', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterBalances = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'balances', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"decimals"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"decimals"` */ -export function useStarterDecimals>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'decimals', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterDecimals = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'decimals', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"allowed"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"allowed"` */ -export function useStarterAllowed>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'allowed', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterAllowed = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'allowed', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"balanceOf"` */ -export function useStarterBalanceOf>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'balanceOf', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterBalanceOf = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'balanceOf', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"symbol"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"symbol"` */ -export function useStarterSymbol>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'symbol', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterSymbol = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'symbol', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"allowance"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"allowance"` */ -export function useStarterAllowance>( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return useContractRead({ abi: starterABI, functionName: 'allowance', ...config } as UseContractReadConfig< - typeof starterABI, - TFunctionName, - TSelectData - >) -} +export const useReadStarterAllowance = /*#__PURE__*/ createUseReadContract({ + abi: starterAbi, + functionName: 'allowance', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link starterABI}__. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link starterAbi}__ */ -export function useStarterWrite( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], TFunctionName, TMode> - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ abi: starterABI, ...config } as any) -} +export const useWriteStarter = /*#__PURE__*/ createUseWriteContract({ + abi: starterAbi, +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"approve"` */ -export function useStarterApprove( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'approve', TMode> & { - functionName?: 'approve' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'approve' - } = {} as any -) { - return useContractWrite({ abi: starterABI, functionName: 'approve', ...config } as any) -} +export const useWriteStarterApprove = /*#__PURE__*/ createUseWriteContract({ + abi: starterAbi, + functionName: 'approve', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"transferFrom"` */ -export function useStarterTransferFrom( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transferFrom', TMode> & { - functionName?: 'transferFrom' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transferFrom' - } = {} as any -) { - return useContractWrite({ abi: starterABI, functionName: 'transferFrom', ...config } as any) -} +export const useWriteStarterTransferFrom = /*#__PURE__*/ createUseWriteContract( + { abi: starterAbi, functionName: 'transferFrom' }, +) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"transfer"` */ -export function useStarterTransfer( - config: TMode extends 'prepared' - ? UseContractWriteConfig['request']['abi'], 'transfer', TMode> & { - functionName?: 'transfer' - } - : UseContractWriteConfig & { - abi?: never - functionName?: 'transfer' - } = {} as any -) { - return useContractWrite({ abi: starterABI, functionName: 'transfer', ...config } as any) -} +export const useWriteStarterTransfer = /*#__PURE__*/ createUseWriteContract({ + abi: starterAbi, + functionName: 'transfer', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link starterABI}__. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link starterAbi}__ */ -export function usePrepareStarterWrite( - config: Omit, 'abi'> = {} as any -) { - return usePrepareContractWrite({ abi: starterABI, ...config } as UsePrepareContractWriteConfig) -} +export const useSimulateStarter = /*#__PURE__*/ createUseSimulateContract({ + abi: starterAbi, +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"approve"` */ -export function usePrepareStarterApprove( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: starterABI, functionName: 'approve', ...config } as UsePrepareContractWriteConfig< - typeof starterABI, - 'approve' - >) -} +export const useSimulateStarterApprove = + /*#__PURE__*/ createUseSimulateContract({ + abi: starterAbi, + functionName: 'approve', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"transferFrom"` */ -export function usePrepareStarterTransferFrom( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: starterABI, functionName: 'transferFrom', ...config } as UsePrepareContractWriteConfig< - typeof starterABI, - 'transferFrom' - >) -} +export const useSimulateStarterTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: starterAbi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link starterABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link starterAbi}__ and `functionName` set to `"transfer"` */ -export function usePrepareStarterTransfer( - config: Omit, 'abi' | 'functionName'> = {} as any -) { - return usePrepareContractWrite({ abi: starterABI, functionName: 'transfer', ...config } as UsePrepareContractWriteConfig< - typeof starterABI, - 'transfer' - >) -} +export const useSimulateStarterTransfer = + /*#__PURE__*/ createUseSimulateContract({ + abi: starterAbi, + functionName: 'transfer', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link starterABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link starterAbi}__ */ -export function useStarterEvent(config: Omit, 'abi'> = {} as any) { - return useContractEvent({ abi: starterABI, ...config } as UseContractEventConfig) -} +export const useWatchStarterEvent = /*#__PURE__*/ createUseWatchContractEvent({ + abi: starterAbi, +}) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link starterABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link starterAbi}__ and `eventName` set to `"Transfer"` */ -export function useStarterTransferEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: starterABI, eventName: 'Transfer', ...config } as UseContractEventConfig) -} +export const useWatchStarterTransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: starterAbi, + eventName: 'Transfer', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link starterABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link starterAbi}__ and `eventName` set to `"Approval"` */ -export function useStarterApprovalEvent(config: Omit, 'abi' | 'eventName'> = {} as any) { - return useContractEvent({ abi: starterABI, eventName: 'Approval', ...config } as UseContractEventConfig) -} +export const useWatchStarterApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: starterAbi, + eventName: 'Approval', + }) diff --git a/lib/generated/blockchain.ts b/lib/generated/blockchain.ts index 65219fec..2871b51f 100644 --- a/lib/generated/blockchain.ts +++ b/lib/generated/blockchain.ts @@ -1,118 +1,108 @@ -// Generated by @wagmi/cli@1.1.0 on 9/11/2023 at 12:19:34 PM import { - useContractEvent, - UseContractEventConfig, - useContractRead, - UseContractReadConfig, - useContractWrite, - UseContractWriteConfig, - usePrepareContractWrite, - UsePrepareContractWriteConfig, -} from "wagmi" -import { - PrepareWriteContractResult, - ReadContractResult, - WriteContractMode, -} from "wagmi/actions" + createUseReadContract, + createUseWriteContract, + createUseSimulateContract, + createUseWatchContractEvent, +} from 'wagmi/codegen' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // erc20 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -export const erc20ABI = [ +export const erc20Abi = [ { - type: "event", + type: 'event', inputs: [ - { name: "owner", type: "address", indexed: true }, - { name: "spender", type: "address", indexed: true }, - { name: "value", type: "uint256", indexed: false }, + { name: 'owner', type: 'address', indexed: true }, + { name: 'spender', type: 'address', indexed: true }, + { name: 'value', type: 'uint256', indexed: false }, ], - name: "Approval", + name: 'Approval', }, { - type: "event", + type: 'event', inputs: [ - { name: "from", type: "address", indexed: true }, - { name: "to", type: "address", indexed: true }, - { name: "value", type: "uint256", indexed: false }, + { name: 'from', type: 'address', indexed: true }, + { name: 'to', type: 'address', indexed: true }, + { name: 'value', type: 'uint256', indexed: false }, ], - name: "Transfer", + name: 'Transfer', }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [ - { name: "owner", type: "address" }, - { name: "spender", type: "address" }, + { name: 'owner', type: 'address' }, + { name: 'spender', type: 'address' }, ], - name: "allowance", - outputs: [{ name: "", type: "uint256" }], + name: 'allowance', + outputs: [{ type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "spender", type: "address" }, - { name: "amount", type: "uint256" }, + { name: 'spender', type: 'address' }, + { name: 'amount', type: 'uint256' }, ], - name: "approve", - outputs: [{ name: "", type: "bool" }], + name: 'approve', + outputs: [{ type: 'bool' }], }, { - stateMutability: "view", - type: "function", - inputs: [{ name: "account", type: "address" }], - name: "balanceOf", - outputs: [{ name: "", type: "uint256" }], + stateMutability: 'view', + type: 'function', + inputs: [{ name: 'account', type: 'address' }], + name: 'balanceOf', + outputs: [{ type: 'uint256' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "decimals", - outputs: [{ name: "", type: "uint8" }], + name: 'decimals', + outputs: [{ type: 'uint8' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "name", - outputs: [{ name: "", type: "string" }], + name: 'name', + outputs: [{ type: 'string' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "symbol", - outputs: [{ name: "", type: "string" }], + name: 'symbol', + outputs: [{ type: 'string' }], }, { - stateMutability: "view", - type: "function", + stateMutability: 'view', + type: 'function', inputs: [], - name: "totalSupply", - outputs: [{ name: "", type: "uint256" }], + name: 'totalSupply', + outputs: [{ type: 'uint256' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "recipient", type: "address" }, - { name: "amount", type: "uint256" }, + { name: 'recipient', type: 'address' }, + { name: 'amount', type: 'uint256' }, ], - name: "transfer", - outputs: [{ name: "", type: "bool" }], + name: 'transfer', + outputs: [{ type: 'bool' }], }, { - stateMutability: "nonpayable", - type: "function", + stateMutability: 'nonpayable', + type: 'function', inputs: [ - { name: "sender", type: "address" }, - { name: "recipient", type: "address" }, - { name: "amount", type: "uint256" }, + { name: 'sender', type: 'address' }, + { name: 'recipient', type: 'address' }, + { name: 'amount', type: 'uint256' }, ], - name: "transferFrom", - outputs: [{ name: "", type: "bool" }], + name: 'transferFrom', + outputs: [{ type: 'bool' }], }, ] as const @@ -121,344 +111,143 @@ export const erc20ABI = [ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ */ -export function useErc20Read< - TFunctionName extends string, - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" - > = {} as any -) { - return useContractRead({ abi: erc20ABI, ...config } as UseContractReadConfig< - typeof erc20ABI, - TFunctionName, - TSelectData - >) -} +export const useReadErc20 = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"allowance"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"allowance"` */ -export function useErc20Allowance< - TFunctionName extends "allowance", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "allowance", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20Allowance = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'allowance', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"balanceOf"` */ -export function useErc20BalanceOf< - TFunctionName extends "balanceOf", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "balanceOf", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20BalanceOf = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'balanceOf', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"decimals"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"decimals"` */ -export function useErc20Decimals< - TFunctionName extends "decimals", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "decimals", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20Decimals = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'decimals', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"name"` */ -export function useErc20Name< - TFunctionName extends "name", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "name", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20Name = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'name', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"symbol"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"symbol"` */ -export function useErc20Symbol< - TFunctionName extends "symbol", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "symbol", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20Symbol = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'symbol', +}) /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"totalSupply"`. + * Wraps __{@link useReadContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"totalSupply"` */ -export function useErc20TotalSupply< - TFunctionName extends "totalSupply", - TSelectData = ReadContractResult ->( - config: Omit< - UseContractReadConfig, - "abi" | "functionName" - > = {} as any -) { - return useContractRead({ - abi: erc20ABI, - functionName: "totalSupply", - ...config, - } as UseContractReadConfig) -} +export const useReadErc20TotalSupply = /*#__PURE__*/ createUseReadContract({ + abi: erc20Abi, + functionName: 'totalSupply', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ */ -export function useErc20Write< - TFunctionName extends string, - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult["request"]["abi"], - TFunctionName, - TMode - > - : UseContractWriteConfig & { - abi?: never - } = {} as any -) { - return useContractWrite({ - abi: erc20ABI, - ...config, - } as any) -} +export const useWriteErc20 = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"approve"` */ -export function useErc20Approve( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof erc20ABI, - "approve" - >["request"]["abi"], - "approve", - TMode - > & { functionName?: "approve" } - : UseContractWriteConfig & { - abi?: never - functionName?: "approve" - } = {} as any -) { - return useContractWrite({ - abi: erc20ABI, - functionName: "approve", - ...config, - } as any) -} +export const useWriteErc20Approve = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'approve', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transfer"` */ -export function useErc20Transfer( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof erc20ABI, - "transfer" - >["request"]["abi"], - "transfer", - TMode - > & { functionName?: "transfer" } - : UseContractWriteConfig & { - abi?: never - functionName?: "transfer" - } = {} as any -) { - return useContractWrite({ - abi: erc20ABI, - functionName: "transfer", - ...config, - } as any) -} +export const useWriteErc20Transfer = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'transfer', +}) /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transferFrom"` */ -export function useErc20TransferFrom< - TMode extends WriteContractMode = undefined ->( - config: TMode extends "prepared" - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof erc20ABI, - "transferFrom" - >["request"]["abi"], - "transferFrom", - TMode - > & { functionName?: "transferFrom" } - : UseContractWriteConfig & { - abi?: never - functionName?: "transferFrom" - } = {} as any -) { - return useContractWrite({ - abi: erc20ABI, - functionName: "transferFrom", - ...config, - } as any) -} +export const useWriteErc20TransferFrom = /*#__PURE__*/ createUseWriteContract({ + abi: erc20Abi, + functionName: 'transferFrom', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ */ -export function usePrepareErc20Write( - config: Omit< - UsePrepareContractWriteConfig, - "abi" - > = {} as any -) { - return usePrepareContractWrite({ - abi: erc20ABI, - ...config, - } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20 = /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"approve"` */ -export function usePrepareErc20Approve( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: erc20ABI, - functionName: "approve", - ...config, - } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20Approve = /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, + functionName: 'approve', +}) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transfer"` */ -export function usePrepareErc20Transfer( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: erc20ABI, - functionName: "transfer", - ...config, - } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20Transfer = /*#__PURE__*/ createUseSimulateContract( + { abi: erc20Abi, functionName: 'transfer' }, +) /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link erc20ABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link erc20Abi}__ and `functionName` set to `"transferFrom"` */ -export function usePrepareErc20TransferFrom( - config: Omit< - UsePrepareContractWriteConfig, - "abi" | "functionName" - > = {} as any -) { - return usePrepareContractWrite({ - abi: erc20ABI, - functionName: "transferFrom", - ...config, - } as UsePrepareContractWriteConfig) -} +export const useSimulateErc20TransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: erc20Abi, + functionName: 'transferFrom', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ */ -export function useErc20Event( - config: Omit< - UseContractEventConfig, - "abi" - > = {} as any -) { - return useContractEvent({ - abi: erc20ABI, - ...config, - } as UseContractEventConfig) -} +export const useWatchErc20Event = /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, +}) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ and `eventName` set to `"Approval"` */ -export function useErc20ApprovalEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: erc20ABI, - eventName: "Approval", - ...config, - } as UseContractEventConfig) -} +export const useWatchErc20ApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, + eventName: 'Approval', + }) /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link erc20ABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link erc20Abi}__ and `eventName` set to `"Transfer"` */ -export function useErc20TransferEvent( - config: Omit< - UseContractEventConfig, - "abi" | "eventName" - > = {} as any -) { - return useContractEvent({ - abi: erc20ABI, - eventName: "Transfer", - ...config, - } as UseContractEventConfig) -} +export const useWatchErc20TransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: erc20Abi, + eventName: 'Transfer', + }) diff --git a/lib/hooks/app/use-get-app-users.ts b/lib/hooks/app/use-get-app-users.ts index a8fb6043..4151030f 100644 --- a/lib/hooks/app/use-get-app-users.ts +++ b/lib/hooks/app/use-get-app-users.ts @@ -1,9 +1,11 @@ -import { useQuery } from "wagmi" +import { useQuery } from "@tanstack/react-query" import { getAppUsers } from "../../app/get-app-users" export const useGetAppUsers = (queryKey: QueryKey) => { - return useQuery(["appUsers", queryKey], () => getAppUsers(), { - cacheTime: 0, + return useQuery({ + queryKey: ["appUsers", queryKey], + queryFn: () => getAppUsers(), + gcTime: 0, }) } diff --git a/lib/hooks/use-user.tsx b/lib/hooks/use-user.tsx index 6be2243f..e5590102 100644 --- a/lib/hooks/use-user.tsx +++ b/lib/hooks/use-user.tsx @@ -11,7 +11,8 @@ interface User { } export function useUser({ redirectTo = "", redirectIfFound = false } = {}) { - const { data: user, refetch: mutateUser } = useQuery(["user"], { + const { data: user, refetch: mutateUser } = useQuery({ + queryKey: ["user"], queryFn: () => fetch("/api/app/user").then((res) => res.json()), }) diff --git a/lib/hooks/web3/use-ethers-provider.ts b/lib/hooks/web3/use-ethers-provider.ts index 8588f88b..5820981f 100644 --- a/lib/hooks/web3/use-ethers-provider.ts +++ b/lib/hooks/web3/use-ethers-provider.ts @@ -1,14 +1,14 @@ import { useMemo } from "react" import { providers } from "ethers" -import { type HttpTransport } from "viem" -import { usePublicClient, type PublicClient } from "wagmi" +import { type HttpTransport, type PublicClient } from "viem" +import { usePublicClient } from "wagmi" export function publicClientToProvider(publicClient: PublicClient) { const { chain, transport } = publicClient const network = { - chainId: chain.id, - name: chain.name, - ensAddress: chain.contracts?.ensRegistry?.address, + chainId: chain!.id, + name: chain!.name, + ensAddress: chain!.contracts?.ensRegistry?.address, } if (transport.type === "fallback") return new providers.FallbackProvider( @@ -23,5 +23,5 @@ export function publicClientToProvider(publicClient: PublicClient) { /** Hook to convert a viem Public Client to an ethers.js Provider. */ export function useEthersProvider({ chainId }: { chainId?: number } = {}) { const publicClient = usePublicClient({ chainId }) - return useMemo(() => publicClientToProvider(publicClient), [publicClient]) + return useMemo(() => publicClientToProvider(publicClient!), [publicClient]) } diff --git a/lib/hooks/web3/use-ethers-signer.ts b/lib/hooks/web3/use-ethers-signer.ts index 14f9b890..2700128e 100644 --- a/lib/hooks/web3/use-ethers-signer.ts +++ b/lib/hooks/web3/use-ethers-signer.ts @@ -1,16 +1,17 @@ import { useMemo } from "react" import { providers } from "ethers" -import { useWalletClient, type WalletClient } from "wagmi" +import { type WalletClient } from "viem" +import { useWalletClient } from "wagmi" export function walletClientToSigner(walletClient: WalletClient) { const { account, chain, transport } = walletClient const network = { - chainId: chain.id, - name: chain.name, - ensAddress: chain.contracts?.ensRegistry?.address, + chainId: chain!.id, + name: chain!.name, + ensAddress: chain!.contracts?.ensRegistry?.address, } const provider = new providers.Web3Provider(transport, network) - const signer = provider.getSigner(account.address) + const signer = provider.getSigner(account!.address) return signer } diff --git a/package.json b/package.json index 348c6776..3ce08d2a 100644 --- a/package.json +++ b/package.json @@ -68,9 +68,9 @@ "@radix-ui/react-tabs": "^1.0.2", "@radix-ui/react-toast": "^1.1.3", "@radix-ui/react-tooltip": "^1.0.3", - "@rainbow-me/rainbowkit": "1.0.1", + "@rainbow-me/rainbowkit": "2.0.6", "@t3-oss/env-nextjs": "^0.4.0", - "@tanstack/react-query": "^4.3.9", + "@tanstack/react-query": "^5.32.1", "abitype": "^0.9.6", "arweave": "^1.14.0", "arweave-account": "^1.4.0", @@ -106,8 +106,8 @@ "tailwindcss": "^3.3.3", "tailwindcss-animate": "^1.0.6", "usehooks-ts": "^2.9.1", - "viem": "^1.0.0", - "wagmi": "1.3.10", + "viem": "^2.9.29", + "wagmi": "2.7.0", "zod": "^3.21.4" }, "devDependencies": { @@ -128,7 +128,7 @@ "@types/react-table": "^7.7.14", "@typescript-eslint/eslint-plugin": "^5.59.11", "@typescript-eslint/parser": "^5.59.11", - "@wagmi/cli": "^1.1.0", + "@wagmi/cli": "^2.1.4", "autoprefixer": "^10.4.13", "concurrently": "^8.2.0", "eslint": "8.30.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed50fca8..c5eed892 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,5 @@ lockfileVersion: '6.0' -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - dependencies: '@bgd-labs/aave-address-book': specifier: ^1.30.0 @@ -22,10 +18,10 @@ dependencies: version: 3.1.1(react-hook-form@7.43.9) '@lens-protocol/react-web': specifier: ^1.3.0 - version: 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) + version: 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) '@lens-protocol/wagmi': specifier: ^2.1.0 - version: 2.1.0(@lens-protocol/react-web@1.3.0)(ethers@5.7.2)(viem@1.0.0)(wagmi@1.3.10) + version: 2.1.0(@lens-protocol/react-web@1.3.0)(ethers@5.7.2)(viem@2.9.29)(wagmi@2.7.0) '@lit-protocol/lit-node-client': specifier: 2.1.161 version: 2.1.161(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(react@18.2.0) @@ -102,14 +98,14 @@ dependencies: specifier: ^1.0.3 version: 1.0.5(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@rainbow-me/rainbowkit': - specifier: 1.0.1 - version: 1.0.1(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(viem@1.0.0)(wagmi@1.3.10) + specifier: 2.0.6 + version: 2.0.6(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(viem@2.9.29)(wagmi@2.7.0) '@t3-oss/env-nextjs': specifier: ^0.4.0 version: 0.4.0(typescript@5.0.4)(zod@3.21.4) '@tanstack/react-query': - specifier: ^4.3.9 - version: 4.26.1(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) + specifier: ^5.32.1 + version: 5.32.1(react@18.2.0) abitype: specifier: ^0.9.6 version: 0.9.6(typescript@5.0.4)(zod@3.21.4) @@ -166,7 +162,7 @@ dependencies: version: 14.0.3(@babel/core@7.18.5)(react-dom@18.2.0)(react@18.2.0) next-pwa: specifier: ^5.6.0 - version: 5.6.0(@babel/core@7.18.5)(esbuild@0.15.13)(next@14.0.3)(webpack@5.89.0) + version: 5.6.0(@babel/core@7.18.5)(esbuild@0.19.12)(next@14.0.3)(webpack@5.89.0) next-themes: specifier: ^0.2.1 version: 0.2.1(next@14.0.3)(react-dom@18.2.0)(react@18.2.0) @@ -216,11 +212,11 @@ dependencies: specifier: ^2.9.1 version: 2.9.1(react-dom@18.2.0)(react@18.2.0) viem: - specifier: ^1.0.0 - version: 1.0.0(typescript@5.0.4)(zod@3.21.4) + specifier: ^2.9.29 + version: 2.9.29(typescript@5.0.4)(zod@3.21.4) wagmi: - specifier: 1.3.10 - version: 1.3.10(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) + specifier: 2.7.0 + version: 2.7.0(@tanstack/react-query@5.32.1)(@types/react@18.2.38)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) zod: specifier: ^3.21.4 version: 3.21.4 @@ -278,8 +274,8 @@ devDependencies: specifier: ^5.59.11 version: 5.59.11(eslint@8.30.0)(typescript@5.0.4) '@wagmi/cli': - specifier: ^1.1.0 - version: 1.1.0(typescript@5.0.4)(wagmi@1.3.10) + specifier: ^2.1.4 + version: 2.1.4(typescript@5.0.4) autoprefixer: specifier: ^10.4.13 version: 10.4.14(postcss@8.4.21) @@ -351,8 +347,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /@adraffy/ens-normalize@1.9.0: - resolution: {integrity: sha512-iowxq3U30sghZotgl4s/oJRci6WPBfNO5YYgk2cIOMCHr3LeGPcsZjCEr+33Q4N+oV3OABDAtA+pyvWjbvBifQ==} + /@adraffy/ens-normalize@1.10.0: + resolution: {integrity: sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==} /@alloc/quick-lru@5.2.0: resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} @@ -416,7 +412,7 @@ packages: response-iterator: 0.2.6 symbol-observable: 4.0.0 ts-invariant: 0.10.3 - tslib: 2.5.0 + tslib: 2.6.2 zen-observable-ts: 1.2.5 dev: false @@ -442,7 +438,7 @@ packages: '@babel/core': 7.18.5 '@babel/generator': 7.22.10 '@babel/parser': 7.22.10 - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@babel/traverse': 7.22.10 '@babel/types': 7.22.10 babel-preset-fbjs: 3.4.0(@babel/core@7.18.5) @@ -4576,6 +4572,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.11 + dev: false /@babel/runtime@7.23.4: resolution: {integrity: sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==} @@ -4726,32 +4723,37 @@ packages: case: 1.6.3 dev: false - /@coinbase/wallet-sdk@3.6.6: - resolution: {integrity: sha512-vX+epj/Ttjo7XRwlr3TFUUfW5GTRMvORpERPwiu7z2jl3DSVL4rXLmHt5y6LDPlUVreas2gumdcFbu0fLRG9Jg==} - engines: {node: '>= 10.0.0'} + /@coinbase/wallet-sdk@3.9.1: + resolution: {integrity: sha512-cGUE8wm1/cMI8irRMVOqbFWYcnNugqCtuy2lnnHfgloBg+GRLs9RsrkOUDMdv/StfUeeKhCDyYudsXXvcL1xIA==} dependencies: - '@metamask/safe-event-emitter': 2.0.0 - '@solana/web3.js': 1.75.0 - bind-decorator: 1.0.11 bn.js: 5.2.1 buffer: 6.0.3 clsx: 1.2.1 - eth-block-tracker: 6.1.0 - eth-json-rpc-filters: 5.1.0 - eth-rpc-errors: 4.0.2 - json-rpc-engine: 6.1.0 + eth-block-tracker: 7.1.0 + eth-json-rpc-filters: 6.0.1 + eventemitter3: 5.0.1 keccak: 3.0.3 - preact: 10.13.2 - qs: 6.11.1 - rxjs: 6.6.7 + preact: 10.21.0 sha.js: 2.4.11 - stream-browserify: 3.0.0 - util: 0.12.5 transitivePeerDependencies: - - bufferutil - - encoding - supports-color - - utf-8-validate + dev: false + + /@coinbase/wallet-sdk@3.9.3: + resolution: {integrity: sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==} + dependencies: + bn.js: 5.2.1 + buffer: 6.0.3 + clsx: 1.2.1 + eth-block-tracker: 7.1.0 + eth-json-rpc-filters: 6.0.1 + eventemitter3: 5.0.1 + keccak: 3.0.3 + preact: 10.21.0 + sha.js: 2.4.11 + transitivePeerDependencies: + - supports-color + dev: false /@commitlint/cli@17.4.4: resolution: {integrity: sha512-HwKlD7CPVMVGTAeFZylVNy14Vm5POVY0WxPkZr7EXLC/os0LH/obs6z4HRvJtH/nHCMYBvUBQhGwnufKfTjd5g==} @@ -4924,7 +4926,7 @@ packages: /@confio/ics23@0.6.8: resolution: {integrity: sha512-wB6uo+3A50m0sW/EWcU64xpV/8wShZ6bMTa7pF8eYsTrSkQA7oLUIJcs/wb8g4y2Oyq701BaGiO6n/ak5WXO1w==} dependencies: - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.2 protobufjs: 6.11.3 dev: false @@ -5054,7 +5056,7 @@ packages: '@cosmjs/encoding': 0.30.1 '@cosmjs/math': 0.30.1 '@cosmjs/utils': 0.30.1 - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.2 bn.js: 5.2.1 elliptic: 6.5.4 libsodium-wrappers: 0.7.11 @@ -5161,8 +5163,8 @@ packages: dependencies: '@jridgewell/trace-mapping': 0.3.9 - /@emotion/hash@0.8.0: - resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} + /@emotion/hash@0.9.1: + resolution: {integrity: sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==} dev: false /@emotion/is-prop-valid@0.8.8: @@ -5201,7 +5203,7 @@ packages: resolution: {integrity: sha512-06t1xCPXq6QFN7W1JUEf68aCwYN0OUDNAIoJe7bAqhaoa2vn7NCcuX1VHkJ/OWpmElUgCsRO6RiBbIru1in0Ig==} dependencies: '@envelop/types': 3.0.2 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@envelop/core@4.0.3: @@ -5221,13 +5223,13 @@ packages: '@envelop/core': 3.0.6 '@graphql-tools/utils': 8.13.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@envelop/types@3.0.2: resolution: {integrity: sha512-pOFea9ha0EkURWxJ/35axoH9fDGP5S2cUu/5Mmo9pb8zUf+TaEot8vB670XXihFEn/92759BMjLJNWBKmNhyng==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@envelop/types@4.0.1: @@ -5247,25 +5249,193 @@ packages: graphql: 16.8.1 hash-it: 6.0.0 lru-cache: 6.0.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true - /@esbuild/android-arm@0.15.13: - resolution: {integrity: sha512-RY2fVI8O0iFUNvZirXaQ1vMvK0xhCcl0gqRj74Z6yEiO1zAUa7hbsdwZM1kzqbxHK7LFyMizipfXT3JME+12Hw==} + /@esbuild/aix-ppc64@0.19.12: + resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + optional: true + + /@esbuild/android-arm64@0.19.12: + resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-arm@0.19.12: + resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} engines: {node: '>=12'} cpu: [arm] os: [android] requiresBuild: true optional: true - /@esbuild/linux-loong64@0.15.13: - resolution: {integrity: sha512-+BoyIm4I8uJmH/QDIH0fu7MG0AEx9OXEDXnqptXCwKOlOqZiS4iraH1Nr7/ObLMokW3sOCeBNyD68ATcV9b9Ag==} + /@esbuild/android-x64@0.19.12: + resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/darwin-arm64@0.19.12: + resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/darwin-x64@0.19.12: + resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/freebsd-arm64@0.19.12: + resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/freebsd-x64@0.19.12: + resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/linux-arm64@0.19.12: + resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-arm@0.19.12: + resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ia32@0.19.12: + resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-loong64@0.19.12: + resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] requiresBuild: true optional: true + /@esbuild/linux-mips64el@0.19.12: + resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ppc64@0.19.12: + resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-riscv64@0.19.12: + resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-s390x@0.19.12: + resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-x64@0.19.12: + resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/netbsd-x64@0.19.12: + resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + /@esbuild/openbsd-x64@0.19.12: + resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + /@esbuild/sunos-x64@0.19.12: + resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + /@esbuild/win32-arm64@0.19.12: + resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-ia32@0.19.12: + resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-x64@0.19.12: + resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + /@eslint-community/eslint-utils@4.4.0(eslint@8.30.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5395,6 +5565,13 @@ packages: ethereumjs-util: 7.1.5 dev: false + /@ethereumjs/common@3.2.0: + resolution: {integrity: sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==} + dependencies: + '@ethereumjs/util': 8.1.0 + crc-32: 1.2.2 + dev: false + /@ethereumjs/rlp@4.0.1: resolution: {integrity: sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==} engines: {node: '>=14'} @@ -5415,6 +5592,16 @@ packages: ethereumjs-util: 7.1.5 dev: false + /@ethereumjs/tx@4.2.0: + resolution: {integrity: sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==} + engines: {node: '>=14'} + dependencies: + '@ethereumjs/common': 3.2.0 + '@ethereumjs/rlp': 4.0.1 + '@ethereumjs/util': 8.1.0 + ethereum-cryptography: 2.1.2 + dev: false + /@ethereumjs/util@8.1.0: resolution: {integrity: sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==} engines: {node: '>=14'} @@ -5811,7 +5998,7 @@ packages: '@graphql-tools/wrap': ^9.4.2 || ^10.0.0 graphql: ^15.2.0 || ^16.0.0 dependencies: - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/delegate': 10.0.3(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@graphql-tools/wrap': 10.0.1(graphql@16.8.1) @@ -5830,7 +6017,7 @@ packages: '@graphql-tools/wrap': ^9.4.2 || ^10.0.0 graphql: ^15.2.0 || ^16.0.0 dependencies: - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/delegate': 10.0.3(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@graphql-tools/wrap': 10.0.1(graphql@16.8.1) @@ -5848,7 +6035,7 @@ packages: graphql: ^15.2.0 || ^16.0.0 dependencies: '@graphql-mesh/transform-type-merging': 0.93.1(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/delegate': 10.0.3(graphql@16.8.1) graphql: 16.8.1 tslib: 2.5.0 @@ -6331,7 +6518,7 @@ packages: dependency-graph: 0.11.0 graphql: 16.8.1 object-inspect: 1.10.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-mesh/cache-localforage@0.93.1(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(graphql@16.8.1)(tslib@2.5.0): @@ -6364,7 +6551,7 @@ packages: '@graphql-mesh/config': 0.93.1(@babel/core@7.18.5)(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/runtime@0.93.2)(@graphql-mesh/store@0.93.1)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) '@graphql-mesh/http': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/runtime@0.93.2)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-mesh/store': 0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) @@ -6387,7 +6574,7 @@ packages: tsconfig-paths: 4.2.0 tslib: 2.5.0 typescript: 5.0.4 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 8.13.0 yargs: 17.7.2 transitivePeerDependencies: - '@babel/core' @@ -6420,7 +6607,7 @@ packages: '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) '@graphql-mesh/merger-bare': 0.93.1(@graphql-mesh/store@0.93.1)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/merger-stitching': 0.93.1(@graphql-mesh/store@0.93.1)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-mesh/store': 0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) @@ -6467,10 +6654,10 @@ packages: tslib: ^2.4.0 dependencies: '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) - '@graphql-mesh/store': 0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/store': 0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-mesh/string-interpolation': 0.4.4(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) '@graphql-tools/url-loader': 7.17.18(@types/node@17.0.45)(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) @@ -6496,7 +6683,7 @@ packages: tslib: ^2.4.0 dependencies: '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) - '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/runtime': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) fets: 0.1.5 @@ -6547,7 +6734,7 @@ packages: tslib: 2.5.0 dev: true - /@graphql-mesh/runtime@0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0): + /@graphql-mesh/runtime@0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2): resolution: {integrity: sha512-8z9ag3jZLmkzawMzF6+i/+P1nQai+HmSZzNeJJen6fRkwprSM1Z7B4lfYBYhdiCbK11HHubDfw4LYwRuBcISMQ==} peerDependencies: '@graphql-mesh/cross-helpers': ^0.3.4 @@ -6560,9 +6747,9 @@ packages: '@envelop/core': 3.0.6 '@envelop/extended-validation': 2.0.6(@envelop/core@3.0.6)(graphql@16.8.1) '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) - '@graphql-mesh/string-interpolation': 0.4.4(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/string-interpolation': 0.4.4(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/batch-delegate': 8.4.27(graphql@16.8.1) '@graphql-tools/batch-execute': 8.5.22(graphql@16.8.1) '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) @@ -6570,7 +6757,7 @@ packages: '@graphql-tools/wrap': 9.4.2(graphql@16.8.1) '@whatwg-node/fetch': 0.8.8 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-mesh/store@0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0): @@ -6592,6 +6779,25 @@ packages: tslib: 2.5.0 dev: true + /@graphql-mesh/store@0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2): + resolution: {integrity: sha512-OEljVuaZn2htU1rt4Yll/aJmynw3/Kvhd6eE8V0/del0u9iuLJqiKkzFJl8HUSMh0IkO10OnficJnTM0tCmxRw==} + peerDependencies: + '@graphql-mesh/cross-helpers': ^0.3.4 + '@graphql-mesh/types': ^0.93.1 + '@graphql-mesh/utils': ^0.93.1 + '@graphql-tools/utils': ^9.2.1 + graphql: '*' + tslib: ^2.4.0 + dependencies: + '@graphql-inspector/core': 3.3.0(graphql@16.8.1) + '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 + dev: true + /@graphql-mesh/string-interpolation@0.4.4(graphql@16.8.1)(tslib@2.5.0): resolution: {integrity: sha512-IotswBYZRaPswOebcr2wuOFuzD3dHIJxVEkPiiQubqjUIR8HhQI22XHJv0WNiQZ65z8NR9+GYWwEDIc2JRCNfQ==} peerDependencies: @@ -6605,6 +6811,19 @@ packages: tslib: 2.5.0 dev: true + /@graphql-mesh/string-interpolation@0.4.4(graphql@16.8.1)(tslib@2.6.2): + resolution: {integrity: sha512-IotswBYZRaPswOebcr2wuOFuzD3dHIJxVEkPiiQubqjUIR8HhQI22XHJv0WNiQZ65z8NR9+GYWwEDIc2JRCNfQ==} + peerDependencies: + graphql: '*' + tslib: ^2.4.0 + dependencies: + dayjs: 1.11.7 + graphql: 16.8.1 + json-pointer: 0.6.2 + lodash.get: 4.4.2 + tslib: 2.6.2 + dev: true + /@graphql-mesh/transform-type-merging@0.93.1(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(graphql@16.8.1)(tslib@2.5.0): resolution: {integrity: sha512-CUrqCMaEqO1LDusv59UPqmQju3f+LpEGxFu7CydMiIvbfKDDDrf8+dF3OVU7d/ZOMRxB6hR80JsQF0SVeXPCOQ==} peerDependencies: @@ -6613,8 +6832,8 @@ packages: graphql: '*' tslib: ^2.4.0 dependencies: - '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) - '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/utils': 0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) '@graphql-tools/stitching-directives': 2.3.34(graphql@16.8.1) graphql: 16.8.1 @@ -6638,6 +6857,23 @@ packages: tslib: 2.5.0 dev: true + /@graphql-mesh/types@0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2): + resolution: {integrity: sha512-113DuJzmR7aj2EMnLPu33ktCe5k7+Mk0BxFfmQViUH+mkr6i4JMsWvPKs9dTODSYuSuwvAZ90Vw2l3QyMrbFVA==} + peerDependencies: + '@graphql-mesh/store': ^0.93.1 + '@graphql-tools/utils': ^9.2.1 + graphql: '*' + tslib: ^2.4.0 + dependencies: + '@graphql-mesh/store': 0.93.1(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-mesh/utils@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-tools/batch-delegate': 8.4.27(graphql@16.8.1) + '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) + graphql: 16.8.1 + tslib: 2.6.2 + dev: true + /@graphql-mesh/utils@0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.5.0): resolution: {integrity: sha512-U+VytfSoqPofH/pmYZHFY10SkIFtHKrvE7Isxv1d0DiweVjdH3Qtojw13DWFpu/EKtgJY5bqoVnlcsZJYlKQoA==} peerDependencies: @@ -6661,6 +6897,29 @@ packages: tslib: 2.5.0 dev: true + /@graphql-mesh/utils@0.93.2(@graphql-mesh/cross-helpers@0.3.4)(@graphql-mesh/types@0.93.2)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2): + resolution: {integrity: sha512-U+VytfSoqPofH/pmYZHFY10SkIFtHKrvE7Isxv1d0DiweVjdH3Qtojw13DWFpu/EKtgJY5bqoVnlcsZJYlKQoA==} + peerDependencies: + '@graphql-mesh/cross-helpers': ^0.3.4 + '@graphql-mesh/types': ^0.93.2 + '@graphql-tools/utils': ^9.2.1 + graphql: '*' + tslib: ^2.4.0 + dependencies: + '@graphql-mesh/cross-helpers': 0.3.4(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(react-native@0.72.7) + '@graphql-mesh/string-interpolation': 0.4.4(graphql@16.8.1)(tslib@2.6.2) + '@graphql-mesh/types': 0.93.2(@graphql-mesh/store@0.93.1)(@graphql-tools/utils@9.2.1)(graphql@16.8.1)(tslib@2.6.2) + '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) + '@graphql-tools/utils': 9.2.1(graphql@16.8.1) + dset: 3.1.2 + graphql: 16.8.1 + js-yaml: 4.1.0 + lodash.get: 4.4.2 + lodash.topath: 4.5.2 + tiny-lru: 8.0.2 + tslib: 2.6.2 + dev: true + /@graphql-tools/apollo-engine-loader@8.0.0(graphql@16.8.1): resolution: {integrity: sha512-axQTbN5+Yxs1rJ6cWQBOfw3AEeC+fvIuZSfJLPLLvFJLj4pUm9fhxey/g6oQZAAQJqKPfw+tLDUQvnfvRK8Kmg==} engines: {node: '>=16.0.0'} @@ -6685,7 +6944,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) dataloader: 2.2.2 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6697,7 +6956,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) dataloader: 2.2.2 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6710,7 +6969,7 @@ packages: '@graphql-tools/utils': 10.0.5(graphql@16.8.1) dataloader: 2.2.2 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6736,7 +6995,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) globby: 11.1.0 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 unixify: 1.0.0 transitivePeerDependencies: - '@babel/core' @@ -6771,7 +7030,7 @@ packages: '@graphql-tools/utils': 10.0.5(graphql@16.8.1) dataloader: 2.2.2 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/delegate@10.0.3(graphql@16.8.1): @@ -6800,7 +7059,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) dataloader: 2.2.2 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6826,8 +7085,8 @@ packages: graphql: 16.8.1 graphql-ws: 5.12.1(graphql@16.8.1) isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.5.0 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + tslib: 2.6.2 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -6844,8 +7103,8 @@ packages: graphql: 16.8.1 graphql-ws: 5.14.0(graphql@16.8.1) isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.5.0 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + tslib: 2.6.2 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -6863,7 +7122,7 @@ packages: extract-files: 11.0.0 graphql: 16.8.1 meros: 1.3.0(@types/node@17.0.45) - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 transitivePeerDependencies: - '@types/node' @@ -6881,7 +7140,7 @@ packages: extract-files: 11.0.0 graphql: 16.8.1 meros: 1.3.0(@types/node@17.0.45) - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 transitivePeerDependencies: - '@types/node' @@ -6896,8 +7155,8 @@ packages: '@types/ws': 8.5.5 graphql: 16.8.1 isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.5.0 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + tslib: 2.6.2 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -6913,8 +7172,8 @@ packages: '@types/ws': 8.5.5 graphql: 16.8.1 isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.5.0 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + tslib: 2.6.2 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -6929,7 +7188,7 @@ packages: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6942,7 +7201,7 @@ packages: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -6956,7 +7215,7 @@ packages: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) '@repeaterjs/repeater': 3.0.4 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7006,7 +7265,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) globby: 11.1.0 graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 unixify: 1.0.0 dev: true @@ -7035,7 +7294,7 @@ packages: '@babel/types': 7.22.10 '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - '@babel/core' - supports-color @@ -7054,7 +7313,7 @@ packages: '@babel/types': 7.22.10 '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - supports-color dev: true @@ -7067,7 +7326,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 resolve-from: 5.0.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/import@7.0.0(graphql@16.8.1): @@ -7079,7 +7338,7 @@ packages: '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 resolve-from: 5.0.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/json-file-loader@8.0.0(graphql@16.8.1): @@ -7104,7 +7363,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 p-limit: 3.1.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/load@8.0.0(graphql@16.8.1): @@ -7127,7 +7386,7 @@ packages: dependencies: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/merge@9.0.0(graphql@16.8.1): @@ -7138,7 +7397,7 @@ packages: dependencies: '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/merge@9.0.1(graphql@16.8.1): @@ -7158,7 +7417,7 @@ packages: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/optimize@2.0.0(graphql@16.8.1): @@ -7168,7 +7427,7 @@ packages: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/prisma-loader@8.0.1(@types/node@17.0.45)(graphql@16.8.1): @@ -7212,7 +7471,7 @@ packages: '@ardatan/relay-compiler': 12.0.0(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - encoding - supports-color @@ -7227,7 +7486,7 @@ packages: '@ardatan/relay-compiler': 12.0.0(graphql@16.8.1) '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - encoding - supports-color @@ -7242,7 +7501,7 @@ packages: '@graphql-tools/merge': 9.0.0(graphql@16.8.1) '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7267,7 +7526,7 @@ packages: '@graphql-tools/merge': 8.4.2(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7284,7 +7543,7 @@ packages: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) '@graphql-tools/wrap': 9.4.2(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7296,7 +7555,7 @@ packages: '@graphql-tools/delegate': 9.0.35(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/url-loader@7.17.18(@types/node@17.0.45)(graphql@16.8.1): @@ -7315,9 +7574,9 @@ packages: '@whatwg-node/fetch': 0.8.8 graphql: 16.8.1 isomorphic-ws: 5.0.0(ws@8.13.0) - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 8.13.0 transitivePeerDependencies: - '@types/node' - bufferutil @@ -7344,7 +7603,7 @@ packages: isomorphic-ws: 5.0.0(ws@8.13.0) tslib: 2.5.0 value-or-promise: 1.0.12 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 8.13.0 transitivePeerDependencies: - '@types/node' - bufferutil @@ -7383,7 +7642,7 @@ packages: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/utils@9.2.1(graphql@16.8.1): @@ -7393,7 +7652,7 @@ packages: dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-tools/wrap@10.0.0(graphql@16.8.1): @@ -7406,7 +7665,7 @@ packages: '@graphql-tools/schema': 10.0.0(graphql@16.8.1) '@graphql-tools/utils': 10.0.5(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7433,7 +7692,7 @@ packages: '@graphql-tools/schema': 9.0.19(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: true @@ -7455,7 +7714,7 @@ packages: /@graphql-yoga/logger@0.0.1: resolution: {integrity: sha512-6npFz7eZz33mXgSm1waBLMjUNG0D5hTc/p5Hcs1mojkT3KsLpCOFokzTEKboNsBhKevYcaVa/xeA7WBj4UYMLg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-yoga/subscription@3.1.0: @@ -7464,14 +7723,14 @@ packages: '@graphql-yoga/typed-event-target': 1.0.0 '@repeaterjs/repeater': 3.0.4 '@whatwg-node/events': 0.0.2 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@graphql-yoga/typed-event-target@1.0.0: resolution: {integrity: sha512-Mqni6AEvl3VbpMtKw+TIjc9qS9a8hKhiAjFtqX488yq5oJtj9TkNlFTIacAVS3vnPiswNsmDiQqvwUOcJgi1DA==} dependencies: '@repeaterjs/repeater': 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@hapi/hoek@9.3.0: @@ -7739,9 +7998,6 @@ packages: '@pedrouid/environment': 1.0.1 dev: false - /@ledgerhq/connect-kit-loader@1.1.2: - resolution: {integrity: sha512-mscwGroSJQrCTjtNGBu+18FQbZYA4+q6Tyx6K7CXHl6AwgZKbWfZYdgP2F+fyZcRUdGRsMX8QtvU61VcGGtO1A==} - /@lens-protocol/api-bindings@0.10.0(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-CoILWFbVQWg7rfJUv1EINimrOG1MJpn413PlWFOILsXEQT4RiSp0JRPs752piog6DKQ4QJCaDld1fi/Haix/qg==} peerDependencies: @@ -7757,7 +8013,7 @@ packages: graphql: 16.8.0 graphql-tag: 2.12.6(graphql@16.8.0) react: 18.2.0 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - '@jest/globals' - ethers @@ -7779,7 +8035,7 @@ packages: '@lens-protocol/domain': 0.10.0(ethers@5.7.2) '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - '@faker-js/faker' - '@jest/globals' @@ -7811,12 +8067,12 @@ packages: optional: true dependencies: '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - ethers dev: false - /@lens-protocol/gated-content@0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4): + /@lens-protocol/gated-content@0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4): resolution: {integrity: sha512-e6JnKMQZ+TfEMT0J9hhIhMFqPd2b3gHZbchQOsdempgt0sSCXYLXLp0FGoRlwtaAtDK+FqYVQXyYJEQZgCJv5w==} peerDependencies: '@ethersproject/contracts': ^5.7.0 @@ -7839,31 +8095,102 @@ packages: '@lit-protocol/constants': 2.1.62 '@lit-protocol/crypto': 2.1.62 '@lit-protocol/encryption': 2.1.62 - '@lit-protocol/node-client': 2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) + '@lit-protocol/node-client': 2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(react@18.2.0) '@lit-protocol/types': 2.1.62 ethers: 5.7.2 siwe: 1.1.6(ethers@5.7.2) - tslib: 2.5.0 + tslib: 2.6.2 zod: 3.21.4 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' - '@faker-js/faker' - '@jest/globals' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - '@walletconnect/modal' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - graphql-ws + - ioredis + - jest-mock-extended + - jest-when + - react + - react-dom + - subscriptions-transport-ws + - uWebSockets.js + - utf-8-validate + - wait-for-expect + dev: false + + /@lens-protocol/gated-content@0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.23.5): + resolution: {integrity: sha512-e6JnKMQZ+TfEMT0J9hhIhMFqPd2b3gHZbchQOsdempgt0sSCXYLXLp0FGoRlwtaAtDK+FqYVQXyYJEQZgCJv5w==} + peerDependencies: + '@ethersproject/contracts': ^5.7.0 + '@ethersproject/hash': ^5.7.0 + '@ethersproject/providers': ^5.7.2 + '@ethersproject/wallet': ^5.7.0 + ethers: ^5.7.2 + zod: ^3.20.6 + dependencies: + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/contracts': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/providers': 5.7.2 + '@ethersproject/wallet': 5.7.0 + '@lens-protocol/api-bindings': 0.10.0(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0) + '@lens-protocol/domain': 0.10.0(ethers@5.7.2) + '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) + '@lens-protocol/storage': 0.7.4(ethers@5.7.2) + '@lit-protocol/constants': 2.1.62 + '@lit-protocol/crypto': 2.1.62 + '@lit-protocol/encryption': 2.1.62 + '@lit-protocol/node-client': 2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(react@18.2.0) + '@lit-protocol/types': 2.1.62 + ethers: 5.7.2 + siwe: 1.1.6(ethers@5.7.2) + tslib: 2.6.2 + zod: 3.23.5 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@faker-js/faker' + - '@jest/globals' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - encoding + - graphql-ws + - ioredis - jest-mock-extended - jest-when - - lokijs - react - react-dom - subscriptions-transport-ws + - uWebSockets.js - utf-8-validate - wait-for-expect dev: false - /@lens-protocol/react-web@1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4): + /@lens-protocol/react-web@1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4): resolution: {integrity: sha512-0ztmgGi6URjyX2hYujaJ+HH30gRsI4/Rgk3VviLTtNi1xmduECywEqFljUqZx8zIEndZs+bDpXPojCHhHmjdAQ==} peerDependencies: '@xmtp/react-sdk': 1.0.0-preview.40 @@ -7875,36 +8202,48 @@ packages: dependencies: '@lens-protocol/api-bindings': 0.10.0(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0) '@lens-protocol/domain': 0.10.0(ethers@5.7.2) - '@lens-protocol/gated-content': 0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) - '@lens-protocol/react': 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0) + '@lens-protocol/gated-content': 0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) + '@lens-protocol/react': 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0) '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) '@lens-protocol/storage': 0.7.4(ethers@5.7.2) ethers: 5.7.2 react: 18.2.0 tslib: 2.5.0 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' - '@ethersproject/contracts' - '@ethersproject/hash' - '@ethersproject/providers' - '@ethersproject/wallet' - '@faker-js/faker' - '@jest/globals' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - '@walletconnect/modal' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - graphql-ws + - ioredis - jest-mock-extended - jest-when - - lokijs - react-dom - subscriptions-transport-ws + - uWebSockets.js - utf-8-validate - wait-for-expect - zod dev: false - /@lens-protocol/react@1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0): + /@lens-protocol/react@1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-yrF79WMqmCe5yKpBXBmhhxuDrMszQljZT2gjWy3+zOg0EbktMCg69Z7wmEczOrk6CjSEL2GxW510fZ+8yaJNIQ==} peerDependencies: ethers: ^5.7.2 @@ -7916,7 +8255,7 @@ packages: '@lens-protocol/api-bindings': 0.10.0(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0) '@lens-protocol/blockchain-bindings': 0.9.1(ethers@5.7.2) '@lens-protocol/domain': 0.10.0(ethers@5.7.2) - '@lens-protocol/gated-content': 0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) + '@lens-protocol/gated-content': 0.3.2(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.23.5) '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) '@lens-protocol/storage': 0.7.4(ethers@5.7.2) ethers: 5.7.2 @@ -7924,25 +8263,37 @@ packages: jwt-decode: 3.1.2 lodash: 4.17.21 react: 18.2.0 - tslib: 2.5.0 + tslib: 2.6.2 uuid: 9.0.0 - zod: 3.21.4 - transitivePeerDependencies: + zod: 3.23.5 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' - '@ethersproject/contracts' - '@ethersproject/hash' - '@ethersproject/wallet' - '@faker-js/faker' - '@jest/globals' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - '@walletconnect/modal' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - graphql-ws + - ioredis - jest-mock-extended - jest-when - - lokijs - react-dom - subscriptions-transport-ws + - uWebSockets.js - utf-8-validate - wait-for-expect dev: false @@ -7958,7 +8309,7 @@ packages: decimal.js: 10.4.3 ethers: 5.7.2 lodash: 4.17.21 - tslib: 2.5.0 + tslib: 2.6.2 uuid: 9.0.0 dev: false @@ -7966,13 +8317,13 @@ packages: resolution: {integrity: sha512-ezr44IhhcF3OEgJrqCmeOUX1p+UMYhU1sv6ua8AqbpTJZT33nPhXbyiXOYjtPTXi2VZJZPBpKU8rpkixrEgXTA==} dependencies: '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) - tslib: 2.5.0 - zod: 3.21.4 + tslib: 2.6.2 + zod: 3.23.5 transitivePeerDependencies: - ethers dev: false - /@lens-protocol/wagmi@2.1.0(@lens-protocol/react-web@1.3.0)(ethers@5.7.2)(viem@1.0.0)(wagmi@1.3.10): + /@lens-protocol/wagmi@2.1.0(@lens-protocol/react-web@1.3.0)(ethers@5.7.2)(viem@2.9.29)(wagmi@2.7.0): resolution: {integrity: sha512-TpwZjaY8xegyA/Waj8ABxRCmkhz7rcyctSK8NO5+akQ67AVfzn8yhBqNep5Wx4HJokiCRKA8XmSi9md7dNDkLA==} peerDependencies: '@lens-protocol/react-web': 1.3.0 @@ -7980,15 +8331,16 @@ packages: viem: ^1.0.0 wagmi: ^1.1.0 dependencies: - '@lens-protocol/react-web': 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) + '@lens-protocol/react-web': 1.3.0(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(ethers@5.7.2)(react-dom@18.2.0)(react@18.2.0)(zod@3.21.4) '@lens-protocol/shared-kernel': 0.10.0(ethers@5.7.2) ethers: 5.7.2 - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - wagmi: 1.3.10(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) + viem: 2.9.29(typescript@5.0.4)(zod@3.21.4) + wagmi: 2.7.0(@tanstack/react-query@5.32.1)(@types/react@18.2.38)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) dev: false /@lit-labs/ssr-dom-shim@1.1.1: resolution: {integrity: sha512-kXOeFbfCm4fFf2A3WwVEeQj55tMZa8c8/f9AKHMobQMkzNUfUj+antR3fRPaZJawsa1aZiP/Da3ndpZrwEe4rQ==} + dev: false /@lit-protocol/access-control-conditions@2.1.161: resolution: {integrity: sha512-urpcTjXp6ijczMaH4p4s7DS0WRNBdrxdHvPBCam8/EzoVeIeQug0AW2TzM+aTt569ABmGekF4XLeiKFVIrCKkg==} @@ -7998,7 +8350,7 @@ packages: '@lit-protocol/types': 2.1.161 '@lit-protocol/uint8arrays': 2.1.161 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8012,7 +8364,7 @@ packages: '@lit-protocol/types': 2.1.62 '@lit-protocol/uint8arrays': 2.1.62 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8031,7 +8383,7 @@ packages: ethers: 5.7.2 lit-connect-modal: 0.1.11 lit-siwe: 1.1.8(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) - tslib: 2.5.0 + tslib: 2.6.2 tweetnacl: 1.0.3 tweetnacl-util: 0.13.5 util: 0.12.5 @@ -8050,7 +8402,7 @@ packages: - utf-8-validate dev: false - /@lit-protocol/auth-browser@2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0): + /@lit-protocol/auth-browser@2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-/4BTl0omR+JUCyJJc93FCiygSn/4ldrbeBuzWYQzuOFh2f6fcY1GJe3ttEoSJUfwu7OblW86YpWAT65b56rACA==} dependencies: '@lit-protocol/constants': 2.1.62 @@ -8058,25 +8410,38 @@ packages: '@lit-protocol/misc-browser': 2.1.62 '@lit-protocol/types': 2.1.62 '@lit-protocol/uint8arrays': 2.1.62 - '@walletconnect/ethereum-provider': 2.9.2(@walletconnect/modal@2.6.1) + '@walletconnect/ethereum-provider': 2.11.2(@types/react@18.2.38)(react@18.2.0) ethers: 5.7.2 lit-connect-modal: 0.1.11 lit-siwe: 1.1.8(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) - tslib: 2.5.0 + tslib: 2.6.2 tweetnacl: 1.0.3 tweetnacl-util: 0.13.5 util: 0.12.5 web-vitals: 3.3.1 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' - '@ethersproject/contracts' - '@ethersproject/hash' - '@ethersproject/providers' - '@ethersproject/wallet' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - '@walletconnect/modal' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - - lokijs + - ioredis + - react + - uWebSockets.js - utf-8-validate dev: false @@ -8092,14 +8457,14 @@ packages: resolution: {integrity: sha512-91Rs01/BmRdi7YYmwqkaqI7TYOxhldpLIf5nLBaAQNZloijdF073KbXa9dFZtVbTo3c8fG5O6ts6DOQLK7mSKA==} dependencies: '@lit-protocol/types': 2.1.161 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@lit-protocol/constants@2.1.62: resolution: {integrity: sha512-4CigP3GS7Cxpa9RXT1twCCvYI5wvfo1UAMbdrjoDgM9VMDtpvSrmlG8AwC9yMoqPM6409BYcgGI9LDGzUjNUjg==} dependencies: '@lit-protocol/types': 2.1.62 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@lit-protocol/crypto@2.1.161: @@ -8113,7 +8478,7 @@ packages: '@lit-protocol/types': 2.1.161 '@lit-protocol/uint8arrays': 2.1.161 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8130,7 +8495,7 @@ packages: '@lit-protocol/types': 2.1.62 '@lit-protocol/uint8arrays': 2.1.62 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8158,7 +8523,7 @@ packages: ethers: 5.7.2 ipfs-http-client: 56.0.0(node-fetch@2.6.9) jszip: 3.10.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - encoding @@ -8180,7 +8545,7 @@ packages: '@lit-protocol/uint8arrays': 2.1.62 ethers: 5.7.2 jszip: 3.10.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8210,7 +8575,7 @@ packages: jszip: 3.10.1 lit-siwe: 1.1.8(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) node-fetch: 2.6.9 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - '@ethersproject/contracts' - '@ethersproject/hash' @@ -8286,7 +8651,7 @@ packages: '@lit-protocol/types': 2.1.161 '@lit-protocol/uint8arrays': 2.1.161 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8300,7 +8665,7 @@ packages: '@lit-protocol/types': 2.1.62 '@lit-protocol/uint8arrays': 2.1.62 ethers: 5.7.2 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8311,7 +8676,7 @@ packages: dependencies: '@lit-protocol/constants': 2.1.161 '@lit-protocol/types': 2.1.161 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@lit-protocol/misc@2.1.62: @@ -8319,7 +8684,7 @@ packages: dependencies: '@lit-protocol/constants': 2.1.62 '@lit-protocol/types': 2.1.62 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@lit-protocol/nacl@2.1.161: @@ -8330,11 +8695,11 @@ packages: resolution: {integrity: sha512-0v9fa6Sd4xphjlYMZ9L8TTyR7G4YLvp323E8OJ76giuaPla4HXuwSiGMzUOaC6NKraArSrd54CKkHJ/bxEqVDA==} dev: false - /@lit-protocol/node-client@2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0): + /@lit-protocol/node-client@2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-rLEUleDoJ+AATZfWNWXvy7UdSrUXMyCjpyB5bevVfk9YjIa5rd9BBXdFENCIA+9kLgVOgtND/R1PpEI/vZkMmw==} dependencies: '@lit-protocol/access-control-conditions': 2.1.62 - '@lit-protocol/auth-browser': 2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) + '@lit-protocol/auth-browser': 2.1.62(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0)(@types/react@18.2.38)(react@18.2.0) '@lit-protocol/bls-sdk': 2.1.62 '@lit-protocol/constants': 2.1.62 '@lit-protocol/crypto': 2.1.62 @@ -8346,25 +8711,38 @@ packages: '@lit-protocol/nacl': 2.1.62 '@lit-protocol/types': 2.1.62 '@lit-protocol/uint8arrays': 2.1.62 - '@walletconnect/ethereum-provider': 2.9.2(@walletconnect/modal@2.6.1) + '@walletconnect/ethereum-provider': 2.11.2(@types/react@18.2.38)(react@18.2.0) ethers: 5.7.2 jszip: 3.10.1 lit-connect-modal: 0.1.11 lit-siwe: 1.1.8(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0) node-fetch: 2.6.12 - tslib: 2.5.0 + tslib: 2.6.2 tweetnacl: 1.0.3 tweetnacl-util: 0.15.1 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' - '@ethersproject/contracts' - '@ethersproject/hash' - '@ethersproject/providers' - '@ethersproject/wallet' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - '@walletconnect/modal' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - - lokijs + - ioredis + - react + - uWebSockets.js - utf-8-validate dev: false @@ -8388,28 +8766,30 @@ packages: resolution: {integrity: sha512-va15kYZr7KZNNPZdxONGQzpUr+4sxVu7V/VG7a8mRfPPXUyhEYj5RzXCQmGrlP3tAh0L3HHm5AjBMFYRqlM9SA==} dependencies: '@lit-labs/ssr-dom-shim': 1.1.1 + dev: false - /@livepeer/core-react@1.8.0(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): + /@livepeer/core-react@1.8.0(@types/react@18.2.38)(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): resolution: {integrity: sha512-DRciHEJgpALO2a9gHAy75g9VpaU6yszALP/gatO3W/+x9/o6MSR5PRhFg5eMDJA8o1ua39ZlaDu0/irLHIeE8g==} peerDependencies: react: '>=17.0.0' dependencies: - '@livepeer/core': 1.8.0(react@18.2.0) + '@livepeer/core': 1.8.0(@types/react@18.2.38)(react@18.2.0) '@tanstack/query-async-storage-persister': 4.29.23 '@tanstack/query-core': 4.29.23 '@tanstack/react-query': 4.29.23(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) '@tanstack/react-query-persist-client': 4.29.23(@tanstack/react-query@4.29.23) react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) - zustand: 4.3.9(react@18.2.0) + zustand: 4.4.1(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: + - '@types/react' - encoding - immer - react-dom - react-native dev: false - /@livepeer/core@1.8.0(react@18.2.0): + /@livepeer/core@1.8.0(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-Sr+DplfGfhpv2Arh53tTTL9DyPEzlVAzy+eXd8+PMIlXLVOHTgGfDgpfpaeSCB8v8WlJtrgX50vFdSWyUyxi3g==} peerDependencies: react: '>=17.0.0' @@ -8422,8 +8802,9 @@ packages: multiformats: 9.9.0 react: 18.2.0 tus-js-client: 3.1.0 - zustand: 4.3.9(react@18.2.0) + zustand: 4.4.1(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: + - '@types/react' - encoding - immer dev: false @@ -8437,13 +8818,13 @@ packages: react-dom: optional: true dependencies: - '@livepeer/core-react': 1.8.0(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) + '@livepeer/core-react': 1.8.0(@types/react@18.2.38)(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) '@radix-ui/react-dialog': 1.0.4(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-popover': 1.0.6(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-select': 1.2.2(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@stitches/react': 1.2.8(react@18.2.0) core-js: 3.31.1 - livepeer: 2.6.0(react@18.2.0) + livepeer: 2.6.0(@types/react@18.2.38)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) zustand: 4.3.8(react@18.2.0) @@ -8507,6 +8888,17 @@ packages: - encoding dev: false + /@metamask/eth-json-rpc-provider@1.0.1: + resolution: {integrity: sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==} + engines: {node: '>=14.0.0'} + dependencies: + '@metamask/json-rpc-engine': 7.3.3 + '@metamask/safe-event-emitter': 3.1.1 + '@metamask/utils': 5.0.2 + transitivePeerDependencies: + - supports-color + dev: false + /@metamask/eth-sig-util@4.0.1: resolution: {integrity: sha512-tghyZKLHZjcdlDqCA3gNZmLeR0XvOE9U1qoQO9ohyAZT6Pya+H9vkBPcsyXytmYLNgVoin7CKCmweo/R43V+tQ==} engines: {node: '>=12.0.0'} @@ -8530,19 +8922,209 @@ packages: tweetnacl-util: 0.15.1 dev: false + /@metamask/json-rpc-engine@7.3.3: + resolution: {integrity: sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==} + engines: {node: '>=16.0.0'} + dependencies: + '@metamask/rpc-errors': 6.2.1 + '@metamask/safe-event-emitter': 3.1.1 + '@metamask/utils': 8.4.0 + transitivePeerDependencies: + - supports-color + dev: false + + /@metamask/json-rpc-middleware-stream@6.0.2: + resolution: {integrity: sha512-jtyx3PRfc1kqoLpYveIVQNwsxYKefc64/LCl9h9Da1m3nUKEvypbYuXSIwi237qvOjKmNHQKsDOZg6f4uBf62Q==} + engines: {node: '>=16.0.0'} + dependencies: + '@metamask/json-rpc-engine': 7.3.3 + '@metamask/safe-event-emitter': 3.1.1 + '@metamask/utils': 8.4.0 + readable-stream: 3.6.2 + transitivePeerDependencies: + - supports-color + dev: false + + /@metamask/object-multiplex@2.0.0: + resolution: {integrity: sha512-+ItrieVZie3j2LfYE0QkdW3dsEMfMEp419IGx1zyeLqjRZ14iQUPRO0H6CGgfAAoC0x6k2PfCAGRwJUA9BMrqA==} + engines: {node: ^16.20 || ^18.16 || >=20} + dependencies: + once: 1.4.0 + readable-stream: 3.6.2 + dev: false + + /@metamask/onboarding@1.0.1: + resolution: {integrity: sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==} + dependencies: + bowser: 2.11.0 + dev: false + + /@metamask/providers@15.0.0: + resolution: {integrity: sha512-FXvL1NQNl6I7fMOJTfQYcBlBZ33vSlm6w80cMpmn8sJh0Lb7wcBpe02UwBsNlARnI+Qsr26XeDs6WHUHQh8CuA==} + engines: {node: ^18.18 || >=20} + dependencies: + '@metamask/json-rpc-engine': 7.3.3 + '@metamask/json-rpc-middleware-stream': 6.0.2 + '@metamask/object-multiplex': 2.0.0 + '@metamask/rpc-errors': 6.2.1 + '@metamask/safe-event-emitter': 3.1.1 + '@metamask/utils': 8.4.0 + detect-browser: 5.3.0 + extension-port-stream: 3.0.0 + fast-deep-equal: 3.1.3 + is-stream: 2.0.1 + readable-stream: 3.6.2 + webextension-polyfill: 0.10.0 + transitivePeerDependencies: + - supports-color + dev: false + + /@metamask/rpc-errors@6.2.1: + resolution: {integrity: sha512-VTgWkjWLzb0nupkFl1duQi9Mk8TGT9rsdnQg6DeRrYEFxtFOh0IF8nAwxM/4GWqDl6uIB06lqUBgUrAVWl62Bw==} + engines: {node: '>=16.0.0'} + dependencies: + '@metamask/utils': 8.4.0 + fast-safe-stringify: 2.1.1 + transitivePeerDependencies: + - supports-color + dev: false + /@metamask/safe-event-emitter@2.0.0: resolution: {integrity: sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==} + dev: false + + /@metamask/safe-event-emitter@3.1.1: + resolution: {integrity: sha512-ihb3B0T/wJm1eUuArYP4lCTSEoZsClHhuWyfo/kMX3m/odpqNcPfsz5O2A3NT7dXCAgWPGDQGPqygCpgeniKMw==} + engines: {node: '>=12.0.0'} + dev: false + + /@metamask/sdk-communication-layer@0.18.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.2): + resolution: {integrity: sha512-WMf9oJa3rAimjCXMAaaRVFPD0Q6dfZR0r9037KCpD5g9SlVh+TeMISfdQCEKAyhXP3d4CGxmp/Kib8C3mn2YLw==} + peerDependencies: + cross-fetch: ^3.1.5 + eciesjs: ^0.3.16 + eventemitter2: ^6.4.7 + readable-stream: ^3.6.2 + socket.io-client: ^4.5.1 + dependencies: + bufferutil: 4.0.8 + cross-fetch: 4.0.0 + date-fns: 2.30.0 + debug: 4.3.4(supports-color@5.5.0) + eciesjs: 0.3.18 + eventemitter2: 6.4.9 + readable-stream: 3.6.2 + socket.io-client: 4.7.2 + utf-8-validate: 6.0.3 + uuid: 8.3.2 + transitivePeerDependencies: + - supports-color + dev: false - /@metamask/utils@3.6.0: - resolution: {integrity: sha512-9cIRrfkWvHblSiNDVXsjivqa9Ak0RYo/1H6tqTqTbAx+oBK2Sva0lWDHxGchOqA7bySGUJKAWSNJvH6gdHZ0gQ==} + /@metamask/sdk-install-modal-web@0.18.5(i18next@22.5.1)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0): + resolution: {integrity: sha512-Wygc0dgr1PwIA/Sg9WW9QWAsQr4G2GV6iveXt2xw8VKW/9cRORWqYukH1NZLr71hBKzi9AKYBU54Tk5Dfg41zg==} + peerDependencies: + i18next: 22.5.1 + react: ^18.2.0 + react-dom: ^18.2.0 + react-i18next: ^13.2.2 + react-native: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + react-native: + optional: true + dependencies: + i18next: 22.5.1 + qr-code-styling: 1.6.0-rc.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-i18next: 13.5.0(i18next@23.11.3)(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) + react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) + dev: false + + /@metamask/sdk@0.18.6(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1): + resolution: {integrity: sha512-ZT8e4BrcWrm44apLb412WR0fDsgeaS8UlI1c0wKRUPu1w/UntpXuUVO+EaY8WDlnOPAiAsjyqWKey64/DfvbXQ==} + peerDependencies: + '@react-native-async-storage/async-storage': ^1.19.6 + react: ^18.2.0 + react-dom: ^18.2.0 + react-native: '*' + peerDependenciesMeta: + '@react-native-async-storage/async-storage': + optional: true + react: + optional: true + react-dom: + optional: true + react-native: + optional: true + dependencies: + '@metamask/onboarding': 1.0.1 + '@metamask/providers': 15.0.0 + '@metamask/sdk-communication-layer': 0.18.5(cross-fetch@4.0.0)(eciesjs@0.3.18)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.7.2) + '@metamask/sdk-install-modal-web': 0.18.5(i18next@22.5.1)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0) + '@types/dom-screen-wake-lock': 1.0.3 + bowser: 2.11.0 + cross-fetch: 4.0.0 + debug: 4.3.4(supports-color@5.5.0) + eciesjs: 0.3.18 + eth-rpc-errors: 4.0.3 + eventemitter2: 6.4.9 + i18next: 22.5.1 + i18next-browser-languagedetector: 7.1.0 + obj-multiplex: 1.0.0 + pump: 3.0.0 + qrcode-terminal-nooctal: 0.12.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) + react-native-webview: 11.26.1(react-native@0.72.7)(react@18.2.0) + readable-stream: 3.6.2 + rollup-plugin-visualizer: 5.12.0(rollup@2.79.1) + socket.io-client: 4.7.2 + util: 0.12.5 + uuid: 8.3.2 + transitivePeerDependencies: + - bufferutil + - encoding + - react-i18next + - rollup + - supports-color + - utf-8-validate + dev: false + + /@metamask/utils@5.0.2: + resolution: {integrity: sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==} engines: {node: '>=14.0.0'} dependencies: + '@ethereumjs/tx': 4.2.0 '@types/debug': 4.1.7 debug: 4.3.4(supports-color@5.5.0) semver: 7.5.4 superstruct: 1.0.3 transitivePeerDependencies: - supports-color + dev: false + + /@metamask/utils@8.4.0: + resolution: {integrity: sha512-dbIc3C7alOe0agCuBHM1h71UaEaEqOk2W8rAtEn8QGz4haH2Qq7MoK6i7v2guzvkJVVh79c+QCzIqphC3KvrJg==} + engines: {node: '>=16.0.0'} + dependencies: + '@ethereumjs/tx': 4.2.0 + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.6 + '@types/debug': 4.1.7 + debug: 4.3.4(supports-color@5.5.0) + pony-cause: 2.1.11 + semver: 7.5.4 + superstruct: 1.0.3 + uuid: 9.0.1 + transitivePeerDependencies: + - supports-color + dev: false /@moralisweb3/api-utils@2.22.5: resolution: {integrity: sha512-MYQ2SaL0Ug6+uKYWUV3JTOLZTOjdPNLhW4fO5XiQwxrqvLSuoYoNzaTR9hsvvGRy/lD7ERz1Q20SYl4E/1EjqQ==} @@ -8581,7 +9163,7 @@ packages: resolution: {integrity: sha512-m2K06yHze0UtAquct7UYVmYguvkPQ9LlNHRflTN5w89+UcJTw1VIH/mP1vArDidOxV6jiZKUgf8PS7WsPPZSyg==} dependencies: '@moralisweb3/common-core': 2.22.5 - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.2 transitivePeerDependencies: - debug dev: false @@ -8700,7 +9282,8 @@ packages: '@motionone/easing': 10.15.1 '@motionone/types': 10.15.1 '@motionone/utils': 10.15.1 - tslib: 2.5.0 + tslib: 2.6.2 + dev: false /@motionone/dom@10.15.5: resolution: {integrity: sha512-Xc5avlgyh3xukU9tydh9+8mB8+2zAq+WlLsC3eEIp7Ax7DnXgY7Bj/iv0a4X2R9z9ZFZiaXK3BO0xMYHKbAAdA==} @@ -8710,7 +9293,7 @@ packages: '@motionone/types': 10.15.1 '@motionone/utils': 10.15.1 hey-listen: 1.0.8 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@motionone/dom@10.16.2: @@ -8722,25 +9305,21 @@ packages: '@motionone/utils': 10.15.1 hey-listen: 1.0.8 tslib: 2.6.2 + dev: false /@motionone/easing@10.15.1: resolution: {integrity: sha512-6hIHBSV+ZVehf9dcKZLT7p5PEKHGhDwky2k8RKkmOvUoYP3S+dXsKupyZpqx5apjd9f+php4vXk4LuS+ADsrWw==} dependencies: '@motionone/utils': 10.15.1 - tslib: 2.5.0 + tslib: 2.6.2 + dev: false /@motionone/generators@10.15.1: resolution: {integrity: sha512-67HLsvHJbw6cIbLA/o+gsm7h+6D4Sn7AUrB/GPxvujse1cGZ38F5H7DzoH7PhX+sjvtDnt2IhFYF2Zp1QTMKWQ==} dependencies: '@motionone/types': 10.15.1 '@motionone/utils': 10.15.1 - tslib: 2.5.0 - - /@motionone/svelte@10.15.5: - resolution: {integrity: sha512-Xyxtgp7BlVnSBwcoFmXGHUVnpNktzeXsEifu2NJJWc7VGuxutDsBZxNdz80qvpLIC5MeBa1wh7GGegZzTm1msg==} - dependencies: - '@motionone/dom': 10.15.5 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@motionone/svelte@10.16.2: @@ -8748,29 +9327,27 @@ packages: dependencies: '@motionone/dom': 10.16.2 tslib: 2.6.2 + dev: false /@motionone/types@10.15.1: resolution: {integrity: sha512-iIUd/EgUsRZGrvW0jqdst8st7zKTzS9EsKkP+6c6n4MPZoQHwiHuVtTQLD6Kp0bsBLhNzKIBlHXponn/SDT4hA==} + dev: false /@motionone/utils@10.15.1: resolution: {integrity: sha512-p0YncgU+iklvYr/Dq4NobTRdAPv9PveRDUXabPEeOjBLSO/1FNB2phNTZxOxpi1/GZwYpAoECEa0Wam+nsmhSw==} dependencies: '@motionone/types': 10.15.1 hey-listen: 1.0.8 - tslib: 2.5.0 - - /@motionone/vue@10.15.5: - resolution: {integrity: sha512-cUENrLYAolUacHvCgU+8wF9OgSlVutfWbHMLERI/bElCJ+e2YVQvG/CpGhIM5fYOOJzuvg2T2wHmLLmvJoavEw==} - dependencies: - '@motionone/dom': 10.15.5 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@motionone/vue@10.16.2: resolution: {integrity: sha512-7/dEK/nWQXOkJ70bqb2KyNfSWbNvWqKKq1C8juj+0Mg/AorgD8O5wE3naddK0G+aXuNMqRuc4jlsYHHWHtIzVw==} + deprecated: Motion One for Vue is deprecated. Use Oku Motion instead https://oku-ui.com/motion dependencies: '@motionone/dom': 10.16.2 tslib: 2.6.2 + dev: false /@multiformats/murmur3@2.1.3: resolution: {integrity: sha512-YvLK1IrLnRckPsvXhOkZjaIGNonsEdD1dL3NPSaLilV/WjVYeBgnNZXTUsaPzFXGrIFM7motx+yCmmqzXO6gtQ==} @@ -8871,33 +9448,33 @@ packages: dev: false optional: true - /@noble/curves@1.0.0: - resolution: {integrity: sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==} - dependencies: - '@noble/hashes': 1.3.0 - /@noble/curves@1.1.0: resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==} dependencies: '@noble/hashes': 1.3.1 dev: false - /@noble/ed25519@1.7.3: - resolution: {integrity: sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==} + /@noble/curves@1.2.0: + resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} + dependencies: + '@noble/hashes': 1.3.2 /@noble/hashes@1.2.0: resolution: {integrity: sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==} dev: false - /@noble/hashes@1.3.0: - resolution: {integrity: sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==} - /@noble/hashes@1.3.1: resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} engines: {node: '>= 16'} + dev: false + + /@noble/hashes@1.3.2: + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} + engines: {node: '>= 16'} /@noble/secp256k1@1.7.1: resolution: {integrity: sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==} + dev: false /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -9189,18 +9766,160 @@ packages: resolution: {integrity: sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==} dev: false + /@parcel/watcher-android-arm64@2.4.1: + resolution: {integrity: sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-darwin-arm64@2.4.1: + resolution: {integrity: sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-darwin-x64@2.4.1: + resolution: {integrity: sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-freebsd-x64@2.4.1: + resolution: {integrity: sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-linux-arm-glibc@2.4.1: + resolution: {integrity: sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==} + engines: {node: '>= 10.0.0'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-linux-arm64-glibc@2.4.1: + resolution: {integrity: sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-linux-arm64-musl@2.4.1: + resolution: {integrity: sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-linux-x64-glibc@2.4.1: + resolution: {integrity: sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-linux-x64-musl@2.4.1: + resolution: {integrity: sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-wasm@2.4.1: + resolution: {integrity: sha512-/ZR0RxqxU/xxDGzbzosMjh4W6NdYFMqq2nvo2b8SLi7rsl/4jkL8S5stIikorNkdR50oVDvqb/3JT05WM+CRRA==} + engines: {node: '>= 10.0.0'} + dependencies: + is-glob: 4.0.3 + micromatch: 4.0.5 + napi-wasm: 1.1.0 + dev: false + bundledDependencies: + - napi-wasm + + /@parcel/watcher-win32-arm64@2.4.1: + resolution: {integrity: sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-win32-ia32@2.4.1: + resolution: {integrity: sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==} + engines: {node: '>= 10.0.0'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher-win32-x64@2.4.1: + resolution: {integrity: sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@parcel/watcher@2.4.1: + resolution: {integrity: sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==} + engines: {node: '>= 10.0.0'} + dependencies: + detect-libc: 1.0.3 + is-glob: 4.0.3 + micromatch: 4.0.5 + node-addon-api: 7.1.0 + optionalDependencies: + '@parcel/watcher-android-arm64': 2.4.1 + '@parcel/watcher-darwin-arm64': 2.4.1 + '@parcel/watcher-darwin-x64': 2.4.1 + '@parcel/watcher-freebsd-x64': 2.4.1 + '@parcel/watcher-linux-arm-glibc': 2.4.1 + '@parcel/watcher-linux-arm64-glibc': 2.4.1 + '@parcel/watcher-linux-arm64-musl': 2.4.1 + '@parcel/watcher-linux-x64-glibc': 2.4.1 + '@parcel/watcher-linux-x64-musl': 2.4.1 + '@parcel/watcher-win32-arm64': 2.4.1 + '@parcel/watcher-win32-ia32': 2.4.1 + '@parcel/watcher-win32-x64': 2.4.1 + dev: false + /@peculiar/asn1-schema@2.3.3: resolution: {integrity: sha512-6GptMYDMyWBHTUKndHaDsRZUO/XMSgIns2krxcm2L7SEExRHwawFvSwNBhqNPR9HJwv3MruAiF1bhN0we6j6GQ==} dependencies: asn1js: 3.0.5 pvtsutils: 1.3.2 - tslib: 2.5.0 + tslib: 2.6.2 /@peculiar/json-schema@1.1.12: resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==} engines: {node: '>=8.0.0'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 /@peculiar/webcrypto@1.4.1: resolution: {integrity: sha512-eK4C6WTNYxoI7JOabMoZICiyqRRtJB220bh0Mbj5RwRycleZf9BPyZoxsTvpP0FpmVS2aS13NKOuh5/tN3sIRw==} @@ -9209,7 +9928,7 @@ packages: '@peculiar/asn1-schema': 2.3.3 '@peculiar/json-schema': 1.1.12 pvtsutils: 1.3.2 - tslib: 2.5.0 + tslib: 2.6.2 webcrypto-core: 1.7.6 /@pedrouid/environment@1.0.1: @@ -9344,25 +10063,25 @@ packages: /@radix-ui/number@1.0.0: resolution: {integrity: sha512-Ofwh/1HX69ZfJRiRBMTy7rgjAzHmwe4kW9C9Y99HTRUcYLUuVT0KESFj15rPjRgKJs20GPq8Bm5aEDJ8DuA3vA==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /@radix-ui/number@1.0.1: resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /@radix-ui/primitive@1.0.0: resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /@radix-ui/primitive@1.0.1: resolution: {integrity: sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /@radix-ui/react-accordion@1.1.1(react-dom@18.2.0)(react@18.2.0): @@ -9410,7 +10129,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -9429,7 +10148,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@types/react': 18.2.38 '@types/react-dom': 18.2.17 @@ -9477,7 +10196,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-context': 1.0.0(react@18.2.0) @@ -9496,7 +10215,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-context': 1.0.0(react@18.2.0) '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) @@ -9518,7 +10237,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) @@ -9534,7 +10253,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -9547,7 +10266,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -9557,7 +10276,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -9570,7 +10289,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -9615,7 +10334,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.38)(react@18.2.0) @@ -9641,7 +10360,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -9654,7 +10373,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -9665,7 +10384,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) @@ -9688,7 +10407,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) @@ -9725,7 +10444,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -9738,7 +10457,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -9749,7 +10468,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) @@ -9770,7 +10489,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.38)(react@18.2.0) @@ -9802,7 +10521,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-layout-effect': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -9816,7 +10535,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 react: 18.2.0 @@ -9840,7 +10559,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-collection': 1.0.2(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) @@ -9931,7 +10650,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.38)(react@18.2.0) @@ -9959,7 +10678,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@floating-ui/react-dom': 0.7.2(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-arrow': 1.0.2(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) @@ -9989,7 +10708,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@floating-ui/react-dom': 2.0.1(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) @@ -10012,7 +10731,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -10031,7 +10750,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@types/react': 18.2.38 '@types/react-dom': 18.2.17 @@ -10045,7 +10764,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.0(react@18.2.0) react: 18.2.0 @@ -10065,7 +10784,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 @@ -10080,7 +10799,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-slot': 1.0.1(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -10099,7 +10818,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-slot': 1.0.2(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 '@types/react-dom': 18.2.17 @@ -10126,7 +10845,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-collection': 1.0.2(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) @@ -10207,7 +10926,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/number': 1.0.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) @@ -10252,7 +10971,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -10362,7 +11081,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -10375,7 +11094,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -10385,7 +11104,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -10399,7 +11118,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 react: 18.2.0 @@ -10410,7 +11129,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -10424,7 +11143,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 react: 18.2.0 @@ -10435,7 +11154,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -10448,7 +11167,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -10458,7 +11177,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 react: 18.2.0 dev: false @@ -10471,7 +11190,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/react': 18.2.38 react: 18.2.0 dev: false @@ -10481,7 +11200,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/rect': 1.0.0 react: 18.2.0 dev: false @@ -10495,7 +11214,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/rect': 1.0.1 '@types/react': 18.2.38 react: 18.2.0 @@ -10506,7 +11225,7 @@ packages: peerDependencies: react: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-layout-effect': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -10520,7 +11239,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.38)(react@18.2.0) '@types/react': 18.2.38 react: 18.2.0 @@ -10532,7 +11251,7 @@ packages: react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.2(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -10551,7 +11270,7 @@ packages: '@types/react-dom': optional: true dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.17)(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0) '@types/react': 18.2.38 '@types/react-dom': 18.2.17 @@ -10562,36 +11281,39 @@ packages: /@radix-ui/rect@1.0.0: resolution: {integrity: sha512-d0O68AYy/9oeEy1DdC07bz1/ZXX+DqCskRd3i4JzLSTXwefzaepQrKjXC7aNM8lTHjFLDO0pDgaEiQ7jEk+HVg==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /@radix-ui/rect@1.0.1: resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false - /@rainbow-me/rainbowkit@1.0.1(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(viem@1.0.0)(wagmi@1.3.10): - resolution: {integrity: sha512-P+2lgHaN5X84K1e+MARUydyhYRS+nStN4H470QloBBWP5UsidHZpSJGd4qi0WFtfR6zBff96N6kmsfJo7PjFhQ==} + /@rainbow-me/rainbowkit@2.0.6(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(viem@2.9.29)(wagmi@2.7.0): + resolution: {integrity: sha512-Bl1abhfEClnlo66trh3ruGp1fIJ9s3LI4IpHxSvnB0otWrhT/ZtYuIeO7ISBGPEqst0/bfRea1TM1FCr9s0HXA==} engines: {node: '>=12.4'} peerDependencies: react: '>=17' react-dom: '>=17' - viem: ~0.3.19 - wagmi: ~1.0.1 - dependencies: - '@vanilla-extract/css': 1.9.1 - '@vanilla-extract/dynamic': 2.0.2 - '@vanilla-extract/sprinkles': 1.5.0(@vanilla-extract/css@1.9.1) - clsx: 1.1.1 - qrcode: 1.5.0 + viem: 2.x + wagmi: 2.x + dependencies: + '@coinbase/wallet-sdk': 3.9.3 + '@vanilla-extract/css': 1.14.0 + '@vanilla-extract/dynamic': 2.1.0 + '@vanilla-extract/sprinkles': 1.6.1(@vanilla-extract/css@1.14.0) + clsx: 2.1.0 + qrcode: 1.5.3 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-remove-scroll: 2.5.4(@types/react@18.2.38)(react@18.2.0) - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - wagmi: 1.3.10(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) + react-remove-scroll: 2.5.7(@types/react@18.2.38)(react@18.2.0) + ua-parser-js: 1.0.37 + viem: 2.9.29(typescript@5.0.4)(zod@3.21.4) + wagmi: 2.7.0(@tanstack/react-query@5.32.1)(@types/react@18.2.38)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) transitivePeerDependencies: - '@types/react' + - supports-color dev: false /@react-native-community/cli-clean@11.3.10: @@ -10865,10 +11587,10 @@ packages: resolution: {integrity: sha512-2/U3GXA6YiPYQDLGwtGlnNgKYBSwCFIHf8Y9LUY5VATHdtbLlU0Y1R3QoBnT0aB4qv/BEiVVsj7LJXoQCgJ2vA==} dev: true - /@safe-global/safe-apps-provider@0.17.1(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-lYfRqrbbK1aKU1/UGkYWc/X7PgySYcumXKc5FB2uuwAs2Ghj8uETuW5BrwPqyjBknRxutFbTv+gth/JzjxAhdQ==} + /@safe-global/safe-apps-provider@0.18.1(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-V4a05A3EgJcriqtDoJklDz1BOinWhC6P0hjUSxshA4KOZM7rGPCTto/usXs09zr1vvL28evl/NldSTv97j2bmg==} dependencies: - '@safe-global/safe-apps-sdk': 8.0.0(typescript@5.0.4)(zod@3.21.4) + '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.0.4)(zod@3.21.4) events: 3.3.0 transitivePeerDependencies: - bufferutil @@ -10876,30 +11598,20 @@ packages: - typescript - utf-8-validate - zod - - /@safe-global/safe-apps-sdk@8.0.0(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==} - dependencies: - '@safe-global/safe-gateway-typescript-sdk': 3.7.3 - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - transitivePeerDependencies: - - bufferutil - - encoding - - typescript - - utf-8-validate - - zod + dev: false /@safe-global/safe-apps-sdk@8.1.0(typescript@5.0.4)(zod@3.21.4): resolution: {integrity: sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w==} dependencies: '@safe-global/safe-gateway-typescript-sdk': 3.7.3 - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) + viem: 1.21.4(typescript@5.0.4)(zod@3.21.4) transitivePeerDependencies: - bufferutil - encoding - typescript - utf-8-validate - zod + dev: false /@safe-global/safe-gateway-typescript-sdk@3.7.3: resolution: {integrity: sha512-O6JCgXNZWG0Vv8FnOEjKfcbsP0WxGvoPJk5ufqUrsyBlHup16It6oaLnn+25nXFLBZOHI1bz8429JlqAc2t2hg==} @@ -10907,52 +11619,49 @@ packages: cross-fetch: 3.1.5 transitivePeerDependencies: - encoding + dev: false /@scure/base@1.1.1: resolution: {integrity: sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==} + /@scure/base@1.1.6: + resolution: {integrity: sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g==} + /@scure/bip32@1.1.5: resolution: {integrity: sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==} dependencies: '@noble/hashes': 1.2.0 '@noble/secp256k1': 1.7.1 - '@scure/base': 1.1.1 + '@scure/base': 1.1.6 dev: false - /@scure/bip32@1.3.0: - resolution: {integrity: sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==} - dependencies: - '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.0 - '@scure/base': 1.1.1 - /@scure/bip32@1.3.1: resolution: {integrity: sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==} dependencies: '@noble/curves': 1.1.0 - '@noble/hashes': 1.3.1 - '@scure/base': 1.1.1 + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.6 dev: false + /@scure/bip32@1.3.2: + resolution: {integrity: sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==} + dependencies: + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.6 + /@scure/bip39@1.1.1: resolution: {integrity: sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==} dependencies: '@noble/hashes': 1.2.0 - '@scure/base': 1.1.1 + '@scure/base': 1.1.6 dev: false - /@scure/bip39@1.2.0: - resolution: {integrity: sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==} - dependencies: - '@noble/hashes': 1.3.0 - '@scure/base': 1.1.1 - /@scure/bip39@1.2.1: resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} dependencies: - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 '@scure/base': 1.1.1 - dev: false /@sentry/core@5.30.0: resolution: {integrity: sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg==} @@ -11085,37 +11794,6 @@ packages: resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==} dev: false - /@solana/buffer-layout@4.0.1: - resolution: {integrity: sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==} - engines: {node: '>=5.10'} - dependencies: - buffer: 6.0.3 - - /@solana/web3.js@1.75.0: - resolution: {integrity: sha512-rHQgdo1EWfb+nPUpHe4O7i8qJPELHKNR5PAZRK+a7XxiykqOfbaAlPt5boDWAGPnYbSv0ziWZv5mq9DlFaQCxg==} - dependencies: - '@babel/runtime': 7.21.5 - '@noble/ed25519': 1.7.3 - '@noble/hashes': 1.3.1 - '@noble/secp256k1': 1.7.1 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.3.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 3.7.0 - node-fetch: 2.6.12 - rpc-websockets: 7.5.1 - superstruct: 0.14.2 - transitivePeerDependencies: - - bufferutil - - encoding - - supports-color - - utf-8-validate - /@spruceid/siwe-parser@1.1.3: resolution: {integrity: sha512-oQ8PcwDqjGWJvLmvAF2yzd6iniiWxK0Qtz+Dw+gLD/W5zOQJiKIUXwslHOm8VB8OOOKW9vfR3dnPBhHaZDvRsw==} dependencies: @@ -11124,14 +11802,17 @@ packages: /@stablelib/aead@1.0.1: resolution: {integrity: sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==} + dev: false /@stablelib/binary@1.0.1: resolution: {integrity: sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==} dependencies: '@stablelib/int': 1.0.1 + dev: false /@stablelib/bytes@1.0.1: resolution: {integrity: sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ==} + dev: false /@stablelib/chacha20poly1305@1.0.1: resolution: {integrity: sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==} @@ -11142,15 +11823,18 @@ packages: '@stablelib/constant-time': 1.0.1 '@stablelib/poly1305': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/chacha@1.0.1: resolution: {integrity: sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==} dependencies: '@stablelib/binary': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/constant-time@1.0.1: resolution: {integrity: sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==} + dev: false /@stablelib/ed25519@1.0.3: resolution: {integrity: sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==} @@ -11158,9 +11842,11 @@ packages: '@stablelib/random': 1.0.2 '@stablelib/sha512': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/hash@1.0.1: resolution: {integrity: sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==} + dev: false /@stablelib/hkdf@1.0.1: resolution: {integrity: sha512-SBEHYE16ZXlHuaW5RcGk533YlBj4grMeg5TooN80W3NpcHRtLZLLXvKyX0qcRFxf+BGDobJLnwkvgEwHIDBR6g==} @@ -11168,6 +11854,7 @@ packages: '@stablelib/hash': 1.0.1 '@stablelib/hmac': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/hmac@1.0.1: resolution: {integrity: sha512-V2APD9NSnhVpV/QMYgCVMIYKiYG6LSqw1S65wxVoirhU/51ACio6D4yDVSwMzuTJXWZoVHbDdINioBwKy5kVmA==} @@ -11175,26 +11862,31 @@ packages: '@stablelib/constant-time': 1.0.1 '@stablelib/hash': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/int@1.0.1: resolution: {integrity: sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==} + dev: false /@stablelib/keyagreement@1.0.1: resolution: {integrity: sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg==} dependencies: '@stablelib/bytes': 1.0.1 + dev: false /@stablelib/poly1305@1.0.1: resolution: {integrity: sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==} dependencies: '@stablelib/constant-time': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/random@1.0.2: resolution: {integrity: sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==} dependencies: '@stablelib/binary': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/sha256@1.0.1: resolution: {integrity: sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==} @@ -11202,6 +11894,7 @@ packages: '@stablelib/binary': 1.0.1 '@stablelib/hash': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/sha512@1.0.1: resolution: {integrity: sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==} @@ -11209,9 +11902,11 @@ packages: '@stablelib/binary': 1.0.1 '@stablelib/hash': 1.0.1 '@stablelib/wipe': 1.0.1 + dev: false /@stablelib/wipe@1.0.1: resolution: {integrity: sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==} + dev: false /@stablelib/x25519@1.0.3: resolution: {integrity: sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw==} @@ -11219,6 +11914,7 @@ packages: '@stablelib/keyagreement': 1.0.1 '@stablelib/random': 1.0.2 '@stablelib/wipe': 1.0.1 + dev: false /@stitches/core@1.2.8: resolution: {integrity: sha512-Gfkvwk9o9kE9r9XNBmJRfV8zONvXThnm1tcuojL04Uy5uRyqg93DC83lDebl0rocZCfKSjUv+fWYtMQmEDJldg==} @@ -11441,30 +12137,19 @@ packages: '@tanstack/query-persist-client-core': 4.29.23 dev: false - /@tanstack/query-core@4.26.1: - resolution: {integrity: sha512-Zrx2pVQUP4ndnsu6+K/m8zerXSVY8QM+YSbxA1/jbBY21GeCd5oKfYl92oXPK0hPEUtoNuunIdiq0ZMqLos+Zg==} - dev: false - /@tanstack/query-core@4.29.23: resolution: {integrity: sha512-4BMHPrkfYmLP+NvqbbkV7Mk1nnphu+bNmxhhuB0+EMjKA7VfyFCfiyiTf55RRDgLaevyb9LrFK16lHW2owF52w==} + dev: false - /@tanstack/query-core@4.29.5: - resolution: {integrity: sha512-xXIiyQ/4r9KfaJ3k6kejqcaqFXXBTzN2aOJ5H1J6aTJE9hl/nbgAdfF6oiIu0CD5xowejJEJ6bBg8TO7BN4NuQ==} + /@tanstack/query-core@5.32.1: + resolution: {integrity: sha512-mCWa1wdGb1jiny4+qYegbSeadcFj+Nq65KFSs4A1DRveoIq7SrTwUhqu7hrB6d54cQH5x59DfJvxusn3w1Cj/g==} + dev: false /@tanstack/query-persist-client-core@4.29.23: resolution: {integrity: sha512-u0P6y4DPeXeHEZnj0LEnhcgqX8x7iV7xbUDuoRPItUYsPn+anyLjXG3d3622+wLP3XKdevff0PhXkA7j9ZOWKg==} dependencies: '@tanstack/query-core': 4.29.23 - - /@tanstack/query-persist-client-core@4.29.5: - resolution: {integrity: sha512-IjLtEZiEUnzpcFVdHoZGqtjv2g0smLK5WOWk8hP/2ndlXe5kaSbtCKWO2WFbw7yWPYVMM2m9zyglZqg5kU1DMA==} - dependencies: - '@tanstack/query-core': 4.29.5 - - /@tanstack/query-sync-storage-persister@4.29.5: - resolution: {integrity: sha512-A5K2owrQ1z/Ipndt/thv3vMXjRPOT02jwlXM51OV5IHg4FLQ9vlXvImYWlBoHmY1MMl91x9bqRgz0gX6hnr14g==} - dependencies: - '@tanstack/query-persist-client-core': 4.29.5 + dev: false /@tanstack/react-query-persist-client@4.29.23(@tanstack/react-query@4.29.23): resolution: {integrity: sha512-P23y5CMGfSM943pJoQjjOdQXSHH/ohjAl8vhQp+40M4Nz3lDq2d39flGRpajyh4dl4C5s0R8V6Iii7kkIQo8Jg==} @@ -11473,9 +12158,10 @@ packages: dependencies: '@tanstack/query-persist-client-core': 4.29.23 '@tanstack/react-query': 4.29.23(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) + dev: false - /@tanstack/react-query@4.26.1(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): - resolution: {integrity: sha512-i3dnz4TOARGIXrXQ5P7S25Zfi4noii/bxhcwPurh2nrf5EUCcAt/95TB2HSmMweUBx206yIMWUMEQ7ptd6zwDg==} + /@tanstack/react-query@4.29.23(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): + resolution: {integrity: sha512-u59dPBJHeyeRDSrHN3M8FT65yZDT0uPlaFDFd4K2wmDreHguRlk9t578X+cp1Cj+4oksQCE+wv09A5ZH7Odx6g==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -11486,30 +12172,21 @@ packages: react-native: optional: true dependencies: - '@tanstack/query-core': 4.26.1 + '@tanstack/query-core': 4.29.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) use-sync-external-store: 1.2.0(react@18.2.0) dev: false - /@tanstack/react-query@4.29.23(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): - resolution: {integrity: sha512-u59dPBJHeyeRDSrHN3M8FT65yZDT0uPlaFDFd4K2wmDreHguRlk9t578X+cp1Cj+4oksQCE+wv09A5ZH7Odx6g==} + /@tanstack/react-query@5.32.1(react@18.2.0): + resolution: {integrity: sha512-+nXLMB0JK0XwTJ+lQt49DPNLrbSppni9N5W5yMR085yW3YaRKRUFhfVTER3TvQd1UycHpoGPFnt1gHiijXERAg==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true + react: ^18.0.0 dependencies: - '@tanstack/query-core': 4.29.23 + '@tanstack/query-core': 5.32.1 react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) - use-sync-external-store: 1.2.0(react@18.2.0) + dev: false /@trysound/sax@0.2.0: resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} @@ -11574,6 +12251,7 @@ packages: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: '@types/node': 17.0.45 + dev: false /@types/content-disposition@0.5.5: resolution: {integrity: sha512-v6LCdKfK6BwcqMo+wYW05rLS12S0ZO0Fl4w1h4aaZMD7bqT3gVUns6FvLJKGZHQmYn3SX55JWGpziwJRwVgutA==} @@ -11596,6 +12274,11 @@ packages: resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==} dependencies: '@types/ms': 0.7.31 + dev: false + + /@types/dom-screen-wake-lock@1.0.3: + resolution: {integrity: sha512-3Iten7X3Zgwvk6kh6/NRdwN7WbZ760YgFCsF5AxDifltUQzW1RaW+WRmcVtgwFzLjaNu64H+0MPJ13yRa8g3Dw==} + dev: false /@types/eslint-scope@3.7.7: resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -11766,9 +12449,11 @@ packages: /@types/ms@0.7.31: resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} + dev: false /@types/node@12.20.55: resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} + dev: false /@types/node@17.0.45: resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} @@ -11854,6 +12539,12 @@ packages: '@types/node': 17.0.45 dev: false + /@types/secp256k1@4.0.6: + resolution: {integrity: sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==} + dependencies: + '@types/node': 17.0.45 + dev: false + /@types/semver@7.3.13: resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==} dev: true @@ -11870,16 +12561,12 @@ packages: /@types/trusted-types@2.0.3: resolution: {integrity: sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==} + dev: false /@types/unist@2.0.6: resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==} dev: false - /@types/ws@7.4.7: - resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} - dependencies: - '@types/node': 17.0.45 - /@types/ws@8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: @@ -12096,24 +12783,24 @@ packages: eslint-visitor-keys: 3.4.1 dev: true - /@vanilla-extract/css@1.9.1: - resolution: {integrity: sha512-pu2SFiff5jRhPwvGoj8cM5l/qIyLvigOmy22ss5DGjwV5pJYezRjDLxWumi2luIwioMWvh9EozCjyfH8nq+7fQ==} + /@vanilla-extract/css@1.14.0: + resolution: {integrity: sha512-rYfm7JciWZ8PFzBM/HDiE2GLnKI3xJ6/vdmVJ5BSgcCZ5CxRlM9Cjqclni9lGzF3eMOijnUhCd/KV8TOzyzbMA==} dependencies: - '@emotion/hash': 0.8.0 + '@emotion/hash': 0.9.1 '@vanilla-extract/private': 1.0.3 - ahocorasick: 1.0.2 chalk: 4.1.2 - css-what: 5.1.0 + css-what: 6.1.0 cssesc: 3.0.0 csstype: 3.1.2 deep-object-diff: 1.1.9 deepmerge: 4.3.1 media-query-parser: 2.0.2 + modern-ahocorasick: 1.0.1 outdent: 0.8.0 dev: false - /@vanilla-extract/dynamic@2.0.2: - resolution: {integrity: sha512-U4nKaEQ8Kuz+exXEr51DUpyaOuzo24/S/k1YbDPQR06cYcNjQqvwFRnwWtZ+9ImocqM1wTKtzrdUgSTtLGIwAg==} + /@vanilla-extract/dynamic@2.1.0: + resolution: {integrity: sha512-8zl0IgBYRtgD1h+56Zu13wHTiMTJSVEa4F7RWX9vTB/5Xe2KtjoiqApy/szHPVFA56c+ex6A4GpCQjT1bKXbYw==} dependencies: '@vanilla-extract/private': 1.0.3 dev: false @@ -12122,194 +12809,176 @@ packages: resolution: {integrity: sha512-17kVyLq3ePTKOkveHxXuIJZtGYs+cSoev7BlP+Lf4916qfDhk/HBjvlYDe8egrea7LNPHKwSZJK/bzZC+Q6AwQ==} dev: false - /@vanilla-extract/sprinkles@1.5.0(@vanilla-extract/css@1.9.1): - resolution: {integrity: sha512-W58f2Rzz5lLmk0jbhgStVlZl5wEiPB1Ur3fRvUaBM+MrifZ3qskmFq/CiH//fEYeG5Dh9vF1qRviMMH46cX9Nw==} + /@vanilla-extract/sprinkles@1.6.1(@vanilla-extract/css@1.14.0): + resolution: {integrity: sha512-N/RGKwGAAidBupZ436RpuweRQHEFGU+mvAqBo8PRMAjJEmHoPDttV8RObaMLrJHWLqvX+XUMinHUnD0hFRQISw==} peerDependencies: '@vanilla-extract/css': ^1.0.0 dependencies: - '@vanilla-extract/css': 1.9.1 + '@vanilla-extract/css': 1.14.0 dev: false - /@wagmi/chains@1.0.0(typescript@5.0.4): - resolution: {integrity: sha512-eNbqRWyHbivcMNq5tbXJks4NaOzVLHnNQauHPeE/EDT9AlpqzcrMc+v2T1/2Iw8zN4zgqB86NCsxeJHJs7+xng==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - typescript: 5.0.4 - dev: true - - /@wagmi/chains@1.1.0(typescript@5.0.4): - resolution: {integrity: sha512-pWZlxBk0Ql8E7DV8DwqlbBpOyUdaG9UDlQPBxJNALuEK1I0tbQ3AVvSDnlsEIt06UPmPo5o27gzs3hwPQ/A+UA==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - typescript: 5.0.4 - - /@wagmi/chains@1.7.0(typescript@5.0.4): - resolution: {integrity: sha512-TKVeHv0GqP5sV1yQ8BDGYToAFezPnCexbbBpeH14x7ywi5a1dDStPffpt9x+ytE6LJWkZ6pAMs/HNWXBQ5Nqmw==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - typescript: 5.0.4 - - /@wagmi/cli@1.1.0(typescript@5.0.4)(wagmi@1.3.10): - resolution: {integrity: sha512-/KLU3kb+dujK4teTjKewcqYqC2j6JKGKCF0FThfjMoPQ4L4JfyoZxwt8dqntaIGVxHai2PlKYP84RbBhjUV/4A==} - engines: {node: '>=14'} + /@wagmi/cli@2.1.4(typescript@5.0.4): + resolution: {integrity: sha512-vamvEo/GeBjFxb5oZCvby4YZDOrK/RqD+tcWb5X0pqmJDyWbN2Mkv9DYTtVB+OtfVUzFKciN/8Vhw8luMtOJbw==} hasBin: true peerDependencies: - '@wagmi/core': '>=1.0.0' typescript: '>=5.0.4' - wagmi: '>=1.0.0' peerDependenciesMeta: - '@wagmi/core': - optional: true typescript: optional: true - wagmi: - optional: true dependencies: - '@wagmi/chains': 1.0.0(typescript@5.0.4) - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) - abort-controller: 3.0.0 - bundle-require: 3.1.2(esbuild@0.15.13) + abitype: 0.9.8(typescript@5.0.4)(zod@3.23.5) + bundle-require: 4.0.3(esbuild@0.19.12) cac: 6.7.14 change-case: 4.1.2 - chokidar: 3.5.3 + chokidar: 3.6.0 dedent: 0.7.0 - detect-package-manager: 2.0.1 - dotenv: 16.0.3 + dotenv: 16.4.5 dotenv-expand: 10.0.0 - esbuild: 0.15.13 - execa: 6.1.0 + esbuild: 0.19.12 + execa: 8.0.1 find-up: 6.3.0 - fs-extra: 10.1.0 - globby: 13.1.4 - node-fetch: 3.3.1 - ora: 6.1.2 - pathe: 1.1.0 + fs-extra: 11.2.0 + globby: 13.2.2 + ora: 6.3.1 + pathe: 1.1.2 picocolors: 1.0.0 - prettier: 2.8.4 + prettier: 3.2.5 typescript: 5.0.4 - viem: 0.3.50(typescript@5.0.4)(zod@3.21.4) - wagmi: 1.3.10(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) - zod: 3.21.4 + viem: 2.9.29(typescript@5.0.4)(zod@3.23.5) + zod: 3.23.5 transitivePeerDependencies: - bufferutil - utf-8-validate dev: true - /@wagmi/connectors@2.7.0(@wagmi/chains@1.7.0)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4): - resolution: {integrity: sha512-1KOL0HTJl5kzSC/YdKwFwiokr6poUQn1V/tcT0TpG3iH2x0lSM7FTkvCjVVY/6lKzTXrLlo9y2aE7AsOPnkvqg==} + /@wagmi/connectors@4.3.0(@types/react@18.2.38)(@wagmi/core@2.8.0)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4): + resolution: {integrity: sha512-FDmpHRKlk9M7GRIhmhqFl2WMOXUjaVCLb03TbYvwqFrEQtdsD7FJcfGzbpx8/eke1renWvZZTApuQuA7VZg04g==} peerDependencies: - '@wagmi/chains': '>=1.7.0' + '@wagmi/core': 2.8.0 typescript: '>=5.0.4' - viem: '>=0.3.35' + viem: 2.x peerDependenciesMeta: - '@wagmi/chains': - optional: true typescript: optional: true dependencies: - '@coinbase/wallet-sdk': 3.6.6 - '@ledgerhq/connect-kit-loader': 1.1.2 - '@safe-global/safe-apps-provider': 0.17.1(typescript@5.0.4)(zod@3.21.4) + '@coinbase/wallet-sdk': 3.9.1 + '@metamask/sdk': 0.18.6(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1) + '@safe-global/safe-apps-provider': 0.18.1(typescript@5.0.4)(zod@3.21.4) '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.0.4)(zod@3.21.4) - '@wagmi/chains': 1.7.0(typescript@5.0.4) - '@walletconnect/ethereum-provider': 2.9.2(@walletconnect/modal@2.6.1) - '@walletconnect/legacy-provider': 2.0.0 - '@walletconnect/modal': 2.6.1(react@18.2.0) - '@walletconnect/utils': 2.9.2 - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) - eventemitter3: 4.0.7 + '@wagmi/core': 2.8.0(@types/react@18.2.38)(react@18.2.0)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) + '@walletconnect/ethereum-provider': 2.11.2(@types/react@18.2.38)(react@18.2.0) + '@walletconnect/modal': 2.6.2(@types/react@18.2.38)(react@18.2.0) typescript: 5.0.4 - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - transitivePeerDependencies: + viem: 2.9.29(typescript@5.0.4)(zod@3.21.4) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - - lokijs + - ioredis - react + - react-dom + - react-i18next + - react-native + - rollup - supports-color + - uWebSockets.js - utf-8-validate - zod + dev: false - /@wagmi/core@1.3.9(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4): - resolution: {integrity: sha512-SrnABCrsDvhiMCLLLyzyHnZbEumsFT/XWlJJQZeyEDcixL95R7XQwOaaoRI4MpNilCtMtu3jzN57tA5Z2iA+kw==} + /@wagmi/core@2.8.0(@types/react@18.2.38)(react@18.2.0)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4): + resolution: {integrity: sha512-u0CWfbpdv2T3jE1yZQPwxvLlUVMymMoy73g6UE4XYNilF+EjdYu43EjWNvvB9lJcfSyYk6/VdKNHxJ2G+iBxYw==} peerDependencies: + '@tanstack/query-core': '>=5.0.0' typescript: '>=5.0.4' - viem: '>=0.3.35' + viem: 2.x peerDependenciesMeta: + '@tanstack/query-core': + optional: true typescript: optional: true dependencies: - '@wagmi/chains': 1.7.0(typescript@5.0.4) - '@wagmi/connectors': 2.7.0(@wagmi/chains@1.7.0)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) - eventemitter3: 4.0.7 + eventemitter3: 5.0.1 + mipd: 0.0.5(typescript@5.0.4)(zod@3.21.4) typescript: 5.0.4 - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - zustand: 4.3.9(react@18.2.0) + viem: 2.9.29(typescript@5.0.4)(zod@3.21.4) + zustand: 4.4.1(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: - - '@react-native-async-storage/async-storage' + - '@types/react' - bufferutil - - encoding - immer - - lokijs - react - - supports-color - utf-8-validate - zod + dev: false - /@walletconnect/core@2.7.0: - resolution: {integrity: sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ==} + /@walletconnect/core@2.11.2: + resolution: {integrity: sha512-bB4SiXX8hX3/hyBfVPC5gwZCXCl+OPj+/EDVM71iAO3TDsh78KPbrVAbDnnsbHzZVHlsMohtXX3j5XVsheN3+g==} dependencies: '@walletconnect/heartbeat': 1.2.1 '@walletconnect/jsonrpc-provider': 1.0.13 + '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/jsonrpc-ws-connection': 1.0.11 - '@walletconnect/keyvaluestorage': 1.0.2 + '@walletconnect/jsonrpc-ws-connection': 1.0.14 + '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.0.1 '@walletconnect/relay-api': 1.0.9 '@walletconnect/relay-auth': 1.0.4 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.7.0 - '@walletconnect/utils': 2.7.0 + '@walletconnect/types': 2.11.2 + '@walletconnect/utils': 2.11.2 events: 3.3.0 + isomorphic-unfetch: 3.1.0 lodash.isequal: 4.5.0 uint8arrays: 3.1.1 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - - lokijs + - encoding + - ioredis + - uWebSockets.js - utf-8-validate dev: false - /@walletconnect/core@2.9.2: - resolution: {integrity: sha512-VARMPAx8sIgodeyngDHbealP3B621PQqjqKsByFUTOep8ZI1/R/20zU+cmq6j9RCrL+kLKZcrZqeVzs8Z7OlqQ==} + /@walletconnect/core@2.7.0: + resolution: {integrity: sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ==} dependencies: '@walletconnect/heartbeat': 1.2.1 '@walletconnect/jsonrpc-provider': 1.0.13 - '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/jsonrpc-ws-connection': 1.0.13 + '@walletconnect/jsonrpc-ws-connection': 1.0.11 '@walletconnect/keyvaluestorage': 1.0.2 '@walletconnect/logger': 2.0.1 '@walletconnect/relay-api': 1.0.9 '@walletconnect/relay-auth': 1.0.4 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.9.2 - '@walletconnect/utils': 2.9.2 + '@walletconnect/types': 2.7.0 + '@walletconnect/utils': 2.7.0 events: 3.3.0 lodash.isequal: 4.5.0 uint8arrays: 3.1.1 @@ -12318,28 +12987,48 @@ packages: - bufferutil - lokijs - utf-8-validate - - /@walletconnect/crypto@1.0.3: - resolution: {integrity: sha512-+2jdORD7XQs76I2Odgr3wwrtyuLUXD/kprNVsjWRhhhdO9Mt6WqVzOPu0/t7OHSmgal8k7SoBQzUc5hu/8zL/g==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - '@walletconnect/randombytes': 1.0.3 - aes-js: 3.1.2 - hash.js: 1.1.7 - tslib: 1.14.1 - - /@walletconnect/encoding@1.0.2: - resolution: {integrity: sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag==} - dependencies: - is-typedarray: 1.0.0 - tslib: 1.14.1 - typedarray-to-buffer: 3.1.5 + dev: false /@walletconnect/environment@1.0.1: resolution: {integrity: sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==} dependencies: tslib: 1.14.1 + dev: false + + /@walletconnect/ethereum-provider@2.11.2(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-BUDqee0Uy2rCZVkW5Ao3q6Ado/3fePYnFdryVF+YL6bPhj+xQZ5OfKodl+uvs7Rwq++O5wTX2RqOTzpW7+v+Mg==} + dependencies: + '@walletconnect/jsonrpc-http-connection': 1.0.7 + '@walletconnect/jsonrpc-provider': 1.0.13 + '@walletconnect/jsonrpc-types': 1.0.3 + '@walletconnect/jsonrpc-utils': 1.0.8 + '@walletconnect/modal': 2.6.2(@types/react@18.2.38)(react@18.2.0) + '@walletconnect/sign-client': 2.11.2 + '@walletconnect/types': 2.11.2 + '@walletconnect/universal-provider': 2.11.2 + '@walletconnect/utils': 2.11.2 + events: 3.3.0 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - encoding + - ioredis + - react + - uWebSockets.js + - utf-8-validate + dev: false /@walletconnect/ethereum-provider@2.7.0(@web3modal/standalone@2.2.1): resolution: {integrity: sha512-6TwQ05zi6DP1TP1XNgSvLbmCmLf/sz7kLTfMaVk45YYHNgYTTBlXqkyjUpQZI9lpq+uXLBbHn/jx2OGhOPUP0Q==} @@ -12395,36 +13084,12 @@ packages: - utf-8-validate dev: false - /@walletconnect/ethereum-provider@2.9.2(@walletconnect/modal@2.6.1): - resolution: {integrity: sha512-eO1dkhZffV1g7vpG19XUJTw09M/bwGUwwhy1mJ3AOPbOSbMPvwiCuRz2Kbtm1g9B0Jv15Dl+TvJ9vTgYF8zoZg==} - peerDependencies: - '@walletconnect/modal': '>=2' - peerDependenciesMeta: - '@walletconnect/modal': - optional: true - dependencies: - '@walletconnect/jsonrpc-http-connection': 1.0.7 - '@walletconnect/jsonrpc-provider': 1.0.13 - '@walletconnect/jsonrpc-types': 1.0.3 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/modal': 2.6.1(react@18.2.0) - '@walletconnect/sign-client': 2.9.2 - '@walletconnect/types': 2.9.2 - '@walletconnect/universal-provider': 2.9.2 - '@walletconnect/utils': 2.9.2 - events: 3.3.0 - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - bufferutil - - encoding - - lokijs - - utf-8-validate - /@walletconnect/events@1.0.1: resolution: {integrity: sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==} dependencies: keyvaluestorage-interface: 1.0.0 tslib: 1.14.1 + dev: false /@walletconnect/heartbeat@1.2.1: resolution: {integrity: sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==} @@ -12432,11 +13097,12 @@ packages: '@walletconnect/events': 1.0.1 '@walletconnect/time': 1.0.2 tslib: 1.14.1 + dev: false /@walletconnect/jsonrpc-http-connection@1.0.6: resolution: {integrity: sha512-/3zSqDi7JDN06E4qm0NmVYMitngXfh21UWwy8zeJcBeJc+Jcs094EbLsIxtziIIKTCCbT88lWuTjl1ZujxN7cw==} dependencies: - '@walletconnect/jsonrpc-utils': 1.0.7 + '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 cross-fetch: 3.1.5 tslib: 1.14.1 @@ -12453,11 +13119,12 @@ packages: tslib: 1.14.1 transitivePeerDependencies: - encoding + dev: false /@walletconnect/jsonrpc-provider@1.0.12: resolution: {integrity: sha512-6uI2y5281gloZSzICOjk+CVC7CVu0MhtMt2Yzpj05lPb0pzm/bK2oZ2ibxwLerPrqpNt/5bIFVRmoOgPw1mHAQ==} dependencies: - '@walletconnect/jsonrpc-utils': 1.0.7 + '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 tslib: 1.14.1 dev: false @@ -12468,6 +13135,7 @@ packages: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 tslib: 1.14.1 + dev: false /@walletconnect/jsonrpc-types@1.0.2: resolution: {integrity: sha512-CZe8tjJX73OWdHjrBHy7HtAapJ2tT0Q3TYhPBhRxi3643lwPIQWC9En45ldY14TZwgSewkbZ0FtGBZK0G7Bbyg==} @@ -12481,12 +13149,13 @@ packages: dependencies: keyvaluestorage-interface: 1.0.0 tslib: 1.14.1 + dev: false /@walletconnect/jsonrpc-utils@1.0.7: resolution: {integrity: sha512-zJziApzUF/Il4VcwabnaU+0yo1QI4eUkYX99zmCVTHJvZOf2l0zjADf/OpKqWyeNFC3Io56Z/8uJHVtcNVvyFA==} dependencies: '@walletconnect/environment': 1.0.1 - '@walletconnect/jsonrpc-types': 1.0.2 + '@walletconnect/jsonrpc-types': 1.0.3 tslib: 1.14.1 dev: false @@ -12496,6 +13165,7 @@ packages: '@walletconnect/environment': 1.0.1 '@walletconnect/jsonrpc-types': 1.0.3 tslib: 1.14.1 + dev: false /@walletconnect/jsonrpc-ws-connection@1.0.11: resolution: {integrity: sha512-TiFJ6saasKXD+PwGkm5ZGSw0837nc6EeFmurSPgIT/NofnOV4Tv7CVJqGQN0rQYoJUSYu21cwHNYaFkzNpUN+w==} @@ -12510,17 +13180,17 @@ packages: - utf-8-validate dev: false - /@walletconnect/jsonrpc-ws-connection@1.0.13: - resolution: {integrity: sha512-mfOM7uFH4lGtQxG+XklYuFBj6dwVvseTt5/ahOkkmpcAEgz2umuzu7fTR+h5EmjQBdrmYyEBOWADbeaFNxdySg==} + /@walletconnect/jsonrpc-ws-connection@1.0.14: + resolution: {integrity: sha512-Jsl6fC55AYcbkNVkwNM6Jo+ufsuCQRqViOQ8ZBPH9pRREHH9welbBiszuTLqEJiQcO/6XfFDl6bzCJIkrEi8XA==} dependencies: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 events: 3.3.0 - tslib: 1.14.1 ws: 7.5.9 transitivePeerDependencies: - bufferutil - utf-8-validate + dev: false /@walletconnect/keyvaluestorage@1.0.2: resolution: {integrity: sha512-U/nNG+VLWoPFdwwKx0oliT4ziKQCEoQ27L5Hhw8YOFGA2Po9A9pULUYNWhDgHkrb0gYDNt//X7wABcEWWBd3FQ==} @@ -12535,103 +13205,79 @@ packages: dependencies: safe-json-utils: 1.1.1 tslib: 1.14.1 + dev: false - /@walletconnect/legacy-client@2.0.0: - resolution: {integrity: sha512-v5L7rYk9loVnfvUf0mF+76bUPFaU5/Vh7mzL6/950CD/yoGdzYZ3Kj+L7mkC6HPMEGeQsBP1+sqBuiVGZ/aODA==} - dependencies: - '@walletconnect/crypto': 1.0.3 - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.13.5 - - /@walletconnect/legacy-modal@2.0.0: - resolution: {integrity: sha512-jckNd8lMhm4X7dX9TDdxM3bXKJnaqkRs6K2Mo5j6GmbIF9Eyx40jZ5+q457RVxvM6ciZEDT5s1wBHWdWoOo+9Q==} - dependencies: - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - copy-to-clipboard: 3.3.3 - preact: 10.13.2 - qrcode: 1.5.3 - - /@walletconnect/legacy-provider@2.0.0: - resolution: {integrity: sha512-A8xPebMI1A+50HbWwTpFCbwP7G+1NGKdTKyg8BUUg3h3Y9JucpC1W6w/x0v1Xw7qFEqQnz74LoIN/A3ytH9xrQ==} - dependencies: - '@walletconnect/jsonrpc-http-connection': 1.0.7 - '@walletconnect/jsonrpc-provider': 1.0.13 - '@walletconnect/legacy-client': 2.0.0 - '@walletconnect/legacy-modal': 2.0.0 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - transitivePeerDependencies: - - encoding - - /@walletconnect/legacy-types@2.0.0: - resolution: {integrity: sha512-sOVrA7HUdbI1OwKyPOQU0/DdvTSVFlsXWpAk2K2WvP2erTkBWPMTJq6cv2BmKdoJ3p6gLApT7sd+jHi3OF71uw==} - dependencies: - '@walletconnect/jsonrpc-types': 1.0.3 - - /@walletconnect/legacy-utils@2.0.0: - resolution: {integrity: sha512-CPWxSVVXw0kgNCxvU126g4GiV3mzXmC8IPJ15twE46aJ1FX+RHEIfAzFMFz2F2+fEhBxL63A7dwNQKDXorRPcQ==} + /@walletconnect/keyvaluestorage@1.1.1: + resolution: {integrity: sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==} + peerDependencies: + '@react-native-async-storage/async-storage': 1.x + peerDependenciesMeta: + '@react-native-async-storage/async-storage': + optional: true dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.13.5 + idb-keyval: 6.2.1 + unstorage: 1.10.2(idb-keyval@6.2.1) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@upstash/redis' + - '@vercel/kv' + - ioredis + - uWebSockets.js + dev: false /@walletconnect/logger@2.0.1: resolution: {integrity: sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ==} dependencies: pino: 7.11.0 tslib: 1.14.1 + dev: false - /@walletconnect/modal-core@2.6.1(react@18.2.0): - resolution: {integrity: sha512-f2hYlJ5pwzGvjyaZ6BoGR5uiMgXzWXt6w6ktt1N8lmY6PiYp8whZgqx2hTxVWwVlsGnaIfh6UHp1hGnANx0eTQ==} + /@walletconnect/modal-core@2.6.2(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-cv8ibvdOJQv2B+nyxP9IIFdxvQznMz8OOr/oR/AaUZym4hjXNL/l1a2UlSQBXrVjo3xxbouMxLb3kBsHoYP2CA==} dependencies: - valtio: 1.11.0(react@18.2.0) + valtio: 1.11.2(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: + - '@types/react' - react + dev: false - /@walletconnect/modal-ui@2.6.1(react@18.2.0): - resolution: {integrity: sha512-RFUOwDAMijSK8B7W3+KoLKaa1l+KEUG0LCrtHqaB0H0cLnhEGdLR+kdTdygw+W8+yYZbkM5tXBm7MlFbcuyitA==} + /@walletconnect/modal-ui@2.6.2(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-rbdstM1HPGvr7jprQkyPggX7rP4XiCG85ZA+zWBEX0dVQg8PpAgRUqpeub4xQKDgY7pY/xLRXSiCVdWGqvG2HA==} dependencies: - '@walletconnect/modal-core': 2.6.1(react@18.2.0) - lit: 2.7.6 + '@walletconnect/modal-core': 2.6.2(@types/react@18.2.38)(react@18.2.0) + lit: 2.8.0 motion: 10.16.2 qrcode: 1.5.3 transitivePeerDependencies: + - '@types/react' - react + dev: false - /@walletconnect/modal@2.6.1(react@18.2.0): - resolution: {integrity: sha512-G84tSzdPKAFk1zimgV7JzIUFT5olZUVtI3GcOk77OeLYjlMfnDT23RVRHm5EyCrjkptnvpD0wQScXePOFd2Xcw==} + /@walletconnect/modal@2.6.2(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-eFopgKi8AjKf/0U4SemvcYw9zlLpx9njVN8sf6DAkowC2Md0gPU/UNEbH1Wwj407pEKnEds98pKWib1NN1ACoA==} dependencies: - '@walletconnect/modal-core': 2.6.1(react@18.2.0) - '@walletconnect/modal-ui': 2.6.1(react@18.2.0) + '@walletconnect/modal-core': 2.6.2(@types/react@18.2.38)(react@18.2.0) + '@walletconnect/modal-ui': 2.6.2(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: + - '@types/react' - react - - /@walletconnect/randombytes@1.0.3: - resolution: {integrity: sha512-35lpzxcHFbTN3ABefC9W+uBpNZl1GC4Wpx0ed30gibfO/y9oLdy1NznbV96HARQKSBV9J9M/rrtIvf6a23jfYw==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - randombytes: 2.1.0 - tslib: 1.14.1 + dev: false /@walletconnect/relay-api@1.0.9: resolution: {integrity: sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg==} dependencies: '@walletconnect/jsonrpc-types': 1.0.3 tslib: 1.14.1 + dev: false /@walletconnect/relay-auth@1.0.4: resolution: {integrity: sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ==} @@ -12642,70 +13288,99 @@ packages: '@walletconnect/time': 1.0.2 tslib: 1.14.1 uint8arrays: 3.1.1 + dev: false /@walletconnect/safe-json@1.0.2: resolution: {integrity: sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==} dependencies: tslib: 1.14.1 + dev: false - /@walletconnect/sign-client@2.7.0: - resolution: {integrity: sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA==} + /@walletconnect/sign-client@2.11.2: + resolution: {integrity: sha512-MfBcuSz2GmMH+P7MrCP46mVE5qhP0ZyWA0FyIH6/WuxQ6G+MgKsGfaITqakpRPsykWOJq8tXMs3XvUPDU413OQ==} dependencies: - '@walletconnect/core': 2.7.0 + '@walletconnect/core': 2.11.2 '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-utils': 1.0.7 + '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.7.0 - '@walletconnect/utils': 2.7.0 + '@walletconnect/types': 2.11.2 + '@walletconnect/utils': 2.11.2 events: 3.3.0 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - - lokijs + - encoding + - ioredis + - uWebSockets.js - utf-8-validate dev: false - /@walletconnect/sign-client@2.9.2: - resolution: {integrity: sha512-anRwnXKlR08lYllFMEarS01hp1gr6Q9XUgvacr749hoaC/AwGVlxYFdM8+MyYr3ozlA+2i599kjbK/mAebqdXg==} + /@walletconnect/sign-client@2.7.0: + resolution: {integrity: sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA==} dependencies: - '@walletconnect/core': 2.9.2 + '@walletconnect/core': 2.7.0 '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.9.2 - '@walletconnect/utils': 2.9.2 + '@walletconnect/types': 2.7.0 + '@walletconnect/utils': 2.7.0 events: 3.3.0 transitivePeerDependencies: - '@react-native-async-storage/async-storage' - bufferutil - lokijs - utf-8-validate + dev: false /@walletconnect/time@1.0.2: resolution: {integrity: sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==} dependencies: tslib: 1.14.1 + dev: false - /@walletconnect/types@2.7.0: - resolution: {integrity: sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw==} + /@walletconnect/types@2.11.2: + resolution: {integrity: sha512-p632MFB+lJbip2cvtXPBQslpUdiw1sDtQ5y855bOlAGquay+6fZ4h1DcDePeKQDQM3P77ax2a9aNPZxV6y/h1Q==} dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-types': 1.0.2 - '@walletconnect/keyvaluestorage': 1.0.2 + '@walletconnect/jsonrpc-types': 1.0.3 + '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.0.1 events: 3.3.0 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - lokijs + - '@upstash/redis' + - '@vercel/kv' + - ioredis + - uWebSockets.js dev: false - /@walletconnect/types@2.9.2: - resolution: {integrity: sha512-7Rdn30amnJEEal4hk83cdwHUuxI1SWQ+K7fFFHBMqkuHLGi3tpMY6kpyfDxnUScYEZXqgRps4Jo5qQgnRqVM7A==} + /@walletconnect/types@2.7.0: + resolution: {integrity: sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw==} dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 @@ -12716,102 +13391,131 @@ packages: transitivePeerDependencies: - '@react-native-async-storage/async-storage' - lokijs + dev: false - /@walletconnect/universal-provider@2.7.0: - resolution: {integrity: sha512-aAIudO3ZlKD16X36VnXChpxBB6/JLK1SCJBfidk7E0GE2S4xr1xW5jXGSGS4Z+wIkNZXK0n7ULSK3PZ7mPBdog==} + /@walletconnect/universal-provider@2.11.2: + resolution: {integrity: sha512-cNtIn5AVoDxKAJ4PmB8m5adnf5mYQMUamEUPKMVvOPscfGtIMQEh9peKsh2AN5xcRVDbgluC01Id545evFyymw==} dependencies: - '@walletconnect/jsonrpc-http-connection': 1.0.6 - '@walletconnect/jsonrpc-provider': 1.0.12 - '@walletconnect/jsonrpc-types': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.7 + '@walletconnect/jsonrpc-http-connection': 1.0.7 + '@walletconnect/jsonrpc-provider': 1.0.13 + '@walletconnect/jsonrpc-types': 1.0.3 + '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 - '@walletconnect/sign-client': 2.7.0 - '@walletconnect/types': 2.7.0 - '@walletconnect/utils': 2.7.0 - eip1193-provider: 1.0.1 + '@walletconnect/sign-client': 2.11.2 + '@walletconnect/types': 2.11.2 + '@walletconnect/utils': 2.11.2 events: 3.3.0 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - - debug - encoding - - lokijs + - ioredis + - uWebSockets.js - utf-8-validate dev: false - /@walletconnect/universal-provider@2.9.2: - resolution: {integrity: sha512-JmaolkO8D31UdRaQCHwlr8uIFUI5BYhBzqYFt54Mc6gbIa1tijGOmdyr6YhhFO70LPmS6gHIjljwOuEllmlrxw==} + /@walletconnect/universal-provider@2.7.0: + resolution: {integrity: sha512-aAIudO3ZlKD16X36VnXChpxBB6/JLK1SCJBfidk7E0GE2S4xr1xW5jXGSGS4Z+wIkNZXK0n7ULSK3PZ7mPBdog==} dependencies: '@walletconnect/jsonrpc-http-connection': 1.0.7 '@walletconnect/jsonrpc-provider': 1.0.13 '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 - '@walletconnect/sign-client': 2.9.2 - '@walletconnect/types': 2.9.2 - '@walletconnect/utils': 2.9.2 + '@walletconnect/sign-client': 2.7.0 + '@walletconnect/types': 2.7.0 + '@walletconnect/utils': 2.7.0 + eip1193-provider: 1.0.1 events: 3.3.0 transitivePeerDependencies: - '@react-native-async-storage/async-storage' - bufferutil + - debug - encoding - lokijs - utf-8-validate + dev: false - /@walletconnect/utils@2.7.0: - resolution: {integrity: sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw==} + /@walletconnect/utils@2.11.2: + resolution: {integrity: sha512-LyfdmrnZY6dWqlF4eDrx5jpUwsB2bEPjoqR5Z6rXPiHJKUOdJt7az+mNOn5KTSOlRpd1DmozrBrWr+G9fFLYVw==} dependencies: '@stablelib/chacha20poly1305': 1.0.1 '@stablelib/hkdf': 1.0.1 '@stablelib/random': 1.0.2 '@stablelib/sha256': 1.0.1 '@stablelib/x25519': 1.0.3 - '@walletconnect/jsonrpc-utils': 1.0.7 '@walletconnect/relay-api': 1.0.9 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.7.0 + '@walletconnect/types': 2.11.2 '@walletconnect/window-getters': 1.0.1 '@walletconnect/window-metadata': 1.0.1 detect-browser: 5.3.0 - query-string: 7.1.1 + query-string: 7.1.3 uint8arrays: 3.1.1 transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' - - lokijs + - '@upstash/redis' + - '@vercel/kv' + - ioredis + - uWebSockets.js dev: false - /@walletconnect/utils@2.9.2: - resolution: {integrity: sha512-D44hwXET/8JhhIjqljY6qxSu7xXnlPrf63UN/Qfl98vDjWlYVcDl2+JIQRxD9GPastw0S8XZXdRq59XDXLuZBg==} + /@walletconnect/utils@2.7.0: + resolution: {integrity: sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw==} dependencies: '@stablelib/chacha20poly1305': 1.0.1 '@stablelib/hkdf': 1.0.1 '@stablelib/random': 1.0.2 '@stablelib/sha256': 1.0.1 '@stablelib/x25519': 1.0.3 + '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/relay-api': 1.0.9 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.9.2 + '@walletconnect/types': 2.7.0 '@walletconnect/window-getters': 1.0.1 '@walletconnect/window-metadata': 1.0.1 detect-browser: 5.3.0 - query-string: 7.1.3 + query-string: 7.1.1 uint8arrays: 3.1.1 transitivePeerDependencies: - '@react-native-async-storage/async-storage' - lokijs + dev: false /@walletconnect/window-getters@1.0.1: resolution: {integrity: sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==} dependencies: tslib: 1.14.1 + dev: false /@walletconnect/window-metadata@1.0.1: resolution: {integrity: sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==} dependencies: '@walletconnect/window-getters': 1.0.1 tslib: 1.14.1 + dev: false /@weavery/clarity@0.1.5: resolution: {integrity: sha512-0ms2/sBx+uyW3EmXte5otIzNVAXpfJ3lBl6FS8JuLdWmPU6SxiAoGTMUT0N0SL3Ogiz2PZt6NV+mfApbSvYBaQ==} @@ -12985,7 +13689,7 @@ packages: resolution: {integrity: sha512-uoti8QU5xd+X+9PULOGpPpOqPDdwkz+ukMc4kyQG1GwXeKVGktr4FSllr6dBotjOjNVPSBPpmj5V6zrUdDcLaw==} dependencies: '@whatwg-node/events': 0.0.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@whatwg-node/events@0.0.2: @@ -13026,7 +13730,7 @@ packages: busboy: 1.6.0 fast-querystring: 1.1.2 fast-url-parser: 1.1.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@whatwg-node/node-fetch@0.4.14: @@ -13037,35 +13741,35 @@ packages: busboy: 1.6.0 fast-querystring: 1.1.2 fast-url-parser: 1.1.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@whatwg-node/server@0.7.7: resolution: {integrity: sha512-aHURgNDFm/48WVV3vhTMfnEKCYwYgdaRdRhZsQZx4UVFjGGkGay7Ys0+AYu9QT/jpoImv2oONkstoTMUprDofg==} dependencies: '@whatwg-node/fetch': 0.8.8 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@wry/context@0.7.3: resolution: {integrity: sha512-Nl8WTesHp89RF803Se9X3IiHjdmLBrIvPMaJkl+rKVJAYyPsz1TEUbu89943HpvujtSJgDUx9W4vZw3K1Mr3sA==} engines: {node: '>=8'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@wry/equality@0.5.6: resolution: {integrity: sha512-D46sfMTngaYlrH+OspKf8mIJETntFnf6Hsjb0V41jAXJ7Bx2kB8Rv8RCUujuVWYttFtHkUNp7g+FwxNQAr6mXA==} engines: {node: '>=8'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@wry/trie@0.4.3: resolution: {integrity: sha512-I6bHwH0fSf6RqQcnnXLJKhkSXG45MFral3GxPaY4uAl0LYDZM+YDVDAiU9bYwjTuysy1S0IeecWtmq1SZA3M1w==} engines: {node: '>=8'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@xtuc/ieee754@1.2.0: @@ -13082,21 +13786,40 @@ packages: dependencies: jsonparse: 1.3.1 through: 2.3.8 + dev: true - /abitype@0.8.7(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-wQ7hV8Yg/yKmGyFpqrNZufCxbszDe5es4AZGYPBitocfSqXtjrTG9JMWFcc4N30ukl2ve48aBTwt7NJxVQdU3w==} + /abitype@0.9.6(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-bnx3yBJ9BhF5SWlIy+fMRprm2w5VhOrDj5bh0K9Aj40AfgQoICuIolm3GmSIhE+lE8qTqRv9PmTg3C9b25vmag==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.19.1 peerDependenciesMeta: + typescript: + optional: true zod: optional: true dependencies: typescript: 5.0.4 zod: 3.21.4 + dev: false - /abitype@0.9.6(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-bnx3yBJ9BhF5SWlIy+fMRprm2w5VhOrDj5bh0K9Aj40AfgQoICuIolm3GmSIhE+lE8qTqRv9PmTg3C9b25vmag==} + /abitype@0.9.8(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} + peerDependencies: + typescript: '>=5.0.4' + zod: ^3 >=3.19.1 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true + dependencies: + typescript: 5.0.4 + zod: 3.21.4 + dev: false + + /abitype@0.9.8(typescript@5.0.4)(zod@3.23.5): + resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.19.1 @@ -13105,11 +13828,41 @@ packages: optional: true zod: optional: true + dependencies: + typescript: 5.0.4 + zod: 3.23.5 + dev: true + + /abitype@1.0.0(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ==} + peerDependencies: + typescript: '>=5.0.4' + zod: ^3 >=3.22.0 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true dependencies: typescript: 5.0.4 zod: 3.21.4 dev: false + /abitype@1.0.0(typescript@5.0.4)(zod@3.23.5): + resolution: {integrity: sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ==} + peerDependencies: + typescript: '>=5.0.4' + zod: ^3 >=3.22.0 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true + dependencies: + typescript: 5.0.4 + zod: 3.23.5 + dev: true + /abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -13162,12 +13915,12 @@ packages: mime-types: 2.1.35 negotiator: 0.6.3 - /acorn-import-assertions@1.9.0(acorn@8.11.2): + /acorn-import-assertions@1.9.0(acorn@8.11.3): resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} peerDependencies: acorn: ^8 dependencies: - acorn: 8.11.2 + acorn: 8.11.3 dev: false /acorn-jsx@5.3.2(acorn@8.8.2): @@ -13182,8 +13935,8 @@ packages: resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} engines: {node: '>=0.4.0'} - /acorn@8.11.2: - resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} + /acorn@8.11.3: + resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} engines: {node: '>=0.4.0'} hasBin: true @@ -13201,9 +13954,6 @@ packages: resolution: {integrity: sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==} dev: false - /aes-js@3.1.2: - resolution: {integrity: sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==} - /agent-base@6.0.2: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} @@ -13222,16 +13972,6 @@ packages: - supports-color dev: true - /agentkeepalive@4.3.0: - resolution: {integrity: sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==} - engines: {node: '>= 8.0.0'} - dependencies: - debug: 4.3.4(supports-color@5.5.0) - depd: 2.0.0 - humanize-ms: 1.2.1 - transitivePeerDependencies: - - supports-color - /aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -13239,10 +13979,6 @@ packages: clean-stack: 2.2.0 indent-string: 4.0.0 - /ahocorasick@1.0.2: - resolution: {integrity: sha512-hCOfMzbFx5IDutmWLAt6MZwOUjIfSM9G9FyVxytmE4Rs/5YDPWQrD/+IR1w+FweD9H2oOZEnv36TmkjhNURBVA==} - dev: false - /ajv-formats@2.1.1(ajv@8.12.0): resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} peerDependencies: @@ -13401,7 +14137,7 @@ packages: resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==} engines: {node: '>=10'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false /aria-query@5.1.3: @@ -13602,7 +14338,7 @@ packages: dependencies: pvtsutils: 1.3.2 pvutils: 1.1.3 - tslib: 2.5.0 + tslib: 2.6.2 /assert-plus@1.0.0: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} @@ -13639,6 +14375,7 @@ packages: resolution: {integrity: sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==} dependencies: tslib: 2.6.2 + dev: false /async@3.2.4: resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} @@ -13665,6 +14402,7 @@ packages: /atomic-sleep@1.0.0: resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} engines: {node: '>=8.0.0'} + dev: false /attr-accept@2.2.2: resolution: {integrity: sha512-7prDjvt9HmqiZ0cl5CRjtS84sEyhsHP2coDkaZKRKVfCDo9s7iw7ChVmar78Gu9pC4SoR/28wFu/G5JJhTnqEg==} @@ -13783,7 +14521,7 @@ packages: loader-utils: 2.0.4 make-dir: 3.1.0 schema-utils: 2.7.1 - webpack: 5.89.0(esbuild@0.15.13) + webpack: 5.89.0(esbuild@0.19.12) dev: false /babel-plugin-polyfill-corejs2@0.3.3(@babel/core@7.18.5): @@ -14043,6 +14781,7 @@ packages: resolution: {integrity: sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==} dependencies: safe-buffer: 5.2.1 + dev: false /base-x@4.0.0: resolution: {integrity: sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==} @@ -14065,13 +14804,6 @@ packages: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} dev: false - /bigint-buffer@1.1.5: - resolution: {integrity: sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==} - engines: {node: '>= 10.0.0'} - requiresBuild: true - dependencies: - bindings: 1.5.0 - /bigint-crypto-utils@3.3.0: resolution: {integrity: sha512-jOTSb+drvEDxEq6OuUybOAv/xxoh3cuYRUIPyu8sSHQNKM303UQ2R1DAo45o1AkcIXw6fzbaFI1+xGGdaXs2lg==} engines: {node: '>=14.0.0'} @@ -14085,14 +14817,6 @@ packages: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} - /bind-decorator@1.0.11: - resolution: {integrity: sha512-yzkH0uog6Vv/vQ9+rhSKxecnqGUZHYncg7qS7voz3Q76+TAi1SGiOKk2mlOvusQnFz9Dc4BC/NMkeXu11YgjJg==} - - /bindings@1.5.0: - resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - dependencies: - file-uri-to-path: 1.0.0 - /bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} dependencies: @@ -14157,6 +14881,7 @@ packages: /bn.js@5.2.1: resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} + dev: false /body-parser@1.20.1: resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} @@ -14202,12 +14927,9 @@ packages: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} dev: true - /borsh@0.7.0: - resolution: {integrity: sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==} - dependencies: - bn.js: 5.2.1 - bs58: 4.0.1 - text-encoding-utf-8: 1.0.2 + /bowser@2.11.0: + resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} + dev: false /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} @@ -14292,6 +15014,7 @@ packages: resolution: {integrity: sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==} dependencies: base-x: 3.0.9 + dev: false /bs58@5.0.0: resolution: {integrity: sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==} @@ -14346,20 +15069,13 @@ packages: base64-js: 1.5.1 ieee754: 1.2.1 - /bufferutil@4.0.7: - resolution: {integrity: sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==} - engines: {node: '>=6.14.2'} - requiresBuild: true - dependencies: - node-gyp-build: 4.6.0 - dev: false - /bufferutil@4.0.8: resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} engines: {node: '>=6.14.2'} requiresBuild: true dependencies: node-gyp-build: 4.6.0 + dev: false /bufio@1.2.0: resolution: {integrity: sha512-UlFk8z/PwdhYQTXSQQagwGAdtRI83gib2n4uy4rQnenxUM2yQi8lBDzF230BNk+3wAoZDxYRoBwVVUPgHa9MCA==} @@ -14371,13 +15087,13 @@ packages: engines: {node: '>=6'} dev: false - /bundle-require@3.1.2(esbuild@0.15.13): - resolution: {integrity: sha512-Of6l6JBAxiyQ5axFxUM6dYeP/W7X2Sozeo/4EYB9sJhL+dqL7TKjg+shwxp6jlu/6ZSERfsYtIpSJ1/x3XkAEA==} + /bundle-require@4.0.3(esbuild@0.19.12): + resolution: {integrity: sha512-2iscZ3fcthP2vka4Y7j277YJevwmsby/FpFDwjgw34Nl7dtCpt7zz/4TexmHMzY6KZEih7En9ImlbbgUNNQGtA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} peerDependencies: - esbuild: '>=0.13' + esbuild: '>=0.17' dependencies: - esbuild: 0.15.13 + esbuild: 0.19.12 load-tsconfig: 0.2.3 dev: true @@ -14429,6 +15145,7 @@ packages: dependencies: function-bind: 1.1.2 get-intrinsic: 1.2.0 + dev: true /call-bind@1.0.5: resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} @@ -14462,7 +15179,7 @@ packages: resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} dependencies: pascal-case: 3.1.2 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /camelcase-css@2.0.1: @@ -14633,8 +15350,22 @@ packages: resolution: {integrity: sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==} dev: false - /chokidar@3.5.3: - resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + /chokidar@3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + /chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} dependencies: anymatch: 3.1.3 @@ -14682,6 +15413,12 @@ packages: safe-buffer: 5.2.1 dev: false + /citty@0.1.6: + resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==} + dependencies: + consola: 3.2.3 + dev: false + /class-is@1.1.0: resolution: {integrity: sha512-rhjH9AG1fvabIDoGRVH587413LPjTZgmDF9fOFCbFJQV4yuocX1mHxxvXI4g3cGwbVY9wAYIoKlg1N79frJKQw==} dev: false @@ -14720,7 +15457,7 @@ packages: webpack: '>=4.0.0 <6.0.0' dependencies: del: 4.1.1 - webpack: 5.89.0(esbuild@0.15.13) + webpack: 5.89.0(esbuild@0.19.12) dev: false /cli-cursor@3.1.0: @@ -14765,6 +15502,15 @@ packages: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} dev: false + /clipboardy@4.0.0: + resolution: {integrity: sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==} + engines: {node: '>=18'} + dependencies: + execa: 8.0.1 + is-wsl: 3.1.0 + is64bit: 2.0.0 + dev: false + /cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} dependencies: @@ -14806,14 +15552,15 @@ packages: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} - /clsx@1.1.1: - resolution: {integrity: sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==} + /clsx@1.2.1: + resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} engines: {node: '>=6'} dev: false - /clsx@1.2.1: - resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} + /clsx@2.1.0: + resolution: {integrity: sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==} engines: {node: '>=6'} + dev: false /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -14956,6 +15703,10 @@ packages: yargs: 17.7.2 dev: true + /confbox@0.1.7: + resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} + dev: false + /connect@3.7.0: resolution: {integrity: sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==} engines: {node: '>= 0.10.0'} @@ -14967,6 +15718,11 @@ packages: transitivePeerDependencies: - supports-color + /consola@3.2.3: + resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==} + engines: {node: ^14.18.0 || >=16.10.0} + dev: false + /constant-case@3.0.4: resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} dependencies: @@ -15031,6 +15787,10 @@ packages: /convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + /cookie-es@1.1.0: + resolution: {integrity: sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==} + dev: false + /cookie-signature@1.0.6: resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false @@ -15049,6 +15809,7 @@ packages: resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==} dependencies: toggle-selection: 1.0.6 + dev: false /core-js-compat@3.29.0: resolution: {integrity: sha512-ScMn3uZNAFhK2DGoEfErguoiAHhV2Ju+oJo/jK08p7B3f3UhocUrCCkTvnZaiS+edl5nlIoiBXKcwMc6elv4KQ==} @@ -15182,7 +15943,7 @@ packages: /cross-fetch@4.0.0: resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} dependencies: - node-fetch: 2.6.12 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding dev: false @@ -15202,6 +15963,15 @@ packages: shebang-command: 2.0.0 which: 2.0.2 + /crossws@0.2.4: + resolution: {integrity: sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==} + peerDependencies: + uWebSockets.js: '*' + peerDependenciesMeta: + uWebSockets.js: + optional: true + dev: false + /crypto-js@3.3.0: resolution: {integrity: sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==} dev: false @@ -15246,15 +16016,9 @@ packages: source-map: 0.6.1 dev: true - /css-what@5.1.0: - resolution: {integrity: sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==} - engines: {node: '>= 6'} - dev: false - /css-what@6.1.0: resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} engines: {node: '>= 6'} - dev: true /cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} @@ -15305,11 +16069,6 @@ packages: assert-plus: 1.0.0 dev: false - /data-uri-to-buffer@4.0.1: - resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} - engines: {node: '>= 12'} - dev: true - /dataloader@2.2.2: resolution: {integrity: sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==} dev: true @@ -15318,7 +16077,7 @@ packages: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 /dayjs@1.11.10: resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==} @@ -15407,6 +16166,7 @@ packages: /decode-uri-component@0.2.2: resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} engines: {node: '>=0.10'} + dev: false /decompress-response@3.3.0: resolution: {integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==} @@ -15503,6 +16263,11 @@ packages: gopd: 1.0.1 has-property-descriptors: 1.0.1 + /define-lazy-prop@2.0.0: + resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} + engines: {node: '>=8'} + dev: false + /define-properties@1.2.0: resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} engines: {node: '>= 0.4'} @@ -15519,6 +16284,10 @@ packages: has-property-descriptors: 1.0.1 object-keys: 1.1.1 + /defu@6.1.4: + resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} + dev: false + /del@4.1.1: resolution: {integrity: sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==} engines: {node: '>=6'} @@ -15532,10 +16301,6 @@ packages: rimraf: 2.7.1 dev: false - /delay@5.0.0: - resolution: {integrity: sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==} - engines: {node: '>=10'} - /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} @@ -15565,18 +16330,29 @@ packages: engines: {node: '>=6'} dev: false + /destr@2.0.3: + resolution: {integrity: sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==} + dev: false + /destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} /detect-browser@5.3.0: resolution: {integrity: sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==} + dev: false /detect-indent@6.1.0: resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} engines: {node: '>=8'} dev: true + /detect-libc@1.0.3: + resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} + engines: {node: '>=0.10'} + hasBin: true + dev: false + /detect-libc@2.0.2: resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} engines: {node: '>=8'} @@ -15586,13 +16362,6 @@ packages: resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} dev: false - /detect-package-manager@2.0.1: - resolution: {integrity: sha512-j/lJHyoLlWi6G1LDdLgvUtz60Zo5GEj+sVYtTVXnYLDPuzgC3llMxonXym9zIwhhUII8vjdw0LXxavpLqTbl1A==} - engines: {node: '>=12'} - dependencies: - execa: 5.1.1 - dev: true - /dexie-react-hooks@1.1.3(@types/react@18.2.38)(dexie@3.2.3)(react@18.2.0): resolution: {integrity: sha512-bXXE1gfYtfuVYTNiOlyam+YVaO8KaqacgRuxFuP37YtpS6o/jxT6KOl5h+hhqY36s0UavlHWbL+HWJFMcQumIg==} peerDependencies: @@ -15629,6 +16398,7 @@ packages: /dijkstrajs@1.0.3: resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} + dev: false /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} @@ -15722,6 +16492,11 @@ packages: engines: {node: '>=12'} dev: true + /dotenv@16.4.5: + resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} + engines: {node: '>=12'} + dev: true + /dset@3.1.2: resolution: {integrity: sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==} engines: {node: '>=4'} @@ -15739,6 +16514,7 @@ packages: inherits: 2.0.4 readable-stream: 3.6.2 stream-shift: 1.0.1 + dev: false /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -15751,6 +16527,14 @@ packages: safer-buffer: 2.1.2 dev: false + /eciesjs@0.3.18: + resolution: {integrity: sha512-RQhegEtLSyIiGJmFTZfvCTHER/fymipXFVx6OwSRYD6hOuy+6Kjpk0dGvIfP9kxn/smBpxQy71uxpGO406ITCw==} + dependencies: + '@types/secp256k1': 4.0.6 + futoin-hkdf: 1.5.3 + secp256k1: 5.0.0 + dev: false + /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -15818,6 +16602,7 @@ packages: /encode-utf8@1.0.3: resolution: {integrity: sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==} + dev: false /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} @@ -15843,6 +16628,7 @@ packages: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} dependencies: once: 1.4.0 + dev: false /engine.io-client@6.5.3: resolution: {integrity: sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==} @@ -16097,11 +16883,7 @@ packages: /es6-promise@4.2.8: resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==} - - /es6-promisify@5.0.0: - resolution: {integrity: sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==} - dependencies: - es6-promise: 4.2.8 + dev: false /es6-symbol@3.1.3: resolution: {integrity: sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==} @@ -16119,194 +16901,35 @@ packages: es6-symbol: 3.1.3 dev: false - /esbuild-android-64@0.15.13: - resolution: {integrity: sha512-yRorukXBlokwTip+Sy4MYskLhJsO0Kn0/Fj43s1krVblfwP+hMD37a4Wmg139GEsMLl+vh8WXp2mq/cTA9J97g==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-android-arm64@0.15.13: - resolution: {integrity: sha512-TKzyymLD6PiVeyYa4c5wdPw87BeAiTXNtK6amWUcXZxkV51gOk5u5qzmDaYSwiWeecSNHamFsaFjLoi32QR5/w==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - optional: true - - /esbuild-darwin-64@0.15.13: - resolution: {integrity: sha512-WAx7c2DaOS6CrRcoYCgXgkXDliLnFv3pQLV6GeW1YcGEZq2Gnl8s9Pg7ahValZkpOa0iE/ojRVQ87sbUhF1Cbg==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-darwin-arm64@0.15.13: - resolution: {integrity: sha512-U6jFsPfSSxC3V1CLiQqwvDuj3GGrtQNB3P3nNC3+q99EKf94UGpsG9l4CQ83zBs1NHrk1rtCSYT0+KfK5LsD8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - optional: true - - /esbuild-freebsd-64@0.15.13: - resolution: {integrity: sha512-whItJgDiOXaDG/idy75qqevIpZjnReZkMGCgQaBWZuKHoElDJC1rh7MpoUgupMcdfOd+PgdEwNQW9DAE6i8wyA==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-freebsd-arm64@0.15.13: - resolution: {integrity: sha512-6pCSWt8mLUbPtygv7cufV0sZLeylaMwS5Fznj6Rsx9G2AJJsAjQ9ifA+0rQEIg7DwJmi9it+WjzNTEAzzdoM3Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - optional: true - - /esbuild-linux-32@0.15.13: - resolution: {integrity: sha512-VbZdWOEdrJiYApm2kkxoTOgsoCO1krBZ3quHdYk3g3ivWaMwNIVPIfEE0f0XQQ0u5pJtBsnk2/7OPiCFIPOe/w==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-64@0.15.13: - resolution: {integrity: sha512-rXmnArVNio6yANSqDQlIO4WiP+Cv7+9EuAHNnag7rByAqFVuRusLbGi2697A5dFPNXoO//IiogVwi3AdcfPC6A==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm64@0.15.13: - resolution: {integrity: sha512-alEMGU4Z+d17U7KQQw2IV8tQycO6T+rOrgW8OS22Ua25x6kHxoG6Ngry6Aq6uranC+pNWNMB6aHFPh7aTQdORQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-arm@0.15.13: - resolution: {integrity: sha512-Ac6LpfmJO8WhCMQmO253xX2IU2B3wPDbl4IvR0hnqcPrdfCaUa2j/lLMGTjmQ4W5JsJIdHEdW12dG8lFS0MbxQ==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-mips64le@0.15.13: - resolution: {integrity: sha512-47PgmyYEu+yN5rD/MbwS6DxP2FSGPo4Uxg5LwIdxTiyGC2XKwHhHyW7YYEDlSuXLQXEdTO7mYe8zQ74czP7W8A==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-ppc64le@0.15.13: - resolution: {integrity: sha512-z6n28h2+PC1Ayle9DjKoBRcx/4cxHoOa2e689e2aDJSaKug3jXcQw7mM+GLg+9ydYoNzj8QxNL8ihOv/OnezhA==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-riscv64@0.15.13: - resolution: {integrity: sha512-+Lu4zuuXuQhgLUGyZloWCqTslcCAjMZH1k3Xc9MSEJEpEFdpsSU0sRDXAnk18FKOfEjhu4YMGaykx9xjtpA6ow==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-linux-s390x@0.15.13: - resolution: {integrity: sha512-BMeXRljruf7J0TMxD5CIXS65y7puiZkAh+s4XFV9qy16SxOuMhxhVIXYLnbdfLrsYGFzx7U9mcdpFWkkvy/Uag==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - optional: true - - /esbuild-netbsd-64@0.15.13: - resolution: {integrity: sha512-EHj9QZOTel581JPj7UO3xYbltFTYnHy+SIqJVq6yd3KkCrsHRbapiPb0Lx3EOOtybBEE9EyqbmfW1NlSDsSzvQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - optional: true - - /esbuild-openbsd-64@0.15.13: - resolution: {integrity: sha512-nkuDlIjF/sfUhfx8SKq0+U+Fgx5K9JcPq1mUodnxI0x4kBdCv46rOGWbuJ6eof2n3wdoCLccOoJAbg9ba/bT2w==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - optional: true - - /esbuild-sunos-64@0.15.13: - resolution: {integrity: sha512-jVeu2GfxZQ++6lRdY43CS0Tm/r4WuQQ0Pdsrxbw+aOrHQPHV0+LNOLnvbN28M7BSUGnJnHkHm2HozGgNGyeIRw==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - optional: true - - /esbuild-windows-32@0.15.13: - resolution: {integrity: sha512-XoF2iBf0wnqo16SDq+aDGi/+QbaLFpkiRarPVssMh9KYbFNCqPLlGAWwDvxEVz+ywX6Si37J2AKm+AXq1kC0JA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-64@0.15.13: - resolution: {integrity: sha512-Et6htEfGycjDrtqb2ng6nT+baesZPYQIW+HUEHK4D1ncggNrDNk3yoboYQ5KtiVrw/JaDMNttz8rrPubV/fvPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild-windows-arm64@0.15.13: - resolution: {integrity: sha512-3bv7tqntThQC9SWLRouMDmZnlOukBhOCTlkzNqzGCmrkCJI7io5LLjwJBOVY6kOUlIvdxbooNZwjtBvj+7uuVg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - optional: true - - /esbuild@0.15.13: - resolution: {integrity: sha512-Cu3SC84oyzzhrK/YyN4iEVy2jZu5t2fz66HEOShHURcjSkOSAVL8C/gfUT+lDJxkVHpg8GZ10DD0rMHRPqMFaQ==} + /esbuild@0.19.12: + resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.15.13 - '@esbuild/linux-loong64': 0.15.13 - esbuild-android-64: 0.15.13 - esbuild-android-arm64: 0.15.13 - esbuild-darwin-64: 0.15.13 - esbuild-darwin-arm64: 0.15.13 - esbuild-freebsd-64: 0.15.13 - esbuild-freebsd-arm64: 0.15.13 - esbuild-linux-32: 0.15.13 - esbuild-linux-64: 0.15.13 - esbuild-linux-arm: 0.15.13 - esbuild-linux-arm64: 0.15.13 - esbuild-linux-mips64le: 0.15.13 - esbuild-linux-ppc64le: 0.15.13 - esbuild-linux-riscv64: 0.15.13 - esbuild-linux-s390x: 0.15.13 - esbuild-netbsd-64: 0.15.13 - esbuild-openbsd-64: 0.15.13 - esbuild-sunos-64: 0.15.13 - esbuild-windows-32: 0.15.13 - esbuild-windows-64: 0.15.13 - esbuild-windows-arm64: 0.15.13 + '@esbuild/aix-ppc64': 0.19.12 + '@esbuild/android-arm': 0.19.12 + '@esbuild/android-arm64': 0.19.12 + '@esbuild/android-x64': 0.19.12 + '@esbuild/darwin-arm64': 0.19.12 + '@esbuild/darwin-x64': 0.19.12 + '@esbuild/freebsd-arm64': 0.19.12 + '@esbuild/freebsd-x64': 0.19.12 + '@esbuild/linux-arm': 0.19.12 + '@esbuild/linux-arm64': 0.19.12 + '@esbuild/linux-ia32': 0.19.12 + '@esbuild/linux-loong64': 0.19.12 + '@esbuild/linux-mips64el': 0.19.12 + '@esbuild/linux-ppc64': 0.19.12 + '@esbuild/linux-riscv64': 0.19.12 + '@esbuild/linux-s390x': 0.19.12 + '@esbuild/linux-x64': 0.19.12 + '@esbuild/netbsd-x64': 0.19.12 + '@esbuild/openbsd-x64': 0.19.12 + '@esbuild/sunos-x64': 0.19.12 + '@esbuild/win32-arm64': 0.19.12 + '@esbuild/win32-ia32': 0.19.12 + '@esbuild/win32-x64': 0.19.12 /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -16818,16 +17441,18 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} - /eth-block-tracker@6.1.0: - resolution: {integrity: sha512-K9SY8+/xMBi4M5HHTDdxnpEqEEGjbNpzHFqvxyjMZej8InV/B+CkFRKM6W+uvrFJ7m8Zd1E0qUkseU3vdIDFYQ==} + /eth-block-tracker@7.1.0: + resolution: {integrity: sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==} engines: {node: '>=14.0.0'} dependencies: - '@metamask/safe-event-emitter': 2.0.0 - '@metamask/utils': 3.6.0 + '@metamask/eth-json-rpc-provider': 1.0.1 + '@metamask/safe-event-emitter': 3.1.1 + '@metamask/utils': 5.0.2 json-rpc-random-id: 1.0.1 pify: 3.0.0 transitivePeerDependencies: - supports-color + dev: false /eth-ens-namehash@2.0.8: resolution: {integrity: sha512-VWEI1+KJfz4Km//dadyvBBoBeSQ0MHTXPvr8UIXiLW6IanxvAV+DmlZAijZwAyggqGUfwQBeHf7tc9wzc1piSw==} @@ -16836,15 +17461,16 @@ packages: js-sha3: 0.5.7 dev: false - /eth-json-rpc-filters@5.1.0: - resolution: {integrity: sha512-fos+9xmoa1A2Ytsc9eYof17r81BjdJOUcGcgZn4K/tKdCCTb+a8ytEtwlu1op5qsXFDlgGmstTELFrDEc89qEQ==} + /eth-json-rpc-filters@6.0.1: + resolution: {integrity: sha512-ITJTvqoCw6OVMLs7pI8f4gG92n/St6x80ACtHodeS+IXmO0w+t1T5OOzfSt7KLSMLRkVUoexV7tztLgDxg+iig==} engines: {node: '>=14.0.0'} dependencies: - '@metamask/safe-event-emitter': 2.0.0 + '@metamask/safe-event-emitter': 3.1.1 async-mutex: 0.2.6 eth-query: 2.1.2 json-rpc-engine: 6.1.0 pify: 5.0.0 + dev: false /eth-lib@0.1.29: resolution: {integrity: sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ==} @@ -16874,11 +17500,19 @@ packages: dependencies: json-rpc-random-id: 1.0.1 xtend: 4.0.2 + dev: false /eth-rpc-errors@4.0.2: resolution: {integrity: sha512-n+Re6Gu8XGyfFy1it0AwbD1x0MUzspQs0D5UiPs1fFPCr6WAwZM+vbIhXheBFrpgosqN9bs5PqlB4Q61U/QytQ==} dependencies: fast-safe-stringify: 2.1.1 + dev: false + + /eth-rpc-errors@4.0.3: + resolution: {integrity: sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==} + dependencies: + fast-safe-stringify: 2.1.1 + dev: false /ethereum-bloom-filters@1.0.10: resolution: {integrity: sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA==} @@ -17019,16 +17653,26 @@ packages: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} + /eventemitter2@6.4.9: + resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==} + dev: false + /eventemitter3@4.0.4: resolution: {integrity: sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==} dev: false /eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} + dev: false + + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: false /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} + dev: false /eventsource-parser@1.0.0: resolution: {integrity: sha512-9jgfSCa3dmEme2ES3mPByGXfgZ87VbP97tng1G2nWwWx6bV2nYxm2AWCrbQjXToSe+yYlqaZNtxffR9IeQr95g==} @@ -17064,13 +17708,13 @@ packages: signal-exit: 3.0.7 strip-final-newline: 2.0.0 - /execa@6.1.0: - resolution: {integrity: sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + /execa@7.1.0: + resolution: {integrity: sha512-T6nIJO3LHxUZ6ahVRaxXz9WLEruXLqdcluA+UuTptXmLM7nDAn9lx9IfkxPyzEL21583qSt4RmL44pO71EHaJQ==} + engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} dependencies: cross-spawn: 7.0.3 get-stream: 6.0.1 - human-signals: 3.0.1 + human-signals: 4.3.0 is-stream: 3.0.0 merge-stream: 2.0.0 npm-run-path: 5.1.0 @@ -17079,20 +17723,19 @@ packages: strip-final-newline: 3.0.0 dev: true - /execa@7.1.0: - resolution: {integrity: sha512-T6nIJO3LHxUZ6ahVRaxXz9WLEruXLqdcluA+UuTptXmLM7nDAn9lx9IfkxPyzEL21583qSt4RmL44pO71EHaJQ==} - engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} + /execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} dependencies: cross-spawn: 7.0.3 - get-stream: 6.0.1 - human-signals: 4.3.0 + get-stream: 8.0.1 + human-signals: 5.0.0 is-stream: 3.0.0 merge-stream: 2.0.0 npm-run-path: 5.1.0 onetime: 6.0.0 - signal-exit: 3.0.7 + signal-exit: 4.1.0 strip-final-newline: 3.0.0 - dev: true /expand-template@2.0.3: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} @@ -17148,6 +17791,14 @@ packages: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} dev: false + /extension-port-stream@3.0.0: + resolution: {integrity: sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==} + engines: {node: '>=12.0.0'} + dependencies: + readable-stream: 4.4.2 + webextension-polyfill: 0.10.0 + dev: false + /external-editor@3.1.0: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} @@ -17167,10 +17818,6 @@ packages: engines: {'0': node >=0.6.0} dev: false - /eyes@0.1.8: - resolution: {integrity: sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==} - engines: {node: '> 0.1.90'} - /fast-decode-uri-component@1.0.1: resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} dev: true @@ -17222,12 +17869,11 @@ packages: /fast-redact@3.1.2: resolution: {integrity: sha512-+0em+Iya9fKGfEQGcd62Yv6onjBmmhV1uh86XVfOU8VwAe6kaFdQCWI9s0/Nnugx5Vd9tdbZ7e6gE2tR9dzXdw==} engines: {node: '>=6'} + dev: false /fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - - /fast-stable-stringify@1.0.0: - resolution: {integrity: sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==} + dev: false /fast-url-parser@1.1.3: resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==} @@ -17264,19 +17910,11 @@ packages: object-assign: 4.1.1 promise: 7.3.1 setimmediate: 1.0.5 - ua-parser-js: 1.0.35 + ua-parser-js: 1.0.37 transitivePeerDependencies: - encoding dev: true - /fetch-blob@3.2.0: - resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} - engines: {node: ^12.20 || >= 14.13} - dependencies: - node-domexception: 1.0.0 - web-streams-polyfill: 3.2.1 - dev: true - /fets@0.1.5: resolution: {integrity: sha512-mL/ya591WOgCP1yBBPbp8E37nynj8QQF6iQCUVl0aHDL80BZ9SOL4BcKBy0dnKdC+clnnAkMm05KB9hsj4m4jQ==} dependencies: @@ -17289,9 +17927,9 @@ packages: hotscript: 1.0.13 json-schema-to-ts: 2.9.2 openapi-types: 12.1.3 - tslib: 2.5.0 - zod: 3.21.4 - zod-to-json-schema: 3.21.4(zod@3.21.4) + tslib: 2.6.2 + zod: 3.23.5 + zod-to-json-schema: 3.21.4(zod@3.23.5) dev: true /figures@3.2.0: @@ -17312,12 +17950,9 @@ packages: resolution: {integrity: sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==} engines: {node: '>= 12'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false - /file-uri-to-path@1.0.0: - resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} - /filelist@1.0.4: resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} dependencies: @@ -17333,6 +17968,7 @@ packages: /filter-obj@1.1.0: resolution: {integrity: sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==} engines: {node: '>=0.10.0'} + dev: false /finalhandler@1.1.2: resolution: {integrity: sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==} @@ -17494,13 +18130,6 @@ packages: mime-types: 2.1.35 dev: false - /formdata-polyfill@4.0.10: - resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} - engines: {node: '>=12.20.0'} - dependencies: - fetch-blob: 3.2.0 - dev: true - /forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -17547,17 +18176,17 @@ packages: rimraf: 2.7.1 dev: false - /fs-extra@10.1.0: - resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} - engines: {node: '>=12'} + /fs-extra@11.1.0: + resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==} + engines: {node: '>=14.14'} dependencies: graceful-fs: 4.2.11 jsonfile: 6.1.0 universalify: 2.0.0 dev: true - /fs-extra@11.1.0: - resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==} + /fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} engines: {node: '>=14.14'} dependencies: graceful-fs: 4.2.11 @@ -17618,6 +18247,7 @@ packages: /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true /function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -17648,6 +18278,11 @@ packages: /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + /futoin-hkdf@1.5.3: + resolution: {integrity: sha512-SewY5KdMpaoCeh7jachEWFsh1nNlaDjNHZXWqL5IGwtpEYHTgkr2+AMCgNwKWkcc0wpSYrZfR7he4WdmHFtDxQ==} + engines: {node: '>=8'} + dev: false + /gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -17670,6 +18305,7 @@ packages: function-bind: 1.1.2 has: 1.0.3 has-symbols: 1.0.3 + dev: true /get-intrinsic@1.2.2: resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} @@ -17692,6 +18328,10 @@ packages: resolution: {integrity: sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==} dev: false + /get-port-please@3.1.2: + resolution: {integrity: sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==} + dev: false + /get-stream@5.2.0: resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} engines: {node: '>=8'} @@ -17703,6 +18343,10 @@ packages: resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} engines: {node: '>=10'} + /get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + /get-symbol-description@1.0.0: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} @@ -17850,8 +18494,8 @@ packages: merge2: 1.4.1 slash: 3.0.0 - /globby@13.1.4: - resolution: {integrity: sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==} + /globby@13.2.2: + resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: dir-glob: 3.0.1 @@ -17975,7 +18619,7 @@ packages: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: graphql: 16.8.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /graphql-tag@2.12.6(graphql@16.8.1): @@ -17985,7 +18629,7 @@ packages: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /graphql-ws@5.12.1(graphql@16.8.1): @@ -18023,7 +18667,7 @@ packages: dset: 3.1.2 graphql: 16.8.1 lru-cache: 7.18.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /graphql@16.8.0: @@ -18035,6 +18679,23 @@ packages: resolution: {integrity: sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + /h3@1.11.1: + resolution: {integrity: sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==} + dependencies: + cookie-es: 1.1.0 + crossws: 0.2.4 + defu: 6.1.4 + destr: 2.0.3 + iron-webcrypto: 1.1.1 + ohash: 1.1.3 + radix3: 1.1.2 + ufo: 1.5.3 + uncrypto: 0.1.3 + unenv: 1.9.0 + transitivePeerDependencies: + - uWebSockets.js + dev: false + /hamt-sharding@3.0.2: resolution: {integrity: sha512-f0DzBD2tSmLFdFsLAvOflIBqFPjerbA7BfmwO8mVho/5hXwgyyYhv+ijIzidQf/DpDX3bRjAQvhGoBFj+DBvPw==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} @@ -18096,7 +18757,7 @@ packages: aggregate-error: 3.1.0 ansi-escapes: 4.3.2 chalk: 2.4.2 - chokidar: 3.5.3 + chokidar: 3.6.0 ci-info: 2.0.0 debug: 4.3.4(supports-color@5.5.0) enquirer: 2.3.6 @@ -18167,6 +18828,7 @@ packages: engines: {node: '>= 0.4.0'} dependencies: function-bind: 1.1.1 + dev: true /hash-base@3.1.0: resolution: {integrity: sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==} @@ -18186,6 +18848,7 @@ packages: dependencies: inherits: 2.0.4 minimalistic-assert: 1.0.1 + dev: false /hasown@2.0.0: resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} @@ -18225,6 +18888,7 @@ packages: /hey-listen@1.0.8: resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==} + dev: false /hls.js@1.4.10: resolution: {integrity: sha512-wAVSj4Fm2MqOHy5+BlYnlKxXvJlv5IuZHjlzHu18QmjRzSDFQiUDWdHs5+NsFMQrgKEBwuWDcyvaMC9dUzJ5Uw==} @@ -18266,6 +18930,12 @@ packages: htmlparser2: 7.2.0 dev: false + /html-parse-stringify@3.0.1: + resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==} + dependencies: + void-elements: 3.1.0 + dev: false + /html-react-parser@1.4.14(react@18.2.0): resolution: {integrity: sha512-pxhNWGie8Y+DGDpSh8cTa0k3g8PsDcwlfolA+XxYo1AGDeB6e2rdlyv4ptU9bOTiZ2i3fID+6kyqs86MN0FYZQ==} peerDependencies: @@ -18315,6 +18985,11 @@ packages: - supports-color dev: true + /http-shutdown@1.2.2: + resolution: {integrity: sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw==} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + dev: false + /http-signature@1.2.0: resolution: {integrity: sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==} engines: {node: '>=0.8', npm: '>=1.3.7'} @@ -18364,20 +19039,14 @@ packages: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} - /human-signals@3.0.1: - resolution: {integrity: sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==} - engines: {node: '>=12.20.0'} - dev: true - /human-signals@4.3.0: resolution: {integrity: sha512-zyzVyMjpGBX2+6cDVZeFPCdtOtdsxOeseRhB9tkQ6xXmGUNrcnBzdEKPy3VPNYz+4gy1oukVOXcrJCunSyc6QQ==} engines: {node: '>=14.18.0'} dev: true - /humanize-ms@1.2.1: - resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} - dependencies: - ms: 2.1.3 + /human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} /husky@8.0.3: resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} @@ -18392,6 +19061,24 @@ packages: uuid-parse: 1.1.0 dev: false + /i18next-browser-languagedetector@7.1.0: + resolution: {integrity: sha512-cr2k7u1XJJ4HTOjM9GyOMtbOA47RtUoWRAtt52z43r3AoMs2StYKyjS3URPhzHaf+mn10hY9dZWamga5WPQjhA==} + dependencies: + '@babel/runtime': 7.23.4 + dev: false + + /i18next@22.5.1: + resolution: {integrity: sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==} + dependencies: + '@babel/runtime': 7.23.4 + dev: false + + /i18next@23.11.3: + resolution: {integrity: sha512-Pq/aSKowir7JM0rj+Wa23Kb6KKDUGno/HjG+wRQu0PxoTbpQ4N89MAT0rFGvXmLkRLNMb1BbBOKGozl01dabzg==} + dependencies: + '@babel/runtime': 7.23.4 + dev: false + /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -18405,6 +19092,10 @@ packages: safer-buffer: 2.1.2 dev: false + /idb-keyval@6.2.1: + resolution: {integrity: sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==} + dev: false + /idb@7.1.1: resolution: {integrity: sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==} dev: false @@ -18754,6 +19445,10 @@ packages: buffer: 6.0.3 dev: false + /iron-webcrypto@1.1.1: + resolution: {integrity: sha512-5xGwQUWHQSy039rFr+5q/zOmj7GP0Ypzvo34Ep+61bPIhaLduEDp/PvLGlU3awD2mzWUR0weN2vJ1mILydFPEg==} + dev: false + /is-absolute@1.0.0: resolution: {integrity: sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==} engines: {node: '>=0.10.0'} @@ -18848,7 +19543,12 @@ packages: resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} engines: {node: '>=8'} hasBin: true - dev: true + + /is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + dev: false /is-electron@2.2.2: resolution: {integrity: sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==} @@ -18898,6 +19598,14 @@ packages: engines: {node: '>=6.5.0', npm: '>=3'} dev: false + /is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + dependencies: + is-docker: 3.0.0 + dev: false + /is-interactive@1.0.0: resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} engines: {node: '>=8'} @@ -18917,7 +19625,7 @@ packages: /is-lower-case@2.0.2: resolution: {integrity: sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /is-map@2.0.2: @@ -19036,7 +19744,6 @@ packages: /is-stream@3.0.0: resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: true /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} @@ -19066,6 +19773,7 @@ packages: for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 + dev: true /is-typed-array@1.1.12: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} @@ -19075,6 +19783,7 @@ packages: /is-typedarray@1.0.0: resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} + dev: false /is-unc-path@1.0.0: resolution: {integrity: sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==} @@ -19095,7 +19804,7 @@ packages: /is-upper-case@2.0.2: resolution: {integrity: sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /is-weakmap@2.0.1: @@ -19128,7 +19837,20 @@ packages: engines: {node: '>=8'} dependencies: is-docker: 2.2.1 - dev: true + + /is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + dependencies: + is-inside-container: 1.0.0 + dev: false + + /is64bit@2.0.0: + resolution: {integrity: sha512-jv+8jaWCl0g2lSBkNSVXdzfBA0npK1HGC2KtWM9FumFRoGS94g3NbCCLVnCYHLjp4GrW2KZeeSTMo5ddtznmGw==} + engines: {node: '>=18'} + dependencies: + system-architecture: 0.1.0 + dev: false /isarray@0.0.1: resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} @@ -19161,27 +19883,37 @@ packages: - encoding dev: false + /isomorphic-unfetch@3.1.0: + resolution: {integrity: sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==} + dependencies: + node-fetch: 2.7.0 + unfetch: 4.2.0 + transitivePeerDependencies: + - encoding + dev: false + /isomorphic-ws@4.0.1(ws@7.5.9): resolution: {integrity: sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==} peerDependencies: ws: '*' dependencies: ws: 7.5.9 + dev: false - /isomorphic-ws@5.0.0(ws@8.12.0): + /isomorphic-ws@5.0.0(ws@8.13.0): resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} peerDependencies: ws: '*' dependencies: - ws: 8.12.0 + ws: 8.13.0 + dev: true - /isomorphic-ws@5.0.0(ws@8.13.0): - resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} + /isows@1.0.3(ws@8.13.0): + resolution: {integrity: sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==} peerDependencies: ws: '*' dependencies: - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - dev: true + ws: 8.13.0 /isstream@0.1.2: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} @@ -19292,28 +20024,6 @@ packages: minimatch: 3.1.2 dev: false - /jayson@3.7.0: - resolution: {integrity: sha512-tfy39KJMrrXJ+mFcMpxwBvFDetS8LAID93+rycFglIQM4kl3uNR3W4lBLE/FFhsoUCEox5Dt2adVpDm/XtebbQ==} - engines: {node: '>=8'} - hasBin: true - dependencies: - '@types/connect': 3.4.35 - '@types/node': 12.20.55 - '@types/ws': 7.4.7 - JSONStream: 1.3.5 - commander: 2.20.3 - delay: 5.0.0 - es6-promisify: 5.0.0 - eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.9) - json-stringify-safe: 5.0.1 - lodash: 4.17.21 - uuid: 8.3.2 - ws: 7.5.9 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - /jest-environment-node@29.7.0: resolution: {integrity: sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -19409,6 +20119,11 @@ packages: resolution: {integrity: sha512-5eEbBDQT/jF1xg6l36P+mWGGoH9Spuy0PCdSr2dtWRDGC6ph/w9ZCL4lmESW8f8F7MwT3XKescfP0wnZWAKL9w==} hasBin: true + /jiti@1.21.0: + resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} + hasBin: true + dev: false + /joi@17.11.0: resolution: {integrity: sha512-NgB+lZLNoqISVy1rZocE9PZI36bL/77ie924Ri43yEvi9GUUMPeyVIr8KdFTMUlby1p0PBYMk9spIxEUQYqrJQ==} dependencies: @@ -19576,15 +20291,17 @@ packages: dependencies: '@metamask/safe-event-emitter': 2.0.0 eth-rpc-errors: 4.0.2 + dev: false /json-rpc-random-id@1.0.1: resolution: {integrity: sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==} + dev: false /json-schema-to-ts@2.9.2: resolution: {integrity: sha512-h9WqLkTVpBbiaPb5OmeUpz/FBLS/kvIJw4oRCPiEisIu2WjMh+aai0QIY2LoOhRFx5r92taGLcerIrzxKBAP6g==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@types/json-schema': 7.0.11 ts-algebra: 1.2.0 dev: true @@ -19611,6 +20328,7 @@ packages: /json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} + dev: false /json-to-pretty-yaml@1.2.2: resolution: {integrity: sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A==} @@ -19661,6 +20379,7 @@ packages: /jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} engines: {'0': node >= 0.2.0} + dev: true /jsonpointer@5.0.1: resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==} @@ -19720,6 +20439,7 @@ packages: node-addon-api: 2.0.2 node-gyp-build: 4.6.0 readable-stream: 3.6.2 + dev: false /keyv@4.5.2: resolution: {integrity: sha512-5MHbFaKn8cNSmVW7BYnijeAVlE4cYA/SVkifVgrh7yotnfhKmjuXpDKjrABLnT0SfHWV21P8ow07OGfRrNDg8g==} @@ -19729,6 +20449,7 @@ packages: /keyvaluestorage-interface@1.0.0: resolution: {integrity: sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==} + dev: false /kind-of@6.0.3: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} @@ -19915,6 +20636,32 @@ packages: - supports-color dev: true + /listhen@1.7.2: + resolution: {integrity: sha512-7/HamOm5YD9Wb7CFgAZkKgVPA96WwhcTQoqtm2VTZGVbVVn3IWKRBTgrU7cchA3Q8k9iCsG8Osoi9GX4JsGM9g==} + hasBin: true + dependencies: + '@parcel/watcher': 2.4.1 + '@parcel/watcher-wasm': 2.4.1 + citty: 0.1.6 + clipboardy: 4.0.0 + consola: 3.2.3 + crossws: 0.2.4 + defu: 6.1.4 + get-port-please: 3.1.2 + h3: 1.11.1 + http-shutdown: 1.2.2 + jiti: 1.21.0 + mlly: 1.6.1 + node-forge: 1.3.1 + pathe: 1.1.2 + std-env: 3.7.0 + ufo: 1.5.3 + untun: 0.1.3 + uqr: 0.1.2 + transitivePeerDependencies: + - uWebSockets.js + dev: false + /listr2@4.0.5: resolution: {integrity: sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA==} engines: {node: '>=12'} @@ -19964,12 +20711,14 @@ packages: dependencies: '@lit-labs/ssr-dom-shim': 1.1.1 '@lit/reactive-element': 1.6.1 - lit-html: 2.7.3 + lit-html: 2.8.0 + dev: false - /lit-html@2.7.3: - resolution: {integrity: sha512-9DyLzcn/kbRGowz2vFmSANFbRZTxYUgYYFqzie89w6GLpPUiBCDHfcdeRUV/k3Q2ueYxNjfv46yPCtKAEAPOVw==} + /lit-html@2.8.0: + resolution: {integrity: sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==} dependencies: '@types/trusted-types': 2.0.3 + dev: false /lit-siwe@1.1.8(@ethersproject/contracts@5.7.0)(@ethersproject/hash@5.7.0)(@ethersproject/providers@5.7.2)(@ethersproject/wallet@5.7.0): resolution: {integrity: sha512-gXI8GG0GAClw6G7T9p4p6Kn9ywDo8j2d90ShaYArJdsqqO9gwXfzxF84SMeY+bpsNqqQ3FahrhEwTCHd6w7wNw==} @@ -19993,7 +20742,7 @@ packages: dependencies: '@lit/reactive-element': 1.6.1 lit-element: 3.3.2 - lit-html: 2.7.3 + lit-html: 2.8.0 dev: false /lit@2.7.3: @@ -20001,17 +20750,18 @@ packages: dependencies: '@lit/reactive-element': 1.6.1 lit-element: 3.3.2 - lit-html: 2.7.3 + lit-html: 2.8.0 dev: false - /lit@2.7.6: - resolution: {integrity: sha512-1amFHA7t4VaaDe+vdQejSVBklwtH9svGoG6/dZi9JhxtJBBlqY5D1RV7iLUYY0trCqQc4NfhYYZilZiVHt7Hxg==} + /lit@2.8.0: + resolution: {integrity: sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==} dependencies: '@lit/reactive-element': 1.6.1 lit-element: 3.3.2 - lit-html: 2.7.3 + lit-html: 2.8.0 + dev: false - /livepeer@2.6.0(react@18.2.0): + /livepeer@2.6.0(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-tURkBvJQi0nyS5WlFHhKyRGx0qKqGt/DbKSzhUwJ9fAzT3GAlipujgKVOc3wnNWIj76LQrCp7onUmsrrkFRGkQ==} peerDependencies: react: '>=17.0.0' @@ -20019,7 +20769,7 @@ packages: react: optional: true dependencies: - '@livepeer/core': 1.8.0(react@18.2.0) + '@livepeer/core': 1.8.0(@types/react@18.2.38)(react@18.2.0) '@stitches/core': 1.2.8 core-js: 3.31.1 cross-fetch: 3.1.5 @@ -20028,8 +20778,9 @@ packages: multiformats: 9.9.0 react: 18.2.0 tus-js-client: 3.1.0 - zustand: 4.3.8(react@18.2.0) + zustand: 4.4.1(@types/react@18.2.38)(react@18.2.0) transitivePeerDependencies: + - '@types/react' - encoding - immer dev: false @@ -20140,6 +20891,7 @@ packages: /lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: false /lodash.isfunction@3.0.9: resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} @@ -20253,13 +21005,13 @@ packages: /lower-case-first@2.0.2: resolution: {integrity: sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /lowercase-keys@2.0.0: @@ -20277,6 +21029,11 @@ packages: engines: {node: 14 || >=16.14} dev: true + /lru-cache@10.2.2: + resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==} + engines: {node: 14 || >=16.14} + dev: false + /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -20431,7 +21188,7 @@ packages: /media-query-parser@2.0.2: resolution: {integrity: sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 dev: false /media-typer@0.3.0: @@ -21115,6 +21872,12 @@ packages: engines: {node: '>=4.0.0'} hasBin: true + /mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} + hasBin: true + dev: false + /mimic-fn@2.1.0: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} @@ -21122,7 +21885,6 @@ packages: /mimic-fn@4.0.0: resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} engines: {node: '>=12'} - dev: true /mimic-response@1.0.1: resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==} @@ -21151,6 +21913,7 @@ packages: /minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + dev: false /minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} @@ -21226,6 +21989,22 @@ packages: minipass: 2.9.0 dev: false + /mipd@0.0.5(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-gbKA784D2WKb5H/GtqEv+Ofd1S9Zj+Z/PGDIl1u1QAbswkxD28BQ5bSXQxkeBzPBABg1iDSbiwGG1XqlOxRspA==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + typescript: 5.0.4 + viem: 1.21.4(typescript@5.0.4)(zod@3.21.4) + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + dev: false + /mkdirp-classic@0.5.3: resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} dev: false @@ -21249,6 +22028,15 @@ packages: engines: {node: '>=10'} hasBin: true + /mlly@1.6.1: + resolution: {integrity: sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==} + dependencies: + acorn: 8.11.3 + pathe: 1.1.2 + pkg-types: 1.1.0 + ufo: 1.5.3 + dev: false + /mnemonist@0.38.5: resolution: {integrity: sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg==} dependencies: @@ -21287,6 +22075,10 @@ packages: resolution: {integrity: sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw==} dev: false + /modern-ahocorasick@1.0.1: + resolution: {integrity: sha512-yoe+JbhTClckZ67b2itRtistFKf8yPYelHLc7e5xAwtNAXxM6wJTUx2C7QeVSJFDzKT7bCIFyBVybPMKvmB9AA==} + dev: false + /module-error@1.0.2: resolution: {integrity: sha512-0yuvsqSCv8LbaOKhnsQ/T5JhyFlCYLPXK3U2sgV10zoKQwzs/MyfuQUOZQ1V/6OCOJsK/TRgNVrPuPDqtdMFtA==} engines: {node: '>=10'} @@ -21320,11 +22112,11 @@ packages: resolution: {integrity: sha512-ejP6KioN4pigTGxL93APzOnvtLklParL59UQB2T3HWXQBxFcIp5/7YXFmkgiA6pNKKzjvnLhnonRBN5iSFMnNw==} dependencies: '@motionone/animation': 10.15.1 - '@motionone/dom': 10.15.5 - '@motionone/svelte': 10.15.5 + '@motionone/dom': 10.16.2 + '@motionone/svelte': 10.16.2 '@motionone/types': 10.15.1 '@motionone/utils': 10.15.1 - '@motionone/vue': 10.15.5 + '@motionone/vue': 10.16.2 dev: false /motion@10.16.2: @@ -21336,6 +22128,7 @@ packages: '@motionone/types': 10.15.1 '@motionone/utils': 10.15.1 '@motionone/vue': 10.16.2 + dev: false /mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} @@ -21419,6 +22212,7 @@ packages: /multiformats@9.9.0: resolution: {integrity: sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==} + dev: false /multihashes@0.4.21: resolution: {integrity: sha512-uVSvmeCWf36pU2nB4/1kzYZjsXD9vofZKpgudqkceYY5g2aZZXJ5r9lxuzoRLl1OAp28XljXsEJ/X/85ZsKmKw==} @@ -21479,6 +22273,10 @@ packages: resolution: {integrity: sha512-hmEVtAGYzVQpCKdbQea4skABsdXW4RUh5t5mJ2zzqowJS2OyXZTU1KhDVFhx+NlWZ4ap9mqR9TcDO3LTTttd+g==} dev: false + /napi-wasm@1.1.0: + resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==} + dev: false + /native-fetch@3.0.0(node-fetch@2.6.12): resolution: {integrity: sha512-G3Z7vx0IFb/FQ4JxvtqGABsOTIqRWvgQz6e+erkB+JJD6LrszQtMozEHI4EkmgZQvnGHrpLVzUWk7t4sJCIkVw==} peerDependencies: @@ -21510,7 +22308,7 @@ packages: /neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - /next-pwa@5.6.0(@babel/core@7.18.5)(esbuild@0.15.13)(next@14.0.3)(webpack@5.89.0): + /next-pwa@5.6.0(@babel/core@7.18.5)(esbuild@0.19.12)(next@14.0.3)(webpack@5.89.0): resolution: {integrity: sha512-XV8g8C6B7UmViXU8askMEYhWwQ4qc/XqJGnexbLV68hzKaGHZDMtHsm2TNxFcbR7+ypVuth/wwpiIlMwpRJJ5A==} peerDependencies: next: '>=9.0.0' @@ -21519,7 +22317,7 @@ packages: clean-webpack-plugin: 4.0.0(webpack@5.89.0) globby: 11.1.0 next: 14.0.3(@babel/core@7.18.5)(react-dom@18.2.0)(react@18.2.0) - terser-webpack-plugin: 5.3.9(esbuild@0.15.13)(webpack@5.89.0) + terser-webpack-plugin: 5.3.9(esbuild@0.19.12)(webpack@5.89.0) workbox-webpack-plugin: 6.6.0(webpack@5.89.0) workbox-window: 6.6.0 transitivePeerDependencies: @@ -21601,7 +22399,7 @@ packages: resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} dependencies: lower-case: 2.0.2 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /nocache@3.0.4: @@ -21620,21 +22418,30 @@ packages: /node-addon-api@2.0.2: resolution: {integrity: sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==} + dev: false + + /node-addon-api@5.1.0: + resolution: {integrity: sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==} + dev: false /node-addon-api@6.1.0: resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==} dev: false + /node-addon-api@7.1.0: + resolution: {integrity: sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==} + engines: {node: ^16 || ^18 || >= 20} + dev: false + /node-dir@0.1.17: resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==} engines: {node: '>= 0.10.5'} dependencies: minimatch: 3.1.2 - /node-domexception@1.0.0: - resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} - engines: {node: '>=10.5.0'} - dev: true + /node-fetch-native@1.6.4: + resolution: {integrity: sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==} + dev: false /node-fetch@2.6.12: resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} @@ -21681,18 +22488,15 @@ packages: dependencies: whatwg-url: 5.0.0 - /node-fetch@3.3.1: - resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - data-uri-to-buffer: 4.0.1 - fetch-blob: 3.2.0 - formdata-polyfill: 4.0.10 - dev: true + /node-forge@1.3.1: + resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} + engines: {node: '>= 6.13.0'} + dev: false /node-gyp-build@4.6.0: resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==} hasBin: true + dev: false /node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} @@ -21758,7 +22562,6 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: path-key: 4.0.0 - dev: true /nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} @@ -21785,6 +22588,14 @@ packages: resolution: {integrity: sha512-dlBkJJV5M/msj9KYA9upc+nUWVwuOFFTbu28X6kZeGwcuW+JxaHSBZ70SYQnk5M+j5JbNLR6yKHmgW4M5E7X5g==} engines: {node: '>=16'} + /obj-multiplex@1.0.0: + resolution: {integrity: sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==} + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + readable-stream: 2.3.8 + dev: false + /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -21912,8 +22723,21 @@ packages: http-https: 1.0.0 dev: false + /ofetch@1.3.4: + resolution: {integrity: sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==} + dependencies: + destr: 2.0.3 + node-fetch-native: 1.6.4 + ufo: 1.5.3 + dev: false + + /ohash@1.1.3: + resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==} + dev: false + /on-exit-leak-free@0.2.0: resolution: {integrity: sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==} + dev: false /on-exit-leak-free@2.1.0: resolution: {integrity: sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==} @@ -21951,7 +22775,6 @@ packages: engines: {node: '>=12'} dependencies: mimic-fn: 4.0.0 - dev: true /open@6.4.0: resolution: {integrity: sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==} @@ -21967,6 +22790,15 @@ packages: is-wsl: 2.2.0 dev: true + /open@8.4.2: + resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} + engines: {node: '>=12'} + dependencies: + define-lazy-prop: 2.0.0 + is-docker: 2.2.1 + is-wsl: 2.2.0 + dev: false + /openapi-types@12.1.3: resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==} dev: true @@ -21983,7 +22815,7 @@ packages: dependencies: '@wry/context': 0.7.3 '@wry/trie': 0.4.3 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /optionator@0.9.1: @@ -22013,18 +22845,18 @@ packages: strip-ansi: 6.0.1 wcwidth: 1.0.1 - /ora@6.1.2: - resolution: {integrity: sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==} + /ora@6.3.1: + resolution: {integrity: sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - bl: 5.1.0 chalk: 5.2.0 cli-cursor: 4.0.0 cli-spinners: 2.9.0 is-interactive: 2.0.0 is-unicode-supported: 1.3.0 log-symbols: 5.1.0 - strip-ansi: 7.0.1 + stdin-discarder: 0.1.0 + strip-ansi: 7.1.0 wcwidth: 1.0.1 dev: true @@ -22164,7 +22996,7 @@ packages: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} dependencies: dot-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /parent-module@1.0.1: @@ -22216,7 +23048,7 @@ packages: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /path-browserify@1.0.1: @@ -22258,7 +23090,6 @@ packages: /path-key@4.0.0: resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} engines: {node: '>=12'} - dev: true /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} @@ -22297,9 +23128,8 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} - /pathe@1.1.0: - resolution: {integrity: sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==} - dev: true + /pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} /pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} @@ -22340,6 +23170,7 @@ packages: /pify@3.0.0: resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} engines: {node: '>=4'} + dev: false /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} @@ -22348,6 +23179,7 @@ packages: /pify@5.0.0: resolution: {integrity: sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==} engines: {node: '>=10'} + dev: false /pinkie-promise@2.0.1: resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==} @@ -22366,6 +23198,7 @@ packages: dependencies: duplexify: 4.1.2 split2: 4.2.0 + dev: false /pino-abstract-transport@1.0.0: resolution: {integrity: sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==} @@ -22376,6 +23209,7 @@ packages: /pino-std-serializers@4.0.0: resolution: {integrity: sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==} + dev: false /pino-std-serializers@6.2.2: resolution: {integrity: sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==} @@ -22396,6 +23230,7 @@ packages: safe-stable-stringify: 2.4.3 sonic-boom: 2.8.0 thread-stream: 0.15.2 + dev: false /pino@8.10.0: resolution: {integrity: sha512-ODfIe+giJtQGsvNAEj5/sHHpL3TFBg161JBH4W62Hc0l0PJjsDFD1R7meLI4PZ2aoHDJznxFNShkJcaG/qJToQ==} @@ -22431,9 +23266,23 @@ packages: find-up: 4.1.0 dev: false + /pkg-types@1.1.0: + resolution: {integrity: sha512-/RpmvKdxKf8uILTtoOhAgf30wYbP2Qw+L9p3Rvshx1JZVX+XQNZQFjlbmGHEGIm4CkVPlSn+NXmIM8+9oWQaSA==} + dependencies: + confbox: 0.1.7 + mlly: 1.6.1 + pathe: 1.1.2 + dev: false + /pngjs@5.0.0: resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==} engines: {node: '>=10.13.0'} + dev: false + + /pony-cause@2.1.11: + resolution: {integrity: sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==} + engines: {node: '>=12.0.0'} + dev: false /postcss-import@15.1.0(postcss@8.4.29): resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} @@ -22517,8 +23366,9 @@ packages: source-map-js: 1.0.2 dev: false - /preact@10.13.2: - resolution: {integrity: sha512-q44QFLhOhty2Bd0Y46fnYW0gD/cbVM9dUVtNTDKPcdXSMA7jfY+Jpd6rk3GB0lcQss0z5s/6CmVP0Z/hV+g6pw==} + /preact@10.21.0: + resolution: {integrity: sha512-aQAIxtzWEwH8ou+OovWVSVNlFImL7xUCwJX3YMqA3U8iKCNC34999fFOnWjYNsylgfPgMexpbk7WYOLtKr/mxg==} + dev: false /prebuild-install@7.1.1: resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} @@ -22613,6 +23463,12 @@ packages: hasBin: true dev: true + /prettier@3.2.5: + resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-bytes@5.6.0: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} engines: {node: '>=6'} @@ -22648,6 +23504,7 @@ packages: /process-warning@1.0.0: resolution: {integrity: sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==} + dev: false /process-warning@2.2.0: resolution: {integrity: sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg==} @@ -22748,6 +23605,7 @@ packages: /proxy-compare@2.5.1: resolution: {integrity: sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==} + dev: false /proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} @@ -22784,7 +23642,7 @@ packages: /pvtsutils@1.3.2: resolution: {integrity: sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 /pvutils@1.1.3: resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==} @@ -22795,15 +23653,19 @@ packages: engines: {node: '>=0.6.0', teleport: '>=0.2.0'} dev: true - /qrcode@1.5.0: - resolution: {integrity: sha512-9MgRpgVc+/+47dFvQeD6U2s0Z92EsKzcHogtum4QB+UNd025WOJSHvn/hjk9xmzj7Stj95CyUAs31mrjxliEsQ==} - engines: {node: '>=10.13.0'} - hasBin: true + /qr-code-styling@1.6.0-rc.1: + resolution: {integrity: sha512-ModRIiW6oUnsP18QzrRYZSc/CFKFKIdj7pUs57AEVH20ajlglRpN3HukjHk0UbNMTlKGuaYl7Gt6/O5Gg2NU2Q==} dependencies: - dijkstrajs: 1.0.3 - encode-utf8: 1.0.3 - pngjs: 5.0.0 - yargs: 15.4.1 + qrcode-generator: 1.4.4 + dev: false + + /qrcode-generator@1.4.4: + resolution: {integrity: sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw==} + dev: false + + /qrcode-terminal-nooctal@0.12.1: + resolution: {integrity: sha512-jy/kkD0iIMDjTucB+5T6KBsnirlhegDH47vHgrj5MejchSQmi/EAMM0xMFeePgV9CJkkAapNakpVUWYgHvtdKg==} + hasBin: true dev: false /qrcode@1.5.1: @@ -22826,6 +23688,7 @@ packages: encode-utf8: 1.0.3 pngjs: 5.0.0 yargs: 15.4.1 + dev: false /qs@6.11.0: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} @@ -22834,12 +23697,6 @@ packages: side-channel: 1.0.4 dev: false - /qs@6.11.1: - resolution: {integrity: sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==} - engines: {node: '>=0.6'} - dependencies: - side-channel: 1.0.4 - /qs@6.5.3: resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==} engines: {node: '>=0.6'} @@ -22854,14 +23711,6 @@ packages: strict-uri-encode: 1.1.0 dev: false - /query-string@6.13.5: - resolution: {integrity: sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==} - engines: {node: '>=6'} - dependencies: - decode-uri-component: 0.2.2 - split-on-first: 1.1.0 - strict-uri-encode: 2.0.0 - /query-string@7.1.1: resolution: {integrity: sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w==} engines: {node: '>=6'} @@ -22880,6 +23729,7 @@ packages: filter-obj: 1.1.0 split-on-first: 1.1.0 strict-uri-encode: 2.0.0 + dev: false /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} @@ -22899,6 +23749,7 @@ packages: /quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + dev: false /quick-lru@4.0.1: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} @@ -22925,10 +23776,15 @@ packages: - supports-color dev: false + /radix3@1.1.2: + resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==} + dev: false + /randombytes@2.1.0: resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} dependencies: safe-buffer: 5.2.1 + dev: false /range-parser@1.2.1: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} @@ -22991,6 +23847,7 @@ packages: loose-envify: 1.4.0 react: 18.2.0 scheduler: 0.23.0 + dev: false /react-dropzone@14.2.3(react@18.2.0): resolution: {integrity: sha512-O3om8I+PkFKbxCukfIR3QAGftYXDZfOE2N1mr/7qebQJHs7U+/RSL/9xomJNpRg9kM5h9soQSdf0Gc7OHF5Fug==} @@ -23013,6 +23870,27 @@ packages: react: 18.2.0 dev: false + /react-i18next@13.5.0(i18next@23.11.3)(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0): + resolution: {integrity: sha512-CFJ5NDGJ2MUyBohEHxljOq/39NQ972rh1ajnadG9BjTk+UXbHLq4z5DKEbEQBDoIhUmmbuS/fIMJKo6VOax1HA==} + peerDependencies: + i18next: '>= 23.2.3' + react: '>= 16.8.0' + react-dom: '*' + react-native: '*' + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + dependencies: + '@babel/runtime': 7.23.4 + html-parse-stringify: 3.0.1 + i18next: 23.11.3 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) + dev: false + /react-icons@4.9.0(react@18.2.0): resolution: {integrity: sha512-ijUnFr//ycebOqujtqtV9PFS7JjhWg0QU6ykURVHuL4cbofvRCf3f6GMn9+fBktEFQOIVZnuAYLZdiyadRQRFg==} peerDependencies: @@ -23081,6 +23959,18 @@ packages: resolution: {integrity: sha512-WJr256xBquk7X2O83QYWKqgLg43Zg3SrgjPc/kr0gCD2LoXA+2L72BW4cmstH12GbGeutqs/eXk3jgDQ2iCSvQ==} dev: true + /react-native-webview@11.26.1(react-native@0.72.7)(react@18.2.0): + resolution: {integrity: sha512-hC7BkxOpf+z0UKhxFSFTPAM4shQzYmZHoELa6/8a/MspcjEP7ukYKpuSUTLDywQditT8yI9idfcKvfZDKQExGw==} + peerDependencies: + react: '*' + react-native: '*' + dependencies: + escape-string-regexp: 2.0.0 + invariant: 2.2.4 + react: 18.2.0 + react-native: 0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0) + dev: false + /react-native@0.72.7(@babel/core@7.18.5)(@babel/preset-env@7.23.3)(react@18.2.0): resolution: {integrity: sha512-dqVFojOO9rOvyFbbM3/v9/GJR355OSuBhEY4NQlMIRc2w0Xch5MT/2uPoq3+OvJ+5h7a8LFAco3fucSffG0FbA==} engines: {node: '>=16'} @@ -23154,11 +24044,11 @@ packages: '@types/react': 18.2.38 react: 18.2.0 react-style-singleton: 2.2.1(@types/react@18.2.38)(react@18.2.0) - tslib: 2.5.0 + tslib: 2.6.2 dev: false - /react-remove-scroll@2.5.4(@types/react@18.2.38)(react@18.2.0): - resolution: {integrity: sha512-xGVKJJr0SJGQVirVFAUZ2k1QLyO6m+2fy0l8Qawbp5Jgrv3DeLalrfMNBFSlmz5kriGGzsVBtGVnf4pTKIhhWA==} + /react-remove-scroll@2.5.5(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==} engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -23171,13 +24061,13 @@ packages: react: 18.2.0 react-remove-scroll-bar: 2.3.4(@types/react@18.2.38)(react@18.2.0) react-style-singleton: 2.2.1(@types/react@18.2.38)(react@18.2.0) - tslib: 2.5.0 + tslib: 2.6.2 use-callback-ref: 1.3.0(@types/react@18.2.38)(react@18.2.0) use-sidecar: 1.1.2(@types/react@18.2.38)(react@18.2.0) dev: false - /react-remove-scroll@2.5.5(@types/react@18.2.38)(react@18.2.0): - resolution: {integrity: sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==} + /react-remove-scroll@2.5.7(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==} engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -23190,7 +24080,7 @@ packages: react: 18.2.0 react-remove-scroll-bar: 2.3.4(@types/react@18.2.38)(react@18.2.0) react-style-singleton: 2.2.1(@types/react@18.2.38)(react@18.2.0) - tslib: 2.5.0 + tslib: 2.6.2 use-callback-ref: 1.3.0(@types/react@18.2.38)(react@18.2.0) use-sidecar: 1.1.2(@types/react@18.2.38)(react@18.2.0) dev: false @@ -23218,7 +24108,7 @@ packages: get-nonce: 1.0.1 invariant: 2.2.4 react: 18.2.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /react-table@7.8.0(react@18.2.0): @@ -23313,6 +24203,7 @@ packages: /real-require@0.1.0: resolution: {integrity: sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==} engines: {node: '>= 12.13.0'} + dev: false /real-require@0.2.0: resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} @@ -23389,7 +24280,7 @@ packages: /regenerator-transform@0.15.1: resolution: {integrity: sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 /regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} @@ -23438,7 +24329,7 @@ packages: /relay-runtime@12.0.0: resolution: {integrity: sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==} dependencies: - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 fbjs: 3.0.5 invariant: 2.2.4 transitivePeerDependencies: @@ -23693,6 +24584,23 @@ packages: terser: 5.19.2 dev: false + /rollup-plugin-visualizer@5.12.0(rollup@2.79.1): + resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} + engines: {node: '>=14'} + hasBin: true + peerDependencies: + rollup: 2.x || 3.x || 4.x + peerDependenciesMeta: + rollup: + optional: true + dependencies: + open: 8.4.2 + picomatch: 2.3.1 + rollup: 2.79.1 + source-map: 0.7.4 + yargs: 17.7.2 + dev: false + /rollup@2.79.1: resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} engines: {node: '>=10.0.0'} @@ -23701,17 +24609,6 @@ packages: fsevents: 2.3.3 dev: false - /rpc-websockets@7.5.1: - resolution: {integrity: sha512-kGFkeTsmd37pHPMaHIgN1LVKXMi0JD782v4Ds9ZKtLlwdTKjn+CxM9A9/gLT2LaOuEcEFGL98h1QWQtlOIdW0w==} - dependencies: - '@babel/runtime': 7.21.5 - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - /run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -23738,16 +24635,10 @@ packages: resolution: {integrity: sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==} dev: false - /rxjs@6.6.7: - resolution: {integrity: sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==} - engines: {npm: '>=2.0.0'} - dependencies: - tslib: 1.14.1 - /rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /sade@1.8.1: @@ -23774,6 +24665,7 @@ packages: /safe-json-utils@1.1.1: resolution: {integrity: sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ==} + dev: false /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} @@ -23785,6 +24677,7 @@ packages: /safe-stable-stringify@2.4.3: resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} engines: {node: '>=10'} + dev: false /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -23793,6 +24686,7 @@ packages: resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} dependencies: loose-envify: 1.4.0 + dev: false /scheduler@0.24.0-canary-efb381bbf-20230505: resolution: {integrity: sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA==} @@ -23835,6 +24729,16 @@ packages: node-gyp-build: 4.6.0 dev: false + /secp256k1@5.0.0: + resolution: {integrity: sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==} + engines: {node: '>=14.0.0'} + requiresBuild: true + dependencies: + elliptic: 6.5.4 + node-addon-api: 5.1.0 + node-gyp-build: 4.6.0 + dev: false + /semaphore-async-await@1.5.1: resolution: {integrity: sha512-b/ptP11hETwYWpeilHXXQiV5UJNJl7ZWWooKRE5eBIYWoom6dZ0SluCIdCtKycsMtZgKWE01/qAw6jblw1YVhg==} engines: {node: '>=4.1'} @@ -23981,6 +24885,7 @@ packages: dependencies: inherits: 2.0.4 safe-buffer: 5.2.1 + dev: false /shallow-clone@3.0.1: resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==} @@ -24042,7 +24947,6 @@ packages: /signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - dev: true /signedsource@1.0.0: resolution: {integrity: sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==} @@ -24219,6 +25123,7 @@ packages: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} dependencies: atomic-sleep: 1.0.0 + dev: false /sonic-boom@3.3.0: resolution: {integrity: sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==} @@ -24301,6 +25206,7 @@ packages: /split-on-first@1.1.0: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} engines: {node: '>=6'} + dev: false /split2@3.2.2: resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} @@ -24311,11 +25217,12 @@ packages: /split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} + dev: false /sponge-case@1.0.1: resolution: {integrity: sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /sprintf-js@1.0.3: @@ -24365,6 +25272,17 @@ packages: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} + /std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + dev: false + + /stdin-discarder@0.1.0: + resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + bl: 5.1.0 + dev: true + /stop-iteration-iterator@1.0.0: resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} engines: {node: '>= 0.4'} @@ -24372,14 +25290,9 @@ packages: internal-slot: 1.0.6 dev: true - /stream-browserify@3.0.0: - resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==} - dependencies: - inherits: 2.0.4 - readable-stream: 3.6.2 - /stream-shift@1.0.1: resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==} + dev: false /stream-to-it@0.2.4: resolution: {integrity: sha512-4vEbkSs83OahpmBybNJXlJd7d6/RxzkkSdT3I0mnGt79Xd2Kk+e1JqbvAvsQfCeKj3aKb0QIWkyK3/n0j506vQ==} @@ -24406,6 +25319,7 @@ packages: /strict-uri-encode@2.0.0: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} + dev: false /string-argv@0.3.1: resolution: {integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==} @@ -24430,7 +25344,7 @@ packages: dependencies: eastasianwidth: 0.2.0 emoji-regex: 9.2.2 - strip-ansi: 7.0.1 + strip-ansi: 7.1.0 dev: true /string.prototype.matchall@4.0.10: @@ -24537,13 +25451,6 @@ packages: dependencies: ansi-regex: 5.0.1 - /strip-ansi@7.0.1: - resolution: {integrity: sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==} - engines: {node: '>=12'} - dependencies: - ansi-regex: 6.0.1 - dev: true - /strip-ansi@7.1.0: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} engines: {node: '>=12'} @@ -24568,7 +25475,6 @@ packages: /strip-final-newline@3.0.0: resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} engines: {node: '>=12'} - dev: true /strip-hex-prefix@1.0.0: resolution: {integrity: sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==} @@ -24673,12 +25579,10 @@ packages: /sudo-prompt@9.2.1: resolution: {integrity: sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==} - /superstruct@0.14.2: - resolution: {integrity: sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==} - /superstruct@1.0.3: resolution: {integrity: sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==} engines: {node: '>=14.0.0'} + dev: false /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} @@ -24723,7 +25627,7 @@ packages: /swap-case@2.0.2: resolution: {integrity: sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /swarm-js@0.1.42: @@ -24756,6 +25660,11 @@ packages: engines: {node: '>=0.10'} dev: false + /system-architecture@0.1.0: + resolution: {integrity: sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA==} + engines: {node: '>=18'} + dev: false + /tailwind-merge@1.10.0: resolution: {integrity: sha512-WFnDXSS4kFTZwjKg5/oZSGzBRU/l+qcbv5NVTzLUQvJ9yovDAP05h0F2+ZFW0Lw9EcgRoc2AfURUdZvnEFrXKg==} dev: false @@ -24872,7 +25781,7 @@ packages: unique-string: 2.0.0 dev: false - /terser-webpack-plugin@5.3.9(esbuild@0.15.13)(webpack@5.89.0): + /terser-webpack-plugin@5.3.9(esbuild@0.19.12)(webpack@5.89.0): resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -24889,12 +25798,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.18 - esbuild: 0.15.13 + esbuild: 0.19.12 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.1 terser: 5.19.2 - webpack: 5.89.0(esbuild@0.15.13) + webpack: 5.89.0(esbuild@0.19.12) dev: false /terser@5.19.2: @@ -24914,13 +25823,10 @@ packages: hasBin: true dependencies: '@jridgewell/source-map': 0.3.5 - acorn: 8.11.2 + acorn: 8.11.3 commander: 2.20.3 source-map-support: 0.5.21 - /text-encoding-utf-8@1.0.2: - resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} - /text-extensions@1.9.0: resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==} engines: {node: '>=0.10'} @@ -24945,6 +25851,7 @@ packages: resolution: {integrity: sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==} dependencies: real-require: 0.1.0 + dev: false /thread-stream@2.3.0: resolution: {integrity: sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==} @@ -24969,6 +25876,7 @@ packages: /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} + dev: true /timed-out@4.0.1: resolution: {integrity: sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==} @@ -24996,7 +25904,7 @@ packages: /title-case@3.0.3: resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /tmp@0.0.33: @@ -25020,6 +25928,7 @@ packages: /toggle-selection@1.0.6: resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==} + dev: false /toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} @@ -25076,7 +25985,7 @@ packages: resolution: {integrity: sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==} engines: {node: '>=8'} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: false /ts-log@2.2.5: @@ -25301,6 +26210,7 @@ packages: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} dependencies: is-typedarray: 1.0.0 + dev: false /typedoc@0.23.25(typescript@5.0.4): resolution: {integrity: sha512-O1he153qVyoCgJYSvIyY3bPP1wAJTegZfa6tL3APinSZhJOf8CSd8F/21M6ex8pUY/fuY6n0jAsT4fIuMGA6sA==} @@ -25327,9 +26237,12 @@ packages: engines: {node: '>=12.20'} hasBin: true - /ua-parser-js@1.0.35: - resolution: {integrity: sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==} - dev: true + /ua-parser-js@1.0.37: + resolution: {integrity: sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==} + + /ufo@1.5.3: + resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} + dev: false /uglify-es@3.3.9: resolution: {integrity: sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==} @@ -25351,6 +26264,7 @@ packages: resolution: {integrity: sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==} dependencies: multiformats: 9.9.0 + dev: false /uint8arrays@4.0.3: resolution: {integrity: sha512-b+aKlI2oTnxnfeSQWV1sMacqSNxqhtXySaH6bflvONGxF8V/fT3ZlYH7z2qgGfydsvpVo4JUgM/Ylyfl2YouCg==} @@ -25376,6 +26290,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /uncrypto@0.1.3: + resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} + dev: false + /undici@5.22.1: resolution: {integrity: sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==} engines: {node: '>=14.0'} @@ -25383,6 +26301,20 @@ packages: busboy: 1.6.0 dev: false + /unenv@1.9.0: + resolution: {integrity: sha512-QKnFNznRxmbOF1hDgzpqrlIf6NC5sbZ2OJ+5Wl3OX8uM+LUJXbj4TXvLJCtwbPTmbMHCLIz6JLKNinNsMShK9g==} + dependencies: + consola: 3.2.3 + defu: 6.1.4 + mime: 3.0.0 + node-fetch-native: 1.6.4 + pathe: 1.1.2 + dev: false + + /unfetch@4.2.0: + resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} + dev: false + /unicode-canonical-property-names-ecmascript@2.0.0: resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} engines: {node: '>=4'} @@ -25477,6 +26409,74 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} + /unstorage@1.10.2(idb-keyval@6.2.1): + resolution: {integrity: sha512-cULBcwDqrS8UhlIysUJs2Dk0Mmt8h7B0E6mtR+relW9nZvsf/u4SkAYyNliPiPW7XtFNb5u3IUMkxGxFTTRTgQ==} + peerDependencies: + '@azure/app-configuration': ^1.5.0 + '@azure/cosmos': ^4.0.0 + '@azure/data-tables': ^13.2.2 + '@azure/identity': ^4.0.1 + '@azure/keyvault-secrets': ^4.8.0 + '@azure/storage-blob': ^12.17.0 + '@capacitor/preferences': ^5.0.7 + '@netlify/blobs': ^6.5.0 || ^7.0.0 + '@planetscale/database': ^1.16.0 + '@upstash/redis': ^1.28.4 + '@vercel/kv': ^1.0.1 + idb-keyval: ^6.2.1 + ioredis: ^5.3.2 + peerDependenciesMeta: + '@azure/app-configuration': + optional: true + '@azure/cosmos': + optional: true + '@azure/data-tables': + optional: true + '@azure/identity': + optional: true + '@azure/keyvault-secrets': + optional: true + '@azure/storage-blob': + optional: true + '@capacitor/preferences': + optional: true + '@netlify/blobs': + optional: true + '@planetscale/database': + optional: true + '@upstash/redis': + optional: true + '@vercel/kv': + optional: true + idb-keyval: + optional: true + ioredis: + optional: true + dependencies: + anymatch: 3.1.3 + chokidar: 3.6.0 + destr: 2.0.3 + h3: 1.11.1 + idb-keyval: 6.2.1 + listhen: 1.7.2 + lru-cache: 10.2.2 + mri: 1.2.0 + node-fetch-native: 1.6.4 + ofetch: 1.3.4 + ufo: 1.5.3 + transitivePeerDependencies: + - uWebSockets.js + dev: false + + /untun@0.1.3: + resolution: {integrity: sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==} + hasBin: true + dependencies: + citty: 0.1.6 + consola: 3.2.3 + pathe: 1.1.2 + dev: false + /upath@1.2.0: resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==} engines: {node: '>=4'} @@ -25515,15 +26515,19 @@ packages: /upper-case-first@2.0.2: resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /upper-case@2.0.2: resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true + /uqr@0.1.2: + resolution: {integrity: sha512-MJu7ypHq6QasgF5YRTjqscSzQp/W11zoUk6kvmlH+fmWEs63Y0Eib13hYFwAzagRJcVY8WVnlV+eBDUGMJ5IbA==} + dev: false + /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -25560,7 +26564,7 @@ packages: dependencies: '@types/react': 18.2.38 react: 18.2.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /use-isomorphic-layout-effect@1.1.2(@types/react@18.2.38)(react@18.2.0): @@ -25589,7 +26593,7 @@ packages: '@types/react': 18.2.38 detect-node-es: 1.1.0 react: 18.2.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /use-sync-external-store@1.2.0(react@18.2.0): @@ -25616,6 +26620,15 @@ packages: requiresBuild: true dependencies: node-gyp-build: 4.6.0 + dev: false + + /utf-8-validate@6.0.3: + resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==} + engines: {node: '>=6.14.2'} + requiresBuild: true + dependencies: + node-gyp-build: 4.6.0 + dev: false /utf8@3.0.0: resolution: {integrity: sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==} @@ -25629,8 +26642,9 @@ packages: inherits: 2.0.4 is-arguments: 1.1.1 is-generator-function: 1.0.10 - is-typed-array: 1.1.10 - which-typed-array: 1.1.9 + is-typed-array: 1.1.12 + which-typed-array: 1.1.13 + dev: false /utils-merge@1.0.1: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} @@ -25649,12 +26663,18 @@ packages: /uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true + dev: false /uuid@9.0.0: resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} hasBin: true dev: false + /uuid@9.0.1: + resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} + hasBin: true + dev: false + /uvu@0.5.6: resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==} engines: {node: '>=8'} @@ -25704,18 +26724,23 @@ packages: use-sync-external-store: 1.2.0(react@18.2.0) dev: false - /valtio@1.11.0(react@18.2.0): - resolution: {integrity: sha512-65Yd0yU5qs86b5lN1eu/nzcTgQ9/6YnD6iO+DDaDbQLn1Zv2w12Gwk43WkPlUBxk5wL/6cD5YMFf7kj6HZ1Kpg==} + /valtio@1.11.2(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} engines: {node: '>=12.20.0'} peerDependencies: + '@types/react': '>=16.8' react: '>=16.8' peerDependenciesMeta: + '@types/react': + optional: true react: optional: true dependencies: + '@types/react': 18.2.38 proxy-compare: 2.5.1 react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) + dev: false /value-or-promise@1.0.12: resolution: {integrity: sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==} @@ -25759,46 +26784,83 @@ packages: vfile-message: 3.1.4 dev: false - /viem@0.3.50(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-s+LxCYZTR9F/qPk1/n1YDVAX9vSeVz7GraqBZWGrDuenCJxo9ArCoIceJ6ksI0WwSeNzcZ0VVbD/kWRzTxkipw==} + /viem@1.21.4(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true dependencies: - '@adraffy/ens-normalize': 1.9.0 - '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.0 - '@scure/bip32': 1.3.0 - '@scure/bip39': 1.2.0 - '@wagmi/chains': 1.0.0(typescript@5.0.4) - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) - isomorphic-ws: 5.0.0(ws@8.12.0) - ws: 8.12.0 + '@adraffy/ens-normalize': 1.10.0 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/bip32': 1.3.2 + '@scure/bip39': 1.2.1 + abitype: 0.9.8(typescript@5.0.4)(zod@3.21.4) + isows: 1.0.3(ws@8.13.0) + typescript: 5.0.4 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - - typescript - utf-8-validate - zod - dev: true + dev: false + + /viem@2.9.29(typescript@5.0.4)(zod@3.21.4): + resolution: {integrity: sha512-LWvDSyB2tftKuSMAyZTXk3pDYj3c0aaOdr2JbDZEsPJw5zVbqg3FpoPHnUkHai8KcZI8aPWRKV31TYV1cBse9A==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@adraffy/ens-normalize': 1.10.0 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/bip32': 1.3.2 + '@scure/bip39': 1.2.1 + abitype: 1.0.0(typescript@5.0.4)(zod@3.21.4) + isows: 1.0.3(ws@8.13.0) + typescript: 5.0.4 + ws: 8.13.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + dev: false - /viem@1.0.0(typescript@5.0.4)(zod@3.21.4): - resolution: {integrity: sha512-JqdO5TYSuv+/cV9xOmHUKB6qXeyLHtl3gcYYHnfFstfdzivfBttmKtwHiZPdffvcr5DqKsYFT5LLrFnfz5vfLQ==} + /viem@2.9.29(typescript@5.0.4)(zod@3.23.5): + resolution: {integrity: sha512-LWvDSyB2tftKuSMAyZTXk3pDYj3c0aaOdr2JbDZEsPJw5zVbqg3FpoPHnUkHai8KcZI8aPWRKV31TYV1cBse9A==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true dependencies: - '@adraffy/ens-normalize': 1.9.0 - '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.0 - '@scure/bip32': 1.3.0 - '@scure/bip39': 1.2.0 - '@wagmi/chains': 1.1.0(typescript@5.0.4) - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) - isomorphic-ws: 5.0.0(ws@8.12.0) - ws: 8.12.0 + '@adraffy/ens-normalize': 1.10.0 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@scure/bip32': 1.3.2 + '@scure/bip39': 1.2.1 + abitype: 1.0.0(typescript@5.0.4)(zod@3.23.5) + isows: 1.0.3(ws@8.13.0) + typescript: 5.0.4 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - - typescript - utf-8-validate - zod + dev: true /vlq@1.0.1: resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==} + /void-elements@3.1.0: + resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} + engines: {node: '>=0.10.0'} + dev: false + /vscode-oniguruma@1.7.0: resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} dev: false @@ -25807,36 +26869,52 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: false - /wagmi@1.3.10(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4): - resolution: {integrity: sha512-MMGJcnxOmeUZWDmzUxgRGcB1cqxbJoSFSa+pNY4vBCWMz0n4ptpE5F8FKISLCx+BGoDwsaz2ldcMALcdJZ+29w==} + /wagmi@2.7.0(@tanstack/react-query@5.32.1)(@types/react@18.2.38)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4): + resolution: {integrity: sha512-9TYbO7TITPn3uxt2lv4M8g+v5JTDYpFYC6gmb7wJlHKpxCu3wbDYckOYh0TXEHVCu+WNS4HKDhwx8fqghObaBg==} peerDependencies: - react: '>=17.0.0' + '@tanstack/react-query': '>=5.0.0' + react: '>=18' typescript: '>=5.0.4' - viem: '>=0.3.35' + viem: 2.x peerDependenciesMeta: typescript: optional: true dependencies: - '@tanstack/query-sync-storage-persister': 4.29.5 - '@tanstack/react-query': 4.29.23(react-dom@18.2.0)(react-native@0.72.7)(react@18.2.0) - '@tanstack/react-query-persist-client': 4.29.23(@tanstack/react-query@4.29.23) - '@wagmi/core': 1.3.9(react@18.2.0)(typescript@5.0.4)(viem@1.0.0)(zod@3.21.4) - abitype: 0.8.7(typescript@5.0.4)(zod@3.21.4) + '@tanstack/react-query': 5.32.1(react@18.2.0) + '@wagmi/connectors': 4.3.0(@types/react@18.2.38)(@wagmi/core@2.8.0)(react-dom@18.2.0)(react-i18next@13.5.0)(react-native@0.72.7)(react@18.2.0)(rollup@2.79.1)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) + '@wagmi/core': 2.8.0(@types/react@18.2.38)(react@18.2.0)(typescript@5.0.4)(viem@2.9.29)(zod@3.21.4) react: 18.2.0 typescript: 5.0.4 use-sync-external-store: 1.2.0(react@18.2.0) - viem: 1.0.0(typescript@5.0.4)(zod@3.21.4) - transitivePeerDependencies: + viem: 2.9.29(typescript@5.0.4)(zod@3.21.4) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@tanstack/query-core' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' - bufferutil - encoding - immer - - lokijs + - ioredis - react-dom + - react-i18next - react-native + - rollup - supports-color + - uWebSockets.js - utf-8-validate - zod + dev: false /walker@1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} @@ -25960,7 +27038,7 @@ packages: eth-lib: 0.2.8 ethereumjs-util: 7.1.5 scrypt-js: 3.0.1 - uuid: 9.0.0 + uuid: 9.0.1 web3-core: 1.10.0 web3-core-helpers: 1.10.0 web3-core-method: 1.10.0 @@ -26144,7 +27222,11 @@ packages: '@peculiar/json-schema': 1.1.12 asn1js: 3.0.5 pvtsutils: 1.3.2 - tslib: 2.5.0 + tslib: 2.6.2 + + /webextension-polyfill@0.10.0: + resolution: {integrity: sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==} + dev: false /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -26165,7 +27247,7 @@ packages: engines: {node: '>=10.13.0'} dev: false - /webpack@5.89.0(esbuild@0.15.13): + /webpack@5.89.0(esbuild@0.19.12): resolution: {integrity: sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==} engines: {node: '>=10.13.0'} hasBin: true @@ -26180,8 +27262,8 @@ packages: '@webassemblyjs/ast': 1.11.6 '@webassemblyjs/wasm-edit': 1.11.6 '@webassemblyjs/wasm-parser': 1.11.6 - acorn: 8.11.2 - acorn-import-assertions: 1.9.0(acorn@8.11.2) + acorn: 8.11.3 + acorn-import-assertions: 1.9.0(acorn@8.11.3) browserslist: 4.22.1 chrome-trace-event: 1.0.3 enhanced-resolve: 5.15.0 @@ -26196,7 +27278,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.9(esbuild@0.15.13)(webpack@5.89.0) + terser-webpack-plugin: 5.3.9(esbuild@0.19.12)(webpack@5.89.0) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: @@ -26209,7 +27291,7 @@ packages: resolution: {integrity: sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==} engines: {node: '>=4.0.0'} dependencies: - bufferutil: 4.0.7 + bufferutil: 4.0.8 debug: 2.6.9 es5-ext: 0.10.62 typedarray-to-buffer: 3.1.5 @@ -26299,6 +27381,7 @@ packages: gopd: 1.0.1 has-tostringtag: 1.0.0 is-typed-array: 1.1.10 + dev: true /which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} @@ -26332,7 +27415,7 @@ packages: '@apideck/better-ajv-errors': 0.3.6(ajv@8.12.0) '@babel/core': 7.18.5 '@babel/preset-env': 7.20.2(@babel/core@7.18.5) - '@babel/runtime': 7.21.5 + '@babel/runtime': 7.23.4 '@rollup/plugin-babel': 5.3.1(@babel/core@7.18.5)(rollup@2.79.1) '@rollup/plugin-node-resolve': 11.2.1(rollup@2.79.1) '@rollup/plugin-replace': 2.4.2(rollup@2.79.1) @@ -26461,7 +27544,7 @@ packages: fast-json-stable-stringify: 2.1.0 pretty-bytes: 5.6.0 upath: 1.2.0 - webpack: 5.89.0(esbuild@0.15.13) + webpack: 5.89.0(esbuild@0.19.12) webpack-sources: 1.4.3 workbox-build: 6.6.0 transitivePeerDependencies: @@ -26582,19 +27665,7 @@ packages: optional: true dev: false - /ws@8.12.0: - resolution: {integrity: sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - /ws@8.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): + /ws@8.13.0: resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} engines: {node: '>=10.0.0'} peerDependencies: @@ -26605,9 +27676,6 @@ packages: optional: true utf-8-validate: optional: true - dependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 /xhr-request-promise@0.1.3: resolution: {integrity: sha512-YUBytBsuwgitWtdRzXDDkWAXzhdGB8bYm0sSzMPZT7Z2MBjMSTHFsyCT1yCRATY+XC69DUrQraRAEgcoCRaIPg==} @@ -26799,16 +27867,20 @@ packages: resolution: {integrity: sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==} dev: false - /zod-to-json-schema@3.21.4(zod@3.21.4): + /zod-to-json-schema@3.21.4(zod@3.23.5): resolution: {integrity: sha512-fjUZh4nQ1s6HMccgIeE0VP4QG/YRGPmyjO9sAh890aQKPEk3nqbfUXhMFaC+Dr5KvYBm8BCyvfpZf2jY9aGSsw==} peerDependencies: zod: ^3.21.4 dependencies: - zod: 3.21.4 + zod: 3.23.5 dev: true /zod@3.21.4: resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} + dev: false + + /zod@3.23.5: + resolution: {integrity: sha512-fkwiq0VIQTksNNA131rDOsVJcns0pfVUjHzLrNBiF/O/Xxb5lQyEXkhZWcJ7npWsYlvs+h0jFWXXy4X46Em1JA==} /zustand@4.3.8(react@18.2.0): resolution: {integrity: sha512-4h28KCkHg5ii/wcFFJ5Fp+k1J3gJoasaIbppdgZFO4BPJnsNxL0mQXBSFgOgAdCdBj35aDTPvdAJReTMntFPGg==} @@ -26826,17 +27898,26 @@ packages: use-sync-external-store: 1.2.0(react@18.2.0) dev: false - /zustand@4.3.9(react@18.2.0): - resolution: {integrity: sha512-Tat5r8jOMG1Vcsj8uldMyqYKC5IZvQif8zetmLHs9WoZlntTHmIoNM8TpLRY31ExncuUvUOXehd0kvahkuHjDw==} + /zustand@4.4.1(@types/react@18.2.38)(react@18.2.0): + resolution: {integrity: sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==} engines: {node: '>=12.7.0'} peerDependencies: + '@types/react': '>=16.8' immer: '>=9.0' react: '>=16.8' peerDependenciesMeta: + '@types/react': + optional: true immer: optional: true react: optional: true dependencies: + '@types/react': 18.2.38 react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) + dev: false + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false diff --git a/public/integrations/pooltogether.svg b/public/integrations/pooltogether.svg deleted file mode 100644 index 00fece50..00000000 --- a/public/integrations/pooltogether.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/wagmi.config.ts b/wagmi.config.ts index 9e370af0..475a1f5d 100644 --- a/wagmi.config.ts +++ b/wagmi.config.ts @@ -1,13 +1,13 @@ import { defineConfig } from "@wagmi/cli" import { react } from "@wagmi/cli/plugins" -import { erc20ABI } from "wagmi" +import { erc20Abi } from "viem" export default defineConfig({ out: "lib/generated/blockchain.ts", contracts: [ { name: "erc20", - abi: erc20ABI, + abi: erc20Abi, }, ], plugins: [react()],