@aptos-labs/wallet-adapter-core 7.9.2 → 7.10.1

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,486 @@
1
+ import { AptosWallet, AccountInfo, NetworkInfo, AptosSignInInput, AptosSignInOutput, AptosSignAndSubmitTransactionOutput, AptosSignMessageInput, AptosSignMessageOutput, AptosChangeNetworkOutput, AptosSignInBoundFields } from '@aptos-labs/wallet-standard';
2
+ export { AccountInfo, AptosChangeNetworkOutput, AptosSignAndSubmitTransactionOutput, AptosSignInBoundFields, AptosSignInInput, AptosSignInOutput, AptosSignMessageInput, AptosSignMessageOutput, AptosSignTransactionOutputV1_1, NetworkInfo } from '@aptos-labs/wallet-standard';
3
+ import EventEmitter from 'eventemitter3';
4
+ import * as _aptos_labs_ts_sdk from '@aptos-labs/ts-sdk';
5
+ import { AccountAddressInput, InputGenerateTransactionPayloadData, InputGenerateTransactionOptions, InputTransactionPluginData, Network, TransactionSubmitter, AnyRawTransaction, AccountAuthenticator, InputSubmitTransactionData, PendingTransactionResponse, AptosConfig } from '@aptos-labs/ts-sdk';
6
+ export { AccountAddress, AccountAuthenticator, AnyPublicKey, AnyRawTransaction, InputGenerateTransactionOptions, InputSubmitTransactionData, Network, PendingTransactionResponse, TransactionSubmitter } from '@aptos-labs/ts-sdk';
7
+ import { AptosConnectWalletConfig } from '@aptos-connect/wallet-adapter-plugin';
8
+
9
+ declare enum WalletReadyState {
10
+ /**
11
+ * Wallet can only be in one of two states - installed or not installed
12
+ * Installed: wallets are detected by the browser event listeners and means they are installed on the user's browser.
13
+ * NotDetected: wallets are not detected by the browser event listeners and means they are not installed on the user's browser.
14
+ */
15
+ Installed = "Installed",
16
+ NotDetected = "NotDetected"
17
+ }
18
+ declare enum NetworkName {
19
+ Mainnet = "mainnet",
20
+ Testnet = "testnet",
21
+ Devnet = "devnet"
22
+ }
23
+ declare const ChainIdToAnsSupportedNetworkMap: Record<string, string>;
24
+ /**
25
+ * The base URL for all Aptos Connect wallets.
26
+ *
27
+ * @deprecated Use {@link PETRA_WEB_BASE_URL} instead.
28
+ */
29
+ declare const APTOS_CONNECT_BASE_URL = "https://aptosconnect.app";
30
+ /** The base URL for all Petra Web wallets. */
31
+ declare const PETRA_WEB_BASE_URL = "https://web.petra.app";
32
+ /**
33
+ * The URL to the Aptos Connect account page if the user is signed in to Aptos Connect.
34
+ *
35
+ * @deprecated Use {@link PETRA_WEB_ACCOUNT_URL} instead.
36
+ */
37
+ declare const APTOS_CONNECT_ACCOUNT_URL = "https://aptosconnect.app/dashboard/main-account";
38
+ /** The URL to the Petra Web account page if the user is signed in to Petra Web. */
39
+ declare const PETRA_WEB_ACCOUNT_URL = "https://web.petra.app/dashboard/main-account";
40
+
41
+ interface AptosStandardSupportedWallet {
42
+ name: string;
43
+ url: string;
44
+ icon: `data:image/${"svg+xml" | "webp" | "png" | "gif"};base64,${string}`;
45
+ readyState: WalletReadyState.NotDetected;
46
+ isAIP62Standard: true;
47
+ deeplinkProvider?: string;
48
+ isAptosNativeWallet?: boolean;
49
+ }
50
+ type AvailableWallets = "Continue with Apple" | "Continue with Google" | "OKX Wallet" | "Petra" | "Nightly" | "Pontem Wallet" | "Backpack" | "MSafe" | "Bitget Wallet" | "Gate Wallet" | "Cosmostation Wallet";
51
+ type InputTransactionDataInner = {
52
+ sender?: AccountAddressInput;
53
+ data: InputGenerateTransactionPayloadData;
54
+ options?: InputGenerateTransactionOptions & {
55
+ expirationSecondsFromNow?: number;
56
+ expirationTimestamp?: number;
57
+ };
58
+ /** This will always be set to true if a custom transaction submitter is provided. */
59
+ withFeePayer?: boolean;
60
+ };
61
+ /**
62
+ * If `transactionSubmitter` is set it will be used, and override any transaction
63
+ * submitter configured in the DappConfig.
64
+ *
65
+ * The `pluginParams` parameter is used to provide additional parameters to a
66
+ * transaction submitter plugin, whether provided here or configured in the
67
+ * DappConfig.
68
+ */
69
+ type InputTransactionData = InputTransactionDataInner & InputTransactionPluginData;
70
+ type WalletInfo = {
71
+ name: string;
72
+ icon: string;
73
+ url: string;
74
+ };
75
+
76
+ type AdapterWallet = AptosWallet & {
77
+ readyState?: WalletReadyState;
78
+ isAptosNativeWallet?: boolean;
79
+ };
80
+ type AdapterNotDetectedWallet = Omit<AdapterWallet, "features" | "version" | "chains" | "accounts"> & {
81
+ readyState: WalletReadyState.NotDetected;
82
+ };
83
+ interface DappConfig {
84
+ network: Network;
85
+ /**
86
+ * If provided, the wallet adapter will submit transactions using the provided
87
+ * transaction submitter rather than via the wallet.
88
+ */
89
+ transactionSubmitter?: TransactionSubmitter;
90
+ aptosApiKeys?: Partial<Record<Network, string>>;
91
+ aptosConnectDappId?: string;
92
+ aptosConnect?: Omit<AptosConnectWalletConfig, "network">;
93
+ /**
94
+ * @deprecated will be removed in a future version
95
+ */
96
+ mizuwallet?: {
97
+ manifestURL: string;
98
+ appId?: string;
99
+ };
100
+ /**
101
+ * @deprecated will be removed in a future version
102
+ */
103
+ msafeWalletConfig?: {
104
+ appId?: string;
105
+ appUrl?: string;
106
+ };
107
+ crossChainWallets?: boolean;
108
+ }
109
+ declare interface WalletCoreEvents {
110
+ connect(account: AccountInfo | null): void;
111
+ disconnect(): void;
112
+ standardWalletsAdded(wallets: AdapterWallet): void;
113
+ standardNotDetectedWalletAdded(wallets: AdapterNotDetectedWallet): void;
114
+ networkChange(network: NetworkInfo | null): void;
115
+ accountChange(account: AccountInfo | null): void;
116
+ }
117
+ type AdapterAccountInfo = Omit<AccountInfo, "ansName"> & {
118
+ ansName?: string;
119
+ };
120
+ declare class WalletCore extends EventEmitter<WalletCoreEvents> {
121
+ private _wallet;
122
+ private readonly _sdkWallets;
123
+ private _standard_wallets;
124
+ private _standard_not_detected_wallets;
125
+ private _network;
126
+ private _connected;
127
+ private _connecting;
128
+ private _account;
129
+ private _dappConfig;
130
+ private _optInWallets;
131
+ private _disableTelemetry;
132
+ private readonly ga4;
133
+ constructor(optInWallets?: ReadonlyArray<AvailableWallets>, dappConfig?: DappConfig, disableTelemetry?: boolean);
134
+ private fetchExtensionAIP62AptosWallets;
135
+ /**
136
+ * Set AIP-62 extension wallets
137
+ *
138
+ * @param extensionwWallets
139
+ */
140
+ private setExtensionAIP62Wallets;
141
+ /**
142
+ * Set AIP-62 SDK wallets
143
+ */
144
+ private fetchSDKAIP62AptosWallets;
145
+ private isAptosNativeWallet;
146
+ private ensurePetraIsIncluded;
147
+ private appendNotDetectedStandardSupportedWallets;
148
+ /**
149
+ * A function that excludes an AIP-62 compatible wallet the dapp doesnt want to include
150
+ *
151
+ * @param wallet AdapterWallet | AdapterNotDetectedWallet
152
+ * @returns boolean
153
+ */
154
+ excludeWallet(wallet: AdapterWallet | AdapterNotDetectedWallet): boolean;
155
+ private recordEvent;
156
+ /**
157
+ * Helper function to ensure wallet exists
158
+ *
159
+ * @param wallet A wallet
160
+ */
161
+ private ensureWalletExists;
162
+ /**
163
+ * Helper function to ensure account exists
164
+ *
165
+ * @param account An account
166
+ */
167
+ private ensureAccountExists;
168
+ /**
169
+ * Queries and sets ANS name for the current connected wallet account
170
+ */
171
+ private setAnsName;
172
+ /**
173
+ * Function to cleat wallet adapter data.
174
+ *
175
+ * - Removes current connected wallet state
176
+ * - Removes current connected account state
177
+ * - Removes current connected network state
178
+ * - Removes autoconnect local storage value
179
+ */
180
+ private clearData;
181
+ /**
182
+ * Sets the connected wallet
183
+ *
184
+ * @param wallet A wallet
185
+ */
186
+ setWallet(wallet: AptosWallet | null): void;
187
+ /**
188
+ * Sets the connected account
189
+ *
190
+ * @param account An account
191
+ */
192
+ setAccount(account: AccountInfo | null): void;
193
+ /**
194
+ * Sets the connected network
195
+ *
196
+ * @param network A network
197
+ */
198
+ setNetwork(network: NetworkInfo | null): void;
199
+ /**
200
+ * Helper function to detect whether a wallet is connected
201
+ *
202
+ * @returns boolean
203
+ */
204
+ isConnected(): boolean;
205
+ /**
206
+ * Getter to fetch all detected wallets
207
+ */
208
+ get wallets(): ReadonlyArray<AptosWallet>;
209
+ get notDetectedWallets(): ReadonlyArray<AdapterNotDetectedWallet>;
210
+ /**
211
+ * Getter for the current connected wallet
212
+ *
213
+ * @return wallet info
214
+ * @throws WalletNotSelectedError
215
+ */
216
+ get wallet(): AptosWallet | null;
217
+ /**
218
+ * Getter for the current connected account
219
+ *
220
+ * @return account info
221
+ * @throws WalletAccountError
222
+ */
223
+ get account(): AccountInfo | null;
224
+ /**
225
+ * Getter for the current wallet network
226
+ *
227
+ * @return network info
228
+ * @throws WalletGetNetworkError
229
+ */
230
+ get network(): NetworkInfo | null;
231
+ /**
232
+ * Helper function to run some checks before we connect with a wallet.
233
+ *
234
+ * @param walletName. The wallet name we want to connect with.
235
+ */
236
+ connect(walletName: string): Promise<void | string>;
237
+ /**
238
+ * Signs into the wallet by connecting and signing an authentication messages.
239
+ *
240
+ * For more information, visit: https://siwa.aptos.dev
241
+ *
242
+ * @param args
243
+ * @param args.input The AptosSignInInput which defines how the SIWA Message should be constructed
244
+ * @param args.walletName The name of the wallet to sign into
245
+ * @returns The AptosSignInOutput which contains the account and signature information
246
+ */
247
+ signIn(args: {
248
+ input: AptosSignInInput;
249
+ walletName: string;
250
+ }): Promise<AptosSignInOutput>;
251
+ /**
252
+ * Connects a wallet to the dapp.
253
+ * On connect success, we set the current account and the network, and keeping the selected wallet
254
+ * name in LocalStorage to support autoConnect function.
255
+ *
256
+ * @param selectedWallet. The wallet we want to connect.
257
+ * @emit emits "connect" event
258
+ * @throws WalletConnectionError
259
+ */
260
+ private connectWallet;
261
+ /**
262
+ * Disconnect the current connected wallet. On success, we clear the
263
+ * current account, current network and LocalStorage data.
264
+ *
265
+ * @emit emits "disconnect" event
266
+ * @throws WalletDisconnectionError
267
+ */
268
+ disconnect(): Promise<void>;
269
+ /**
270
+ * Signs and submits a transaction to chain
271
+ *
272
+ * @param transactionInput InputTransactionData
273
+ * @returns AptosSignAndSubmitTransactionOutput
274
+ */
275
+ signAndSubmitTransaction(transactionInput: InputTransactionData): Promise<AptosSignAndSubmitTransactionOutput>;
276
+ /**
277
+ * Signs a transaction
278
+ *
279
+ * This method supports 2 input types -
280
+ * 1. A raw transaction that was already built by the dapp,
281
+ * 2. A transaction data input as JSON. This is for the wallet to be able to simulate before signing
282
+ *
283
+ * @param transactionOrPayload AnyRawTransaction | InputTransactionData
284
+ * @param asFeePayer optional. A flag indicates to sign the transaction as the fee payer
285
+ * @param options optional. Transaction options
286
+ *
287
+ * @returns AccountAuthenticator
288
+ */
289
+ signTransaction(args: {
290
+ transactionOrPayload: AnyRawTransaction | InputTransactionData;
291
+ asFeePayer?: boolean;
292
+ }): Promise<{
293
+ authenticator: AccountAuthenticator;
294
+ rawTransaction: Uint8Array;
295
+ }>;
296
+ /**
297
+ * Sign a message (doesnt submit to chain).
298
+ *
299
+ * @param message - AptosSignMessageInput
300
+ *
301
+ * @return response from the wallet's signMessage function
302
+ * @throws WalletSignMessageError
303
+ */
304
+ signMessage(message: AptosSignMessageInput): Promise<AptosSignMessageOutput>;
305
+ /**
306
+ * Submits transaction to chain
307
+ *
308
+ * @param transaction - InputSubmitTransactionData
309
+ * @returns PendingTransactionResponse
310
+ */
311
+ submitTransaction(transaction: InputSubmitTransactionData): Promise<PendingTransactionResponse>;
312
+ /**
313
+ Event for when account has changed on the wallet
314
+ @return the new account info
315
+ @throws WalletAccountChangeError
316
+ */
317
+ onAccountChange(): Promise<void>;
318
+ /**
319
+ Event for when network has changed on the wallet
320
+ @return the new network info
321
+ @throws WalletNetworkChangeError
322
+ */
323
+ onNetworkChange(): Promise<void>;
324
+ /**
325
+ * Sends a change network request to the wallet to change the connected network
326
+ *
327
+ * @param network - Network
328
+ * @returns AptosChangeNetworkOutput
329
+ */
330
+ changeNetwork(network: Network): Promise<AptosChangeNetworkOutput>;
331
+ /**
332
+ * Signs a message and verifies the signer
333
+ * @param message - AptosSignMessageInput
334
+ * @returns boolean
335
+ */
336
+ signMessageAndVerify(message: AptosSignMessageInput): Promise<boolean>;
337
+ }
338
+
339
+ declare function isMobile(): boolean;
340
+ declare function isInAppBrowser(): boolean;
341
+ declare function isRedirectable(): boolean;
342
+ declare function generalizedErrorMessage(error: any): string;
343
+ /**
344
+ * Helper function to get AptosConfig that supports Aptos and Custom networks
345
+ *
346
+ * @param networkInfo
347
+ * @param dappConfig
348
+ * @returns AptosConfig
349
+ */
350
+ declare const getAptosConfig: (networkInfo: NetworkInfo | null, dappConfig: DappConfig | undefined) => AptosConfig;
351
+ /**
352
+ * Helper function to resolve if the current connected network is an Aptos network
353
+ *
354
+ * @param networkInfo
355
+ * @returns boolean
356
+ */
357
+ declare const isAptosNetwork: (networkInfo: NetworkInfo | NetworkInfo | null) => boolean;
358
+ declare const isAptosLiveNetwork: (networkInfo: Network) => boolean;
359
+ /**
360
+ * Helper function to fetch Devnet chain id
361
+ */
362
+ declare const fetchDevnetChainId: () => Promise<number>;
363
+ /**
364
+ * A helper function to handle the publish package transaction.
365
+ * The Aptos SDK expects the metadataBytes and byteCode to be Uint8Array, but in case the arguments are passed in
366
+ * as a string, this function converts the string to Uint8Array.
367
+ */
368
+ declare const handlePublishPackageTransaction: (transactionInput: InputTransactionData) => {
369
+ metadataBytes: number | bigint | boolean | _aptos_labs_ts_sdk.AccountAddress | _aptos_labs_ts_sdk.Bool | _aptos_labs_ts_sdk.U8 | _aptos_labs_ts_sdk.U16 | _aptos_labs_ts_sdk.U32 | _aptos_labs_ts_sdk.U64 | _aptos_labs_ts_sdk.U128 | _aptos_labs_ts_sdk.U256 | _aptos_labs_ts_sdk.MoveVector<_aptos_labs_ts_sdk.EntryFunctionArgumentTypes> | _aptos_labs_ts_sdk.MoveOption<_aptos_labs_ts_sdk.EntryFunctionArgumentTypes> | _aptos_labs_ts_sdk.MoveString | _aptos_labs_ts_sdk.FixedBytes | Uint8Array<ArrayBufferLike> | ArrayBuffer | (_aptos_labs_ts_sdk.EntryFunctionArgumentTypes | _aptos_labs_ts_sdk.SimpleEntryFunctionArgumentTypes)[] | _aptos_labs_ts_sdk.MoveVector<_aptos_labs_ts_sdk.ScriptFunctionArgumentTypes> | _aptos_labs_ts_sdk.Serialized | null | undefined;
370
+ byteCode: (_aptos_labs_ts_sdk.EntryFunctionArgumentTypes | _aptos_labs_ts_sdk.SimpleEntryFunctionArgumentTypes)[];
371
+ };
372
+ declare function convertNetwork(networkInfo: NetworkInfo | null): Network;
373
+
374
+ declare function setLocalStorage(walletName: string): void;
375
+ declare function removeLocalStorage(): void;
376
+ declare function getLocalStorage(): void;
377
+
378
+ /**
379
+ * A function that will partition the provided wallets into two list — `defaultWallets` and `moreWallets`.
380
+ * By default, the wallets will be partitioned by whether or not they are installed or loadable.
381
+ * You can pass your own partition function if you wish to customize this behavior.
382
+ */
383
+ declare function partitionWallets(wallets: ReadonlyArray<AdapterWallet | AdapterNotDetectedWallet>, partitionFunction?: (wallet: AdapterWallet | AdapterNotDetectedWallet) => boolean): {
384
+ defaultWallets: AdapterWallet[];
385
+ moreWallets: AdapterNotDetectedWallet[];
386
+ };
387
+ /** Returns true if the wallet is installed or loadable. */
388
+ declare function isInstalledOrLoadable(wallet: AdapterWallet | AdapterNotDetectedWallet): boolean;
389
+ /**
390
+ * Returns true if the user is on desktop and the provided wallet requires installation of a browser extension.
391
+ * This can be used to decide whether to show a "Connect" button or "Install" link in the UI.
392
+ */
393
+ declare function isInstallRequired(wallet: AdapterWallet | AdapterNotDetectedWallet): boolean;
394
+ /** Truncates the provided wallet address at the middle with an ellipsis. */
395
+ declare function truncateAddress(address: string | undefined): string | undefined;
396
+ /**
397
+ * Returns `true` if the provided wallet is an Aptos Connect wallet.
398
+ *
399
+ * @deprecated Use {@link isPetraWebWallet} instead.
400
+ */
401
+ declare function isAptosConnectWallet(wallet: WalletInfo | AdapterWallet): boolean;
402
+ /** Returns `true` if the provided wallet is a Petra Web wallet. */
403
+ declare function isPetraWebWallet(wallet: WalletInfo | AdapterWallet): boolean;
404
+ /**
405
+ * Partitions the `wallets` array so that Aptos Connect wallets are grouped separately from the rest.
406
+ * Petra Web is a web wallet that uses social login to create accounts on the blockchain.
407
+ *
408
+ * @deprecated Use {@link getPetraWebWallets} instead.
409
+ */
410
+ declare function getAptosConnectWallets(wallets: ReadonlyArray<AdapterWallet | AdapterNotDetectedWallet>): {
411
+ aptosConnectWallets: AdapterWallet[];
412
+ otherWallets: AdapterNotDetectedWallet[];
413
+ };
414
+ /**
415
+ * Partitions the `wallets` array so that Petra Web wallets are grouped separately from the rest.
416
+ * Petra Web is a web wallet that uses social login to create accounts on the blockchain.
417
+ */
418
+ declare function getPetraWebWallets(wallets: ReadonlyArray<AdapterWallet | AdapterNotDetectedWallet>): {
419
+ petraWebWallets: AdapterWallet[];
420
+ otherWallets: AdapterNotDetectedWallet[];
421
+ };
422
+ interface WalletSortingOptions {
423
+ /**
424
+ * An optional function for sorting Aptos Connect wallets.
425
+ *
426
+ * @deprecated Use {@link sortPetraWebWallets} instead.
427
+ */
428
+ sortAptosConnectWallets?: (a: AdapterWallet, b: AdapterWallet) => number;
429
+ /** An optional function for sorting Petra Web wallets. */
430
+ sortPetraWebWallets?: (a: AdapterWallet, b: AdapterWallet) => number;
431
+ /** An optional function for sorting wallets that are currently installed or loadable. */
432
+ sortAvailableWallets?: (a: AdapterWallet | AdapterNotDetectedWallet, b: AdapterWallet | AdapterNotDetectedWallet) => number;
433
+ /** An optional function for sorting wallets that are NOT currently installed or loadable. */
434
+ sortInstallableWallets?: (a: AdapterWallet | AdapterNotDetectedWallet, b: AdapterWallet | AdapterNotDetectedWallet) => number;
435
+ }
436
+ /**
437
+ * Partitions the `wallets` array into three distinct groups:
438
+ *
439
+ * `aptosConnectWallets` - Use {@link petraWebWallets} instead.
440
+ *
441
+ * `petraWebWallets` - Wallets that use social login to create accounts on
442
+ * the blockchain via Petra Web.
443
+ *
444
+ * `availableWallets` - Wallets that are currently installed or loadable by the client.
445
+ *
446
+ * `installableWallets` - Wallets that are NOT current installed or loadable and
447
+ * require the client to install a browser extension first.
448
+ *
449
+ * Additionally, these wallet groups can be sorted by passing sort functions via the `options` argument.
450
+ */
451
+ declare function groupAndSortWallets(wallets: ReadonlyArray<AdapterWallet | AdapterNotDetectedWallet>, options?: WalletSortingOptions): {
452
+ /** @deprecated Use {@link petraWebWallets} instead. */
453
+ aptosConnectWallets: AdapterWallet[];
454
+ /** Wallets that use social login to create an account on the blockchain */
455
+ petraWebWallets: AdapterWallet[];
456
+ /** Wallets that are currently installed or loadable. */
457
+ availableWallets: AdapterWallet[];
458
+ /** Wallets that are NOT currently installed or loadable. */
459
+ installableWallets: AdapterNotDetectedWallet[];
460
+ };
461
+
462
+ declare function getSDKWallets(dappConfig?: DappConfig): AdapterWallet[];
463
+
464
+ /**
465
+ * Registry of AIP-62 wallet standard supported wallets.
466
+ * This list is used to show supported wallets even if they are not installed on the user machine.
467
+ *
468
+ * AIP-62 compatible wallets are required to add their wallet info here if they want to be detected by the adapter
469
+ *
470
+ * @param name - The name of your wallet cast to WalletName (Ex. "Petra" as WalletName<"Petra">)
471
+ * @param url - The link to your chrome extension or main website where new users can create an account with your wallet.
472
+ * @param icon - An icon for your wallet. Can be one of 4 data types. Be sure to follow the below format exactly (including the literal "," after base64).
473
+ * Format: `data:image/${"svg+xml" | "webp" | "png" | "gif"};base64,${string}`
474
+ * Note: ${...} data in the above format should be replaced. Other characters are literals (ex. ";")
475
+ * @param deeplinkProvider optional - An optional deeplink provider for the wallet. If the wallet is not installed, we can redirect the user to the wallet's deeplink provider
476
+ * @example "https://myWallet.app/explore?link="
477
+ */
478
+ declare const aptosStandardSupportedWalletList: Array<AptosStandardSupportedWallet>;
479
+ declare const crossChainStandardSupportedWalletList: Array<AptosStandardSupportedWallet>;
480
+
481
+ /**
482
+ * @deprecated Use `AptosSignInBoundFields` instead. This will be removed in future versions.
483
+ */
484
+ type AptosSignInRequiredFields = AptosSignInBoundFields;
485
+
486
+ export { APTOS_CONNECT_ACCOUNT_URL, APTOS_CONNECT_BASE_URL, type AdapterAccountInfo, type AdapterNotDetectedWallet, type AdapterWallet, type AptosSignInRequiredFields, type AptosStandardSupportedWallet, type AvailableWallets, ChainIdToAnsSupportedNetworkMap, type DappConfig, type InputTransactionData, NetworkName, PETRA_WEB_ACCOUNT_URL, PETRA_WEB_BASE_URL, WalletCore, type WalletCoreEvents, type WalletInfo, WalletReadyState, type WalletSortingOptions, aptosStandardSupportedWalletList, convertNetwork, crossChainStandardSupportedWalletList, fetchDevnetChainId, generalizedErrorMessage, getAptosConfig, getAptosConnectWallets, getLocalStorage, getPetraWebWallets, getSDKWallets, groupAndSortWallets, handlePublishPackageTransaction, isAptosConnectWallet, isAptosLiveNetwork, isAptosNetwork, isInAppBrowser, isInstallRequired, isInstalledOrLoadable, isMobile, isPetraWebWallet, isRedirectable, partitionWallets, removeLocalStorage, setLocalStorage, truncateAddress };
package/dist/index.js CHANGED
@@ -482,7 +482,7 @@ __export(index_exports, {
482
482
  });
