diff --git a/package.json b/package.json index 93fd56b..53f2c67 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "dependencies": { - "@biconomy-devx/account": "^4.2.12", + "@biconomy/account": "^4.2.0", "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@mui/icons-material": "^5.11.11", diff --git a/src/components/AA/BatchLiquidity.tsx b/src/components/AA/BatchLiquidity.tsx index 3b359e0..73ff4ba 100644 --- a/src/components/AA/BatchLiquidity.tsx +++ b/src/components/AA/BatchLiquidity.tsx @@ -8,7 +8,7 @@ import { showSuccessMessage, showErrorMessage, } from "../../utils"; -import { PaymasterMode } from "@biconomy-devx/account"; +import { PaymasterMode } from "@biconomy/account"; const BatchLiquidity: React.FC = () => { const classes = useStyles(); diff --git a/src/components/AA/MintNft.tsx b/src/components/AA/MintNft.tsx index 5eec48b..fc8e0e4 100644 --- a/src/components/AA/MintNft.tsx +++ b/src/components/AA/MintNft.tsx @@ -9,7 +9,7 @@ import { showErrorMessage, showSuccessMessage, } from "../../utils"; -import { PaymasterMode } from "@biconomy-devx/account"; +import { PaymasterMode } from "@biconomy/account"; const MintNft: React.FC = () => { const classes = useStyles(); diff --git a/src/components/Forward/BatchLiquidity.tsx b/src/components/Forward/BatchLiquidity.tsx index ccb3dd7..5dc44bb 100644 --- a/src/components/Forward/BatchLiquidity.tsx +++ b/src/components/Forward/BatchLiquidity.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; import { makeStyles } from "@mui/styles"; import { CircularProgress } from "@mui/material"; -import { PaymasterFeeQuote, PaymasterMode } from "@biconomy-devx/account"; +import { PaymasterFeeQuote, PaymasterMode } from "@biconomy/account"; import Button from "../Button"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; diff --git a/src/components/Forward/MintNft.tsx b/src/components/Forward/MintNft.tsx index ce72581..1856e4a 100644 --- a/src/components/Forward/MintNft.tsx +++ b/src/components/Forward/MintNft.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; import { makeStyles } from "@mui/styles"; import CircularProgress from "@mui/material/CircularProgress"; -import { PaymasterFeeQuote, PaymasterMode } from "@biconomy-devx/account"; +import { PaymasterFeeQuote, PaymasterMode } from "@biconomy/account"; import Button from "../Button"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; diff --git a/src/components/Modules/CreateABISVM.tsx b/src/components/Modules/CreateABISVM.tsx index 101e6a5..156add0 100644 --- a/src/components/Modules/CreateABISVM.tsx +++ b/src/components/Modules/CreateABISVM.tsx @@ -3,7 +3,7 @@ import { ethers } from "ethers"; import { BiconomySmartAccountV2, createSessionKeyManagerModule, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import { toast, ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { getABISVMSessionKeyData } from "../../utils/index"; diff --git a/src/components/Modules/CreateSession.tsx b/src/components/Modules/CreateSession.tsx index 9ea87ff..d7d10c8 100644 --- a/src/components/Modules/CreateSession.tsx +++ b/src/components/Modules/CreateSession.tsx @@ -3,7 +3,7 @@ import { makeStyles } from "@mui/styles"; import { useAccount } from "wagmi"; import { Hex, encodeAbiParameters, parseAbiParameters, parseUnits } from "viem"; import { generatePrivateKey, privateKeyToAccount } from "viem/accounts"; -import { createSessionKeyManagerModule } from "@biconomy-devx/account"; +import { createSessionKeyManagerModule } from "@biconomy/account"; import Button from "../Button"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; import { ERC20_SESSION_VALIDATION_MODULE } from "../../utils/chainConfig"; diff --git a/src/components/Modules/CreateSessionForCustomSVM.tsx b/src/components/Modules/CreateSessionForCustomSVM.tsx index a319242..6c9cae2 100644 --- a/src/components/Modules/CreateSessionForCustomSVM.tsx +++ b/src/components/Modules/CreateSessionForCustomSVM.tsx @@ -10,7 +10,7 @@ import { slice, } from "viem"; import { generatePrivateKey, privateKeyToAccount } from "viem/accounts"; -import { createSessionKeyManagerModule } from "@biconomy-devx/account"; +import { createSessionKeyManagerModule } from "@biconomy/account"; import Button from "../Button"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; import { CONTRACT_CALL_SESSION_VALIDATION_MODULE } from "../../utils/chainConfig"; diff --git a/src/components/Modules/CreateSessionsWithBatchRouter.tsx b/src/components/Modules/CreateSessionsWithBatchRouter.tsx index 2f58f30..37dd63d 100644 --- a/src/components/Modules/CreateSessionsWithBatchRouter.tsx +++ b/src/components/Modules/CreateSessionsWithBatchRouter.tsx @@ -4,7 +4,7 @@ import { makeStyles } from "@mui/styles"; import { BatchedSessionRouterModule, SessionKeyManagerModule, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import { useAccount } from "wagmi"; import Button from "../Button"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; diff --git a/src/components/Modules/ERC20TransferUsingSession.tsx b/src/components/Modules/ERC20TransferUsingSession.tsx index cc2c9e3..d6299c3 100644 --- a/src/components/Modules/ERC20TransferUsingSession.tsx +++ b/src/components/Modules/ERC20TransferUsingSession.tsx @@ -9,9 +9,9 @@ import { showSuccessMessage, showErrorMessage, } from "../../utils"; -import { createSessionKeyManagerModule } from "@biconomy-devx/account"; +import { createSessionKeyManagerModule } from "@biconomy/account"; import { ERC20_SESSION_VALIDATION_MODULE } from "../../utils/chainConfig"; -import { EthersSigner } from "@biconomy-devx/account"; +import { EthersSigner } from "@biconomy/account"; import { useAccount } from "wagmi"; import { managerModuleAddr } from "../../utils/constants"; diff --git a/src/components/Modules/HyphenLpUsingSession.tsx b/src/components/Modules/HyphenLpUsingSession.tsx index 4248a31..4870452 100644 --- a/src/components/Modules/HyphenLpUsingSession.tsx +++ b/src/components/Modules/HyphenLpUsingSession.tsx @@ -9,9 +9,9 @@ import { showSuccessMessage, showErrorMessage, } from "../../utils"; -import { createSessionKeyManagerModule } from "@biconomy-devx/account"; +import { createSessionKeyManagerModule } from "@biconomy/account"; import { CONTRACT_CALL_SESSION_VALIDATION_MODULE } from "../../utils/chainConfig"; -import { EthersSigner } from "@biconomy-devx/account"; +import { EthersSigner } from "@biconomy/account"; import { useAccount } from "wagmi"; import { managerModuleAddr } from "../../utils/constants"; import { parseUnits } from "viem"; diff --git a/src/components/Modules/UseABISVM.tsx b/src/components/Modules/UseABISVM.tsx index 5adb7d8..02894b5 100644 --- a/src/components/Modules/UseABISVM.tsx +++ b/src/components/Modules/UseABISVM.tsx @@ -3,7 +3,7 @@ import { ethers } from "ethers"; import { BiconomySmartAccountV2, createSessionKeyManagerModule, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import { toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { Hex, encodeFunctionData, parseAbi } from "viem"; diff --git a/src/components/Modules/UseSessionsBatch.tsx b/src/components/Modules/UseSessionsBatch.tsx index 788cf4c..d4b39b8 100644 --- a/src/components/Modules/UseSessionsBatch.tsx +++ b/src/components/Modules/UseSessionsBatch.tsx @@ -4,7 +4,7 @@ import { makeStyles } from "@mui/styles"; import { BatchedSessionRouterModule, SessionKeyManagerModule, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import Button from "../Button"; import { useAccount } from "wagmi"; import { useSmartAccountContext } from "../../contexts/SmartAccountContext"; diff --git a/src/contexts/SmartAccountContext.tsx b/src/contexts/SmartAccountContext.tsx index b451875..969c911 100644 --- a/src/contexts/SmartAccountContext.tsx +++ b/src/contexts/SmartAccountContext.tsx @@ -2,10 +2,10 @@ import React, { useCallback, useContext, useEffect, useState } from "react"; import { BiconomySmartAccountV2, createSmartAccountClient, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import { useAccount, useWalletClient } from "wagmi"; import { bundlerUrl, paymasterApiKey } from "../utils/chainConfig"; -// import { MultiChainValidationModule } from "@biconomy-devx/account"; +// import { MultiChainValidationModule } from "@biconomy/account"; // Types type smartAccountContextType = { diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 3ff64a7..788e3dc 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,7 +1,7 @@ import { DEFAULT_BATCHED_SESSION_ROUTER_MODULE, DEFAULT_SESSION_KEY_MANAGER_MODULE, -} from "@biconomy-devx/account"; +} from "@biconomy/account"; import { ERC20_SESSION_VALIDATION_MODULE } from "./chainConfig"; export const erc20ModuleAddr = ERC20_SESSION_VALIDATION_MODULE; diff --git a/yarn.lock b/yarn.lock index f5853c2..efd7143 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1192,10 +1192,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@biconomy-devx/account@^4.2.12": - version "4.2.12" - resolved "https://registry.yarnpkg.com/@biconomy-devx/account/-/account-4.2.12.tgz#1d53de8ce9d186748375a2e584f18a457a5dd181" - integrity sha512-enp0AngHWY7Z7gMYl32D6ZFyvTabKFyjv02/Cf2Pp8Tn0a6t/MNNf43qpeCJ2AefePz6AvLK1fxcCMTZHfJhhg== +"@biconomy/account@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@biconomy/account/-/account-4.2.0.tgz#fcd5f17c441f5068dbf5d0703627a93fb0f47e9f" + integrity sha512-k7bpr5HstDhYOWQBZgBxOw+FHLpb8wPgokprvQbNKDA4Fc4iyiLKsVb4sLKqeyYm37CnhVp30Zy/eda87ph5DQ== dependencies: merkletreejs "^0.3.11"