@solana-mobile/wallet-adapter-mobile 2.2.5 → 2.2.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 +4 -5
- package/lib/cjs/index.browser.js +321 -501
- package/lib/cjs/index.browser.js.map +1 -0
- package/lib/cjs/index.js +321 -501
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/index.native.js +360 -531
- package/lib/cjs/index.native.js.map +1 -0
- package/lib/cjs/package.json +1 -3
- package/lib/esm/index.browser.js +318 -495
- package/lib/esm/index.browser.js.map +1 -0
- package/lib/esm/index.js +318 -495
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +1 -3
- package/lib/types/index.d.ts +68 -61
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +74 -68
- package/lib/types/index.browser.d.ts +0 -79
- package/lib/types/index.browser.d.ts.map +0 -1
- package/lib/types/index.native.d.ts +0 -79
- package/lib/types/index.native.d.ts.map +0 -1
package/lib/cjs/index.native.js
CHANGED
|
@@ -1,550 +1,377 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Copyright (c) Microsoft Corporation.
|
|
19
|
-
|
|
20
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
21
|
-
purpose with or without fee is hereby granted.
|
|
22
|
-
|
|
23
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
24
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
25
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
26
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
27
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
30
|
-
***************************************************************************** */
|
|
31
|
-
|
|
32
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
33
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
36
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
37
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
38
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
43
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
44
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
45
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
49
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
50
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
51
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
52
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
(undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
56
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
57
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
58
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
59
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
60
|
-
};
|
|
61
|
-
(undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
62
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
63
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
64
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** Name of the feature. */
|
|
68
|
-
const StandardConnect = 'standard:connect';
|
|
69
|
-
|
|
70
|
-
/** Name of the feature. */
|
|
71
|
-
const StandardDisconnect = 'standard:disconnect';
|
|
72
|
-
|
|
73
|
-
/** Name of the feature. */
|
|
74
|
-
const StandardEvents = 'standard:events';
|
|
75
|
-
|
|
76
|
-
(undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
77
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
78
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
79
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
80
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
81
|
-
};
|
|
82
|
-
(undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
83
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
84
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
85
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
(undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
89
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
90
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
91
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
92
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
93
|
-
};
|
|
94
|
-
(undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
95
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
96
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
97
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
98
18
|
};
|
|
99
|
-
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
//#endregion
|
|
24
|
+
let _solana_wallet_adapter_base = require("@solana/wallet-adapter-base");
|
|
25
|
+
let _solana_web3_js = require("@solana/web3.js");
|
|
26
|
+
let _solana_wallet_standard_features = require("@solana/wallet-standard-features");
|
|
27
|
+
let _wallet_standard_core = require("@wallet-standard/core");
|
|
28
|
+
let _solana_mobile_wallet_standard_mobile = require("@solana-mobile/wallet-standard-mobile");
|
|
29
|
+
let js_base64 = require("js-base64");
|
|
30
|
+
let react_native = require("react-native");
|
|
31
|
+
let _react_native_async_storage_async_storage = require("@react-native-async-storage/async-storage");
|
|
32
|
+
_react_native_async_storage_async_storage = __toESM(_react_native_async_storage_async_storage);
|
|
33
|
+
//#region src/__forks__/react-native/getIsSupported.ts
|
|
100
34
|
function getIsSupported() {
|
|
101
|
-
|
|
35
|
+
return react_native.Platform.OS === "android";
|
|
102
36
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const SolanaMobileWalletAdapterWalletName =
|
|
106
|
-
const SolanaMobileWalletAdapterRemoteWalletName =
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/adapter.ts
|
|
39
|
+
const SolanaMobileWalletAdapterWalletName = _solana_mobile_wallet_standard_mobile.SolanaMobileWalletAdapterWalletName;
|
|
40
|
+
const SolanaMobileWalletAdapterRemoteWalletName = _solana_mobile_wallet_standard_mobile.SolanaMobileWalletAdapterRemoteWalletName;
|
|
107
41
|
const SIGNATURE_LENGTH_IN_BYTES = 64;
|
|
108
42
|
function isVersionedTransaction(transaction) {
|
|
109
|
-
|
|
43
|
+
return "version" in transaction;
|
|
110
44
|
}
|
|
111
45
|
function chainOrClusterToChainId(chain) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return 'solana:devnet';
|
|
119
|
-
default:
|
|
120
|
-
return chain;
|
|
121
|
-
}
|
|
46
|
+
switch (chain) {
|
|
47
|
+
case "mainnet-beta": return "solana:mainnet";
|
|
48
|
+
case "testnet": return "solana:testnet";
|
|
49
|
+
case "devnet": return "solana:devnet";
|
|
50
|
+
default: return chain;
|
|
51
|
+
}
|
|
122
52
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
signTransaction(transaction) {
|
|
359
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
-
return yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_runWithGuard).call(this, () => __awaiter(this, void 0, void 0, function* () {
|
|
361
|
-
const [signedTransaction] = yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_performSignTransactions).call(this, [transaction]);
|
|
362
|
-
return signedTransaction;
|
|
363
|
-
}));
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
signAllTransactions(transactions) {
|
|
367
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
-
return yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_runWithGuard).call(this, () => __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
const signedTransactions = yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_performSignTransactions).call(this, transactions);
|
|
370
|
-
return signedTransactions;
|
|
371
|
-
}));
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
_BaseSolanaMobileWalletAdapter_wallet = new WeakMap(), _BaseSolanaMobileWalletAdapter_connecting = new WeakMap(), _BaseSolanaMobileWalletAdapter_readyState = new WeakMap(), _BaseSolanaMobileWalletAdapter_accountSelector = new WeakMap(), _BaseSolanaMobileWalletAdapter_selectedAccount = new WeakMap(), _BaseSolanaMobileWalletAdapter_publicKey = new WeakMap(), _BaseSolanaMobileWalletAdapter_handleChangeEvent = new WeakMap(), _BaseSolanaMobileWalletAdapter_instances = new WeakSet(), _BaseSolanaMobileWalletAdapter_connect = function _BaseSolanaMobileWalletAdapter_connect(autoConnect = false) {
|
|
376
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
-
if (this.connecting || this.connected) {
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
return yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_runWithGuard).call(this, () => __awaiter(this, void 0, void 0, function* () {
|
|
381
|
-
if (__classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_readyState, "f") !== walletAdapterBase.WalletReadyState.Installed && __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_readyState, "f") !== walletAdapterBase.WalletReadyState.Loadable) {
|
|
382
|
-
throw new walletAdapterBase.WalletNotReadyError();
|
|
383
|
-
}
|
|
384
|
-
__classPrivateFieldSet(this, _BaseSolanaMobileWalletAdapter_connecting, true, "f");
|
|
385
|
-
try {
|
|
386
|
-
yield __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_wallet, "f").features[StandardConnect].connect({ silent: autoConnect });
|
|
387
|
-
}
|
|
388
|
-
catch (e) {
|
|
389
|
-
throw new walletAdapterBase.WalletConnectionError((e instanceof Error && e.message) || 'Unknown error', e);
|
|
390
|
-
}
|
|
391
|
-
finally {
|
|
392
|
-
__classPrivateFieldSet(this, _BaseSolanaMobileWalletAdapter_connecting, false, "f");
|
|
393
|
-
}
|
|
394
|
-
}));
|
|
395
|
-
});
|
|
396
|
-
}, _BaseSolanaMobileWalletAdapter_declareWalletAsInstalled = function _BaseSolanaMobileWalletAdapter_declareWalletAsInstalled() {
|
|
397
|
-
if (__classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_readyState, "f") !== walletAdapterBase.WalletReadyState.Installed) {
|
|
398
|
-
this.emit('readyStateChange', (__classPrivateFieldSet(this, _BaseSolanaMobileWalletAdapter_readyState, walletAdapterBase.WalletReadyState.Installed, "f")));
|
|
399
|
-
}
|
|
400
|
-
}, _BaseSolanaMobileWalletAdapter_assertIsAuthorized = function _BaseSolanaMobileWalletAdapter_assertIsAuthorized() {
|
|
401
|
-
if (!__classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_wallet, "f").isAuthorized || !__classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_selectedAccount, "f"))
|
|
402
|
-
throw new walletAdapterBase.WalletNotConnectedError();
|
|
403
|
-
return __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_selectedAccount, "f");
|
|
404
|
-
}, _BaseSolanaMobileWalletAdapter_performSignTransactions = function _BaseSolanaMobileWalletAdapter_performSignTransactions(transactions) {
|
|
405
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
-
const account = __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_instances, "m", _BaseSolanaMobileWalletAdapter_assertIsAuthorized).call(this);
|
|
407
|
-
try {
|
|
408
|
-
if (walletStandardFeatures.SolanaSignTransaction in __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_wallet, "f").features) {
|
|
409
|
-
return __classPrivateFieldGet(this, _BaseSolanaMobileWalletAdapter_wallet, "f").features[walletStandardFeatures.SolanaSignTransaction].signTransaction(...transactions.map((value) => {
|
|
410
|
-
return { account, transaction: value.serialize() };
|
|
411
|
-
})).then((outputs) => {
|
|
412
|
-
return outputs.map((output) => {
|
|
413
|
-
const byteArray = output.signedTransaction;
|
|
414
|
-
const numSignatures = byteArray[0];
|
|
415
|
-
const messageOffset = numSignatures * SIGNATURE_LENGTH_IN_BYTES + 1;
|
|
416
|
-
const version = web3_js.VersionedMessage.deserializeMessageVersion(byteArray.slice(messageOffset, byteArray.length));
|
|
417
|
-
if (version === 'legacy') {
|
|
418
|
-
return web3_js.Transaction.from(byteArray);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
return web3_js.VersionedTransaction.deserialize(byteArray);
|
|
422
|
-
}
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
throw new Error('Connected wallet does not support signing transactions');
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
catch (error) {
|
|
431
|
-
throw new walletAdapterBase.WalletSignTransactionError(error === null || error === void 0 ? void 0 : error.message, error);
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
}, _BaseSolanaMobileWalletAdapter_runWithGuard = function _BaseSolanaMobileWalletAdapter_runWithGuard(callback) {
|
|
435
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
-
try {
|
|
437
|
-
return yield callback();
|
|
438
|
-
}
|
|
439
|
-
catch (e) {
|
|
440
|
-
this.emit('error', e);
|
|
441
|
-
throw e;
|
|
442
|
-
}
|
|
443
|
-
});
|
|
53
|
+
var BaseSolanaMobileWalletAdapter = class extends _solana_wallet_adapter_base.BaseSignInMessageSignerWalletAdapter {
|
|
54
|
+
supportedTransactionVersions = new Set(["legacy", 0]);
|
|
55
|
+
name;
|
|
56
|
+
icon;
|
|
57
|
+
url;
|
|
58
|
+
#wallet;
|
|
59
|
+
#connecting = false;
|
|
60
|
+
#readyState = getIsSupported() ? _solana_wallet_adapter_base.WalletReadyState.Loadable : _solana_wallet_adapter_base.WalletReadyState.Unsupported;
|
|
61
|
+
#accountSelector;
|
|
62
|
+
#selectedAccount;
|
|
63
|
+
#publicKey;
|
|
64
|
+
#handleChangeEvent = async (properties) => {
|
|
65
|
+
if (properties.accounts && properties.accounts.length > 0) {
|
|
66
|
+
this.#declareWalletAsInstalled();
|
|
67
|
+
const nextSelectedAccount = await this.#accountSelector(properties.accounts);
|
|
68
|
+
if (nextSelectedAccount !== this.#selectedAccount) {
|
|
69
|
+
this.#selectedAccount = nextSelectedAccount;
|
|
70
|
+
this.#publicKey = void 0;
|
|
71
|
+
this.emit("connect", this.publicKey);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
constructor(wallet, config) {
|
|
76
|
+
super();
|
|
77
|
+
this.#accountSelector = async (accounts) => {
|
|
78
|
+
const selectedBase64EncodedAddress = await config.addressSelector.select(accounts.map(({ publicKey }) => (0, js_base64.fromUint8Array)(new Uint8Array(publicKey))));
|
|
79
|
+
return accounts.find(({ publicKey }) => (0, js_base64.fromUint8Array)(new Uint8Array(publicKey)) === selectedBase64EncodedAddress) ?? accounts[0];
|
|
80
|
+
};
|
|
81
|
+
this.#wallet = wallet;
|
|
82
|
+
this.#wallet.features[_wallet_standard_core.StandardEvents].on("change", this.#handleChangeEvent);
|
|
83
|
+
this.name = this.#wallet.name;
|
|
84
|
+
this.icon = this.#wallet.icon;
|
|
85
|
+
this.url = this.#wallet.url;
|
|
86
|
+
}
|
|
87
|
+
get publicKey() {
|
|
88
|
+
if (!this.#publicKey && this.#selectedAccount) try {
|
|
89
|
+
this.#publicKey = new _solana_web3_js.PublicKey(this.#selectedAccount.publicKey);
|
|
90
|
+
} catch (e) {
|
|
91
|
+
throw new _solana_wallet_adapter_base.WalletPublicKeyError(e instanceof Error && e?.message || "Unknown error", e);
|
|
92
|
+
}
|
|
93
|
+
return this.#publicKey ?? null;
|
|
94
|
+
}
|
|
95
|
+
get connected() {
|
|
96
|
+
return this.#wallet.connected;
|
|
97
|
+
}
|
|
98
|
+
get connecting() {
|
|
99
|
+
return this.#connecting;
|
|
100
|
+
}
|
|
101
|
+
get readyState() {
|
|
102
|
+
return this.#readyState;
|
|
103
|
+
}
|
|
104
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
105
|
+
async autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
106
|
+
return await this.autoConnect();
|
|
107
|
+
}
|
|
108
|
+
async autoConnect() {
|
|
109
|
+
this.#connect(true);
|
|
110
|
+
}
|
|
111
|
+
async connect() {
|
|
112
|
+
this.#connect();
|
|
113
|
+
}
|
|
114
|
+
async #connect(autoConnect = false) {
|
|
115
|
+
if (this.connecting || this.connected) return;
|
|
116
|
+
return await this.#runWithGuard(async () => {
|
|
117
|
+
if (this.#readyState !== _solana_wallet_adapter_base.WalletReadyState.Installed && this.#readyState !== _solana_wallet_adapter_base.WalletReadyState.Loadable) throw new _solana_wallet_adapter_base.WalletNotReadyError();
|
|
118
|
+
this.#connecting = true;
|
|
119
|
+
try {
|
|
120
|
+
await this.#wallet.features[_wallet_standard_core.StandardConnect].connect({ silent: autoConnect });
|
|
121
|
+
} catch (e) {
|
|
122
|
+
throw new _solana_wallet_adapter_base.WalletConnectionError(e instanceof Error && e.message || "Unknown error", e);
|
|
123
|
+
} finally {
|
|
124
|
+
this.#connecting = false;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/** @deprecated Use `connect()` or `autoConnect()` instead. */
|
|
129
|
+
async performAuthorization(signInPayload) {
|
|
130
|
+
try {
|
|
131
|
+
const cachedAuthorizationResult = await this.#wallet.cachedAuthorizationResult;
|
|
132
|
+
if (cachedAuthorizationResult) {
|
|
133
|
+
await this.#wallet.features[_wallet_standard_core.StandardConnect].connect({ silent: true });
|
|
134
|
+
return cachedAuthorizationResult;
|
|
135
|
+
}
|
|
136
|
+
if (signInPayload) await this.#wallet.features[_solana_wallet_standard_features.SolanaSignIn].signIn(signInPayload);
|
|
137
|
+
else await this.#wallet.features[_wallet_standard_core.StandardConnect].connect();
|
|
138
|
+
return await await this.#wallet.cachedAuthorizationResult;
|
|
139
|
+
} catch (e) {
|
|
140
|
+
throw new _solana_wallet_adapter_base.WalletConnectionError(e instanceof Error && e.message || "Unknown error", e);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
async disconnect() {
|
|
144
|
+
return await this.#runWithGuard(async () => {
|
|
145
|
+
this.#connecting = false;
|
|
146
|
+
this.#publicKey = void 0;
|
|
147
|
+
this.#selectedAccount = void 0;
|
|
148
|
+
await this.#wallet.features[_wallet_standard_core.StandardDisconnect].disconnect();
|
|
149
|
+
this.emit("disconnect");
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
async signIn(input) {
|
|
153
|
+
return this.#runWithGuard(async () => {
|
|
154
|
+
if (this.#readyState !== _solana_wallet_adapter_base.WalletReadyState.Installed && this.#readyState !== _solana_wallet_adapter_base.WalletReadyState.Loadable) throw new _solana_wallet_adapter_base.WalletNotReadyError();
|
|
155
|
+
this.#connecting = true;
|
|
156
|
+
try {
|
|
157
|
+
const outputs = await this.#wallet.features[_solana_wallet_standard_features.SolanaSignIn].signIn({
|
|
158
|
+
...input,
|
|
159
|
+
domain: input?.domain ?? window.location.host
|
|
160
|
+
});
|
|
161
|
+
if (outputs.length > 0) return outputs[0];
|
|
162
|
+
else throw new Error("Sign in failed, no sign in result returned by wallet");
|
|
163
|
+
} catch (e) {
|
|
164
|
+
throw new _solana_wallet_adapter_base.WalletConnectionError(e instanceof Error && e.message || "Unknown error", e);
|
|
165
|
+
} finally {
|
|
166
|
+
this.#connecting = false;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
async signMessage(message) {
|
|
171
|
+
return await this.#runWithGuard(async () => {
|
|
172
|
+
const account = this.#assertIsAuthorized();
|
|
173
|
+
try {
|
|
174
|
+
return (await this.#wallet.features[_solana_wallet_standard_features.SolanaSignMessage].signMessage({
|
|
175
|
+
account,
|
|
176
|
+
message
|
|
177
|
+
}))[0].signature;
|
|
178
|
+
} catch (error) {
|
|
179
|
+
throw new _solana_wallet_adapter_base.WalletSignMessageError(error?.message, error);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
async sendTransaction(transaction, connection, options) {
|
|
184
|
+
return await this.#runWithGuard(async () => {
|
|
185
|
+
const account = this.#assertIsAuthorized();
|
|
186
|
+
try {
|
|
187
|
+
function getTargetCommitment() {
|
|
188
|
+
let targetCommitment;
|
|
189
|
+
switch (connection.commitment) {
|
|
190
|
+
case "confirmed":
|
|
191
|
+
case "finalized":
|
|
192
|
+
case "processed":
|
|
193
|
+
targetCommitment = connection.commitment;
|
|
194
|
+
break;
|
|
195
|
+
default: targetCommitment = "finalized";
|
|
196
|
+
}
|
|
197
|
+
let targetPreflightCommitment;
|
|
198
|
+
switch (options?.preflightCommitment) {
|
|
199
|
+
case "confirmed":
|
|
200
|
+
case "finalized":
|
|
201
|
+
case "processed":
|
|
202
|
+
targetPreflightCommitment = options.preflightCommitment;
|
|
203
|
+
break;
|
|
204
|
+
case void 0:
|
|
205
|
+
targetPreflightCommitment = targetCommitment;
|
|
206
|
+
break;
|
|
207
|
+
default: targetPreflightCommitment = "finalized";
|
|
208
|
+
}
|
|
209
|
+
return (targetPreflightCommitment === "finalized" ? 2 : targetPreflightCommitment === "confirmed" ? 1 : 0) < (targetCommitment === "finalized" ? 2 : targetCommitment === "confirmed" ? 1 : 0) ? targetPreflightCommitment : targetCommitment;
|
|
210
|
+
}
|
|
211
|
+
if (_solana_wallet_standard_features.SolanaSignAndSendTransaction in this.#wallet.features) {
|
|
212
|
+
const chain = chainOrClusterToChainId(this.#wallet.currentAuthorization.chain);
|
|
213
|
+
const [signature] = (await this.#wallet.features[_solana_wallet_standard_features.SolanaSignAndSendTransaction].signAndSendTransaction({
|
|
214
|
+
account,
|
|
215
|
+
transaction: transaction.serialize(),
|
|
216
|
+
chain,
|
|
217
|
+
options: options ? {
|
|
218
|
+
skipPreflight: options.skipPreflight,
|
|
219
|
+
maxRetries: options.maxRetries
|
|
220
|
+
} : void 0
|
|
221
|
+
})).map((output) => {
|
|
222
|
+
return (0, js_base64.fromUint8Array)(output.signature);
|
|
223
|
+
});
|
|
224
|
+
return signature;
|
|
225
|
+
} else {
|
|
226
|
+
const [signedTransaction] = await this.#performSignTransactions([transaction]);
|
|
227
|
+
if (isVersionedTransaction(signedTransaction)) return await connection.sendTransaction(signedTransaction);
|
|
228
|
+
else {
|
|
229
|
+
const serializedTransaction = signedTransaction.serialize();
|
|
230
|
+
return await connection.sendRawTransaction(serializedTransaction, {
|
|
231
|
+
...options,
|
|
232
|
+
preflightCommitment: getTargetCommitment()
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
} catch (error) {
|
|
237
|
+
throw new _solana_wallet_adapter_base.WalletSendTransactionError(error?.message, error);
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
async signTransaction(transaction) {
|
|
242
|
+
return await this.#runWithGuard(async () => {
|
|
243
|
+
const [signedTransaction] = await this.#performSignTransactions([transaction]);
|
|
244
|
+
return signedTransaction;
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
async signAllTransactions(transactions) {
|
|
248
|
+
return await this.#runWithGuard(async () => {
|
|
249
|
+
return await this.#performSignTransactions(transactions);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
#declareWalletAsInstalled() {
|
|
253
|
+
if (this.#readyState !== _solana_wallet_adapter_base.WalletReadyState.Installed) this.emit("readyStateChange", this.#readyState = _solana_wallet_adapter_base.WalletReadyState.Installed);
|
|
254
|
+
}
|
|
255
|
+
#assertIsAuthorized() {
|
|
256
|
+
if (!this.#wallet.isAuthorized || !this.#selectedAccount) throw new _solana_wallet_adapter_base.WalletNotConnectedError();
|
|
257
|
+
return this.#selectedAccount;
|
|
258
|
+
}
|
|
259
|
+
async #performSignTransactions(transactions) {
|
|
260
|
+
const account = this.#assertIsAuthorized();
|
|
261
|
+
try {
|
|
262
|
+
if (_solana_wallet_standard_features.SolanaSignTransaction in this.#wallet.features) return this.#wallet.features[_solana_wallet_standard_features.SolanaSignTransaction].signTransaction(...transactions.map((value) => {
|
|
263
|
+
return {
|
|
264
|
+
account,
|
|
265
|
+
transaction: value.serialize()
|
|
266
|
+
};
|
|
267
|
+
})).then((outputs) => {
|
|
268
|
+
return outputs.map((output) => {
|
|
269
|
+
const byteArray = output.signedTransaction;
|
|
270
|
+
const messageOffset = byteArray[0] * SIGNATURE_LENGTH_IN_BYTES + 1;
|
|
271
|
+
if (_solana_web3_js.VersionedMessage.deserializeMessageVersion(byteArray.slice(messageOffset, byteArray.length)) === "legacy") return _solana_web3_js.Transaction.from(byteArray);
|
|
272
|
+
else return _solana_web3_js.VersionedTransaction.deserialize(byteArray);
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
else throw new Error("Connected wallet does not support signing transactions");
|
|
276
|
+
} catch (error) {
|
|
277
|
+
throw new _solana_wallet_adapter_base.WalletSignTransactionError(error?.message, error);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
async #runWithGuard(callback) {
|
|
281
|
+
try {
|
|
282
|
+
return await callback();
|
|
283
|
+
} catch (e) {
|
|
284
|
+
this.emit("error", e);
|
|
285
|
+
throw e;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
444
288
|
};
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
289
|
+
var LocalSolanaMobileWalletAdapter = class extends BaseSolanaMobileWalletAdapter {
|
|
290
|
+
constructor(config) {
|
|
291
|
+
const chain = chainOrClusterToChainId(config.chain ?? config.cluster);
|
|
292
|
+
super(new _solana_mobile_wallet_standard_mobile.LocalSolanaMobileWalletAdapterWallet({
|
|
293
|
+
appIdentity: config.appIdentity,
|
|
294
|
+
authorizationCache: {
|
|
295
|
+
set: config.authorizationResultCache.set,
|
|
296
|
+
get: async () => {
|
|
297
|
+
return await config.authorizationResultCache.get();
|
|
298
|
+
},
|
|
299
|
+
clear: config.authorizationResultCache.clear
|
|
300
|
+
},
|
|
301
|
+
chains: [chain],
|
|
302
|
+
chainSelector: (0, _solana_mobile_wallet_standard_mobile.createDefaultChainSelector)(),
|
|
303
|
+
onWalletNotFound: async () => {
|
|
304
|
+
config.onWalletNotFound(this);
|
|
305
|
+
}
|
|
306
|
+
}), {
|
|
307
|
+
addressSelector: config.addressSelector,
|
|
308
|
+
chain
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
var RemoteSolanaMobileWalletAdapter = class extends BaseSolanaMobileWalletAdapter {
|
|
313
|
+
constructor(config) {
|
|
314
|
+
const chain = chainOrClusterToChainId(config.chain);
|
|
315
|
+
super(new _solana_mobile_wallet_standard_mobile.RemoteSolanaMobileWalletAdapterWallet({
|
|
316
|
+
appIdentity: config.appIdentity,
|
|
317
|
+
authorizationCache: {
|
|
318
|
+
set: config.authorizationResultCache.set,
|
|
319
|
+
get: async () => {
|
|
320
|
+
return await config.authorizationResultCache.get();
|
|
321
|
+
},
|
|
322
|
+
clear: config.authorizationResultCache.clear
|
|
323
|
+
},
|
|
324
|
+
chains: [chain],
|
|
325
|
+
chainSelector: (0, _solana_mobile_wallet_standard_mobile.createDefaultChainSelector)(),
|
|
326
|
+
remoteHostAuthority: config.remoteHostAuthority,
|
|
327
|
+
onWalletNotFound: async () => {
|
|
328
|
+
config.onWalletNotFound(this);
|
|
329
|
+
}
|
|
330
|
+
}), {
|
|
331
|
+
addressSelector: config.addressSelector,
|
|
332
|
+
chain
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var SolanaMobileWalletAdapter = class extends LocalSolanaMobileWalletAdapter {};
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/createDefaultAddressSelector.ts
|
|
496
339
|
function createDefaultAddressSelector() {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
return addresses[0];
|
|
501
|
-
});
|
|
502
|
-
},
|
|
503
|
-
};
|
|
340
|
+
return { async select(addresses) {
|
|
341
|
+
return addresses[0];
|
|
342
|
+
} };
|
|
504
343
|
}
|
|
505
|
-
|
|
506
|
-
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region src/__forks__/react-native/createDefaultAuthorizationResultCache.ts
|
|
346
|
+
const CACHE_KEY = "SolanaMobileWalletAdapterDefaultAuthorizationCache";
|
|
507
347
|
function createDefaultAuthorizationResultCache() {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
});
|
|
526
|
-
},
|
|
527
|
-
set(authorizationResult) {
|
|
528
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
529
|
-
try {
|
|
530
|
-
yield AsyncStorage__default["default"].setItem(CACHE_KEY, JSON.stringify(authorizationResult));
|
|
531
|
-
// eslint-disable-next-line no-empty
|
|
532
|
-
}
|
|
533
|
-
catch (_a) { }
|
|
534
|
-
});
|
|
535
|
-
},
|
|
536
|
-
};
|
|
348
|
+
return {
|
|
349
|
+
async clear() {
|
|
350
|
+
try {
|
|
351
|
+
await _react_native_async_storage_async_storage.default.removeItem(CACHE_KEY);
|
|
352
|
+
} catch {}
|
|
353
|
+
},
|
|
354
|
+
async get() {
|
|
355
|
+
try {
|
|
356
|
+
return JSON.parse(await _react_native_async_storage_async_storage.default.getItem(CACHE_KEY)) || void 0;
|
|
357
|
+
} catch {}
|
|
358
|
+
},
|
|
359
|
+
async set(authorizationResult) {
|
|
360
|
+
try {
|
|
361
|
+
await _react_native_async_storage_async_storage.default.setItem(CACHE_KEY, JSON.stringify(authorizationResult));
|
|
362
|
+
} catch {}
|
|
363
|
+
}
|
|
364
|
+
};
|
|
537
365
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
});
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/createDefaultWalletNotFoundHandler.ts
|
|
368
|
+
async function defaultWalletNotFoundHandler(mobileWalletAdapter) {
|
|
369
|
+
return (0, _solana_mobile_wallet_standard_mobile.defaultErrorModalWalletNotFoundHandler)();
|
|
543
370
|
}
|
|
544
371
|
function createDefaultWalletNotFoundHandler() {
|
|
545
|
-
|
|
372
|
+
return defaultWalletNotFoundHandler;
|
|
546
373
|
}
|
|
547
|
-
|
|
374
|
+
//#endregion
|
|
548
375
|
exports.LocalSolanaMobileWalletAdapter = LocalSolanaMobileWalletAdapter;
|
|
549
376
|
exports.RemoteSolanaMobileWalletAdapter = RemoteSolanaMobileWalletAdapter;
|
|
550
377
|
exports.SolanaMobileWalletAdapter = SolanaMobileWalletAdapter;
|
|
@@ -553,3 +380,5 @@ exports.SolanaMobileWalletAdapterWalletName = SolanaMobileWalletAdapterWalletNam
|
|
|
553
380
|
exports.createDefaultAddressSelector = createDefaultAddressSelector;
|
|
554
381
|
exports.createDefaultAuthorizationResultCache = createDefaultAuthorizationResultCache;
|
|
555
382
|
exports.createDefaultWalletNotFoundHandler = createDefaultWalletNotFoundHandler;
|
|
383
|
+
|
|
384
|
+
//# sourceMappingURL=index.native.js.map
|