483
483
  module.exports = __toCommonJS(index_exports);
484
484
  // src/version.ts
485
- var WALLET_ADAPTER_CORE_VERSION = "7.9.2";
485
+ var WALLET_ADAPTER_CORE_VERSION = "7.10.1";
486
486
  // src/WalletCore.ts
487
487
  var import_eventemitter3 = __toESM(require("eventemitter3"));
488
488
  var import_ts_sdk2 = require("@aptos-labs/ts-sdk");
@@ -491,7 +491,7 @@ var import_wallet_standard = require("@aptos-labs/wallet-standard");
491
491
  var GA4 = /*#__PURE__*/ function() {
492
492
  function GA4() {
493
493
  _class_call_check(this, GA4);
494
- this.aptosGAID = "G-GNVVWBL3J9";
494
+ this.aptosGAID = true;
495
495
  this.injectGA(this.aptosGAID);
496
496
  }
497
497
  _create_class(GA4, [
@@ -864,6 +864,8 @@ function convertNetwork(networkInfo) {
864
864
  return import_ts_sdk.Network.DEVNET;
865
865
  case "local":
866
866
  return import_ts_sdk.Network.LOCAL;
867
+ case "shelbynet":
868
+ return import_ts_sdk.Network.SHELBYNET;
867
869
  default:
868
870
  throw new Error("Invalid Aptos network name");
869
871
  }
@@ -1265,7 +1267,7 @@ var WalletCore = /*#__PURE__*/ function(_import_eventemitter3_default) {
1265
1267
  network: (_this__network = this._network) === null || _this__network === void 0 ? void 0 : _this__network.name,
1266
1268
  network_url: (_this__network1 = this._network) === null || _this__network1 === void 0 ? void 0 : _this__network1.url,
1267
1269
  adapter_core_version: WALLET_ADAPTER_CORE_VERSION,
1268
- send_to: "G-GNVVWBL3J9"
1270
+ send_to: true
1269
1271
  }, additionalInfo));
1270
1272
  }
1271
1273
  },