diff --git a/README.md b/README.md index a91f7bcb0..2c1195ce7 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ import { SolletExtensionWalletAdapter, SolletWalletAdapter, TorusWalletAdapter, + KeystoneWalletAdapter, } from '@solana/wallet-adapter-wallets'; import { WalletModalProvider, @@ -84,6 +85,7 @@ export const Wallet: FC = () => { new SlopeWalletAdapter(), new SolflareWalletAdapter({ network }), new TorusWalletAdapter(), + new KeystoneWalletAdapter(), ], [network] ); @@ -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) | diff --git a/packages/starter/create-react-app-starter/config-overrides.js b/packages/starter/create-react-app-starter/config-overrides.js index c4aa8784d..36ae7a3dd 100644 --- a/packages/starter/create-react-app-starter/config-overrides.js +++ b/packages/starter/create-react-app-starter/config-overrides.js @@ -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/], diff --git a/packages/starter/create-react-app-starter/package.json b/packages/starter/create-react-app-starter/package.json index bb1a96b76..aacf79b43 100644 --- a/packages/starter/create-react-app-starter/package.json +++ b/packages/starter/create-react-app-starter/package.json @@ -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" diff --git a/packages/starter/create-react-app-starter/src/App.tsx b/packages/starter/create-react-app-starter/src/App.tsx index afd87e5a2..4a3d87f72 100644 --- a/packages/starter/create-react-app-starter/src/App.tsx +++ b/packages/starter/create-react-app-starter/src/App.tsx @@ -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'; @@ -40,6 +41,7 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => { new SlopeWalletAdapter(), new SolflareWalletAdapter({ network }), new TorusWalletAdapter(), + new KeystoneWalletAdapter() ], [network] ); diff --git a/packages/starter/example/components/ContextProvider.tsx b/packages/starter/example/components/ContextProvider.tsx index d55427334..9f9e095bc 100644 --- a/packages/starter/example/components/ContextProvider.tsx +++ b/packages/starter/example/components/ContextProvider.tsx @@ -11,6 +11,7 @@ import { SlopeWalletAdapter, SolflareWalletAdapter, TorusWalletAdapter, + KeystoneWalletAdapter, WalletConnectWalletAdapter, } from '@solana/wallet-adapter-wallets'; import { clusterApiUrl } from '@solana/web3.js'; @@ -85,6 +86,7 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => { }, }, }), + new KeystoneWalletAdapter(), ], [network] ); diff --git a/packages/starter/react-ui-starter/src/App.tsx b/packages/starter/react-ui-starter/src/App.tsx index ecea34cb6..b55d0d060 100644 --- a/packages/starter/react-ui-starter/src/App.tsx +++ b/packages/starter/react-ui-starter/src/App.tsx @@ -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'; @@ -36,6 +37,7 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => { new SlopeWalletAdapter(), new SolflareWalletAdapter({ network }), new TorusWalletAdapter(), + new KeystoneWalletAdapter() ], [network] ); diff --git a/wallets.png b/wallets.png index e2a002342..a1f00ed48 100644 Binary files a/wallets.png and b/wallets.png differ