@solana/connector 0.1.6 → 0.1.7
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 +45 -45
- package/dist/{chunk-VMSZJPR5.mjs → chunk-APQGEW7S.mjs} +82 -11
- package/dist/chunk-APQGEW7S.mjs.map +1 -0
- package/dist/{chunk-3STZXVXD.mjs → chunk-JK47EFJT.mjs} +940 -381
- package/dist/chunk-JK47EFJT.mjs.map +1 -0
- package/dist/{chunk-QKVL45F6.mjs → chunk-TQRJYZNK.mjs} +5 -3
- package/dist/chunk-TQRJYZNK.mjs.map +1 -0
- package/dist/{chunk-JUZVCBAI.js → chunk-VA6LKXCQ.js} +85 -10
- package/dist/chunk-VA6LKXCQ.js.map +1 -0
- package/dist/{chunk-NQXK7PGX.js → chunk-VZ5Y6DIM.js} +19 -17
- package/dist/chunk-VZ5Y6DIM.js.map +1 -0
- package/dist/{chunk-ULUYX23Q.js → chunk-Z22V3D4E.js} +949 -388
- package/dist/chunk-Z22V3D4E.js.map +1 -0
- package/dist/compat.d.mts +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/headless.d.mts +99 -7
- package/dist/headless.d.ts +99 -7
- package/dist/headless.js +128 -112
- package/dist/headless.mjs +2 -2
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +163 -139
- package/dist/index.mjs +3 -3
- package/dist/react.d.mts +179 -13
- package/dist/react.d.ts +179 -13
- package/dist/react.js +36 -28
- package/dist/react.mjs +2 -2
- package/dist/{transaction-signer-D9d8nxwb.d.mts → transaction-signer-CpGEvp7S.d.mts} +1 -1
- package/dist/{transaction-signer-D9d8nxwb.d.ts → transaction-signer-CpGEvp7S.d.ts} +1 -1
- package/dist/{wallet-standard-shim--YcrQNRt.d.ts → wallet-standard-shim-D4CYG5sU.d.mts} +35 -6
- package/dist/{wallet-standard-shim-Dx7H8Ctf.d.mts → wallet-standard-shim-DiMvGjOk.d.ts} +35 -6
- package/package.json +1 -1
- package/dist/chunk-3STZXVXD.mjs.map +0 -1
- package/dist/chunk-JUZVCBAI.js.map +0 -1
- package/dist/chunk-NQXK7PGX.js.map +0 -1
- package/dist/chunk-QKVL45F6.mjs.map +0 -1
- package/dist/chunk-ULUYX23Q.js.map +0 -1
- package/dist/chunk-VMSZJPR5.mjs.map +0 -1
package/dist/react.js
CHANGED
|
@@ -1,113 +1,121 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkZ22V3D4E_js = require('./chunk-Z22V3D4E.js');
|
|
4
|
+
var chunkVA6LKXCQ_js = require('./chunk-VA6LKXCQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AccountElement", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkZ22V3D4E_js.AccountElement; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AppProvider", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZ22V3D4E_js.UnifiedProvider; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "BalanceElement", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZ22V3D4E_js.BalanceElement; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ClusterElement", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZ22V3D4E_js.ClusterElement; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ConnectorProvider", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZ22V3D4E_js.ConnectorProvider; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "DisconnectElement", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZ22V3D4E_js.DisconnectElement; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "TokenListElement", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZ22V3D4E_js.TokenListElement; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "TransactionHistoryElement", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZ22V3D4E_js.TransactionHistoryElement; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "UnifiedProvider", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZ22V3D4E_js.UnifiedProvider; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "WalletListElement", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkZ22V3D4E_js.WalletListElement; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "clearSharedQueryCache", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkZ22V3D4E_js.clearSharedQueryCache; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "invalidateSharedQuery", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkZ22V3D4E_js.invalidateSharedQuery; }
|
|
47
55
|
});
|
|
48
56
|
Object.defineProperty(exports, "useAccount", {
|
|
49
57
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZ22V3D4E_js.useAccount; }
|
|
51
59
|
});
|
|
52
60
|
Object.defineProperty(exports, "useBalance", {
|
|
53
61
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZ22V3D4E_js.useBalance; }
|
|
55
63
|
});
|
|
56
64
|
Object.defineProperty(exports, "useCluster", {
|
|
57
65
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZ22V3D4E_js.useCluster; }
|
|
59
67
|
});
|
|
60
68
|
Object.defineProperty(exports, "useConnector", {
|
|
61
69
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZ22V3D4E_js.useConnector; }
|
|
63
71
|
});
|
|
64
72
|
Object.defineProperty(exports, "useConnectorClient", {
|
|
65
73
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZ22V3D4E_js.useConnectorClient; }
|
|
67
75
|
});
|
|
68
76
|
Object.defineProperty(exports, "useGillSolanaClient", {
|
|
69
77
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZ22V3D4E_js.useGillSolanaClient; }
|
|
71
79
|
});
|
|
72
80
|
Object.defineProperty(exports, "useGillTransactionSigner", {
|
|
73
81
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZ22V3D4E_js.useGillTransactionSigner; }
|
|
75
83
|
});
|
|
76
84
|
Object.defineProperty(exports, "useKitTransactionSigner", {
|
|
77
85
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZ22V3D4E_js.useKitTransactionSigner; }
|
|
79
87
|
});
|
|
80
88
|
Object.defineProperty(exports, "useSolanaClient", {
|
|
81
89
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZ22V3D4E_js.useSolanaClient; }
|
|
83
91
|
});
|
|
84
92
|
Object.defineProperty(exports, "useTokens", {
|
|
85
93
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZ22V3D4E_js.useTokens; }
|
|
87
95
|
});
|
|
88
96
|
Object.defineProperty(exports, "useTransactionPreparer", {
|
|
89
97
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZ22V3D4E_js.useTransactionPreparer; }
|
|
91
99
|
});
|
|
92
100
|
Object.defineProperty(exports, "useTransactionSigner", {
|
|
93
101
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZ22V3D4E_js.useTransactionSigner; }
|
|
95
103
|
});
|
|
96
104
|
Object.defineProperty(exports, "useTransactions", {
|
|
97
105
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZ22V3D4E_js.useTransactions; }
|
|
99
107
|
});
|
|
100
108
|
Object.defineProperty(exports, "useWalletInfo", {
|
|
101
109
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZ22V3D4E_js.useWalletInfo; }
|
|
103
111
|
});
|
|
104
112
|
Object.defineProperty(exports, "ConnectorErrorBoundary", {
|
|
105
113
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkVA6LKXCQ_js.ConnectorErrorBoundary; }
|
|
107
115
|
});
|
|
108
116
|
Object.defineProperty(exports, "withErrorBoundary", {
|
|
109
117
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkVA6LKXCQ_js.withErrorBoundary; }
|
|
111
119
|
});
|
|
112
120
|
//# sourceMappingURL=react.js.map
|
|
113
121
|
//# sourceMappingURL=react.js.map
|
package/dist/react.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccountElement, UnifiedProvider as AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletListElement, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo } from './chunk-
|
|
2
|
-
export { ConnectorErrorBoundary, withErrorBoundary } from './chunk-
|
|
1
|
+
export { AccountElement, UnifiedProvider as AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletListElement, clearSharedQueryCache, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo } from './chunk-JK47EFJT.mjs';
|
|
2
|
+
export { ConnectorErrorBoundary, withErrorBoundary } from './chunk-APQGEW7S.mjs';
|
|
3
3
|
//# sourceMappingURL=react.mjs.map
|
|
4
4
|
//# sourceMappingURL=react.mjs.map
|
|
@@ -13,7 +13,7 @@ import { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
|
13
13
|
* Union type for all supported Solana transaction formats
|
|
14
14
|
* Supports both legacy (@solana/web3.js) and modern (gill) transaction types
|
|
15
15
|
*/
|
|
16
|
-
type SolanaTransaction = Transaction | VersionedTransaction | TransactionMessage | Uint8Array;
|
|
16
|
+
type SolanaTransaction = Transaction | VersionedTransaction | TransactionMessage | Uint8Array | ArrayBufferView;
|
|
17
17
|
/**
|
|
18
18
|
* Transaction status during its lifecycle
|
|
19
19
|
*/
|
|
@@ -13,7 +13,7 @@ import { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
|
13
13
|
* Union type for all supported Solana transaction formats
|
|
14
14
|
* Supports both legacy (@solana/web3.js) and modern (gill) transaction types
|
|
15
15
|
*/
|
|
16
|
-
type SolanaTransaction = Transaction | VersionedTransaction | TransactionMessage | Uint8Array;
|
|
16
|
+
type SolanaTransaction = Transaction | VersionedTransaction | TransactionMessage | Uint8Array | ArrayBufferView;
|
|
17
17
|
/**
|
|
18
18
|
* Transaction status during its lifecycle
|
|
19
19
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { c as TransactionActivity, d as TransactionActivityStatus } from './transaction-signer-
|
|
1
|
+
import { c as TransactionActivity, d as TransactionActivityStatus } from './transaction-signer-CpGEvp7S.mjs';
|
|
2
2
|
import { SolanaClusterId, SolanaCluster } from '@wallet-ui/core';
|
|
3
|
-
import { Wallet, WalletAccount } from '@wallet-standard/base';
|
|
3
|
+
import { Wallet, WalletAccount, IdentifierArray } from '@wallet-standard/base';
|
|
4
4
|
import { Address } from '@solana/addresses';
|
|
5
5
|
import React, { ReactNode, Component, ErrorInfo } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { Signature } from '@solana/keys';
|
|
8
|
+
import { AuthorizationCache, ChainSelector, SolanaMobileWalletAdapterWallet } from '@solana-mobile/wallet-standard-mobile';
|
|
8
9
|
import { DevnetUrl, MainnetUrl, TestnetUrl, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -201,6 +202,11 @@ interface ConnectorConfig {
|
|
|
201
202
|
* @example '/cdn-cgi/image/width=64,quality=75/' // Cloudflare Image Resizing
|
|
202
203
|
*/
|
|
203
204
|
imageProxy?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
207
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
208
|
+
*/
|
|
209
|
+
programLabels?: Record<string, string>;
|
|
204
210
|
/**
|
|
205
211
|
* CoinGecko API configuration for token price fetching.
|
|
206
212
|
* Configure API key for higher rate limits and retry behavior for 429 responses.
|
|
@@ -424,6 +430,11 @@ interface DefaultConfigOptions {
|
|
|
424
430
|
* @example '/cdn-cgi/image/width=64,quality=75/' // Cloudflare Image Resizing
|
|
425
431
|
*/
|
|
426
432
|
imageProxy?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
435
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
436
|
+
*/
|
|
437
|
+
programLabels?: Record<string, string>;
|
|
427
438
|
/**
|
|
428
439
|
* CoinGecko API configuration for token price fetching.
|
|
429
440
|
* Configure API key for higher rate limits and retry behavior for 429 responses.
|
|
@@ -458,6 +469,11 @@ interface ExtendedConnectorConfig extends ConnectorConfig {
|
|
|
458
469
|
* This prevents direct image fetching which can leak user IPs to untrusted hosts.
|
|
459
470
|
*/
|
|
460
471
|
imageProxy?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
474
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
475
|
+
*/
|
|
476
|
+
programLabels?: Record<string, string>;
|
|
461
477
|
/**
|
|
462
478
|
* CoinGecko API configuration for token price fetching.
|
|
463
479
|
*/
|
|
@@ -483,6 +499,19 @@ declare function getDefaultMobileConfig(options: {
|
|
|
483
499
|
cluster: "devnet" | "mainnet" | "testnet" | "mainnet-beta";
|
|
484
500
|
};
|
|
485
501
|
|
|
502
|
+
/** Configuration for registerMwa - defined locally as the package doesn't export this type */
|
|
503
|
+
interface RegisterMwaConfig {
|
|
504
|
+
appIdentity: {
|
|
505
|
+
name: string;
|
|
506
|
+
uri?: string;
|
|
507
|
+
icon?: string;
|
|
508
|
+
};
|
|
509
|
+
authorizationCache: AuthorizationCache;
|
|
510
|
+
chains: IdentifierArray;
|
|
511
|
+
chainSelector: ChainSelector;
|
|
512
|
+
remoteHostAuthority?: string;
|
|
513
|
+
onWalletNotFound: (mobileWalletAdapter: SolanaMobileWalletAdapterWallet) => Promise<void>;
|
|
514
|
+
}
|
|
486
515
|
declare global {
|
|
487
516
|
interface Window {
|
|
488
517
|
__connectorClient?: ConnectorClient;
|
|
@@ -500,10 +529,10 @@ interface MobileWalletAdapterConfig {
|
|
|
500
529
|
icon?: string;
|
|
501
530
|
};
|
|
502
531
|
remoteHostAuthority?: string;
|
|
503
|
-
chains?:
|
|
504
|
-
authorizationCache?:
|
|
505
|
-
chainSelector?:
|
|
506
|
-
onWalletNotFound?: (wallet:
|
|
532
|
+
chains?: RegisterMwaConfig['chains'];
|
|
533
|
+
authorizationCache?: AuthorizationCache;
|
|
534
|
+
chainSelector?: ChainSelector;
|
|
535
|
+
onWalletNotFound?: (wallet: SolanaMobileWalletAdapterWallet) => Promise<void>;
|
|
507
536
|
}
|
|
508
537
|
declare function ConnectorProvider({ children, config, mobile, }: {
|
|
509
538
|
children: ReactNode;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { c as TransactionActivity, d as TransactionActivityStatus } from './transaction-signer-
|
|
1
|
+
import { c as TransactionActivity, d as TransactionActivityStatus } from './transaction-signer-CpGEvp7S.js';
|
|
2
2
|
import { SolanaClusterId, SolanaCluster } from '@wallet-ui/core';
|
|
3
|
-
import { Wallet, WalletAccount } from '@wallet-standard/base';
|
|
3
|
+
import { Wallet, WalletAccount, IdentifierArray } from '@wallet-standard/base';
|
|
4
4
|
import { Address } from '@solana/addresses';
|
|
5
5
|
import React, { ReactNode, Component, ErrorInfo } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { Signature } from '@solana/keys';
|
|
8
|
+
import { AuthorizationCache, ChainSelector, SolanaMobileWalletAdapterWallet } from '@solana-mobile/wallet-standard-mobile';
|
|
8
9
|
import { DevnetUrl, MainnetUrl, TestnetUrl, Rpc, SolanaRpcApi, RpcSubscriptions, SolanaRpcSubscriptionsApi } from '@solana/kit';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -201,6 +202,11 @@ interface ConnectorConfig {
|
|
|
201
202
|
* @example '/cdn-cgi/image/width=64,quality=75/' // Cloudflare Image Resizing
|
|
202
203
|
*/
|
|
203
204
|
imageProxy?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
207
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
208
|
+
*/
|
|
209
|
+
programLabels?: Record<string, string>;
|
|
204
210
|
/**
|
|
205
211
|
* CoinGecko API configuration for token price fetching.
|
|
206
212
|
* Configure API key for higher rate limits and retry behavior for 429 responses.
|
|
@@ -424,6 +430,11 @@ interface DefaultConfigOptions {
|
|
|
424
430
|
* @example '/cdn-cgi/image/width=64,quality=75/' // Cloudflare Image Resizing
|
|
425
431
|
*/
|
|
426
432
|
imageProxy?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
435
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
436
|
+
*/
|
|
437
|
+
programLabels?: Record<string, string>;
|
|
427
438
|
/**
|
|
428
439
|
* CoinGecko API configuration for token price fetching.
|
|
429
440
|
* Configure API key for higher rate limits and retry behavior for 429 responses.
|
|
@@ -458,6 +469,11 @@ interface ExtendedConnectorConfig extends ConnectorConfig {
|
|
|
458
469
|
* This prevents direct image fetching which can leak user IPs to untrusted hosts.
|
|
459
470
|
*/
|
|
460
471
|
imageProxy?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Optional mapping from program IDs to human-readable program names.
|
|
474
|
+
* Used to enrich transaction history (e.g. showing `Jupiter` instead of a raw program address).
|
|
475
|
+
*/
|
|
476
|
+
programLabels?: Record<string, string>;
|
|
461
477
|
/**
|
|
462
478
|
* CoinGecko API configuration for token price fetching.
|
|
463
479
|
*/
|
|
@@ -483,6 +499,19 @@ declare function getDefaultMobileConfig(options: {
|
|
|
483
499
|
cluster: "devnet" | "mainnet" | "testnet" | "mainnet-beta";
|
|
484
500
|
};
|
|
485
501
|
|
|
502
|
+
/** Configuration for registerMwa - defined locally as the package doesn't export this type */
|
|
503
|
+
interface RegisterMwaConfig {
|
|
504
|
+
appIdentity: {
|
|
505
|
+
name: string;
|
|
506
|
+
uri?: string;
|
|
507
|
+
icon?: string;
|
|
508
|
+
};
|
|
509
|
+
authorizationCache: AuthorizationCache;
|
|
510
|
+
chains: IdentifierArray;
|
|
511
|
+
chainSelector: ChainSelector;
|
|
512
|
+
remoteHostAuthority?: string;
|
|
513
|
+
onWalletNotFound: (mobileWalletAdapter: SolanaMobileWalletAdapterWallet) => Promise<void>;
|
|
514
|
+
}
|
|
486
515
|
declare global {
|
|
487
516
|
interface Window {
|
|
488
517
|
__connectorClient?: ConnectorClient;
|
|
@@ -500,10 +529,10 @@ interface MobileWalletAdapterConfig {
|
|
|
500
529
|
icon?: string;
|
|
501
530
|
};
|
|
502
531
|
remoteHostAuthority?: string;
|
|
503
|
-
chains?:
|
|
504
|
-
authorizationCache?:
|
|
505
|
-
chainSelector?:
|
|
506
|
-
onWalletNotFound?: (wallet:
|
|
532
|
+
chains?: RegisterMwaConfig['chains'];
|
|
533
|
+
authorizationCache?: AuthorizationCache;
|
|
534
|
+
chainSelector?: ChainSelector;
|
|
535
|
+
onWalletNotFound?: (wallet: SolanaMobileWalletAdapterWallet) => Promise<void>;
|
|
507
536
|
}
|
|
508
537
|
declare function ConnectorProvider({ children, config, mobile, }: {
|
|
509
538
|
children: ReactNode;
|