@llayer-network/wallet-standard-wallet-adapter-base 1.1.4

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.
@@ -0,0 +1,397 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ 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");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ 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");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _StandardWalletAdapter_instances, _StandardWalletAdapter_account, _StandardWalletAdapter_publicKey, _StandardWalletAdapter_connecting, _StandardWalletAdapter_disconnecting, _StandardWalletAdapter_off, _StandardWalletAdapter_supportedTransactionVersions, _StandardWalletAdapter_wallet, _StandardWalletAdapter_readyState, _StandardWalletAdapter_connect, _StandardWalletAdapter_connected, _StandardWalletAdapter_disconnected, _StandardWalletAdapter_reset, _StandardWalletAdapter_changed, _StandardWalletAdapter_signTransaction, _StandardWalletAdapter_signAllTransactions, _StandardWalletAdapter_signMessage, _StandardWalletAdapter_signIn;
13
+ import { BaseWalletAdapter, isVersionedTransaction, WalletAccountError, WalletConfigError, WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, WalletError, WalletNotConnectedError, WalletNotReadyError, WalletPublicKeyError, WalletReadyState, WalletSendTransactionError, WalletSignInError, WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base';
14
+ import { SolanaSignAndSendTransaction, SolanaSignIn, SolanaSignMessage, SolanaSignTransaction, } from '@llayer-network/wallet-standard-features';
15
+ import { getChainForEndpoint, getCommitment } from '@llayer-network/wallet-standard-util';
16
+ import { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
17
+ import { StandardConnect, StandardDisconnect, StandardEvents, } from '@llayer-wallet-standard/features';
18
+ import { arraysEqual } from '@llayer-wallet-standard/wallet';
19
+ import bs58 from 'bs58';
20
+ /** TODO: docs */
21
+ export class StandardWalletAdapter extends BaseWalletAdapter {
22
+ get name() {
23
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").name;
24
+ }
25
+ get url() {
26
+ return 'https://github.com/solana-labs/wallet-standard';
27
+ }
28
+ get icon() {
29
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").icon;
30
+ }
31
+ get readyState() {
32
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_readyState, "f");
33
+ }
34
+ get publicKey() {
35
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_publicKey, "f");
36
+ }
37
+ get connecting() {
38
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_connecting, "f");
39
+ }
40
+ get supportedTransactionVersions() {
41
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_supportedTransactionVersions, "f");
42
+ }
43
+ get wallet() {
44
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f");
45
+ }
46
+ get standard() {
47
+ return true;
48
+ }
49
+ constructor({ wallet }) {
50
+ super();
51
+ _StandardWalletAdapter_instances.add(this);
52
+ _StandardWalletAdapter_account.set(this, void 0);
53
+ _StandardWalletAdapter_publicKey.set(this, void 0);
54
+ _StandardWalletAdapter_connecting.set(this, void 0);
55
+ _StandardWalletAdapter_disconnecting.set(this, void 0);
56
+ _StandardWalletAdapter_off.set(this, void 0);
57
+ _StandardWalletAdapter_supportedTransactionVersions.set(this, void 0);
58
+ _StandardWalletAdapter_wallet.set(this, void 0);
59
+ _StandardWalletAdapter_readyState.set(this, typeof window === 'undefined' || typeof document === 'undefined'
60
+ ? WalletReadyState.Unsupported
61
+ : WalletReadyState.Installed);
62
+ _StandardWalletAdapter_changed.set(this, (properties) => {
63
+ // If accounts have changed on the wallet, reflect this on the adapter.
64
+ if ('accounts' in properties) {
65
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").accounts[0];
66
+ // If the adapter isn't connected, or is disconnecting, or the first account hasn't changed, do nothing.
67
+ if (__classPrivateFieldGet(this, _StandardWalletAdapter_account, "f") && !__classPrivateFieldGet(this, _StandardWalletAdapter_disconnecting, "f") && account !== __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f")) {
68
+ // If there's a connected account, connect the adapter. Otherwise, disconnect it.
69
+ if (account) {
70
+ // Connect the adapter.
71
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_connected).call(this, account);
72
+ }
73
+ else {
74
+ // Emit an error because the wallet spontaneously disconnected.
75
+ this.emit('error', new WalletDisconnectedError());
76
+ // Disconnect the adapter.
77
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_disconnected).call(this);
78
+ }
79
+ }
80
+ }
81
+ // After reflecting account changes, if features have changed on the wallet, reflect this on the adapter.
82
+ if ('features' in properties) {
83
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_reset).call(this);
84
+ }
85
+ });
86
+ __classPrivateFieldSet(this, _StandardWalletAdapter_wallet, wallet, "f");
87
+ __classPrivateFieldSet(this, _StandardWalletAdapter_account, null, "f");
88
+ __classPrivateFieldSet(this, _StandardWalletAdapter_publicKey, null, "f");
89
+ __classPrivateFieldSet(this, _StandardWalletAdapter_connecting, false, "f");
90
+ __classPrivateFieldSet(this, _StandardWalletAdapter_disconnecting, false, "f");
91
+ __classPrivateFieldSet(this, _StandardWalletAdapter_off, __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[StandardEvents].on('change', __classPrivateFieldGet(this, _StandardWalletAdapter_changed, "f")), "f");
92
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_reset).call(this);
93
+ }
94
+ destroy() {
95
+ __classPrivateFieldSet(this, _StandardWalletAdapter_account, null, "f");
96
+ __classPrivateFieldSet(this, _StandardWalletAdapter_publicKey, null, "f");
97
+ __classPrivateFieldSet(this, _StandardWalletAdapter_connecting, false, "f");
98
+ __classPrivateFieldSet(this, _StandardWalletAdapter_disconnecting, false, "f");
99
+ const off = __classPrivateFieldGet(this, _StandardWalletAdapter_off, "f");
100
+ if (off) {
101
+ __classPrivateFieldSet(this, _StandardWalletAdapter_off, null, "f");
102
+ off();
103
+ }
104
+ }
105
+ async autoConnect() {
106
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_connect).call(this, { silent: true });
107
+ }
108
+ async connect() {
109
+ return __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_connect).call(this);
110
+ }
111
+ async disconnect() {
112
+ if (StandardDisconnect in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features) {
113
+ try {
114
+ __classPrivateFieldSet(this, _StandardWalletAdapter_disconnecting, true, "f");
115
+ await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[StandardDisconnect].disconnect();
116
+ }
117
+ catch (error) {
118
+ this.emit('error', new WalletDisconnectionError(error?.message, error));
119
+ }
120
+ finally {
121
+ __classPrivateFieldSet(this, _StandardWalletAdapter_disconnecting, false, "f");
122
+ }
123
+ }
124
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_disconnected).call(this);
125
+ }
126
+ async sendTransaction(transaction, connection, options = {}) {
127
+ try {
128
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f");
129
+ if (!account)
130
+ throw new WalletNotConnectedError();
131
+ let feature;
132
+ if (SolanaSignAndSendTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features) {
133
+ if (account.features.includes(SolanaSignAndSendTransaction)) {
134
+ feature = SolanaSignAndSendTransaction;
135
+ }
136
+ else if (SolanaSignTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features &&
137
+ account.features.includes(SolanaSignTransaction)) {
138
+ feature = SolanaSignTransaction;
139
+ }
140
+ else {
141
+ throw new WalletAccountError();
142
+ }
143
+ }
144
+ else if (SolanaSignTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features) {
145
+ if (!account.features.includes(SolanaSignTransaction))
146
+ throw new WalletAccountError();
147
+ feature = SolanaSignTransaction;
148
+ }
149
+ else {
150
+ throw new WalletConfigError();
151
+ }
152
+ const chain = getChainForEndpoint(connection.rpcEndpoint);
153
+ if (!account.chains.includes(chain))
154
+ throw new WalletSendTransactionError();
155
+ try {
156
+ const { signers, ...sendOptions } = options;
157
+ let serializedTransaction;
158
+ if (isVersionedTransaction(transaction)) {
159
+ signers?.length && transaction.sign(signers);
160
+ serializedTransaction = transaction.serialize();
161
+ }
162
+ else {
163
+ transaction = (await this.prepareTransaction(transaction, connection, sendOptions));
164
+ signers?.length && transaction.partialSign(...signers);
165
+ serializedTransaction = new Uint8Array(transaction.serialize({
166
+ requireAllSignatures: false,
167
+ verifySignatures: false,
168
+ }));
169
+ }
170
+ if (feature === SolanaSignAndSendTransaction) {
171
+ const [output] = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignAndSendTransaction].signAndSendTransaction({
172
+ account,
173
+ chain,
174
+ transaction: serializedTransaction,
175
+ options: {
176
+ preflightCommitment: getCommitment(sendOptions.preflightCommitment || connection.commitment),
177
+ skipPreflight: sendOptions.skipPreflight,
178
+ maxRetries: sendOptions.maxRetries,
179
+ minContextSlot: sendOptions.minContextSlot,
180
+ },
181
+ });
182
+ return bs58.encode(output.signature);
183
+ }
184
+ else {
185
+ const [output] = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignTransaction].signTransaction({
186
+ account,
187
+ chain,
188
+ transaction: serializedTransaction,
189
+ options: {
190
+ preflightCommitment: getCommitment(sendOptions.preflightCommitment || connection.commitment),
191
+ minContextSlot: sendOptions.minContextSlot,
192
+ },
193
+ });
194
+ return await connection.sendRawTransaction(output.signedTransaction, {
195
+ ...sendOptions,
196
+ preflightCommitment: getCommitment(sendOptions.preflightCommitment || connection.commitment),
197
+ });
198
+ }
199
+ }
200
+ catch (error) {
201
+ if (error instanceof WalletError)
202
+ throw error;
203
+ throw new WalletSendTransactionError(error?.message, error);
204
+ }
205
+ }
206
+ catch (error) {
207
+ this.emit('error', error);
208
+ throw error;
209
+ }
210
+ }
211
+ }
212
+ _StandardWalletAdapter_account = new WeakMap(), _StandardWalletAdapter_publicKey = new WeakMap(), _StandardWalletAdapter_connecting = new WeakMap(), _StandardWalletAdapter_disconnecting = new WeakMap(), _StandardWalletAdapter_off = new WeakMap(), _StandardWalletAdapter_supportedTransactionVersions = new WeakMap(), _StandardWalletAdapter_wallet = new WeakMap(), _StandardWalletAdapter_readyState = new WeakMap(), _StandardWalletAdapter_changed = new WeakMap(), _StandardWalletAdapter_instances = new WeakSet(), _StandardWalletAdapter_connect = async function _StandardWalletAdapter_connect(input) {
213
+ try {
214
+ if (this.connected || this.connecting)
215
+ return;
216
+ if (__classPrivateFieldGet(this, _StandardWalletAdapter_readyState, "f") !== WalletReadyState.Installed)
217
+ throw new WalletNotReadyError();
218
+ __classPrivateFieldSet(this, _StandardWalletAdapter_connecting, true, "f");
219
+ if (!__classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").accounts.length) {
220
+ try {
221
+ await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[StandardConnect].connect(input);
222
+ }
223
+ catch (error) {
224
+ throw new WalletConnectionError(error?.message, error);
225
+ }
226
+ }
227
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").accounts[0];
228
+ if (!account)
229
+ throw new WalletAccountError();
230
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_connected).call(this, account);
231
+ }
232
+ catch (error) {
233
+ this.emit('error', error);
234
+ throw error;
235
+ }
236
+ finally {
237
+ __classPrivateFieldSet(this, _StandardWalletAdapter_connecting, false, "f");
238
+ }
239
+ }, _StandardWalletAdapter_connected = function _StandardWalletAdapter_connected(account) {
240
+ let publicKey;
241
+ try {
242
+ // Use account.address instead of account.publicKey since address could be a PDA
243
+ publicKey = new PublicKey(account.address);
244
+ }
245
+ catch (error) {
246
+ throw new WalletPublicKeyError(error?.message, error);
247
+ }
248
+ __classPrivateFieldSet(this, _StandardWalletAdapter_account, account, "f");
249
+ __classPrivateFieldSet(this, _StandardWalletAdapter_publicKey, publicKey, "f");
250
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_reset).call(this);
251
+ this.emit('connect', publicKey);
252
+ }, _StandardWalletAdapter_disconnected = function _StandardWalletAdapter_disconnected() {
253
+ __classPrivateFieldSet(this, _StandardWalletAdapter_account, null, "f");
254
+ __classPrivateFieldSet(this, _StandardWalletAdapter_publicKey, null, "f");
255
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_reset).call(this);
256
+ this.emit('disconnect');
257
+ }, _StandardWalletAdapter_reset = function _StandardWalletAdapter_reset() {
258
+ const supportedTransactionVersions = SolanaSignAndSendTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features
259
+ ? __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignAndSendTransaction].supportedTransactionVersions
260
+ : __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignTransaction].supportedTransactionVersions;
261
+ __classPrivateFieldSet(this, _StandardWalletAdapter_supportedTransactionVersions, arraysEqual(supportedTransactionVersions, ['legacy'])
262
+ ? null
263
+ : new Set(supportedTransactionVersions), "f");
264
+ if (SolanaSignTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features && __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f")?.features.includes(SolanaSignTransaction)) {
265
+ this.signTransaction = __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_signTransaction);
266
+ this.signAllTransactions = __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_signAllTransactions);
267
+ }
268
+ else {
269
+ delete this.signTransaction;
270
+ delete this.signAllTransactions;
271
+ }
272
+ if (SolanaSignMessage in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features && __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f")?.features.includes(SolanaSignMessage)) {
273
+ this.signMessage = __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_signMessage);
274
+ }
275
+ else {
276
+ delete this.signMessage;
277
+ }
278
+ if (SolanaSignIn in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features) {
279
+ this.signIn = __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_signIn);
280
+ }
281
+ else {
282
+ delete this.signIn;
283
+ }
284
+ }, _StandardWalletAdapter_signTransaction = async function _StandardWalletAdapter_signTransaction(transaction) {
285
+ try {
286
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f");
287
+ if (!account)
288
+ throw new WalletNotConnectedError();
289
+ if (!(SolanaSignTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features))
290
+ throw new WalletConfigError();
291
+ if (!account.features.includes(SolanaSignTransaction))
292
+ throw new WalletAccountError();
293
+ try {
294
+ const signedTransactions = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignTransaction].signTransaction({
295
+ account,
296
+ transaction: isVersionedTransaction(transaction)
297
+ ? transaction.serialize()
298
+ : new Uint8Array(transaction.serialize({
299
+ requireAllSignatures: false,
300
+ verifySignatures: false,
301
+ })),
302
+ });
303
+ const serializedTransaction = signedTransactions[0].signedTransaction;
304
+ return (isVersionedTransaction(transaction)
305
+ ? VersionedTransaction.deserialize(serializedTransaction)
306
+ : Transaction.from(serializedTransaction));
307
+ }
308
+ catch (error) {
309
+ if (error instanceof WalletError)
310
+ throw error;
311
+ throw new WalletSignTransactionError(error?.message, error);
312
+ }
313
+ }
314
+ catch (error) {
315
+ this.emit('error', error);
316
+ throw error;
317
+ }
318
+ }, _StandardWalletAdapter_signAllTransactions = async function _StandardWalletAdapter_signAllTransactions(transactions) {
319
+ try {
320
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f");
321
+ if (!account)
322
+ throw new WalletNotConnectedError();
323
+ if (!(SolanaSignTransaction in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features))
324
+ throw new WalletConfigError();
325
+ if (!account.features.includes(SolanaSignTransaction))
326
+ throw new WalletAccountError();
327
+ try {
328
+ const signedTransactions = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignTransaction].signTransaction(...transactions.map((transaction) => ({
329
+ account,
330
+ transaction: isVersionedTransaction(transaction)
331
+ ? transaction.serialize()
332
+ : new Uint8Array(transaction.serialize({
333
+ requireAllSignatures: false,
334
+ verifySignatures: false,
335
+ })),
336
+ })));
337
+ return transactions.map((transaction, index) => {
338
+ const signedTransaction = signedTransactions[index].signedTransaction;
339
+ return (isVersionedTransaction(transaction)
340
+ ? VersionedTransaction.deserialize(signedTransaction)
341
+ : Transaction.from(signedTransaction));
342
+ });
343
+ }
344
+ catch (error) {
345
+ throw new WalletSignTransactionError(error?.message, error);
346
+ }
347
+ }
348
+ catch (error) {
349
+ this.emit('error', error);
350
+ throw error;
351
+ }
352
+ }, _StandardWalletAdapter_signMessage = async function _StandardWalletAdapter_signMessage(message) {
353
+ try {
354
+ const account = __classPrivateFieldGet(this, _StandardWalletAdapter_account, "f");
355
+ if (!account)
356
+ throw new WalletNotConnectedError();
357
+ if (!(SolanaSignMessage in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features))
358
+ throw new WalletConfigError();
359
+ if (!account.features.includes(SolanaSignMessage))
360
+ throw new WalletAccountError();
361
+ try {
362
+ const signedMessages = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignMessage].signMessage({
363
+ account,
364
+ message,
365
+ });
366
+ return signedMessages[0].signature;
367
+ }
368
+ catch (error) {
369
+ throw new WalletSignMessageError(error?.message, error);
370
+ }
371
+ }
372
+ catch (error) {
373
+ this.emit('error', error);
374
+ throw error;
375
+ }
376
+ }, _StandardWalletAdapter_signIn = async function _StandardWalletAdapter_signIn(input = {}) {
377
+ try {
378
+ if (!(SolanaSignIn in __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features))
379
+ throw new WalletConfigError();
380
+ let output;
381
+ try {
382
+ [output] = await __classPrivateFieldGet(this, _StandardWalletAdapter_wallet, "f").features[SolanaSignIn].signIn(input);
383
+ }
384
+ catch (error) {
385
+ throw new WalletSignInError(error?.message, error);
386
+ }
387
+ if (!output)
388
+ throw new WalletSignInError();
389
+ __classPrivateFieldGet(this, _StandardWalletAdapter_instances, "m", _StandardWalletAdapter_connected).call(this, output.account);
390
+ return output;
391
+ }
392
+ catch (error) {
393
+ this.emit('error', error);
394
+ throw error;
395
+ }
396
+ };
397
+ //# sourceMappingURL=adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../src/adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EAItB,kBAAkB,EAElB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,EAEX,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,GAC7B,MAAM,6BAA6B,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,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QAC5D,CAAC;IACL,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC1B,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC,kCAGD,KAAK,wCAAS,QAA2B,EAAE;IACvC,IAAI,CAAC;QACD,IAAI,CAAC,CAAC,YAAY,IAAI,uBAAA,IAAI,qCAAQ,CAAC,QAAQ,CAAC;YAAE,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAE5E,IAAI,MAAsC,CAAC;QAC3C,IAAI,CAAC;YACD,CAAC,MAAM,CAAC,GAAG,MAAM,uBAAA,IAAI,qCAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,IAAI,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAC3C,uBAAA,IAAI,0EAAW,MAAf,IAAI,EAAY,MAAM,CAAC,OAAO,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC1B,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './adapter.js';
2
+ export * from './types.js';
3
+ export * from './wallet.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"root":["../../src/adapter.ts","../../src/index.ts","../../src/types.ts","../../src/wallet.ts"],"version":"5.9.3"}
@@ -0,0 +1,8 @@
1
+ import { isWalletAdapterCompatibleStandardWallet, } from '@solana/wallet-adapter-base';
2
+ /**
3
+ * @deprecated Use `isWalletAdapterCompatibleStandardWallet` from `@solana/wallet-adapter-base` instead.
4
+ *
5
+ * @group Deprecated
6
+ */
7
+ export const isWalletAdapterCompatibleWallet = isWalletAdapterCompatibleStandardWallet;
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uCAAuC,GAG1C,MAAM,6BAA6B,CAAC;AAgBrC;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,uCAAuC,CAAC"}