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

Replace solana-labs/wallet-adapter with anza-xyz/wallet-adapter #922

Merged
merged 1 commit into from
Mar 7, 2024
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
8 changes: 4 additions & 4 deletions .github/label-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ use-wallet-standard:


Thanks for your contribution. We are no longer accepting PRs of adapters for this type of wallet. You can
[read about this policy here](https://github.com/solana-labs/wallet-adapter/blob/master/WALLET.md),
[read about this policy here](https://github.com/anza-xyz/wallet-adapter/blob/master/WALLET.md),
but more importantly, please check out
[this guide for wallets](https://github.com/solana-labs/wallet-standard/blob/master/WALLET.md)
[this guide for wallets](https://github.com/anza-xyz/wallet-standard/blob/master/WALLET.md)
to implement the Wallet Standard.


Expand All @@ -48,14 +48,14 @@ use-wallet-standard:
and looking at the reference implementations, if you have questions on how to do this, please open an issue here:


https://github.com/solana-labs/wallet-standard
https://github.com/anza-xyz/wallet-standard


---


_This
[automated message](https://github.com/solana-labs/solana/blob/master/.github/label-actions.yml)
[automated message](https://github.com/anza-xyz/wallet-adapter/blob/master/.github/label-actions.yml)
is a result of having added the ‘use-wallet-standard’ tag_.

# Close the issue
Expand Down
6 changes: 3 additions & 3 deletions APP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This is a quick setup guide with examples of how to add Wallet Adapter to a React-based Solana app.

See the [packages](https://github.com/solana-labs/wallet-adapter/blob/master/PACKAGES.md) and [FAQ](https://github.com/solana-labs/wallet-adapter/blob/master/FAQ.md) for other supported frontend frameworks.
See the [packages](https://github.com/anza-xyz/wallet-adapter/blob/master/PACKAGES.md) and [FAQ](https://github.com/anza-xyz/wallet-adapter/blob/master/FAQ.md) for other supported frontend frameworks.

## Quick Setup (using React UI)

There are also [material-ui](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/material-ui) and [ant-design](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/ant-design) packages if you use those UI component frameworks.
There are also [material-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/material-ui) and [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/ant-design) packages if you use those UI component frameworks.

### Install

Expand Down Expand Up @@ -54,7 +54,7 @@ export const Wallet: FC = () => {
* - Solana Mobile Stack Mobile Wallet Adapter Protocol
* (https://github.com/solana-mobile/mobile-wallet-adapter)
* - Solana Wallet Standard
* (https://github.com/solana-labs/wallet-standard)
* (https://github.com/anza-xyz/wallet-standard)
*
* If you wish to support a wallet that supports neither of those standards,
* instantiate its legacy wallet adapter here. Common legacy adapters can be found
Expand Down
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ corepack prepare [email protected] --activate

### 1. Clone the project:
```shell
git clone https://github.com/solana-labs/wallet-adapter.git
git clone https://github.com/anza-xyz/wallet-adapter.git
```

### 2. Install dependencies:
Expand Down
30 changes: 15 additions & 15 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,36 @@ Please search https://solana.stackexchange.com and the issues in the repo. Issue

## I am building an app, how do I use this?

See the guide [Wallet Adapter for Solana Apps](https://github.com/solana-labs/wallet-adapter/blob/master/APP.md).
See the guide [Wallet Adapter for Solana Apps](https://github.com/anza-xyz/wallet-adapter/blob/master/APP.md).

## I am building a wallet, how do I use this?

See the guide [Wallet Adapter for Solana Wallets](https://github.com/solana-labs/wallet-adapter/blob/master/WALLET.md).
See the guide [Wallet Adapter for Solana Wallets](https://github.com/anza-xyz/wallet-adapter/blob/master/WALLET.md).

## How can I get support?

Please ask questions on the [Solana Stack Exchange](https://solana.stackexchange.com).

After reading this FAQ, if you've found a bug or if you'd like to request a feature, please [open an issue](https://github.com/solana-labs/wallet-adapter/issues/new).
After reading this FAQ, if you've found a bug or if you'd like to request a feature, please [open an issue](https://github.com/anza-xyz/wallet-adapter/issues/new).

## Can I use this with ___?

### React
Yes, see the [react-ui-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/react-ui-starter) package.
Yes, see the [react-ui-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/react-ui-starter) package.

### Anchor
Yes, use the [`useAnchorWallet()`](https://github.com/solana-labs/wallet-adapter/blob/master/packages/core/react/src/useAnchorWallet.ts) hook in the React package to easily get an [Anchor-compatible Wallet interface](https://github.com/project-serum/anchor/blob/0faed886002a9b01ad0513c860e19d7570cb0221/ts/src/provider.ts#L220-L224).
Yes, use the [`useAnchorWallet()`](https://github.com/anza-xyz/wallet-adapter/blob/master/packages/core/react/src/useAnchorWallet.ts) hook in the React package to easily get an [Anchor-compatible Wallet interface](https://github.com/project-serum/anchor/blob/0faed886002a9b01ad0513c860e19d7570cb0221/ts/src/provider.ts#L220-L224).

### Next.js (with React)
Yes, see the [nextjs-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/nextjs-starter) package for very basic configuration, or the [example](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/example) package for more complete configuration.
Yes, see the [nextjs-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/nextjs-starter) package for very basic configuration, or the [example](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/example) package for more complete configuration.

If you're using one of the [react-ui](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/react-ui), [material-ui](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/material-ui), or [ant-design](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/ant-design) packages too, make sure to configure the `WalletModalProvider` or `WalletDialogProvider` context [as shown here](https://github.com/solana-labs/wallet-adapter#setup).
If you're using one of the [react-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/react-ui), [material-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/material-ui), or [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/ant-design) packages too, make sure to configure the `WalletModalProvider` or `WalletDialogProvider` context [as shown here](https://github.com/anza-xyz/wallet-adapter#setup).

### Material UI (with React)
Yes, see the [material-ui-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/material-ui-starter) package.
Yes, see the [material-ui-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/material-ui-starter) package.

### Ant Design (with React)
Yes, see the [ant-design](https://github.com/solana-labs/wallet-adapter/tree/master/packages/core/ant-design) package.
Yes, see the [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/core/ant-design) package.

### Vue
Yes, see the community-maintained [Vue](https://github.com/lorisleiva/solana-wallets-vue) package.
Expand Down Expand Up @@ -86,7 +86,7 @@ Most of the packages are built using the TypeScript compiler, which outputs modu

If you're using Create React App, craco, or one of the React-based starter projects using them, this should be handled automatically.

If you're using Next.js, this requires configuration, which is provided in the [nextjs-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/nextjs-starter) package.
If you're using Next.js, this requires configuration, which is provided in the [nextjs-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/nextjs-starter) package.

If you're using something else, you may have to configure your build tool to transpile the packages similarly to how it's done in the Next.js config.
Please open an issue or pull request to document your solution!
Expand All @@ -95,14 +95,14 @@ Please open an issue or pull request to document your solution!

### `Failed to compile. [...] Module not found: Can't resolve [...]`

This can happen if you're cloning the project and [building it from the source](https://github.com/solana-labs/wallet-adapter/blob/master/README.md#build-from-source) and you missed a step.
This can happen if you're cloning the project and [building it from the source](https://github.com/anza-xyz/wallet-adapter/blob/master/README.md#build-from-source) and you missed a step.

If this doesn't fix the problem, please [open an issue](https://github.com/solana-labs/wallet-adapter/issues/new).
If this doesn't fix the problem, please [open an issue](https://github.com/anza-xyz/wallet-adapter/issues/new).

### `[...] is not a function` / `[...] is undefined` / `Uncaught TypeError: Cannot destructure property` / `Uncaught (in promise) WalletNotConnectedError`

This can happen if you don't wrap your app with the `WalletContext` and `ConnectionContext` provided by the [react](https://github.com/solana-labs/wallet-adapter/tree/master/packages/core/react) package.
See issues [#62](https://github.com/solana-labs/wallet-adapter/issues/62#issuecomment-916421795), [#73](https://github.com/solana-labs/wallet-adapter/issues/73#issuecomment-919237687), and [#85](https://github.com/solana-labs/wallet-adapter/issues/85).
This can happen if you don't wrap your app with the `WalletContext` and `ConnectionContext` provided by the [react](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/core/react) package.
See issues [#62](https://github.com/anza-xyz/wallet-adapter/issues/62#issuecomment-916421795), [#73](https://github.com/anza-xyz/wallet-adapter/issues/73#issuecomment-919237687), and [#85](https://github.com/anza-xyz/wallet-adapter/issues/85).

This shouldn't happen if you're using one of the starter projects, since they set up the contexts for you.

Expand All @@ -113,4 +113,4 @@ This can happen if you try to use `signTransaction`, `signAllTransactions`, or `
`sendTransaction` is the primary method that all wallets support, and it signs transactions.
The other methods are optional APIs, so you have to feature-detect them before using them.

Please see [issue #72](https://github.com/solana-labs/wallet-adapter/issues/72#issuecomment-919232595).
Please see [issue #72](https://github.com/anza-xyz/wallet-adapter/issues/72#issuecomment-919232595).
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Modular TypeScript wallet adapters and components for Solana applications.

- [Demo](https://anza-xyz.github.io/wallet-adapter/example)
- [TypeScript Docs](https://anza-xyz.github.io/wallet-adapter/)
- [For Solana Apps](https://github.com/solana-labs/wallet-adapter/blob/master/APP.md)
- [For Solana Wallets](https://github.com/solana-labs/wallet-adapter/blob/master/WALLET.md)
- [Packages](https://github.com/solana-labs/wallet-adapter/blob/master/PACKAGES.md)
- [FAQ (Frequently Asked Questions)](https://github.com/solana-labs/wallet-adapter/blob/master/FAQ.md)
- [Build from Source](https://github.com/solana-labs/wallet-adapter/blob/master/BUILD.md)
- [For Solana Apps](https://github.com/anza-xyz/wallet-adapter/blob/master/APP.md)
- [For Solana Wallets](https://github.com/anza-xyz/wallet-adapter/blob/master/WALLET.md)
- [Packages](https://github.com/anza-xyz/wallet-adapter/blob/master/PACKAGES.md)
- [FAQ (Frequently Asked Questions)](https://github.com/anza-xyz/wallet-adapter/blob/master/FAQ.md)
- [Build from Source](https://github.com/anza-xyz/wallet-adapter/blob/master/BUILD.md)


![Wallets](wallets.png)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@solana/wallet-adapter",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"engines": {
"node": ">=16",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-base",
"version": "0.9.23",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-react",
"version": "0.15.35",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ describe('WalletProviderBase', () => {
renderTest({ adapter: fooWalletAdapter, onError: differentOnError });
});
it('does not cause state to be cleared when it changes', () => {
// Regression test for https://github.com/solana-labs/wallet-adapter/issues/636
// Regression test for https://github.com/anza-xyz/wallet-adapter/issues/636
expect(ref.current?.getWalletContextState()).toMatchObject({
connected: true,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/create-react-app-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-create-react-app-starter",
"version": "0.1.28",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-example",
"version": "0.18.34",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/material-ui-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-material-ui-starter",
"version": "0.13.30",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/nextjs-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-nextjs-starter",
"version": "0.8.30",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/react-ui-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-react-ui-starter",
"version": "0.9.31",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/ant-design/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `@solana/wallet-adapter-ant-design`

# Quick Setup (using Create-React-App with craco-less)
See the [example](https://github.com/solana-labs/wallet-adapter/tree/master/packages/example) package for more usage.
See the [example](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/example) package for more usage.

## Install

Expand Down Expand Up @@ -47,7 +47,7 @@ npm install --save \


## Usage
Check out usage in the [example](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/example) package.
Check out usage in the [example](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/example) package.

## Overrides

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/ant-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-ant-design",
"version": "0.11.32",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/base-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-base-ui",
"version": "0.1.2",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-material-ui",
"version": "0.16.34",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-react-ui",
"version": "0.9.35",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-alpha",
"version": "0.1.10",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/avana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-avana",
"version": "0.1.13",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/bitkeep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-bitkeep",
"version": "0.3.20",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/bitpie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-bitpie",
"version": "0.5.18",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/clover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-clover",
"version": "0.4.19",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/coin98/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@solana/wallet-adapter-coin98",
"version": "0.5.20",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"repository": "https://github.com/anza-xyz/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
Loading
Loading