Skip to content

Commit 9a45293

Browse files
authored
replace solana-labs/wallet-adapter with anza-xyz/wallet-adapter (#922)
1 parent 8669528 commit 9a45293

File tree

61 files changed

+86
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+86
-86
lines changed

.github/label-actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ use-wallet-standard:
3737
3838
3939
Thanks for your contribution. We are no longer accepting PRs of adapters for this type of wallet. You can
40-
[read about this policy here](https://github.com/solana-labs/wallet-adapter/blob/master/WALLET.md),
40+
[read about this policy here](https://github.com/anza-xyz/wallet-adapter/blob/master/WALLET.md),
4141
but more importantly, please check out
42-
[this guide for wallets](https://github.com/solana-labs/wallet-standard/blob/master/WALLET.md)
42+
[this guide for wallets](https://github.com/anza-xyz/wallet-standard/blob/master/WALLET.md)
4343
to implement the Wallet Standard.
4444
4545
@@ -48,14 +48,14 @@ use-wallet-standard:
4848
and looking at the reference implementations, if you have questions on how to do this, please open an issue here:
4949
5050
51-
https://github.com/solana-labs/wallet-standard
51+
https://github.com/anza-xyz/wallet-standard
5252
5353
5454
---
5555
5656
5757
_This
58-
[automated message](https://github.com/solana-labs/solana/blob/master/.github/label-actions.yml)
58+
[automated message](https://github.com/anza-xyz/wallet-adapter/blob/master/.github/label-actions.yml)
5959
is a result of having added the ‘use-wallet-standard’ tag_.
6060
6161
# Close the issue

APP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

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

5-
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.
5+
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.
66

77
## Quick Setup (using React UI)
88

9-
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.
9+
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.
1010

1111
### Install
1212

@@ -54,7 +54,7 @@ export const Wallet: FC = () => {
5454
* - Solana Mobile Stack Mobile Wallet Adapter Protocol
5555
* (https://github.com/solana-mobile/mobile-wallet-adapter)
5656
* - Solana Wallet Standard
57-
* (https://github.com/solana-labs/wallet-standard)
57+
* (https://github.com/anza-xyz/wallet-standard)
5858
*
5959
* If you wish to support a wallet that supports neither of those standards,
6060
* instantiate its legacy wallet adapter here. Common legacy adapters can be found

BUILD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ corepack prepare [email protected] --activate
1818

1919
### 1. Clone the project:
2020
```shell
21-
git clone https://github.com/solana-labs/wallet-adapter.git
21+
git clone https://github.com/anza-xyz/wallet-adapter.git
2222
```
2323

2424
### 2. Install dependencies:

FAQ.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@ Please search https://solana.stackexchange.com and the issues in the repo. Issue
1111

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

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

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

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

2020
## How can I get support?
2121

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

24-
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).
24+
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).
2525

2626
## Can I use this with ___?
2727

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

3131
### Anchor
32-
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).
32+
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).
3333

3434
### Next.js (with React)
35-
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.
35+
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.
3636

37-
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).
37+
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).
3838

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

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

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

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

89-
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.
89+
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.
9090

9191
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.
9292
Please open an issue or pull request to document your solution!
@@ -95,14 +95,14 @@ Please open an issue or pull request to document your solution!
9595

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

98-
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.
98+
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.
9999

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

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

104-
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.
105-
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).
104+
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.
105+
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).
106106

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

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

116-
Please see [issue #72](https://github.com/solana-labs/wallet-adapter/issues/72#issuecomment-919232595).
116+
Please see [issue #72](https://github.com/anza-xyz/wallet-adapter/issues/72#issuecomment-919232595).

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Modular TypeScript wallet adapters and components for Solana applications.
44

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

1313

1414
![Wallets](wallets.png)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "@solana/wallet-adapter",
44
"author": "Solana Maintainers <[email protected]>",
5-
"repository": "https://github.com/solana-labs/wallet-adapter",
5+
"repository": "https://github.com/anza-xyz/wallet-adapter",
66
"license": "Apache-2.0",
77
"engines": {
88
"node": ">=16",

packages/core/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@solana/wallet-adapter-base",
33
"version": "0.9.23",
44
"author": "Solana Maintainers <[email protected]>",
5-
"repository": "https://github.com/solana-labs/wallet-adapter",
5+
"repository": "https://github.com/anza-xyz/wallet-adapter",
66
"license": "Apache-2.0",
77
"publishConfig": {
88
"access": "public"

packages/core/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@solana/wallet-adapter-react",
33
"version": "0.15.35",
44
"author": "Solana Maintainers <[email protected]>",
5-
"repository": "https://github.com/solana-labs/wallet-adapter",
5+
"repository": "https://github.com/anza-xyz/wallet-adapter",
66
"license": "Apache-2.0",
77
"publishConfig": {
88
"access": "public"

packages/core/react/src/__tests__/WalletProviderBase-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe('WalletProviderBase', () => {
294294
renderTest({ adapter: fooWalletAdapter, onError: differentOnError });
295295
});
296296
it('does not cause state to be cleared when it changes', () => {
297-
// Regression test for https://github.com/solana-labs/wallet-adapter/issues/636
297+
// Regression test for https://github.com/anza-xyz/wallet-adapter/issues/636
298298
expect(ref.current?.getWalletContextState()).toMatchObject({
299299
connected: true,
300300
});

packages/starter/create-react-app-starter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@solana/wallet-adapter-create-react-app-starter",
33
"version": "0.1.28",
44
"author": "Solana Maintainers <[email protected]>",
5-
"repository": "https://github.com/solana-labs/wallet-adapter",
5+
"repository": "https://github.com/anza-xyz/wallet-adapter",
66
"license": "Apache-2.0",
77
"publishConfig": {
88
"access": "public"

0 commit comments

Comments
 (0)