diff --git a/package.json b/package.json index 3ce5e04..1730606 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-popover": "^1.1.1", + "@radix-ui/react-select": "^2.1.1", "@radix-ui/react-slot": "^1.1.0", "@rainbow-me/rainbowkit": "^2.1.3", "@tanstack/react-query": "^5.28.4", @@ -68,4 +69,4 @@ "node": ">=18.0.0" }, "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" -} \ No newline at end of file +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 1cd93c2..0471d61 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,46 +1,14 @@ "use client"; -import { useState } from "react"; import { ConnectButton } from "@rainbow-me/rainbowkit"; -import { - ConnectBitcoin, - useZetaChainClient, - useEthersSigner, - Swap, -} from "@/index"; +import { ConnectBitcoin } from "@/index"; import { useAccount, useChainId, useWalletClient } from "wagmi"; -import { ThemeToggle } from "@/components/ThemeToggle"; -import { useBitcoinWallet } from "@/providers/BitcoinWalletProvider"; - -const contract = "0xb459F14260D1dc6484CE56EB0826be317171e91F"; const Page = () => { - const account = useAccount(); - const chainId = useChainId(); - const { data: walletClient } = useWalletClient({ chainId }); - const signer = useEthersSigner({ walletClient }); - const client = useZetaChainClient({ network: "testnet", signer }); - const { sendTransaction, address: bitcoinAddress } = useBitcoinWallet(); - return ( -