Przeglądaj źródła

Merge branch 'master' into rsrbk/trust

Jordan Sexton 3 lat temu
rodzic
commit
ecaba8e59e
79 zmienionych plików z 1178 dodań i 564 usunięć
  1. 1 9
      FAQ.md
  2. 11 14
      README.md
  3. 15 10
      package.json
  4. 1 1
      packages/core/base/package.json
  5. 1 2
      packages/core/base/src/adapter.ts
  6. 6 6
      packages/core/react/package.json
  7. 6 7
      packages/starter/create-react-app-starter/package.json
  8. 11 21
      packages/starter/create-react-app-starter/src/App.tsx
  9. 11 21
      packages/starter/example/components/ContextProvider.tsx
  10. 11 12
      packages/starter/example/package.json
  11. 14 15
      packages/starter/material-ui-starter/package.json
  12. 11 21
      packages/starter/material-ui-starter/src/App.tsx
  13. 6 7
      packages/starter/nextjs-starter/package.json
  14. 11 21
      packages/starter/nextjs-starter/pages/_app.tsx
  15. 11 12
      packages/starter/react-ui-starter/package.json
  16. 11 21
      packages/starter/react-ui-starter/src/App.tsx
  17. 4 4
      packages/ui/ant-design/package.json
  18. 4 4
      packages/ui/material-ui/package.json
  19. 3 3
      packages/ui/react-ui/package.json
  20. 1 1
      packages/wallets/backpack/package.json
  21. 1 1
      packages/wallets/bitkeep/package.json
  22. 1 1
      packages/wallets/bitpie/package.json
  23. 1 1
      packages/wallets/blocto/package.json
  24. 1 1
      packages/wallets/brave/package.json
  25. 2 0
      packages/wallets/brave/src/adapter.ts
  26. 1 1
      packages/wallets/clover/package.json
  27. 1 1
      packages/wallets/coin98/package.json
  28. 1 1
      packages/wallets/coinbase/package.json
  29. 2 0
      packages/wallets/coinbase/src/adapter.ts
  30. 1 1
      packages/wallets/coinhub/package.json
  31. 1 1
      packages/wallets/exodus/package.json
  32. 2 0
      packages/wallets/exodus/src/adapter.ts
  33. 1 0
      packages/wallets/fake/.gitignore
  34. 1 0
      packages/wallets/fake/.prettierignore
  35. 202 0
      packages/wallets/fake/LICENSE
  36. 5 0
      packages/wallets/fake/README.md
  37. 37 0
      packages/wallets/fake/package.json
  38. 57 0
      packages/wallets/fake/src/adapter.ts
  39. 1 0
      packages/wallets/fake/src/index.ts
  40. 10 0
      packages/wallets/fake/tsconfig.cjs.json
  41. 9 0
      packages/wallets/fake/tsconfig.json
  42. 1 1
      packages/wallets/glow/package.json
  43. 2 0
      packages/wallets/glow/src/adapter.ts
  44. 1 1
      packages/wallets/huobi/package.json
  45. 1 1
      packages/wallets/hyperpay/package.json
  46. 1 1
      packages/wallets/keystone/package.json
  47. 1 1
      packages/wallets/krystal/package.json
  48. 7 3
      packages/wallets/ledger/package.json
  49. 1 0
      packages/wallets/magiceden/.gitignore
  50. 1 0
      packages/wallets/magiceden/.prettierignore
  51. 202 0
      packages/wallets/magiceden/LICENSE
  52. 5 0
      packages/wallets/magiceden/README.md
  53. 38 0
      packages/wallets/magiceden/package.json
  54. 56 0
      packages/wallets/magiceden/src/adapter.ts
  55. 1 0
      packages/wallets/magiceden/src/index.ts
  56. 10 0
      packages/wallets/magiceden/tsconfig.cjs.json
  57. 9 0
      packages/wallets/magiceden/tsconfig.json
  58. 1 1
      packages/wallets/mathwallet/package.json
  59. 1 1
      packages/wallets/neko/package.json
  60. 1 1
      packages/wallets/nightly/package.json
  61. 1 1
      packages/wallets/nufi/package.json
  62. 1 1
      packages/wallets/phantom/package.json
  63. 3 2
      packages/wallets/phantom/src/adapter.ts
  64. 1 1
      packages/wallets/safepal/package.json
  65. 1 1
      packages/wallets/saifu/package.json
  66. 2 0
      packages/wallets/saifu/src/adapter.ts
  67. 3 3
      packages/wallets/salmon/package.json
  68. 1 1
      packages/wallets/sky/package.json
  69. 2 0
      packages/wallets/sky/src/adapter.ts
  70. 1 1
      packages/wallets/slope/package.json
  71. 1 1
      packages/wallets/solflare/package.json
  72. 1 1
      packages/wallets/sollet/package.json
  73. 1 1
      packages/wallets/solong/package.json
  74. 1 1
      packages/wallets/spot/package.json
  75. 1 1
      packages/wallets/tokenpocket/package.json
  76. 2 2
      packages/wallets/torus/package.json
  77. 2 0
      packages/wallets/wallets/package.json
  78. 2 0
      packages/wallets/wallets/src/index.ts
  79. 323 314
      yarn.lock

+ 1 - 9
FAQ.md

