Преглед на файлове

Merge branch 'master' of github.com:solana-labs/wallet-adapter into initial-strike-adapter-2

Ben Holzman преди 3 години
родител
ревизия
62e5576672
променени са 100 файла, в които са добавени 2128 реда и са изтрити 465 реда
  1. 1 9
      FAQ.md
  2. 17 14
      README.md
  3. 15 10
      package.json
  4. 4 5
      packages/core/base/package.json
  5. 1 2
      packages/core/base/src/adapter.ts
  6. 10 11
      packages/core/react/package.json
  7. 12 14
      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. 19 21
      packages/starter/example/package.json
  11. 20 22
      packages/starter/material-ui-starter/package.json
  12. 11 21
      packages/starter/material-ui-starter/src/App.tsx
  13. 12 14
      packages/starter/nextjs-starter/package.json
  14. 11 21
      packages/starter/nextjs-starter/pages/_app.tsx
  15. 17 19
      packages/starter/react-ui-starter/package.json
  16. 11 21
      packages/starter/react-ui-starter/src/App.tsx
  17. 9 10
      packages/ui/ant-design/package.json
  18. 9 10
      packages/ui/material-ui/package.json
  19. 8 9
      packages/ui/react-ui/package.json
  20. 1 0
      packages/wallets/avana/.gitignore
  21. 1 0
      packages/wallets/avana/.prettierignore
  22. 202 0
      packages/wallets/avana/LICENSE
  23. 5 0
      packages/wallets/avana/README.md
  24. 38 0
      packages/wallets/avana/package.json
  25. 56 0
      packages/wallets/avana/src/adapter.ts
  26. 1 0
      packages/wallets/avana/src/index.ts
  27. 10 0
      packages/wallets/avana/tsconfig.cjs.json
  28. 9 0
      packages/wallets/avana/tsconfig.json
  29. 4 4
      packages/wallets/backpack/package.json
  30. 5 6
      packages/wallets/bitkeep/package.json
  31. 5 6
      packages/wallets/bitpie/package.json
  32. 5 6
      packages/wallets/blocto/package.json
  33. 5 6
      packages/wallets/brave/package.json
  34. 2 0
      packages/wallets/brave/src/adapter.ts
  35. 5 6
      packages/wallets/clover/package.json
  36. 5 6
      packages/wallets/coin98/package.json
  37. 5 6
      packages/wallets/coinbase/package.json
  38. 2 0
      packages/wallets/coinbase/src/adapter.ts
  39. 5 6
      packages/wallets/coinhub/package.json
  40. 5 6
      packages/wallets/exodus/package.json
  41. 2 0
      packages/wallets/exodus/src/adapter.ts
  42. 1 0
      packages/wallets/fake/.gitignore
  43. 1 0
      packages/wallets/fake/.prettierignore
  44. 202 0
      packages/wallets/fake/LICENSE
  45. 5 0
      packages/wallets/fake/README.md
  46. 38 0
      packages/wallets/fake/package.json
  47. 57 0
      packages/wallets/fake/src/adapter.ts
  48. 1 0
      packages/wallets/fake/src/index.ts
  49. 10 0
      packages/wallets/fake/tsconfig.cjs.json
  50. 9 0
      packages/wallets/fake/tsconfig.json
  51. 5 6
      packages/wallets/glow/package.json
  52. 2 0
      packages/wallets/glow/src/adapter.ts
  53. 5 6
      packages/wallets/huobi/package.json
  54. 5 6
      packages/wallets/hyperpay/package.json
  55. 7 0
      packages/wallets/icons/tokenary.svg
  56. 4 4
      packages/wallets/keystone/package.json
  57. 4 4
      packages/wallets/krystal/package.json
  58. 11 8
      packages/wallets/ledger/package.json
  59. 1 0
      packages/wallets/magiceden/.gitignore
  60. 1 0
      packages/wallets/magiceden/.prettierignore
  61. 202 0
      packages/wallets/magiceden/LICENSE
  62. 5 0
      packages/wallets/magiceden/README.md
  63. 38 0
      packages/wallets/magiceden/package.json
  64. 56 0
      packages/wallets/magiceden/src/adapter.ts
  65. 1 0
      packages/wallets/magiceden/src/index.ts
  66. 10 0
      packages/wallets/magiceden/tsconfig.cjs.json
  67. 9 0
      packages/wallets/magiceden/tsconfig.json
  68. 5 6
      packages/wallets/mathwallet/package.json
  69. 5 6
      packages/wallets/neko/package.json
  70. 5 6
      packages/wallets/nightly/package.json
  71. 5 6
      packages/wallets/nufi/package.json
  72. 5 6
      packages/wallets/phantom/package.json
  73. 5 2
      packages/wallets/phantom/src/adapter.ts
  74. 5 6
      packages/wallets/safepal/package.json
  75. 5 6
      packages/wallets/saifu/package.json
  76. 2 0
      packages/wallets/saifu/src/adapter.ts
  77. 5 5
      packages/wallets/salmon/package.json
  78. 5 6
      packages/wallets/sky/package.json
  79. 2 0
      packages/wallets/sky/src/adapter.ts
  80. 5 6
      packages/wallets/slope/package.json
  81. 5 6
      packages/wallets/solflare/package.json
  82. 5 6
      packages/wallets/sollet/package.json
  83. 5 6
      packages/wallets/solong/package.json
  84. 5 6
      packages/wallets/spot/package.json
  85. 1 0
      packages/wallets/tokenary/.gitignore
  86. 1 0
      packages/wallets/tokenary/.prettierignore
  87. 202 0
      packages/wallets/tokenary/LICENSE
  88. 5 0
      packages/wallets/tokenary/README.md
  89. 38 0
      packages/wallets/tokenary/package.json
  90. 247 0
      packages/wallets/tokenary/src/adapter.ts
  91. 1 0
      packages/wallets/tokenary/src/index.ts
  92. 10 0
      packages/wallets/tokenary/tsconfig.cjs.json
  93. 9 0
      packages/wallets/tokenary/tsconfig.json
  94. 5 6
      packages/wallets/tokenpocket/package.json
  95. 6 7
      packages/wallets/torus/package.json
  96. 1 0
      packages/wallets/trust/.gitignore
  97. 1 0
      packages/wallets/trust/.prettierignore
  98. 202 0
      packages/wallets/trust/LICENSE
  99. 5 0
      packages/wallets/trust/README.md
  100. 38 0
      packages/wallets/trust/package.json

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

