Skip to content

Commit

Permalink
use Petra aip-62 and remove IdentityConnect (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan authored Jun 13, 2024
1 parent 82a1a09 commit d1f3ce6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 84 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-sloths-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aptos-labs/wallet-adapter-nextjs-example": patch
---

Remove IdentityConnect and Petra plugins in favor of AIP-62 Petra and AptosConnect
2 changes: 0 additions & 2 deletions apps/nextjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@aptos-labs/wallet-adapter-react": "workspace:*",
"@aptos-labs/wallet-standard": "^0.1.0",
"@bitget-wallet/aptos-wallet-adapter": "^0.1.0",
"@identity-connect/wallet-adapter-plugin": "^1.2.5",
"@martianwallet/aptos-wallet-adapter": "^0.0.5",
"@msafe/aptos-wallet-adapter": "^1.0.11",
"@okwallet/aptos-wallet-adapter": "^0.0.3",
Expand All @@ -40,7 +39,6 @@
"lucide-react": "^0.383.0",
"next": "14.2.3",
"next-themes": "^0.3.0",
"petra-plugin-wallet-adapter": "^0.4.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.3.0",
Expand Down
7 changes: 0 additions & 7 deletions apps/nextjs-example/src/components/WalletProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
"use client";

import { Network } from "@aptos-labs/ts-sdk";
import { AptosWalletAdapterProvider } from "@aptos-labs/wallet-adapter-react";
import { BitgetWallet } from "@bitget-wallet/aptos-wallet-adapter";
import { IdentityConnectWallet } from "@identity-connect/wallet-adapter-plugin";
import { MartianWallet } from "@martianwallet/aptos-wallet-adapter";
import { MSafeWalletAdapter } from "@msafe/aptos-wallet-adapter";
import { OKXWallet } from "@okwallet/aptos-wallet-adapter";
import { PontemWallet } from "@pontem/wallet-adapter-plugin";
import { TrustWallet } from "@trustwallet/aptos-wallet-adapter";
import { FewchaWallet } from "fewcha-plugin-wallet-adapter";
import { PetraWallet } from "petra-plugin-wallet-adapter";
import { PropsWithChildren } from "react";
import { useAutoConnect } from "./AutoConnectProvider";
import { useToast } from "./ui/use-toast";
Expand All @@ -20,17 +17,13 @@ export const WalletProvider = ({ children }: PropsWithChildren) => {
const { toast } = useToast();

const wallets = [
new IdentityConnectWallet("57fa42a9-29c6-4f1e-939c-4eefa36d9ff5", {
networkName: Network.TESTNET,
}),
new BitgetWallet(),
new FewchaWallet(),
new MartianWallet(),
new MSafeWalletAdapter(),
new PontemWallet(),
new TrustWallet(),
new OKXWallet(),
new PetraWallet(),
];

return (
Expand Down
75 changes: 0 additions & 75 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1f3ce6

Please sign in to comment.