@solana/connector 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{chunk-UCISIAOG.mjs → chunk-A7WQ3K75.mjs} +3 -3
- package/dist/{chunk-UCISIAOG.mjs.map → chunk-A7WQ3K75.mjs.map} +1 -1
- package/dist/{chunk-4Z2F6ERB.js → chunk-B6YBZB6H.js} +49 -48
- package/dist/chunk-B6YBZB6H.js.map +1 -0
- package/dist/{chunk-SITQ4JWM.js → chunk-BF67LVVM.js} +17 -21
- package/dist/chunk-BF67LVVM.js.map +1 -0
- package/dist/{chunk-IDTUFDNB.mjs → chunk-DFKGCW7K.mjs} +98 -12
- package/dist/chunk-DFKGCW7K.mjs.map +1 -0
- package/dist/chunk-E3DAIOYS.mjs +22 -0
- package/dist/chunk-E3DAIOYS.mjs.map +1 -0
- package/dist/chunk-FG7HTQTV.mjs +7 -0
- package/dist/chunk-FG7HTQTV.mjs.map +1 -0
- package/dist/chunk-L5FWMNWO.js +9 -0
- package/dist/chunk-L5FWMNWO.js.map +1 -0
- package/dist/{chunk-HN5AJF7F.js → chunk-NLPEO5GT.js} +5 -5
- package/dist/{chunk-HN5AJF7F.js.map → chunk-NLPEO5GT.js.map} +1 -1
- package/dist/chunk-QST7XLMB.js +26 -0
- package/dist/chunk-QST7XLMB.js.map +1 -0
- package/dist/{chunk-ZZTY3O4N.mjs → chunk-SJCQ3KZE.mjs} +4 -7
- package/dist/chunk-SJCQ3KZE.mjs.map +1 -0
- package/dist/{chunk-BZ2VBJCZ.js → chunk-ULEPN4NL.js} +181 -95
- package/dist/chunk-ULEPN4NL.js.map +1 -0
- package/dist/{chunk-HPQ5T32K.mjs → chunk-UOML5ULB.mjs} +4 -4
- package/dist/{chunk-HPQ5T32K.mjs.map → chunk-UOML5ULB.mjs.map} +1 -1
- package/dist/{chunk-MDR4Y37Z.mjs → chunk-WPDCSFX2.mjs} +5 -4
- package/dist/chunk-WPDCSFX2.mjs.map +1 -0
- package/dist/{chunk-BJAVJQLK.js → chunk-X2X5TFXS.js} +6 -6
- package/dist/{chunk-BJAVJQLK.js.map → chunk-X2X5TFXS.js.map} +1 -1
- package/dist/compat.js +2 -2
- package/dist/compat.mjs +1 -1
- package/dist/fireblocks-FLKRTJU3.js +67 -0
- package/dist/fireblocks-FLKRTJU3.js.map +1 -0
- package/dist/fireblocks-KCJV3GEK.mjs +65 -0
- package/dist/fireblocks-KCJV3GEK.mjs.map +1 -0
- package/dist/headless.d.mts +11 -11
- package/dist/headless.d.ts +11 -11
- package/dist/headless.js +147 -147
- package/dist/headless.mjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +188 -188
- package/dist/index.mjs +5 -5
- package/dist/privy-6LYDE24Z.mjs +64 -0
- package/dist/privy-6LYDE24Z.mjs.map +1 -0
- package/dist/privy-ID4YFTKR.js +66 -0
- package/dist/privy-ID4YFTKR.js.map +1 -0
- package/dist/protocol-G-z1lRqo.d.mts +166 -0
- package/dist/protocol-G-z1lRqo.d.ts +166 -0
- package/dist/react.d.mts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.js +49 -49
- package/dist/react.mjs +2 -2
- package/dist/remote.d.mts +46 -0
- package/dist/remote.d.ts +46 -0
- package/dist/remote.js +212 -0
- package/dist/remote.js.map +1 -0
- package/dist/remote.mjs +198 -0
- package/dist/remote.mjs.map +1 -0
- package/dist/server.d.mts +141 -0
- package/dist/server.d.ts +141 -0
- package/dist/server.js +189 -0
- package/dist/server.js.map +1 -0
- package/dist/server.mjs +187 -0
- package/dist/server.mjs.map +1 -0
- package/dist/{standard-shim-tmnQelaJ.d.ts → standard-shim-BB0Lkg_C.d.ts} +44 -1
- package/dist/{standard-shim-CGB88PPO.d.mts → standard-shim-n5phZB1d.d.mts} +44 -1
- package/dist/{walletconnect-447EY3OJ.js → walletconnect-F2M3PAAN.js} +8 -8
- package/dist/{walletconnect-447EY3OJ.js.map → walletconnect-F2M3PAAN.js.map} +1 -1
- package/dist/walletconnect-Z6LPGALR.mjs +3 -0
- package/dist/{walletconnect-U455PO4I.mjs.map → walletconnect-Z6LPGALR.mjs.map} +1 -1
- package/package.json +27 -2
- package/dist/chunk-4Z2F6ERB.js.map +0 -1
- package/dist/chunk-BZ2VBJCZ.js.map +0 -1
- package/dist/chunk-IDTUFDNB.mjs.map +0 -1
- package/dist/chunk-MDR4Y37Z.mjs.map +0 -1
- package/dist/chunk-SITQ4JWM.js.map +0 -1
- package/dist/chunk-ZZTY3O4N.mjs.map +0 -1
- package/dist/walletconnect-U455PO4I.mjs +0 -3
|
@@ -661,9 +661,37 @@ type Listener = (s: ConnectorState) => void;
|
|
|
661
661
|
/**
|
|
662
662
|
* Connector configuration options
|
|
663
663
|
*/
|
|
664
|
+
interface WalletDisplayConfig {
|
|
665
|
+
/**
|
|
666
|
+
* Explicit allowlist of wallet display names to expose as connectors.
|
|
667
|
+
*
|
|
668
|
+
* - Matching is case-insensitive and uses exact name equality (after trimming).
|
|
669
|
+
* - When provided and non-empty, only wallets in this list are shown/available.
|
|
670
|
+
*/
|
|
671
|
+
allowList?: string[];
|
|
672
|
+
/**
|
|
673
|
+
* Denylist of wallet display names to hide/remove.
|
|
674
|
+
*
|
|
675
|
+
* - Matching is case-insensitive and uses exact name equality (after trimming).
|
|
676
|
+
* - Deny wins over allow/featured when the same wallet appears in multiple lists.
|
|
677
|
+
*/
|
|
678
|
+
denyList?: string[];
|
|
679
|
+
/**
|
|
680
|
+
* Wallets to prioritize to the top of the list (in the provided order).
|
|
681
|
+
*
|
|
682
|
+
* - Matching is case-insensitive and uses exact name equality (after trimming).
|
|
683
|
+
* - Does not filter wallets by itself; it only reorders remaining wallets.
|
|
684
|
+
*/
|
|
685
|
+
featured?: string[];
|
|
686
|
+
}
|
|
664
687
|
interface ConnectorConfig {
|
|
665
688
|
autoConnect?: boolean;
|
|
666
689
|
debug?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* Wallet list controls for Wallet Standard auto-discovery.
|
|
692
|
+
* This affects which detected wallets are exposed as connectors (and therefore selectable / autoConnect-able).
|
|
693
|
+
*/
|
|
694
|
+
wallets?: WalletDisplayConfig;
|
|
667
695
|
/** Storage configuration using enhanced storage adapters */
|
|
668
696
|
storage?: {
|
|
669
697
|
account: StorageAdapter<string | undefined>;
|
|
@@ -700,6 +728,11 @@ interface ConnectorConfig {
|
|
|
700
728
|
* @see https://docs.walletconnect.network/wallet-sdk/chain-support/solana
|
|
701
729
|
*/
|
|
702
730
|
walletConnect?: WalletConnectConfig;
|
|
731
|
+
/**
|
|
732
|
+
* Additional wallets to include alongside Wallet Standard wallets.
|
|
733
|
+
* Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
|
|
734
|
+
*/
|
|
735
|
+
additionalWallets?: Wallet[];
|
|
703
736
|
}
|
|
704
737
|
/**
|
|
705
738
|
* Health check information for connector diagnostics
|
|
@@ -991,6 +1024,16 @@ interface DefaultConfigOptions {
|
|
|
991
1024
|
* @see https://docs.walletconnect.network/wallet-sdk/chain-support/solana
|
|
992
1025
|
*/
|
|
993
1026
|
walletConnect?: boolean | SimplifiedWalletConnectConfig;
|
|
1027
|
+
/**
|
|
1028
|
+
* Additional wallets to include alongside Wallet Standard wallets.
|
|
1029
|
+
* Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
|
|
1030
|
+
*/
|
|
1031
|
+
additionalWallets?: Wallet[];
|
|
1032
|
+
/**
|
|
1033
|
+
* Optional wallet display controls for Wallet Standard auto-discovery.
|
|
1034
|
+
* Use this to filter/prioritize which detected wallets are exposed as connectors.
|
|
1035
|
+
*/
|
|
1036
|
+
wallets?: WalletDisplayConfig;
|
|
994
1037
|
}
|
|
995
1038
|
/**
|
|
996
1039
|
* Simplified WalletConnect configuration
|
|
@@ -1574,4 +1617,4 @@ declare const ready: Promise<void>;
|
|
|
1574
1617
|
*/
|
|
1575
1618
|
declare function getWalletsRegistry(): WalletsRegistry;
|
|
1576
1619
|
|
|
1577
|
-
export { type
|
|
1620
|
+
export { type WalletConnectConfig as $, type AccountInfo as A, isStatusError as B, ConnectorProvider as C, type DefaultConfigOptions as D, type ExtendedConnectorConfig as E, isWalletStatusError as F, toLegacyWalletState as G, type WalletConnector as H, INITIAL_WALLET_STATUS as I, type WalletStatusDisconnected as J, type WalletStatusConnecting as K, type WalletStatusConnected as L, type MobileWalletAdapterConfig as M, type WalletStatusError as N, WalletErrorType as O, isWalletError as P, createWalletError as Q, type RegisterMwaConfig as R, type SimplifiedWalletConnectConfig as S, type WalletError as T, getPublicSolanaRpcUrl as U, createSolanaClient as V, type WalletInfo as W, type SolanaClusterMoniker as X, type ModifiedClusterUrl as Y, type SolanaClient as Z, type CreateSolanaClientArgs as _, useConnectorClient as a, type WalletConnectMetadata as a0, type WalletConnectTransport as a1, type WalletName as a2, type AccountAddress as a3, isWalletName as a4, isAccountAddress as a5, type CoinGeckoConfig as a6, type ConnectorHealth as a7, type ConnectorDebugMetrics as a8, type ConnectorDebugState as a9, getClusterRpcUrl as aA, getClusterExplorerUrl as aB, getTransactionUrl as aC, getAddressUrl as aD, getTokenUrl as aE, getBlockUrl as aF, isMainnetCluster as aG, isDevnetCluster as aH, isTestnetCluster as aI, isLocalCluster as aJ, getClusterName as aK, getClusterType as aL, getClusterChainId as aM, getChainIdForWalletStandard as aN, type Listener as aa, type ConnectorEvent as ab, type ConnectorEventListener as ac, type StorageAdapter as ad, type StorageOptions as ae, type EnhancedStorageAccountOptions as af, type EnhancedStorageClusterOptions as ag, type EnhancedStorageWalletOptions as ah, type EnhancedStorageWalletStateOptions as ai, type PersistedWalletState as aj, type WalletConnectSolanaAccount as ak, type WalletConnectSignMessageParams as al, type WalletConnectSignMessageResult as am, type WalletConnectSignTransactionParams as an, type WalletConnectSignTransactionResult as ao, type WalletConnectSignAllTransactionsParams as ap, type WalletConnectSignAllTransactionsResult as aq, type WalletConnectSignAndSendTransactionParams as ar, type WalletConnectSignAndSendTransactionResult as as, ClipboardErrorType as at, type ClipboardResult as au, type CopyOptions as av, isClipboardAvailable as aw, copyToClipboard as ax, copyAddressToClipboard as ay, copySignatureToClipboard as az, getDefaultMobileConfig as b, type ConnectorSnapshot as c, type ConnectorConfig as d, type ConnectorState as e, type WalletDisplayConfig as f, getDefaultConfig as g, type WalletStandardWallet as h, type WalletStandardAccount as i, type WalletConnectorId as j, type WalletConnectorMetadata as k, type WalletSession as l, type WalletStatus as m, type SessionAccount as n, type ConnectOptions as o, createConnectorId as p, isWalletConnectorId as q, isConnected as r, isConnecting as s, isDisconnected as t, useConnector as u, type ClusterType as v, ConnectorClient as w, getWalletsRegistry as x, ready as y, getWalletNameFromConnectorId as z };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNLPEO5GT_js = require('./chunk-NLPEO5GT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createMockWalletConnectTransport", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkNLPEO5GT_js.createMockWalletConnectTransport; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createWalletConnectTransport", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNLPEO5GT_js.createWalletConnectTransport; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createWalletConnectWallet", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNLPEO5GT_js.createWalletConnectWallet; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "isWalletConnectAvailable", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNLPEO5GT_js.isWalletConnectAvailable; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "registerWalletConnectWallet", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNLPEO5GT_js.registerWalletConnectWallet; }
|
|
26
26
|
});
|
|
27
|
-
//# sourceMappingURL=walletconnect-
|
|
28
|
-
//# sourceMappingURL=walletconnect-
|
|
27
|
+
//# sourceMappingURL=walletconnect-F2M3PAAN.js.map
|
|
28
|
+
//# sourceMappingURL=walletconnect-F2M3PAAN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-F2M3PAAN.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createMockWalletConnectTransport, createWalletConnectTransport, createWalletConnectWallet, isWalletConnectAvailable, registerWalletConnectWallet } from './chunk-A7WQ3K75.mjs';
|
|
2
|
+
//# sourceMappingURL=walletconnect-Z6LPGALR.mjs.map
|
|
3
|
+
//# sourceMappingURL=walletconnect-Z6LPGALR.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-Z6LPGALR.mjs"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/connector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Headless wallet connector client and React provider built on Wallet Standard",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
"types": "./dist/compat.d.ts",
|
|
27
27
|
"import": "./dist/compat.mjs",
|
|
28
28
|
"require": "./dist/compat.js"
|
|
29
|
+
},
|
|
30
|
+
"./remote": {
|
|
31
|
+
"types": "./dist/remote.d.ts",
|
|
32
|
+
"import": "./dist/remote.mjs",
|
|
33
|
+
"require": "./dist/remote.js"
|
|
34
|
+
},
|
|
35
|
+
"./server": {
|
|
36
|
+
"types": "./dist/server.d.ts",
|
|
37
|
+
"import": "./dist/server.mjs",
|
|
38
|
+
"require": "./dist/server.js"
|
|
29
39
|
}
|
|
30
40
|
},
|
|
31
41
|
"files": [
|
|
@@ -49,7 +59,13 @@
|
|
|
49
59
|
"peerDependencies": {
|
|
50
60
|
"@solana/web3.js": "^1.0.0",
|
|
51
61
|
"react": ">=18.0.0",
|
|
52
|
-
"@walletconnect/universal-provider": "^2.0.0"
|
|
62
|
+
"@walletconnect/universal-provider": "^2.0.0",
|
|
63
|
+
"@solana/keychain": "^0.2.1",
|
|
64
|
+
"@solana/keychain-fireblocks": "^0.2.1",
|
|
65
|
+
"@solana/keychain-privy": "^0.2.1",
|
|
66
|
+
"@solana/keychain-turnkey": "^0.2.1",
|
|
67
|
+
"@solana/keychain-vault": "^0.2.1",
|
|
68
|
+
"@solana/keychain-aws-kms": "^0.2.1"
|
|
53
69
|
},
|
|
54
70
|
"peerDependenciesMeta": {
|
|
55
71
|
"react": {
|
|
@@ -63,6 +79,15 @@
|
|
|
63
79
|
},
|
|
64
80
|
"@solana/web3.js": {
|
|
65
81
|
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"@solana/keychain": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"@solana/keychain-fireblocks": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"@solana/keychain-privy": {
|
|
90
|
+
"optional": true
|
|
66
91
|
}
|
|
67
92
|
},
|
|
68
93
|
"dependencies": {
|