+ 17 - 14
README.md

@@ -58,6 +58,7 @@ import {
     SolletExtensionWalletAdapter,
     SolletWalletAdapter,
     TorusWalletAdapter,
+    TokenaryWalletAdapter,
 } from '@solana/wallet-adapter-wallets';
 import {
     WalletModalProvider,
@@ -77,23 +78,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 (
@@ -165,6 +162,7 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
 | package                                                                                               | description                                           | npm                                                                                                  |
 |-------------------------------------------------------------------------------------------------------|-------------------------------------------------------|------------------------------------------------------------------------------------------------------|
 | [wallets](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/wallets)         | Includes all the wallets (with tree shaking)          | [`@solana/wallet-adapter-wallets`](https://npmjs.com/package/@solana/wallet-adapter-wallets)         |
+| [avana](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/avana)             | Adapter for [Avana](https://www.avanawallet.com/)     | [`@solana/wallet-adapter-avana`](https://npmjs.com/package/@solana/wallet-adapter-avana)             |
 | [backpack](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/backpack)       | Adapter for [Backpack](https://backpack.app/)         | [`@solana/wallet-adapter-backpack`](https://npmjs.com/package/@solana/wallet-adapter-backpack)       |
 | [bitkeep](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitkeep)         | Adapter for [BitKeep](https://bitkeep.com)            | [`@solana/wallet-adapter-bitkeep`](https://npmjs.com/package/@solana/wallet-adapter-bitkeep)         |
 | [bitpie](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitpie)           | Adapter for [Bitpie](https://bitpie.com)              | [`@solana/wallet-adapter-bitpie`](https://npmjs.com/package/@solana/wallet-adapter-bitpie)           |
@@ -180,6 +178,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)         |
@@ -194,8 +193,12 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
 | [sollet](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/sollet)           | Adapter for [Sollet](https://www.sollet.io)           | [`@solana/wallet-adapter-sollet`](https://npmjs.com/package/@solana/wallet-adapter-sollet)           |
 | [solong](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/solong)           | Adapter for [Solong](https://solongwallet.io)        | [`@solana/wallet-adapter-solong`](https://npmjs.com/package/@solana/wallet-adapter-solong)           |
 | [strike](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/strike)           | Adapter for [Strike](https://strikeprotocols.com)     | [`@solana/wallet-adapter-strike`](https://npmjs.com/package/@solana/wallet-adapter-strike)           |
+| [solong](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/solong)           | Adapter for [Solong](https://solongwallet.io)         | [`@solana/wallet-adapter-solong`](https://npmjs.com/package/@solana/wallet-adapter-solong)           |
+| [tokenary](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/tokenary)       | Adapter for [Tokenary](https://tokenary.io)           | [`@solana/wallet-adapter-tokenary`](https://npmjs.com/package/@solana/wallet-adapter-tokenary)       |
 | [tokenpocket](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/tokenpocket) | Adapter for [TokenPocket](https://tokenpocket.pro)    | [`@solana/wallet-adapter-tokenpocket`](https://npmjs.com/package/@solana/wallet-adapter-tokenpocket) |
 | [torus](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/torus)             | Adapter for [Torus](https://tor.us)                   | [`@solana/wallet-adapter-torus`](https://npmjs.com/package/@solana/wallet-adapter-torus)             |
+| [trust](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/trust)             | Adapter for [Trust Wallet](https://trustwallet.com/)  | [`@solana/wallet-adapter-trust`](https://npmjs.com/package/@solana/wallet-adapter-trust)             |
+
 
 ### UI Components
 These packages provide components for common UI frameworks.

+ 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"
     }
 }

+ 4 - 5
packages/core/base/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-base",
-    "version": "0.9.9",
+    "version": "0.9.10",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -30,13 +30,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
         "eventemitter3": "^4.0.0"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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;
     }

+ 10 - 11
packages/core/react/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-react",
-    "version": "0.15.8",
+    "version": "0.15.9",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -31,21 +31,20 @@
         "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",
+        "@solana/web3.js": "^1.50.1",
         "react": "*"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "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"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "ts-jest": "^28.0.7"
+    }
 }

+ 12 - 14
packages/starter/create-react-app-starter/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-create-react-app-starter",
-    "version": "0.1.2",
+    "version": "0.1.3",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -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/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "@solana/wallet-adapter-react-ui": "^0.9.12",
+        "@solana/wallet-adapter-wallets": "^0.17.1",
+        "@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",
@@ -65,6 +64,5 @@
             "last 1 firefox version",
             "last 1 safari version"
         ]
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 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();

+ 19 - 21
packages/starter/example/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-example",
-    "version": "0.18.5",
+    "version": "0.18.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -28,36 +28,34 @@
     },
     "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",
-        "@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",
+        "@mui/material": "^5.9.3",
+        "@solana/wallet-adapter-ant-design": "^0.11.9",
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-material-ui": "^0.16.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "@solana/wallet-adapter-react-ui": "^0.9.12",
+        "@solana/wallet-adapter-wallets": "^0.17.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",
         "typescript": "^4.6.2"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 20 - 22
packages/starter/material-ui-starter/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-material-ui-starter",
-    "version": "0.13.5",
+    "version": "0.13.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -29,39 +29,37 @@
         "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",
-        "@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",
+        "@mui/material": "^5.9.3",
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-material-ui": "^0.16.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "@solana/wallet-adapter-wallets": "^0.17.1",
+        "@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",
         "typescript": "^4.5.4"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 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();

+ 12 - 14
packages/starter/nextjs-starter/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-nextjs-starter",
-    "version": "0.8.5",
+    "version": "0.8.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -26,23 +26,21 @@
         "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",
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "@solana/wallet-adapter-react-ui": "^0.9.12",
+        "@solana/wallet-adapter-wallets": "^0.17.1",
+        "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"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 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 (

+ 17 - 19
packages/starter/react-ui-starter/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-react-ui-starter",
-    "version": "0.9.6",
+    "version": "0.9.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -29,34 +29,32 @@
         "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/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "@solana/wallet-adapter-react-ui": "^0.9.12",
+        "@solana/wallet-adapter-wallets": "^0.17.1",
+        "@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",
         "typescript": "^4.5.4"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 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 (

+ 9 - 10
packages/ui/ant-design/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-ant-design",
-    "version": "0.11.8",
+    "version": "0.11.9",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -31,22 +31,21 @@
         "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",
+        "@solana/web3.js": "^1.50.1",
         "react": "*",
         "react-dom": "*"
     },
     "dependencies": {
         "@ant-design/icons": "^4.0.0",
-        "@solana/wallet-adapter-base": "^0.9.9",
-        "@solana/wallet-adapter-react": "^0.15.8",
-        "antd": "^4.19.1"
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9",
+        "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"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 9 - 10
packages/ui/material-ui/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-material-ui",
-    "version": "0.16.9",
+    "version": "0.16.10",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,22 +27,21 @@
         "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",
+        "@solana/web3.js": "^1.50.1",
         "react": "*",
         "react-dom": "*"
     },
     "dependencies": {
         "@mui/icons-material": "^5.8.4",
-        "@mui/material": "^5.8.4",
-        "@solana/wallet-adapter-base": "^0.9.9",
-        "@solana/wallet-adapter-react": "^0.15.8"
+        "@mui/material": "^5.9.3",
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9"
     },
     "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"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 8 - 9
packages/ui/react-ui/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-react-ui",
-    "version": "0.9.11",
+    "version": "0.9.12",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -31,20 +31,19 @@
         "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",
+        "@solana/web3.js": "^1.50.1",
         "react": "*",
         "react-dom": "*"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9",
-        "@solana/wallet-adapter-react": "^0.15.8"
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "@solana/wallet-adapter-react": "^0.15.9"
     },
     "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"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

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

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

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

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

+ 202 - 0
packages/wallets/avana/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/avana/README.md

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

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

@@ -0,0 +1,38 @@
+{
+    "name": "@solana/wallet-adapter-avana",
+    "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.50.1"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.10"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

Файловите разлики са ограничени, защото са твърде много
+ 56 - 0
packages/wallets/avana/src/adapter.ts


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

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

+ 10 - 0
packages/wallets/avana/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/avana/tsconfig.json

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

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

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-backpack",
-    "version": "0.1.0",
+    "version": "0.1.1",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,12 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 5 - 6
packages/wallets/bitkeep/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-bitkeep",
-    "version": "0.3.7",
+    "version": "0.3.8",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/bitpie/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-bitpie",
-    "version": "0.5.6",
+    "version": "0.5.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/blocto/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-blocto",
-    "version": "0.5.9",
+    "version": "0.5.10",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,14 +27,13 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
         "@blocto/sdk": "^0.2.21",
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/brave/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-brave",
-    "version": "0.1.4",
+    "version": "0.1.5",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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) {

+ 5 - 6
packages/wallets/clover/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-clover",
-    "version": "0.4.7",
+    "version": "0.4.8",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/coin98/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-coin98",
-    "version": "0.5.8",
+    "version": "0.5.9",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,15 +27,14 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9",
+        "@solana/wallet-adapter-base": "^0.9.10",
         "bs58": "^4.0.1"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/bs58": "^4.0.1"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 5 - 6
packages/wallets/coinbase/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-coinbase",
-    "version": "0.1.5",
+    "version": "0.1.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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) {

+ 5 - 6
packages/wallets/coinhub/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-coinhub",
-    "version": "0.3.6",
+    "version": "0.3.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/exodus/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-exodus",
-    "version": "0.1.5",
+    "version": "0.1.6",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
     "type": "module",
@@ -26,13 +26,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

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

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

@@ -0,0 +1,38 @@
+{
+    "name": "@solana/wallet-adapter-fake",
+    "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.50.1"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.10"
+    },
+    "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
+    }
+}

+ 5 - 6
packages/wallets/glow/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-glow",
-    "version": "0.1.5",
+    "version": "0.1.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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,

+ 5 - 6
packages/wallets/huobi/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-huobi",
-    "version": "0.1.3",
+    "version": "0.1.4",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/hyperpay/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-hyperpay",
-    "version": "0.1.2",
+    "version": "0.1.3",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 7 - 0
packages/wallets/icons/tokenary.svg

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="34px" height="34px" viewBox="0 0 34 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>Oval</title>
+    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <circle id="Oval" fill="#2C7CF5" cx="17" cy="17" r="17"></circle>
+    </g>
+</svg>

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

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-keystone",
-    "version": "0.1.0",
+    "version": "0.1.1",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,13 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
         "@keystonehq/sol-keyring": "^0.3.0",
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

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

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-krystal",
-    "version": "0.1.0",
+    "version": "0.1.1",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,12 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 11 - 8
packages/wallets/ledger/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-ledger",
-    "version": "0.9.13",
+    "version": "0.9.14",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,25 +27,28 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@ledgerhq/hw-transport": "^6.11.2",
-        "@ledgerhq/hw-transport-webhid": "^6.11.2",
-        "@solana/wallet-adapter-base": "^0.9.9",
+        "@ledgerhq/devices": "6.27.1",
+        "@ledgerhq/hw-transport": "6.27.1",
+        "@ledgerhq/hw-transport-webhid": "6.27.1",
+        "@solana/wallet-adapter-base": "^0.9.10",
         "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"
         },
         "@ledgerhq/hw-transport-webhid": {
             "buffer": "npm:buffer@^6.0.3"
         }
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 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.50.1"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.10"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

Файловите разлики са ограничени, защото са твърде много
+ 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
+    }
+}

+ 5 - 6
packages/wallets/mathwallet/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-mathwallet",
-    "version": "0.9.6",
+    "version": "0.9.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/neko/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-neko",
-    "version": "0.2.0",
+    "version": "0.2.1",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/nightly/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-nightly",
-    "version": "0.1.3",
+    "version": "0.1.4",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/nufi/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-nufi",
-    "version": "0.1.3",
+    "version": "0.1.4",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/phantom/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-phantom",
-    "version": "0.9.8",
+    "version": "0.9.9",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 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 {
@@ -173,6 +174,8 @@ export class PhantomWalletAdapter 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) {

+ 5 - 6
packages/wallets/safepal/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-safepal",
-    "version": "0.5.6",
+    "version": "0.5.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/saifu/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-saifu",
-    "version": "0.1.3",
+    "version": "0.1.4",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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) {

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

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-salmon",
-    "version": "0.1.0",
+    "version": "0.1.1",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,13 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "salmon-adapter-sdk": "^1.0.0",
-        "@solana/wallet-adapter-base": "^0.9.4"
+        "@solana/wallet-adapter-base": "^0.9.10",
+        "salmon-adapter-sdk": "^1.0.0"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
+        "@solana/web3.js": "^1.50.1"
     }
 }

+ 5 - 6
packages/wallets/sky/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-sky",
-    "version": "0.1.2",
+    "version": "0.1.3",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 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) {

+ 5 - 6
packages/wallets/slope/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-slope",
-    "version": "0.5.9",
+    "version": "0.5.10",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,15 +27,14 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9",
+        "@solana/wallet-adapter-base": "^0.9.10",
         "bs58": "^4.0.1"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3",
+        "@solana/web3.js": "^1.50.1",
         "@types/bs58": "^4.0.1"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

+ 5 - 6
packages/wallets/solflare/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-solflare",
-    "version": "0.6.10",
+    "version": "0.6.11",
     "author": "Solflare Developers <developers@solflare.com>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,14 +27,13 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9",
+        "@solana/wallet-adapter-base": "^0.9.10",
         "@solflare-wallet/sdk": "^1.0.11"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/sollet/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-sollet",
-    "version": "0.11.5",
+    "version": "0.11.6",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,14 +27,13 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
         "@project-serum/sol-wallet-adapter": "^0.2.6",
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/solong/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-solong",
-    "version": "0.9.6",
+    "version": "0.9.7",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 5 - 6
packages/wallets/spot/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-spot",
-    "version": "0.1.3",
+    "version": "0.1.4",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

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

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

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

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

+ 202 - 0
packages/wallets/tokenary/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/tokenary/README.md

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

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

@@ -0,0 +1,38 @@
+{
+    "name": "@solana/wallet-adapter-tokenary",
+    "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.50.1"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.10"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

+ 247 - 0
packages/wallets/tokenary/src/adapter.ts

@@ -0,0 +1,247 @@
+import {
+    BaseMessageSignerWalletAdapter,
+    EventEmitter,
+    scopePollingDetectionStrategy,
+    SendTransactionOptions,
+    WalletAccountError,
+    WalletConnectionError,
+    WalletDisconnectedError,
+    WalletDisconnectionError,
+    WalletError,
+    WalletName,
+    WalletNotConnectedError,
+    WalletNotReadyError,
+    WalletPublicKeyError,
+    WalletReadyState,
+    WalletSendTransactionError,
+    WalletSignMessageError,
+    WalletSignTransactionError,
+} from '@solana/wallet-adapter-base';
+import { Connection, PublicKey, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js';
+
+interface TokenaryWalletEvents {
+    connect(...args: unknown[]): unknown;
+    disconnect(...args: unknown[]): unknown;
+}
+
+interface TokenaryWallet extends EventEmitter<TokenaryWalletEvents> {
+    isTokenary?: boolean;
+    publicKey?: { toBytes(): Uint8Array };
+    isConnected: boolean;
+    signTransaction(transaction: Transaction): Promise<Transaction>;
+    signAllTransactions(transactions: Transaction[]): Promise<Transaction[]>;
+    signAndSendTransaction(
+        transaction: Transaction,
+        options?: SendOptions
+    ): Promise<{ signature: TransactionSignature }>;
+    signMessage(message: Uint8Array): Promise<{ signature: Uint8Array }>;
+    connect(): Promise<void>;
+    disconnect(): Promise<void>;
+}
+
+interface TokenaryWindow extends Window {
+    tokenarySolana?: TokenaryWallet;
+}
+
+declare const window: TokenaryWindow;
+
+export interface TokenaryWalletAdapterConfig {}
+
+export const TokenaryWalletName = 'Tokenary' as WalletName<'Tokenary'>;
+
+export class TokenaryWalletAdapter extends BaseMessageSignerWalletAdapter {
+    name = TokenaryWalletName;
+    url = 'https://tokenary.io/get';
+    icon =
+        'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzRweCIgaGVpZ2h0PSIzNHB4IiB2aWV3Qm94PSIwIDAgMzQgMzQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+T3ZhbDwvdGl0bGU+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsIiBmaWxsPSIjMkM3Q0Y1IiBjeD0iMTciIGN5PSIxNyIgcj0iMTciPjwvY2lyY2xlPgogICAgPC9nPgo8L3N2Zz4=';
+
+    private _connecting: boolean;
+    private _wallet: TokenaryWallet | null;
+    private _publicKey: PublicKey | null;
+    private _readyState: WalletReadyState =
+        typeof window === 'undefined' || typeof document === 'undefined'
+            ? WalletReadyState.Unsupported
+            : WalletReadyState.NotDetected;
+
+    constructor(config: TokenaryWalletAdapterConfig = {}) {
+        super();
+        this._connecting = false;
+        this._wallet = null;
+        this._publicKey = null;
+
+        if (this._readyState !== WalletReadyState.Unsupported) {
+            scopePollingDetectionStrategy(() => {
+                if (window.tokenarySolana?.isTokenary) {
+                    this._readyState = WalletReadyState.Installed;
+                    this.emit('readyStateChange', this._readyState);
+                    return true;
+                }
+                return false;
+            });
+        }
+    }
+
+    get publicKey(): PublicKey | null {
+        return this._publicKey;
+    }
+
+    get connecting(): boolean {
+        return this._connecting;
+    }
+
+    get connected(): boolean {
+        return !!this._wallet?.isConnected;
+    }
+
+    get readyState(): WalletReadyState {
+        return this._readyState;
+    }
+
+    async connect(): Promise<void> {
+        try {
+            if (this.connected || this.connecting) return;
+            if (this._readyState !== WalletReadyState.Installed) throw new WalletNotReadyError();
+
+            this._connecting = true;
+
+            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+            const wallet = window!.tokenarySolana!;
+
+            try {
+                await wallet.connect();
+            } catch (error: any) {
+                throw new WalletConnectionError(error?.message, error);
+            }
+
+            if (!wallet.publicKey) throw new WalletAccountError();
+
+            let publicKey: PublicKey;
+            try {
+                publicKey = new PublicKey(wallet.publicKey.toBytes());
+            } catch (error: any) {
+                throw new WalletPublicKeyError(error?.message, error);
+            }
+
+            wallet.on('disconnect', this._disconnected);
+
+            this._wallet = wallet;
+            this._publicKey = publicKey;
+
+            this.emit('connect', publicKey);
+        } catch (error: any) {
+            this.emit('error', error);
+            throw error;
+        } finally {
+            this._connecting = false;
+        }
+    }
+
+    async disconnect(): Promise<void> {
+        const wallet = this._wallet;
+        if (wallet) {
+            wallet.off('disconnect', this._disconnected);
+
+            this._wallet = null;
+            this._publicKey = null;
+
+            try {
+                await wallet.disconnect();
+            } catch (error: any) {
+                this.emit('error', new WalletDisconnectionError(error?.message, error));
+            }
+        }
+
+        this.emit('disconnect');
+    }
+
+    async sendTransaction(
+        transaction: Transaction,
+        connection: Connection,
+        options: SendTransactionOptions = {}
+    ): Promise<TransactionSignature> {
+        try {
+            const wallet = this._wallet;
+            if (!wallet) throw new WalletNotConnectedError();
+
+            try {
+                transaction = await this.prepareTransaction(transaction, connection);
+
+                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) {
+                if (error instanceof WalletError) throw error;
+                throw new WalletSendTransactionError(error?.message, error);
+            }
+        } catch (error: any) {
+            this.emit('error', error);
+            throw error;
+        }
+    }
+
+    async signTransaction(transaction: Transaction): Promise<Transaction> {
+        try {
+            const wallet = this._wallet;
+            if (!wallet) throw new WalletNotConnectedError();
+
+            try {
+                return (await wallet.signTransaction(transaction)) || transaction;
+            } catch (error: any) {
+                throw new WalletSignTransactionError(error?.message, error);
+            }
+        } catch (error: any) {
+            this.emit('error', error);
+            throw error;
+        }
+    }
+
+    async signAllTransactions(transactions: Transaction[]): Promise<Transaction[]> {
+        try {
+            const wallet = this._wallet;
+            if (!wallet) throw new WalletNotConnectedError();
+
+            try {
+                return (await wallet.signAllTransactions(transactions)) || transactions;
+            } catch (error: any) {
+                throw new WalletSignTransactionError(error?.message, error);
+            }
+        } catch (error: any) {
+            this.emit('error', error);
+            throw error;
+        }
+    }
+
+    async signMessage(message: Uint8Array): Promise<Uint8Array> {
+        try {
+            const wallet = this._wallet;
+            if (!wallet) throw new WalletNotConnectedError();
+
+            try {
+                const { signature } = await wallet.signMessage(message);
+                return signature;
+            } catch (error: any) {
+                throw new WalletSignMessageError(error?.message, error);
+            }
+        } catch (error: any) {
+            this.emit('error', error);
+            throw error;
+        }
+    }
+
+    private _disconnected = () => {
+        const wallet = this._wallet;
+        if (wallet) {
+            wallet.off('disconnect', this._disconnected);
+
+            this._wallet = null;
+            this._publicKey = null;
+
+            this.emit('error', new WalletDisconnectedError());
+            this.emit('disconnect');
+        }
+    };
+}

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

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

+ 10 - 0
packages/wallets/tokenary/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/tokenary/tsconfig.json

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

+ 5 - 6
packages/wallets/tokenpocket/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-tokenpocket",
-    "version": "0.4.7",
+    "version": "0.4.8",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,13 +27,12 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9"
+        "@solana/wallet-adapter-base": "^0.9.10"
     },
     "devDependencies": {
-        "@solana/web3.js": "^1.44.3"
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+        "@solana/web3.js": "^1.50.1"
+    }
 }

+ 6 - 7
packages/wallets/torus/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@solana/wallet-adapter-torus",
-    "version": "0.11.15",
+    "version": "0.11.16",
     "author": "Solana Maintainers <maintainers@solana.foundation>",
     "repository": "https://github.com/solana-labs/wallet-adapter",
     "license": "Apache-2.0",
@@ -27,10 +27,10 @@
         "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"
+        "@solana/web3.js": "^1.50.1"
     },
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.9",
+        "@solana/wallet-adapter-base": "^0.9.10",
         "@toruslabs/solana-embed": "^0.2.2",
         "assert": "^2.0.0",
         "crypto-browserify": "^3.12.0",
@@ -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": {
@@ -50,6 +50,5 @@
             "stream": "npm:stream-browserify@^3.0.0",
             "crypto": "npm:crypto-browserify@^3.12.0"
         }
-    },
-    "gitHead": "389767182619fc76ab939920f75cc7194ff77340"
+    }
 }

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

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

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

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

+ 202 - 0
packages/wallets/trust/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/trust/README.md

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

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

@@ -0,0 +1,38 @@
+{
+    "name": "@solana/wallet-adapter-trust",
+    "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.50.1"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.10"
+    },
+    "devDependencies": {
+        "@solana/web3.js": "^1.50.1"
+    }
+}

Някои файлове не бяха показани, защото твърде много файлове са промени