Skip to content

Commit

Permalink
Update starter packages to support Keystone wallet adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomengru2015 committed May 31, 2022
1 parent 6982c03 commit 8a14bef
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
SolletExtensionWalletAdapter,
SolletWalletAdapter,
TorusWalletAdapter,
KeystoneWalletAdapter,
} from '@solana/wallet-adapter-wallets';
import {
WalletModalProvider,
Expand Down Expand Up @@ -84,6 +85,7 @@ export const Wallet: FC = () => {
new SlopeWalletAdapter(),
new SolflareWalletAdapter({ network }),
new TorusWalletAdapter(),
new KeystoneWalletAdapter(),
],
[network]
);
Expand Down Expand Up @@ -166,6 +168,7 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
| [exodus](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/exodus) | Adapter for [Exodus](https://exodus.com) | [`@solana/wallet-adapter-exodus`](https://npmjs.com/package/@solana/wallet-adapter-exodus) |
| [glow](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/glow) | Adapter for [Glow](https://glow.app) | [`@solana/wallet-adapter-glow`](https://npmjs.com/package/@solana/wallet-adapter-glow) |
| [huobi](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/huobi) | Adapter for [HuobiWallet](https://www.huobiwallet.io) | [`@solana/wallet-adapter-huobi`](https://npmjs.com/package/@solana/wallet-adapter-huobi) |
| [keystone](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/keystone) | Adapter for [keystone](https://keyst.one) | [`@solana/wallet-adapter-keystone`](https://npmjs.com/package/@solana/wallet-adapter-keystone) |
| [ledger](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/ledger) | Adapter for [Ledger](https://ledger.com) | [`@solana/wallet-adapter-ledger`](https://npmjs.com/package/@solana/wallet-adapter-ledger) |
| [mathwallet](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/mathwallet) | Adapter for [MathWallet](https://mathwallet.org) | [`@solana/wallet-adapter-mathwallet`](https://npmjs.com/package/@solana/wallet-adapter-mathwallet) |
| [phantom](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/phantom) | Adapter for [Phantom](https://phantom.app) | [`@solana/wallet-adapter-phantom`](https://npmjs.com/package/@solana/wallet-adapter-phantom) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = function (config, env) {
assert: require.resolve('assert'),
buffer: require.resolve('buffer'),
stream: require.resolve('stream-browserify'),
crypto: require.resolve("crypto-browserify")
},
},
ignoreWarnings: [/Failed to parse source map/],
Expand Down
1 change: 1 addition & 0 deletions packages/starter/create-react-app-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@solana/wallet-adapter-react-ui": "^0.9.5",
"@solana/wallet-adapter-wallets": "^0.16.0",
"@solana/web3.js": "^1.36.0",
"crypto-browserify": "^3.12.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"web-vitals": "^2.1.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/starter/create-react-app-starter/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
SlopeWalletAdapter,
SolflareWalletAdapter,
TorusWalletAdapter,
KeystoneWalletAdapter,
} from '@solana/wallet-adapter-wallets';
import { clusterApiUrl } from '@solana/web3.js';
import React, { FC, ReactNode, useMemo } from 'react';
Expand Down Expand Up @@ -40,6 +41,7 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
new SlopeWalletAdapter(),
new SolflareWalletAdapter({ network }),
new TorusWalletAdapter(),
new KeystoneWalletAdapter()
],
[network]
);
Expand Down
2 changes: 2 additions & 0 deletions packages/starter/example/components/ContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
SlopeWalletAdapter,
SolflareWalletAdapter,
TorusWalletAdapter,
KeystoneWalletAdapter,
WalletConnectWalletAdapter,
} from '@solana/wallet-adapter-wallets';
import { clusterApiUrl } from '@solana/web3.js';
Expand Down Expand Up @@ -85,6 +86,7 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => {
},
},
}),
new KeystoneWalletAdapter(),
],
[network]
);
Expand Down
2 changes: 2 additions & 0 deletions packages/starter/react-ui-starter/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
SlopeWalletAdapter,
SolflareWalletAdapter,
TorusWalletAdapter,
KeystoneWalletAdapter,
} from '@solana/wallet-adapter-wallets';
import { clusterApiUrl } from '@solana/web3.js';
import React, { FC, ReactNode, useMemo } from 'react';
Expand Down Expand Up @@ -36,6 +37,7 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
new SlopeWalletAdapter(),
new SolflareWalletAdapter({ network }),
new TorusWalletAdapter(),
new KeystoneWalletAdapter()
],
[network]
);
Expand Down
Binary file modified wallets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a14bef

Please sign in to comment.