Skip to content

Commit

Permalink
v4.2 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler authored May 6, 2024
1 parent 3a28d0b commit b189a99
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AA/BatchLiquidity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/components/AA/MintNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forward/BatchLiquidity.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forward/MintNft.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/CreateABISVM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/CreateSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/CreateSessionForCustomSVM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/CreateSessionsWithBatchRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/components/Modules/ERC20TransferUsingSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions src/components/Modules/HyphenLpUsingSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/UseABISVM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modules/UseSessionsBatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/SmartAccountContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit b189a99

Please sign in to comment.