Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope legacy plugin wallets to prior adapter versions #822

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ In order for dapp users who are not already using your wallet to get the option
git checkout -b your-wallet
```

### Navigate to [`packages/wallet-adapter-core/src/AIP62StandardWallets`](https://github.com/aptos-labs/aptos-wallet-adapter/tree/main/packages/wallet-adapter-core/src/AIP62StandardWallets).
### Add your wallet’s details to [`registry.ts`](https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-core/src/AIP62StandardWallets/registry.ts) by following the `AptosStandardSupportedWallet` interface.
### Navigate to [`packages/wallet-adapter-core/src/AIP62StandardWallets`](https://github.com/aptos-labs/aptos-wallet-adapter/tree/main/packages/wallet-adapter-core/src).
### Add your wallet’s details to [`registry.ts`](https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-core/src/registry.ts) by following the `AptosStandardSupportedWallet` interface.

```tsx filename="registry.ts"
export interface AptosStandardSupportedWallet<Name extends string = string> {
Expand Down
7 changes: 7 additions & 0 deletions apps/nextra/pages/en/build/sdks/wallet-adapter/dapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ This provides a standard interface for using all Aptos wallets, and allows new w
```bash filename="Terminal"
npm install @aptos-labs/wallet-adapter-react
```
<details>

<summary>
<b>For versions prior to v4.0.0</b>
</summary>

### (Optional) Install the plugins for any “Legacy Standard Compatible” Wallets you want to support from [this list](https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/README.md#supported-wallet-packages).

Expand All @@ -43,6 +48,8 @@ import { AptosWalletAdapterProvider } from "@aptos-labs/wallet-adapter-react";
import { OKXWallet } from "@okwallet/aptos-wallet-adapter";
// ...
```
</details>


### Initialize the `AptosWalletAdapterProvider`.

Expand Down
4 changes: 2 additions & 2 deletions apps/nextra/pages/en/build/sdks/wallet-adapter/wallets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ In order for dapp users who are not already using your wallet to get the option
git checkout -b your-wallet
```

### Navigate to [`packages/wallet-adapter-core/src/AIP62StandardWallets`](https://github.com/aptos-labs/aptos-wallet-adapter/tree/main/packages/wallet-adapter-core/src/AIP62StandardWallets).
### Navigate to [`packages/wallet-adapter-core/src/AIP62StandardWallets`](https://github.com/aptos-labs/aptos-wallet-adapter/tree/main/packages/wallet-adapter-core/src).

### Import your SDK wallet npm package.

```bash filename="Terminal"
pnpm i @yourpackage
```

### Import your wallet in [`sdkWallets.ts`](https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-core/src/AIP62StandardWallets/sdkWallets.ts).
### Import your wallet in [`sdkWallets.ts`](https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-core/src/sdkWallets.ts).

For example with AptosConnect:

Expand Down