@@ -99,15 +99,7 @@ Please see [issue #72](https://github.com/solana-labs/wallet-adapter/issues/72#i
 
 ## How can I sign and verify messages?
 
-Some wallet adapters provide a `signMessage` method for signing arbitrary bytes:
-
-- [Coinbase](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/coinbase)
-- [Exodus](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/exodus)
-- [Glow](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/glow)
-- [Phantom](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/phantom)
-- [Solflare](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/solflare)
-- [Slope](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/slope)
-- [TokenPocket](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/tokenpocket)
+Some wallet adapters provide a `signMessage` method for signing arbitrary bytes.
 
 The signature string returned by this method can be verified using [tweetnacl-js](https://github.com/dchest/tweetnacl-js/blob/master/README.md#naclsigndetachedverifymessage-signature-publickey) using the public key from the adapter.
 

+ 11 - 14
README.md

@@ -77,23 +77,19 @@ export const Wallet: FC = () => {
     // You can also provide a custom RPC endpoint.
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded.
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Solana Wallet Adapter App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new CoinbaseWalletAdapter(),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     return (
@@ -180,6 +176,7 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
 | [hyperpay](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/hyperpay)       | Adapter for [HyperPay](https://hyperpay.io)           | [`@solana/wallet-adapter-hyperpay`](https://npmjs.com/package/@solana/wallet-adapter-hyperpay)       |
  | [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)           |
+| [magiceden](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/magiceden)   | Adapter for [Magic Eden](https://magiceden.io)      | [`@solana/wallet-adapter-magiceden`](https://npmjs.com/package/@solana/wallet-adapter-magiceden)   |
 | [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)   |
 | [neko](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/neko)               | Adapter for [Neko](https://nekowallet.com)            | [`@solana/wallet-adapter-neko`](https://npmjs.com/package/@solana/wallet-adapter-neko)               |
 | [nightly](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/nightly)         | Adapter for [Nightly](https://nightly.app)            | [`@solana/wallet-adapter-nightly`](https://npmjs.com/package/@solana/wallet-adapter-nightly)         |

+ 15 - 10
package.json

@@ -31,26 +31,31 @@
         "nuke": "shx rm -rf {.,packages/*/*}/{node_modules,yarn.lock}"
     },
     "devDependencies": {
-        "@babel/eslint-parser": "^7.16.5",
-        "@types/eslint": "^8.2.1",
+        "@babel/eslint-parser": "^7.18.9",
+        "@types/eslint": "^8.4.5",
         "@types/eslint-plugin-prettier": "^3.1.0",
-        "@types/node": "^18.0.0",
-        "@types/prettier": "^2.4.2",
-        "@typescript-eslint/eslint-plugin": "^5.14.0",
-        "@typescript-eslint/parser": "^5.14.0",
+        "@types/node": "^18.6.3",
+        "@types/prettier": "^2.6.4",
+        "@typescript-eslint/eslint-plugin": "^5.32.0",
+        "@typescript-eslint/parser": "^5.32.0",
         "babel-eslint": "^10.1.0",
-        "eslint": "^8.11.0",
+        "eslint": "^8.21.0",
         "eslint-config-prettier": "^8.5.0",
         "eslint-config-react-app": "^7.0.0",
-        "eslint-plugin-prettier": "^4.0.0",
+        "eslint-plugin-prettier": "^4.2.1",
         "gh-pages": "^4.0.0",
-        "lerna": "^5.1.6",
+        "lerna": "^5.3.0",
         "prettier": "^2.5.1",
         "shx": "^0.3.3",
         "tsc-esm": "^1.0.4",
         "tslib": "^2.3.0",
-        "typedoc": "^0.23.1",
+        "typedoc": "^0.23.10",
         "typescript": "^4.6.2",
         "typescript-esm": "^2.0.0"
+    },
+    "resolutions": {
+        "@ledgerhq/devices": "6.27.1",
+        "@ledgerhq/hw-transport": "6.27.1",
+        "@ledgerhq/hw-transport-webhid": "6.27.1"
     }
 }

+ 1 - 1
packages/core/base/package.json

@@ -36,7 +36,7 @@
         "eventemitter3": "^4.0.0"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 2
packages/core/base/src/adapter.ts

@@ -94,8 +94,7 @@ export abstract class BaseWalletAdapter extends EventEmitter<WalletAdapterEvents
         if (!publicKey) throw new WalletNotConnectedError();
 
         transaction.feePayer = transaction.feePayer || publicKey;
-        transaction.recentBlockhash =
-            transaction.recentBlockhash || (await connection.getLatestBlockhash('confirmed')).blockhash;
+        transaction.recentBlockhash = transaction.recentBlockhash || (await connection.getLatestBlockhash()).blockhash;
 
         return transaction;
     }

+ 6 - 6
packages/core/react/package.json

@@ -38,14 +38,14 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
-        "@types/jest": "^28.1.3",
-        "@types/react": "^18.0.0",
-        "jest": "^28.1.1",
-        "jest-environment-jsdom": "^28.1.2",
+        "@solana/web3.js": "^1.50.1",
+        "@types/jest": "^28.1.6",
+        "@types/react": "^18.0.15",
+        "jest": "^28.1.3",
+        "jest-environment-jsdom": "^28.1.3",
         "jest-localstorage-mock": "^2.4.18",
         "react": "^18.0.0",
-        "ts-jest": "^28.0.5"
+        "ts-jest": "^28.0.7"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 6 - 7
packages/starter/create-react-app-starter/package.json

@@ -18,12 +18,11 @@
         "tsconfig.json"
     ],
     "dependencies": {
-        "@solana-mobile/wallet-adapter-mobile": "^0.0.1-alpha.0",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-react": "^0.15.8",
         "@solana/wallet-adapter-react-ui": "^0.9.10",
         "@solana/wallet-adapter-wallets": "^0.17.0",
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "react": "^18.0.0",
         "react-dom": "^18.0.0",
         "web-vitals": "^2.1.4"
@@ -31,11 +30,11 @@
     "devDependencies": {
         "@testing-library/jest-dom": "^5.16.2",
         "@testing-library/react": "^13.3.0",
-        "@testing-library/user-event": "^14.2.1",
-        "@types/jest": "^28.1.3",
-        "@types/node": "^18.0.0",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
+        "@testing-library/user-event": "^14.4.1",
+        "@types/jest": "^28.1.6",
+        "@types/node": "^18.6.3",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
         "process": "^0.11.10",
         "react-app-rewired": "^2.1.11",
         "react-scripts": "^5.0.0",

+ 11 - 21
packages/starter/create-react-app-starter/src/App.tsx

@@ -1,14 +1,7 @@
-import { createDefaultAuthorizationResultCache, SolanaMobileWalletAdapter } from '@solana-mobile/wallet-adapter-mobile';
 import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
 import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
 import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
-import {
-    GlowWalletAdapter,
-    PhantomWalletAdapter,
-    SlopeWalletAdapter,
-    SolflareWalletAdapter,
-    TorusWalletAdapter,
-} from '@solana/wallet-adapter-wallets';
+import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
 import { clusterApiUrl } from '@solana/web3.js';
 import React, { FC, ReactNode, useMemo } from 'react';
 
@@ -31,22 +24,19 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
     // You can also provide a custom RPC endpoint.
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded.
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Solana Create React App Starter App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     return (

+ 11 - 21
packages/starter/example/components/ContextProvider.tsx

@@ -1,19 +1,12 @@
 import { createTheme, StyledEngineProvider, ThemeProvider } from '@mui/material';
 import { deepPurple, pink } from '@mui/material/colors';
-import { createDefaultAuthorizationResultCache, SolanaMobileWalletAdapter } from '@solana-mobile/wallet-adapter-mobile';
 import { WalletModalProvider as AntDesignWalletModalProvider } from '@solana/wallet-adapter-ant-design';
 import type { WalletError } from '@solana/wallet-adapter-base';
 import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
 import { WalletDialogProvider as MaterialUIWalletDialogProvider } from '@solana/wallet-adapter-material-ui';
 import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
 import { WalletModalProvider as ReactUIWalletModalProvider } from '@solana/wallet-adapter-react-ui';
-import {
-    GlowWalletAdapter,
-    PhantomWalletAdapter,
-    SlopeWalletAdapter,
-    SolflareWalletAdapter,
-    TorusWalletAdapter,
-} from '@solana/wallet-adapter-wallets';
+import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
 import { clusterApiUrl } from '@solana/web3.js';
 import { SnackbarProvider, useSnackbar } from 'notistack';
 import type { FC, ReactNode } from 'react';
@@ -64,22 +57,19 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => {
     // You can also provide a custom RPC endpoint
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Solana Wallet Adapter Example App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     const { enqueueSnackbar } = useSnackbar();

+ 11 - 12
packages/starter/example/package.json

@@ -28,32 +28,31 @@
     },
     "dependencies": {
         "@ant-design/icons": "^4.0.0",
-        "@emotion/react": "^11.9.3",
-        "@emotion/styled": "^11.9.3",
+        "@emotion/react": "^11.10.0",
+        "@emotion/styled": "^11.10.0",
         "@mui/icons-material": "^5.8.4",
-        "@mui/material": "^5.8.4",
-        "@solana-mobile/wallet-adapter-mobile": "^0.0.1-alpha.0",
+        "@mui/material": "^5.9.3",
         "@solana/wallet-adapter-ant-design": "^0.11.8",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-material-ui": "^0.16.9",
         "@solana/wallet-adapter-react": "^0.15.8",
         "@solana/wallet-adapter-react-ui": "^0.9.10",
         "@solana/wallet-adapter-wallets": "^0.17.0",
-        "@solana/web3.js": "^1.44.3",
-        "antd": "^4.19.1",
+        "@solana/web3.js": "^1.50.1",
+        "antd": "^4.22.3",
         "bs58": "^4.0.1",
-        "next": "^12.1.0",
+        "next": "^12.2.3",
         "notistack": "^2.0.3",
         "react": "^18.0.0",
         "react-dom": "^18.0.0",
         "tweetnacl": "^1.0.3"
     },
     "devDependencies": {
-        "@types/node": "^18.0.0",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
-        "eslint": "^8.11.0",
-        "eslint-config-next": "^12.1.0",
+        "@types/node": "^18.6.3",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
+        "eslint": "^8.21.0",
+        "eslint-config-next": "^12.2.3",
         "next-compose-plugins": "^2.2.1",
         "next-plugin-antd-less": "^1.8.0",
         "shx": "^0.3.3",

+ 14 - 15
packages/starter/material-ui-starter/package.json

@@ -29,35 +29,34 @@
         "nuke": "shx rm -rf node_modules yarn.lock"
     },
     "dependencies": {
-        "@emotion/react": "^11.9.3",
-        "@emotion/styled": "^11.9.3",
+        "@emotion/react": "^11.10.0",
+        "@emotion/styled": "^11.10.0",
         "@mui/icons-material": "^5.8.4",
-        "@mui/material": "^5.8.4",
-        "@solana-mobile/wallet-adapter-mobile": "^0.0.1-alpha.0",
+        "@mui/material": "^5.9.3",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-material-ui": "^0.16.9",
         "@solana/wallet-adapter-react": "^0.15.8",
         "@solana/wallet-adapter-wallets": "^0.17.0",
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "notistack": "^2.0.0",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },
     "devDependencies": {
-        "@types/eslint": "^8.2.2",
+        "@types/eslint": "^8.4.5",
         "@types/eslint-plugin-prettier": "^3.1.0",
-        "@types/node": "^18.0.0",
-        "@types/prettier": "^2.4.3",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
-        "@typescript-eslint/eslint-plugin": "^5.14.0",
-        "@typescript-eslint/parser": "^5.14.0",
-        "eslint": "^8.11.0",
+        "@types/node": "^18.6.3",
+        "@types/prettier": "^2.6.4",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
+        "@typescript-eslint/eslint-plugin": "^5.32.0",
+        "@typescript-eslint/parser": "^5.32.0",
+        "eslint": "^8.21.0",
         "eslint-config-prettier": "^8.5.0",
-        "eslint-plugin-prettier": "^4.0.0",
+        "eslint-plugin-prettier": "^4.2.1",
         "eslint-plugin-react": "^7.29.3",
         "eslint-plugin-react-hooks": "^4.3.0",
-        "parcel": "^2.3.2",
+        "parcel": "^2.7.0",
         "prettier": "^2.5.1",
         "shx": "^0.3.4",
         "tslib": "^2.3.1",

+ 11 - 21
packages/starter/material-ui-starter/src/App.tsx

@@ -1,14 +1,7 @@
-import { createDefaultAuthorizationResultCache, SolanaMobileWalletAdapter } from '@solana-mobile/wallet-adapter-mobile';
 import { WalletAdapterNetwork, WalletError } from '@solana/wallet-adapter-base';
 import { WalletDialogProvider, WalletMultiButton } from '@solana/wallet-adapter-material-ui';
 import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
-import {
-    GlowWalletAdapter,
-    PhantomWalletAdapter,
-    SlopeWalletAdapter,
-    SolflareWalletAdapter,
-    TorusWalletAdapter,
-} from '@solana/wallet-adapter-wallets';
+import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
 import { clusterApiUrl } from '@solana/web3.js';
 import { useSnackbar } from 'notistack';
 import React, { FC, ReactNode, useCallback, useMemo } from 'react';
@@ -31,22 +24,19 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
     // You can also provide a custom RPC endpoint.
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded.
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Material UI Starter App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     const { enqueueSnackbar } = useSnackbar();

+ 6 - 7
packages/starter/nextjs-starter/package.json

@@ -26,21 +26,20 @@
         "lint": "next lint"
     },
     "dependencies": {
-        "@solana-mobile/wallet-adapter-mobile": "^0.0.1-alpha.0",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-react": "^0.15.8",
         "@solana/wallet-adapter-react-ui": "^0.9.10",
         "@solana/wallet-adapter-wallets": "^0.17.0",
-        "next": "^12.1.0",
+        "next": "^12.2.3",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },
     "devDependencies": {
-        "@types/node": "^18.0.0",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
-        "eslint": "^8.11.0",
-        "eslint-config-next": "^12.0.7",
+        "@types/node": "^18.6.3",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
+        "eslint": "^8.21.0",
+        "eslint-config-next": "^12.2.3",
         "shx": "^0.3.3",
         "typescript": "^4.6.2"
     },

+ 11 - 21
packages/starter/nextjs-starter/pages/_app.tsx

@@ -1,14 +1,7 @@
-import { createDefaultAuthorizationResultCache, SolanaMobileWalletAdapter } from '@solana-mobile/wallet-adapter-mobile';
 import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
 import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
 import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
-import {
-    GlowWalletAdapter,
-    PhantomWalletAdapter,
-    SlopeWalletAdapter,
-    SolflareWalletAdapter,
-    TorusWalletAdapter,
-} from '@solana/wallet-adapter-wallets';
+import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
 import { clusterApiUrl } from '@solana/web3.js';
 import type { AppProps } from 'next/app';
 import type { FC } from 'react';
@@ -25,22 +18,19 @@ const App: FC<AppProps> = ({ Component, pageProps }) => {
     // You can also provide a custom RPC endpoint
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Solana Next.js Starter App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     return (

+ 11 - 12
packages/starter/react-ui-starter/package.json

@@ -29,30 +29,29 @@
         "nuke": "shx rm -rf node_modules yarn.lock"
     },
     "dependencies": {
-        "@solana-mobile/wallet-adapter-mobile": "^0.0.1-alpha.0",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-react": "^0.15.8",
         "@solana/wallet-adapter-react-ui": "^0.9.10",
         "@solana/wallet-adapter-wallets": "^0.17.0",
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },
     "devDependencies": {
-        "@types/eslint": "^8.2.2",
+        "@types/eslint": "^8.4.5",
         "@types/eslint-plugin-prettier": "^3.1.0",
-        "@types/node": "^18.0.0",
-        "@types/prettier": "^2.4.3",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
-        "@typescript-eslint/eslint-plugin": "^5.14.0",
-        "@typescript-eslint/parser": "^5.14.0",
-        "eslint": "^8.11.0",
+        "@types/node": "^18.6.3",
+        "@types/prettier": "^2.6.4",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
+        "@typescript-eslint/eslint-plugin": "^5.32.0",
+        "@typescript-eslint/parser": "^5.32.0",
+        "eslint": "^8.21.0",
         "eslint-config-prettier": "^8.5.0",
-        "eslint-plugin-prettier": "^4.0.0",
+        "eslint-plugin-prettier": "^4.2.1",
         "eslint-plugin-react": "^7.29.3",
         "eslint-plugin-react-hooks": "^4.3.0",
-        "parcel": "^2.3.2",
+        "parcel": "^2.7.0",
         "prettier": "^2.5.1",
         "shx": "^0.3.4",
         "tslib": "^2.3.1",

+ 11 - 21
packages/starter/react-ui-starter/src/App.tsx

@@ -1,14 +1,7 @@
-import { createDefaultAuthorizationResultCache, SolanaMobileWalletAdapter } from '@solana-mobile/wallet-adapter-mobile';
 import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
 import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
 import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
-import {
-    GlowWalletAdapter,
-    PhantomWalletAdapter,
-    SlopeWalletAdapter,
-    SolflareWalletAdapter,
-    TorusWalletAdapter,
-} from '@solana/wallet-adapter-wallets';
+import { FakeWalletAdapter } from '@solana/wallet-adapter-wallets';
 import { clusterApiUrl } from '@solana/web3.js';
 import React, { FC, ReactNode, useMemo } from 'react';
 
@@ -27,22 +20,19 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
     // You can also provide a custom RPC endpoint.
     const endpoint = useMemo(() => clusterApiUrl(network), [network]);
 
-    // @solana/wallet-adapter-wallets includes all the adapters but supports tree shaking and lazy loading --
-    // Only the wallets you configure here will be compiled into your application, and only the dependencies
-    // of wallets that your users connect to will be loaded.
     const wallets = useMemo(
         () => [
-            new SolanaMobileWalletAdapter({
-                appIdentity: { name: 'Solana React UI Starter App' },
-                authorizationResultCache: createDefaultAuthorizationResultCache(),
-            }),
-            new PhantomWalletAdapter(),
-            new GlowWalletAdapter(),
-            new SlopeWalletAdapter(),
-            new SolflareWalletAdapter({ network }),
-            new TorusWalletAdapter(),
+            /**
+             * Select the wallets you wish to support, by instantiating wallet adapters here.
+             *
+             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
+             * That package supports tree shaking and lazy loading -- only the wallets you import
+             * will be compiled into your application, and only the dependencies of wallets that
+             * your users connect to will be loaded.
+             */
+            new FakeWalletAdapter(),
         ],
-        [network]
+        []
     );
 
     return (

+ 4 - 4
packages/ui/ant-design/package.json

@@ -39,12 +39,12 @@
         "@ant-design/icons": "^4.0.0",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-react": "^0.15.8",
-        "antd": "^4.19.1"
+        "antd": "^4.22.3"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
+        "@solana/web3.js": "^1.50.1",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },

+ 4 - 4
packages/ui/material-ui/package.json

@@ -33,14 +33,14 @@
     },
     "dependencies": {
         "@mui/icons-material": "^5.8.4",
-        "@mui/material": "^5.8.4",
+        "@mui/material": "^5.9.3",
         "@solana/wallet-adapter-base": "^0.9.9",
         "@solana/wallet-adapter-react": "^0.15.8"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
+        "@solana/web3.js": "^1.50.1",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },

+ 3 - 3
packages/ui/react-ui/package.json

@@ -40,9 +40,9 @@
         "@solana/wallet-adapter-react": "^0.15.8"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
-        "@types/react": "^18.0.0",
-        "@types/react-dom": "^18.0.0",
+        "@solana/web3.js": "^1.50.1",
+        "@types/react": "^18.0.15",
+        "@types/react-dom": "^18.0.6",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
     },

+ 1 - 1
packages/wallets/backpack/package.json

@@ -33,6 +33,6 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 1 - 1
packages/wallets/bitkeep/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/bitpie/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/blocto/package.json

@@ -34,7 +34,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/brave/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/brave/src/adapter.ts

@@ -170,6 +170,8 @@ export class BraveWalletAdapter extends BaseMessageSignerWalletAdapter {
                 const { signers, ...sendOptions } = options;
                 signers?.length && transaction.partialSign(...signers);
 
+                sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                 const { signature } = await wallet.signAndSendTransaction(transaction, sendOptions);
                 return signature;
             } catch (error: any) {

+ 1 - 1
packages/wallets/clover/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/coin98/package.json

@@ -34,7 +34,7 @@
         "bs58": "^4.0.1"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/bs58": "^4.0.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"

+ 1 - 1
packages/wallets/coinbase/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/coinbase/src/adapter.ts

@@ -165,6 +165,8 @@ export class CoinbaseWalletAdapter extends BaseMessageSignerWalletAdapter {
                 const { signers, ...sendOptions } = options;
                 signers?.length && transaction.partialSign(...signers);
 
+                sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                 const { signature } = await wallet.signAndSendTransaction(transaction, sendOptions);
                 return signature;
             } catch (error: any) {

+ 1 - 1
packages/wallets/coinhub/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/exodus/package.json

@@ -32,7 +32,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/exodus/src/adapter.ts

@@ -172,6 +172,8 @@ export class ExodusWalletAdapter extends BaseMessageSignerWalletAdapter {
                 const { signers, ...sendOptions } = options;
                 signers?.length && transaction.partialSign(...signers);
 
+                sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                 const { signature } = await wallet.signAndSendTransaction(transaction, sendOptions);
                 return signature;
             } catch (error: any) {

+ 1 - 0
packages/wallets/fake/.gitignore

@@ -0,0 +1 @@
+lib

+ 1 - 0
packages/wallets/fake/.prettierignore

@@ -0,0 +1 @@
+lib

+ 202 - 0
packages/wallets/fake/LICENSE

@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

+ 5 - 0
packages/wallets/fake/README.md

@@ -0,0 +1,5 @@
+# `@solana/wallet-adapter-fake`
+
+This is the default wallet adapter used in the starter packs. This wallet adapter plugin implements the interface, but does not actually sign or send messages.
+
+See https://github.com/solana-labs/wallet-adapter#usage for an example of how to configure your app for compatibility with a list of wallets of your choosing.

+ 37 - 0
packages/wallets/fake/package.json

@@ -0,0 +1,37 @@
+{
+    "name": "@solana/wallet-adapter-fake",
+    "version": "0.0.0",
+    "author": "Solana Maintainers <maintainers@solana.foundation>",
+    "repository": "https://github.com/solana-labs/wallet-adapter",
+    "license": "Apache-2.0",
+    "type": "module",
+    "sideEffects": false,
+    "main": "lib/cjs/index.js",
+    "module": "lib/esm/index.mjs",
+    "types": "lib/types/index.d.ts",
+    "exports": {
+        "import": "./lib/esm/index.mjs",
+        "require": "./lib/cjs/index.js"
+    },
+    "files": [
+        "lib",
+        "LICENSE"
+    ],
+    "publishConfig": {
+        "access": "public"
+    },
+    "scripts": {
+        "clean": "shx rm -rf lib/*",
+        "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
+        "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
+    },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.44.3"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.9"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

+ 57 - 0
packages/wallets/fake/src/adapter.ts

@@ -0,0 +1,57 @@
+import { BaseWalletAdapter, SendTransactionOptions, WalletName, WalletReadyState } from '@solana/wallet-adapter-base';
+import { Connection, PublicKey, Transaction, TransactionSignature } from '@solana/web3.js';
+
+export const FakeWalletName = 'Fake Wallet' as WalletName<'Fake Wallet'>;
+
+export class FakeWalletAdapter extends BaseWalletAdapter {
+    name = FakeWalletName;
+    url = 'https://github.com/solana-labs/wallet-adapter#usage';
+    icon =
+        'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxMC42djIuN2wtOS41IDE2LjVoLTQuNmw2LTEwLjVhMi4xIDIuMSAwIDEgMCAyLTMuNGw0LjgtOC4zYTQgNCAwIDAgMSAxLjMgM1ptLTQuMyAxOS4xaC0uNmw0LjktOC40djQuMmMwIDIuMy0yIDQuMy00LjMgNC4zWm0yLTI4LjRjLS4zLS44LTEtMS4zLTItMS4zaC0xLjlsLTIuNCA0LjNIMzBsMS43LTNabS0zIDVoLTQuNkwxMC42IDI5LjhoNC43TDI4LjggNi40Wk0xOC43IDBoNC42bC0yLjUgNC4zaC00LjZMMTguNiAwWk0xNSA2LjRoNC42TDYgMjkuOEg0LjJjLS44IDAtMS43LS4zLTIuNC0uOEwxNSA2LjRaTTE0IDBIOS40TDcgNC4zaDQuNkwxNCAwWm0tMy42IDYuNEg1LjdMMCAxNi4ydjhMMTAuMyA2LjRaTTQuMyAwaC40TDAgOC4ydi00QzAgMiAxLjkgMCA0LjMgMFoiIGZpbGw9IiM5OTQ1RkYiLz48L3N2Zz4=';
+
+    _publicKey: PublicKey | null = null;
+
+    constructor() {
+        super();
+        console.warn(
+            'Your application is presently configured to use the `FakeWalletAdapter`. ' +
+                'Find and remove it, then replace it with a list of adapters for ' +
+                'wallets you would like your application to support. See ' +
+                'https://github.com/solana-labs/wallet-adapter#usage for an example.'
+        );
+    }
+
+    get connecting() {
+        return false;
+    }
+
+    get publicKey() {
+        return this._publicKey;
+    }
+
+    get readyState() {
+        return WalletReadyState.Installed;
+    }
+
+    async connect(): Promise<void> {
+        this._publicKey = PublicKey.default;
+        this.emit('connect', this._publicKey);
+    }
+
+    async disconnect(): Promise<void> {
+        this.emit('disconnect');
+    }
+
+    async sendTransaction(
+        _transaction: Transaction,
+        _connection: Connection,
+        _options: SendTransactionOptions
+    ): Promise<TransactionSignature> {
+        console.debug(
+            'FakeWallet: `sendTransaction()` was called. ' +
+                'Transaction was not actually sent to the network. ' +
+                'Returning `itsFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFake` as the signature.'
+        );
+        return 'itsFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFakeFake';
+    }
+}

+ 1 - 0
packages/wallets/fake/src/index.ts

@@ -0,0 +1 @@
+export * from './adapter';

+ 10 - 0
packages/wallets/fake/tsconfig.cjs.json

@@ -0,0 +1,10 @@
+{
+    "extends": "./tsconfig.json",
+    "compilerOptions": {
+        "target": "es6",
+        "module": "commonjs",
+        "outDir": "lib/cjs",
+        "declarationDir": null,
+        "declaration": false
+    }
+}

+ 9 - 0
packages/wallets/fake/tsconfig.json

@@ -0,0 +1,9 @@
+{
+    "extends": "../../../tsconfig.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types",
+        "noEmit": false
+    }
+}

+ 1 - 1
packages/wallets/glow/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/glow/src/adapter.ts

@@ -192,6 +192,8 @@ export class GlowWalletAdapter extends BaseMessageSignerWalletAdapter {
                 const { signers, ...sendOptions } = options;
                 signers?.length && transaction.partialSign(...signers);
 
+                sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                 const { signature } = await wallet.signAndSendTransaction(transaction, {
                     ...sendOptions,
                     network: this._network,

+ 1 - 1
packages/wallets/huobi/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/hyperpay/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/keystone/package.json

@@ -34,6 +34,6 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 1 - 1
packages/wallets/krystal/package.json

@@ -33,6 +33,6 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 7 - 3
packages/wallets/ledger/package.json

@@ -30,16 +30,20 @@
         "@solana/web3.js": "^1.44.3"
     },
     "dependencies": {
-        "@ledgerhq/hw-transport": "^6.11.2",
-        "@ledgerhq/hw-transport-webhid": "^6.11.2",
+        "@ledgerhq/devices": "6.27.1",
+        "@ledgerhq/hw-transport": "6.27.1",
+        "@ledgerhq/hw-transport-webhid": "6.27.1",
         "@solana/wallet-adapter-base": "^0.9.9",
         "buffer": "^6.0.3"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/w3c-web-hid": "^1.0.2"
     },
     "overrides": {
+        "@ledgerhq/devices": {
+            "buffer": "npm:buffer@^6.0.3"
+        },
         "@ledgerhq/hw-transport": {
             "buffer": "npm:buffer@^6.0.3"
         },

+ 1 - 0
packages/wallets/magiceden/.gitignore

@@ -0,0 +1 @@
+lib

+ 1 - 0
packages/wallets/magiceden/.prettierignore

@@ -0,0 +1 @@
+lib

+ 202 - 0
packages/wallets/magiceden/LICENSE

@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

+ 5 - 0
packages/wallets/magiceden/README.md

@@ -0,0 +1,5 @@
+# `@solana/wallet-adapter-magiceden`
+
+<!-- @TODO -->
+
+Coming soon.

+ 38 - 0
packages/wallets/magiceden/package.json

@@ -0,0 +1,38 @@
+{
+    "name": "@solana/wallet-adapter-magiceden",
+    "version": "0.1.0",
+    "author": "Solana Maintainers <maintainers@solana.foundation>",
+    "repository": "https://github.com/solana-labs/wallet-adapter",
+    "license": "Apache-2.0",
+    "type": "module",
+    "sideEffects": false,
+    "main": "lib/cjs/index.js",
+    "module": "lib/esm/index.mjs",
+    "types": "lib/types/index.d.ts",
+    "exports": {
+        "import": "./lib/esm/index.mjs",
+        "require": "./lib/cjs/index.js"
+    },
+    "files": [
+        "lib",
+        "src",
+        "LICENSE"
+    ],
+    "publishConfig": {
+        "access": "public"
+    },
+    "scripts": {
+        "clean": "shx rm -rf lib/*",
+        "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
+        "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
+    },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.44.3"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.9"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

Plik diff jest za duży
+ 56 - 0
packages/wallets/magiceden/src/adapter.ts


+ 1 - 0
packages/wallets/magiceden/src/index.ts

@@ -0,0 +1 @@
+export * from './adapter';

+ 10 - 0
packages/wallets/magiceden/tsconfig.cjs.json

@@ -0,0 +1,10 @@
+{
+    "extends": "./tsconfig.json",
+    "compilerOptions": {
+        "target": "es6",
+        "module": "commonjs",
+        "outDir": "lib/cjs",
+        "declarationDir": null,
+        "declaration": false
+    }
+}

+ 9 - 0
packages/wallets/magiceden/tsconfig.json

@@ -0,0 +1,9 @@
+{
+    "extends": "../../../tsconfig.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types",
+        "noEmit": false
+    }
+}

+ 1 - 1
packages/wallets/mathwallet/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/neko/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/nightly/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/nufi/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/phantom/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 3 - 2
packages/wallets/phantom/src/adapter.ts

@@ -43,6 +43,7 @@ interface PhantomWindow extends Window {
     phantom?: {
         solana?: PhantomWallet;
     };
+    solana?: PhantomWallet;
 }
 
 declare const window: PhantomWindow;
@@ -73,7 +74,7 @@ export class PhantomWalletAdapter extends BaseMessageSignerWalletAdapter {
 
         if (this._readyState !== WalletReadyState.Unsupported) {
             scopePollingDetectionStrategy(() => {
-                if (window.phantom?.solana?.isPhantom) {
+                if (window.phantom?.solana?.isPhantom || window.solana?.isPhantom) {
                     this._readyState = WalletReadyState.Installed;
                     this.emit('readyStateChange', this._readyState);
                     return true;
@@ -107,7 +108,7 @@ export class PhantomWalletAdapter extends BaseMessageSignerWalletAdapter {
             this._connecting = true;
 
             // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-            const wallet = window!.phantom!.solana!;
+            const wallet = window.phantom?.solana || window.solana!;
 
             if (!wallet.isConnected) {
                 try {

+ 1 - 1
packages/wallets/safepal/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/saifu/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/saifu/src/adapter.ts

@@ -171,6 +171,8 @@ export class SaifuWalletAdapter extends BaseMessageSignerWalletAdapter {
                     const { signers, ...sendOptions } = options;
                     signers?.length && transaction.partialSign(...signers);
 
+                    sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                     const { signature } = await wallet.signAndSendTransaction(transaction, sendOptions);
                     return signature;
                 } catch (error: any) {

+ 3 - 3
packages/wallets/salmon/package.json

@@ -30,10 +30,10 @@
         "@solana/web3.js": "^1.44.3"
     },
     "dependencies": {
-        "salmon-adapter-sdk": "^1.0.0",
-        "@solana/wallet-adapter-base": "^0.9.4"
+        "@solana/wallet-adapter-base": "^0.9.4",
+        "salmon-adapter-sdk": "^1.0.0"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 1 - 1
packages/wallets/sky/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 0
packages/wallets/sky/src/adapter.ts

@@ -169,6 +169,8 @@ export class SkyWalletAdapter extends BaseMessageSignerWalletAdapter {
                 const { signers, ...sendOptions } = options;
                 signers?.length && transaction.partialSign(...signers);
 
+                sendOptions.preflightCommitment = sendOptions.preflightCommitment || connection.commitment;
+
                 const { signature } = await wallet.signAndSendTransaction(transaction, sendOptions);
                 return signature;
             } catch (error: any) {

+ 1 - 1
packages/wallets/slope/package.json

@@ -34,7 +34,7 @@
         "bs58": "^4.0.1"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/bs58": "^4.0.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"

+ 1 - 1
packages/wallets/solflare/package.json

@@ -34,7 +34,7 @@
         "@solflare-wallet/sdk": "^1.0.11"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/sollet/package.json

@@ -34,7 +34,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/solong/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/spot/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 1 - 1
packages/wallets/tokenpocket/package.json

@@ -33,7 +33,7 @@
         "@solana/wallet-adapter-base": "^0.9.9"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     },
     "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
 }

+ 2 - 2
packages/wallets/torus/package.json

@@ -38,10 +38,10 @@
         "stream-browserify": "^3.0.0"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/keccak": "^3.0.1",
         "@types/node-fetch": "^2.6.1",
-        "@types/readable-stream": "^2.3.11"
+        "@types/readable-stream": "^2.3.14"
     },
     "overrides": {
         "@toruslabs/solana-embed": {

+ 2 - 0
packages/wallets/wallets/package.json

@@ -38,12 +38,14 @@
         "@solana/wallet-adapter-coinbase": "^0.1.5",
         "@solana/wallet-adapter-coinhub": "^0.3.6",
         "@solana/wallet-adapter-exodus": "^0.1.5",
+        "@solana/wallet-adapter-fake": "^0.0.0",
         "@solana/wallet-adapter-glow": "^0.1.5",
         "@solana/wallet-adapter-huobi": "^0.1.3",
         "@solana/wallet-adapter-hyperpay": "^0.1.2",
         "@solana/wallet-adapter-keystone": "^0.1.0",
         "@solana/wallet-adapter-krystal": "^0.1.0",
         "@solana/wallet-adapter-ledger": "^0.9.13",
+        "@solana/wallet-adapter-magiceden": "^0.1.0",
         "@solana/wallet-adapter-mathwallet": "^0.9.6",
         "@solana/wallet-adapter-neko": "^0.2.0",
         "@solana/wallet-adapter-nightly": "^0.1.3",

+ 2 - 0
packages/wallets/wallets/src/index.ts

@@ -8,11 +8,13 @@ export * from '@solana/wallet-adapter-coin98';
 export * from '@solana/wallet-adapter-coinbase';
 export * from '@solana/wallet-adapter-coinhub';
 export * from '@solana/wallet-adapter-exodus';
+export * from '@solana/wallet-adapter-fake';
 export * from '@solana/wallet-adapter-glow';
 export * from '@solana/wallet-adapter-huobi';
 export * from '@solana/wallet-adapter-hyperpay';
 export * from '@solana/wallet-adapter-krystal';
 export * from '@solana/wallet-adapter-ledger';
+export * from '@solana/wallet-adapter-magiceden';
 export * from '@solana/wallet-adapter-mathwallet';
 export * from '@solana/wallet-adapter-neko';
 export * from '@solana/wallet-adapter-nightly';

Plik diff jest za duży
+ 323 - 314
yarn.lock


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików