diff --git a/.env-example b/.env-example deleted file mode 100644 index 1155d43..0000000 --- a/.env-example +++ /dev/null @@ -1,2 +0,0 @@ -REACT_APP_PKEY= -REACT_APP_BICONOMY_SDK_DEBUG=true \ No newline at end of file diff --git a/package.json b/package.json index 8158a61..9b5bb02 100644 --- a/package.json +++ b/package.json @@ -3,20 +3,22 @@ "version": "1.0.0", "private": true, "dependencies": { - "@biconomy/account": "^3.0.0-alpha.0", - "@biconomy/bundler": "^3.0.0-alpha.0", - "@biconomy/common": "^3.0.0-alpha.0", - "@biconomy/core-types": "^3.0.0-alpha.0", - "@biconomy/paymaster": "^3.0.0-alpha.0", - "@biconomy/web3-auth": "^3.0.0-alpha.0", + "@biconomy/account": "3.1.1", + "@biconomy/bundler": "3.1.1", + "@biconomy/common": "3.1.1", + "@biconomy/core-types": "3.1.1", + "@biconomy/modules": "3.1.1", + "@biconomy/paymaster": "3.1.1", "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@mui/icons-material": "^5.11.11", "@mui/material": "^5.11.12", "@mui/styles": "^5.11.12", + "@rainbow-me/rainbowkit": "^1.2.0", "@types/node": "^16.7.13", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", + "buffer": "^6.0.3", "ethers": "^5.6.9", "process": "^0.11.10", "react": "^18.2.0", @@ -24,6 +26,8 @@ "react-scripts": "5.0.1", "react-toastify": "^9.0.8", "typescript": "^4.4.2", + "viem": "^1.18.3", + "wagmi": "^1.4.5", "web-vitals": "^2.1.0" }, "scripts": { diff --git a/src/App.tsx b/src/App.tsx index fa7457f..13354ca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,14 @@ import React from "react"; import { makeStyles } from "@mui/styles"; import { ToastContainer } from "react-toastify"; +import { useAccount } from 'wagmi' +import { ConnectButton } from '@rainbow-me/rainbowkit'; import TabsBody from "./components/TabsBody"; import { useSmartAccountContext } from "./contexts/SmartAccountContext"; -import { useWeb3AuthContext } from "./contexts/SocialLoginContext"; -import Button from "./components/Button"; const App: React.FC = () => { const classes = useStyles(); - const { connect, address, loading: eoaWalletLoading } = useWeb3AuthContext(); + const { address } = useAccount() const { loading } = useSmartAccountContext(); if (!address) { @@ -26,11 +26,7 @@ const App: React.FC = () => { Solve complex UX challenges with customisable SDK modules in minutes.

-