@dynamic-labs-sdk/client 1.6.0 → 1.7.0

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.
Files changed (90) hide show
  1. package/dist/{InvalidParamError-DyXEKMWn.cjs → InvalidParamError-CTssOe86.cjs} +105 -993
  2. package/dist/InvalidParamError-CTssOe86.cjs.map +1 -0
  3. package/dist/{InvalidParamError-BIptAjbC.native.esm.js → InvalidParamError-Crwntjl7.native.esm.js} +90 -828
  4. package/dist/InvalidParamError-Crwntjl7.native.esm.js.map +1 -0
  5. package/dist/{InvalidParamError-BZ0LHaml.esm.js → InvalidParamError-fQLJaGBW.esm.js} +90 -795
  6. package/dist/InvalidParamError-fQLJaGBW.esm.js.map +1 -0
  7. package/dist/{NotWaasWalletAccountError-CElqwdQO.cjs → NotWaasWalletAccountError-2RaDipZu.cjs} +4 -4
  8. package/dist/NotWaasWalletAccountError-2RaDipZu.cjs.map +1 -0
  9. package/dist/{NotWaasWalletAccountError-nT4jrLbp.esm.js → NotWaasWalletAccountError-BJLGGYmU.native.esm.js} +4 -4
  10. package/dist/NotWaasWalletAccountError-BJLGGYmU.native.esm.js.map +1 -0
  11. package/dist/{NotWaasWalletAccountError-BbOA5rPd.native.esm.js → NotWaasWalletAccountError-DF_S7gqo.esm.js} +4 -4
  12. package/dist/NotWaasWalletAccountError-DF_S7gqo.esm.js.map +1 -0
  13. package/dist/core.cjs +23 -23
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.esm.js +5 -5
  16. package/dist/core.native.esm.js +5 -5
  17. package/dist/{getNetworkProviderFromNetworkId-B7DIqT2T.native.esm.js → getNetworkProviderFromNetworkId-BCSmILlH.native.esm.js} +310 -39
  18. package/dist/getNetworkProviderFromNetworkId-BCSmILlH.native.esm.js.map +1 -0
  19. package/dist/{getNetworkProviderFromNetworkId-BkAPIdRC.esm.js → getNetworkProviderFromNetworkId-BWhaD23J.esm.js} +276 -38
  20. package/dist/getNetworkProviderFromNetworkId-BWhaD23J.esm.js.map +1 -0
  21. package/dist/{getNetworkProviderFromNetworkId-DbI5MZhq.cjs → getNetworkProviderFromNetworkId-C1p9Rrg3.cjs} +351 -44
  22. package/dist/getNetworkProviderFromNetworkId-C1p9Rrg3.cjs.map +1 -0
  23. package/dist/{getSignedSessionId-BF6n8gve.cjs → getSignedSessionId-CxxYNC_8.cjs} +3 -3
  24. package/dist/{getSignedSessionId-BF6n8gve.cjs.map → getSignedSessionId-CxxYNC_8.cjs.map} +1 -1
  25. package/dist/{getSignedSessionId-1TV-x__C.native.esm.js → getSignedSessionId-DPOXdh6y.native.esm.js} +3 -3
  26. package/dist/{getSignedSessionId-1TV-x__C.native.esm.js.map → getSignedSessionId-DPOXdh6y.native.esm.js.map} +1 -1
  27. package/dist/{getSignedSessionId-y3YtxFHZ.esm.js → getSignedSessionId-c7dS4PQ9.esm.js} +3 -3
  28. package/dist/{getSignedSessionId-y3YtxFHZ.esm.js.map → getSignedSessionId-c7dS4PQ9.esm.js.map} +1 -1
  29. package/dist/getVerifiedCredentialForWalletAccount-Cahp763h.esm.js +701 -0
  30. package/dist/getVerifiedCredentialForWalletAccount-Cahp763h.esm.js.map +1 -0
  31. package/dist/getVerifiedCredentialForWalletAccount-Di8dM5Wx.cjs +887 -0
  32. package/dist/getVerifiedCredentialForWalletAccount-Di8dM5Wx.cjs.map +1 -0
  33. package/dist/getVerifiedCredentialForWalletAccount-DuNbORNW.native.esm.js +701 -0
  34. package/dist/getVerifiedCredentialForWalletAccount-DuNbORNW.native.esm.js.map +1 -0
  35. package/dist/index.cjs +76 -76
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.esm.js +14 -14
  38. package/dist/index.esm.js.map +1 -1
  39. package/dist/index.native.esm.js +14 -14
  40. package/dist/index.native.esm.js.map +1 -1
  41. package/dist/{isMfaRequiredForAction-Dy4-S3mr.esm.js → isMfaRequiredForAction-BjRvPrU6.esm.js} +2 -2
  42. package/dist/{isMfaRequiredForAction-Dy4-S3mr.esm.js.map → isMfaRequiredForAction-BjRvPrU6.esm.js.map} +1 -1
  43. package/dist/{isMfaRequiredForAction-B2vKX31S.native.esm.js → isMfaRequiredForAction-D8G5PBAd.native.esm.js} +2 -2
  44. package/dist/{isMfaRequiredForAction-B2vKX31S.native.esm.js.map → isMfaRequiredForAction-D8G5PBAd.native.esm.js.map} +1 -1
  45. package/dist/{isMfaRequiredForAction-K2Jh-3-j.cjs → isMfaRequiredForAction-hlhj0qAC.cjs} +2 -2
  46. package/dist/{isMfaRequiredForAction-K2Jh-3-j.cjs.map → isMfaRequiredForAction-hlhj0qAC.cjs.map} +1 -1
  47. package/dist/modules/apiClient/apiClient.types.d.ts +0 -12
  48. package/dist/modules/apiClient/apiClient.types.d.ts.map +1 -1
  49. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  50. package/dist/modules/auth/logoutReason.d.ts +1 -1
  51. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  52. package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
  53. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
  54. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  55. package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts +12 -1
  56. package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts.map +1 -1
  57. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  58. package/dist/modules/waas/waas.types.d.ts +1 -0
  59. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  60. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  61. package/dist/waas.cjs +12 -9
  62. package/dist/waas.cjs.map +1 -1
  63. package/dist/waas.esm.js +6 -4
  64. package/dist/waas.esm.js.map +1 -1
  65. package/dist/waas.native.esm.js +6 -4
  66. package/dist/waas.native.esm.js.map +1 -1
  67. package/dist/waasCore.cjs +6 -4
  68. package/dist/waasCore.cjs.map +1 -1
  69. package/dist/waasCore.esm.js +5 -4
  70. package/dist/waasCore.esm.js.map +1 -1
  71. package/dist/waasCore.native.esm.js +5 -4
  72. package/dist/waasCore.native.esm.js.map +1 -1
  73. package/package.json +4 -2
  74. package/dist/InvalidParamError-BIptAjbC.native.esm.js.map +0 -1
  75. package/dist/InvalidParamError-BZ0LHaml.esm.js.map +0 -1
  76. package/dist/InvalidParamError-DyXEKMWn.cjs.map +0 -1
  77. package/dist/NotWaasWalletAccountError-BbOA5rPd.native.esm.js.map +0 -1
  78. package/dist/NotWaasWalletAccountError-CElqwdQO.cjs.map +0 -1
  79. package/dist/NotWaasWalletAccountError-nT4jrLbp.esm.js.map +0 -1
  80. package/dist/getNetworkProviderFromNetworkId-B7DIqT2T.native.esm.js.map +0 -1
  81. package/dist/getNetworkProviderFromNetworkId-BkAPIdRC.esm.js.map +0 -1
  82. package/dist/getNetworkProviderFromNetworkId-DbI5MZhq.cjs.map +0 -1
  83. package/dist/getVerifiedCredentialForWalletAccount-BfJ29erz.cjs +0 -346
  84. package/dist/getVerifiedCredentialForWalletAccount-BfJ29erz.cjs.map +0 -1
  85. package/dist/getVerifiedCredentialForWalletAccount-CLyC2nOl.native.esm.js +0 -269
  86. package/dist/getVerifiedCredentialForWalletAccount-CLyC2nOl.native.esm.js.map +0 -1
  87. package/dist/getVerifiedCredentialForWalletAccount-etV50QRH.esm.js +0 -269
  88. package/dist/getVerifiedCredentialForWalletAccount-etV50QRH.esm.js.map +0 -1
  89. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts +0 -27
  90. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
- const require_InvalidParamError = require('./InvalidParamError-DyXEKMWn.cjs');
2
- const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-DbI5MZhq.cjs');
3
- const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-BfJ29erz.cjs');
4
- const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-CElqwdQO.cjs');
5
- const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-K2Jh-3-j.cjs');
1
+ const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-C1p9Rrg3.cjs');
2
+ const require_InvalidParamError = require('./InvalidParamError-CTssOe86.cjs');
3
+ const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-Di8dM5Wx.cjs');
4
+ const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-2RaDipZu.cjs');
5
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-hlhj0qAC.cjs');
6
6
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
7
7
  let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
8
8
  let zod_mini = require("zod/mini");
9
- zod_mini = require_InvalidParamError.__toESM(zod_mini);
9
+ zod_mini = require_getNetworkProviderFromNetworkId.__toESM(zod_mini);
10
10
  let eventemitter3 = require("eventemitter3");
11
- eventemitter3 = require_InvalidParamError.__toESM(eventemitter3);
11
+ eventemitter3 = require_getNetworkProviderFromNetworkId.__toESM(eventemitter3);
12
12
  let _simplewebauthn_browser = require("@simplewebauthn/browser");
13
13
 
14
14
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -57,6 +57,14 @@ const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
57
57
  return url.href;
58
58
  };
59
59
 
60
+ //#endregion
61
+ //#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
62
+ /** @not-instrumented */
63
+ const prefetchNoncesIfNeeded = async (client) => {
64
+ if (require_InvalidParamError.getCore(client).state.get().prefetchedNonces.length >= require_InvalidParamError.NONCE_POOL_SIZE) return;
65
+ await require_InvalidParamError.fetchAndStoreNonces(client);
66
+ };
67
+
60
68
  //#endregion
61
69
  //#region src/services/runtimeServices/createRuntimeServices/createRuntimeServices.ts
62
70
  /**
@@ -74,14 +82,6 @@ const createRuntimeServices = () => {
74
82
  };
75
83
  };
76
84
 
77
- //#endregion
78
- //#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
79
- /** @not-instrumented */
80
- const prefetchNoncesIfNeeded = async (client) => {
81
- if (require_InvalidParamError.getCore(client).state.get().prefetchedNonces.length >= require_InvalidParamError.NONCE_POOL_SIZE) return;
82
- await require_InvalidParamError.fetchAndStoreNonces(client);
83
- };
84
-
85
85
  //#endregion
86
86
  //#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
87
87
  /**
@@ -122,7 +122,7 @@ const initializeAuth = (client) => {
122
122
  const now = /* @__PURE__ */ new Date();
123
123
  const timeUntilExpiration = expiration.getTime() - now.getTime();
124
124
  if (timeUntilExpiration <= 0) {
125
- require_InvalidParamError.__logoutWithReason_wrapped({ reason: "token-expired" }, client);
125
+ require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "token-expired" }, client);
126
126
  return;
127
127
  }
128
128
  clearExpirationTimeout = setLongTimeout({
@@ -160,7 +160,7 @@ const setupCrossTabEventSync = (client) => {
160
160
  };
161
161
  core.eventEmitter.on("deviceRegistrationCompleted", handleDeviceRegistrationCompleted);
162
162
  const handleCrossTabDeviceRegistrationCompleted = () => {
163
- require_InvalidParamError.emitEvent({ event: "deviceRegistrationCompletedInAnotherTab" }, client);
163
+ require_getVerifiedCredentialForWalletAccount.emitEvent({ event: "deviceRegistrationCompletedInAnotherTab" }, client);
164
164
  };
165
165
  core.crossTabBroadcast.on("deviceRegistrationCompleted", handleCrossTabDeviceRegistrationCompleted);
166
166
  };
@@ -187,7 +187,7 @@ const walletProviderKeyMapSchema = zod_mini.record(zod_mini.string(), zod_mini.s
187
187
 
188
188
  //#endregion
189
189
  //#region src/modules/storageSync/schema.ts
190
- const stateStorageKeySchema = require_InvalidParamError.createStorageKeySchema({
190
+ const stateStorageKeySchema = require_getNetworkProviderFromNetworkId.createStorageKeySchema({
191
191
  key: "state",
192
192
  schema: zod_mini.object({
193
193
  apiVersion: zod_mini.string(),
@@ -199,7 +199,7 @@ const stateStorageKeySchema = require_InvalidParamError.createStorageKeySchema({
199
199
  walletProviderKeyMap: walletProviderKeyMapSchema
200
200
  })
201
201
  });
202
- const sessionStorageKeySchema = require_InvalidParamError.createStorageKeySchema({
202
+ const sessionStorageKeySchema = require_getNetworkProviderFromNetworkId.createStorageKeySchema({
203
203
  config: { storageTier: "secure" },
204
204
  key: "session",
205
205
  schema: zod_mini.object({
@@ -293,7 +293,7 @@ const raiseStateEvents = (client) => {
293
293
  require_InvalidParamError.getCore(client).state.subscribe((value, previous) => {
294
294
  Object.entries(stateChangeEvents).forEach(([key, event]) => {
295
295
  if (require_getNetworkProviderFromNetworkId.isEqualShallow(value[key], previous[key])) return;
296
- require_InvalidParamError.emitEvent({
296
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
297
297
  args: { [key]: value[key] },
298
298
  event
299
299
  }, client);
@@ -459,10 +459,10 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
459
459
  logger: core.logger,
460
460
  state: core.state,
461
461
  storage: core.storage
462
- }).catch(() => require_InvalidParamError.__logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
463
- if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
462
+ }).catch(() => require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
463
+ if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
464
464
  }).then(async () => {
465
- if (!core.state.get().projectSettings) await require_InvalidParamError.fetchProjectSettings(client);
465
+ if (!core.state.get().projectSettings) await require_getNetworkProviderFromNetworkId.fetchProjectSettings(client);
466
466
  });
467
467
  fetchProjectSettingsPromise.then(() => prefetchNoncesIfNeeded(client)).catch((error) => {
468
468
  core.logger.error("Failed to prefetch nonces:", error);
@@ -471,7 +471,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
471
471
  * Generate session keys if they don't exist
472
472
  */
473
473
  const generateSessionKeysPromise = fetchProjectSettingsPromise.then(async () => {
474
- if (!core.state.get().sessionKeys) await require_InvalidParamError.generateSessionKeys(client);
474
+ if (!core.state.get().sessionKeys) await require_getNetworkProviderFromNetworkId.generateSessionKeys(client);
475
475
  });
476
476
  /**
477
477
  * Refresh user state on initialization when cookie is enabled.
@@ -496,7 +496,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
496
496
  if (require_InvalidParamError.isCookieEnabled(client)) await require_NotWaasWalletAccountError.__refreshAuth_wrapped(client).catch(async (error) => {
497
497
  if (error.status === 401) {
498
498
  core.logger.error("Session expired during initialization", error);
499
- if (client.user) await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
499
+ if (client.user) await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
500
500
  } else throw error;
501
501
  });
502
502
  });
@@ -507,7 +507,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
507
507
  */
508
508
  const refreshUserStateFromValidTokenPromise = refreshUserStateFromCookiePromise.then(async () => {
509
509
  if (core.state.get().token && !core.state.get().user) await __refreshUser_wrapped(client).catch(async () => {
510
- await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "user-refresh-failed" }, client);
510
+ await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "user-refresh-failed" }, client);
511
511
  });
512
512
  });
513
513
  core.initTrack.track({
@@ -1664,7 +1664,7 @@ const logout = async (client = require_InvalidParamError.getDefaultClient()) =>
1664
1664
  * `logoutWithReason` — this wrapper is intentionally not instrumented so that
1665
1665
  * Datadog sees a single function name per logout regardless of entry point.
1666
1666
  */
1667
- return require_InvalidParamError.__logoutWithReason_wrapped({ reason: "user-intent" }, client);
1667
+ return require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "user-intent" }, client);
1668
1668
  };
1669
1669
 
1670
1670
  //#endregion
@@ -1886,7 +1886,7 @@ const removeDynamicOauthParamsFromUrl = (url) => {
1886
1886
  //#endregion
1887
1887
  //#region src/modules/auth/social/oauth/redirectStateStorageSchema/redirectStateStorageSchema.ts
1888
1888
  /** The schema to track the state of the OAuth flow. */
1889
- const redirectStateStorageKeySchema = require_InvalidParamError.createStorageKeySchema({
1889
+ const redirectStateStorageKeySchema = require_getNetworkProviderFromNetworkId.createStorageKeySchema({
1890
1890
  key: "redirectState",
1891
1891
  schema: zod_mini.object({
1892
1892
  codeVerifier: zod_mini.optional(zod_mini.string()),
@@ -2274,7 +2274,7 @@ const detectOAuthRedirect = (params, client = require_InvalidParamError.getDefau
2274
2274
  * @not-instrumented
2275
2275
  */
2276
2276
  const getPrimaryWalletAccount = (client = require_InvalidParamError.getDefaultClient()) => {
2277
- const sortedLastSelectedWalletAccounts = require_InvalidParamError.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
2277
+ const sortedLastSelectedWalletAccounts = require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
2278
2278
  if (sortedLastSelectedWalletAccounts.length === 0) return null;
2279
2279
  const [primaryWalletAccount] = sortedLastSelectedWalletAccounts;
2280
2280
  return primaryWalletAccount;
@@ -2342,7 +2342,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
2342
2342
  const core = require_InvalidParamError.getCore(client);
2343
2343
  const apiClient = require_InvalidParamError.createApiClient({}, client);
2344
2344
  if (!networkId && !networkIds) {
2345
- const activeNetworkId = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
2345
+ const activeNetworkId = await require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
2346
2346
  networkId = Number(activeNetworkId.networkId);
2347
2347
  }
2348
2348
  return await apiClient.getAccountBalances({
@@ -2387,7 +2387,7 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_I
2387
2387
  //#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
2388
2388
  /** @not-instrumented */
2389
2389
  const createCheckoutSessionTokenStorageKey = (transactionId) => {
2390
- return require_InvalidParamError.createStorageKeySchema({
2390
+ return require_getNetworkProviderFromNetworkId.createStorageKeySchema({
2391
2391
  key: `checkoutSessionToken:${transactionId}`,
2392
2392
  schema: zod_mini.string()
2393
2393
  });
@@ -2792,7 +2792,7 @@ const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider },
2792
2792
  */
2793
2793
  const executeSwapTransaction = async ({ walletAccount, signingPayload, onStepChange, sponsorshipMode }, client = require_InvalidParamError.getDefaultClient()) => {
2794
2794
  if (!SWAP_SUPPORTED_CHAINS.includes(walletAccount.chain)) throw new require_InvalidParamError.InvalidParamError(`Chain ${walletAccount.chain} is not supported for swap transactions`);
2795
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
2795
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
2796
2796
  assertWalletProviderMethodDefined(walletProvider, "executeSwapTransaction");
2797
2797
  await ensureCorrectActiveNetwork({
2798
2798
  requiredNetworkId: signingPayload.chainId,
@@ -2921,7 +2921,7 @@ const completeDeviceRegistration = async ({ deviceToken }, client = require_Inva
2921
2921
  const core = require_InvalidParamError.getCore(client);
2922
2922
  const response = await require_InvalidParamError.createApiClient({ headers: { [DEVICE_REGISTRATION_TOKEN_HEADER]: deviceToken } }, client).deviceRegistration({ environmentId: core.environmentId });
2923
2923
  require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
2924
- require_InvalidParamError.emitEvent({ event: "deviceRegistrationCompleted" }, client);
2924
+ require_getVerifiedCredentialForWalletAccount.emitEvent({ event: "deviceRegistrationCompleted" }, client);
2925
2925
  return response;
2926
2926
  };
2927
2927
  const __completeDeviceRegistration_impl = completeDeviceRegistration;
@@ -2986,7 +2986,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
2986
2986
  /** @not-instrumented */
2987
2987
  const getRegisteredDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
2988
2988
  const core = require_InvalidParamError.getCore(client);
2989
- const apiClient = require_InvalidParamError.createApiClient({ skipSessionExpiryLogout: true }, client);
2989
+ const apiClient = require_InvalidParamError.createApiClient({}, client);
2990
2990
  try {
2991
2991
  return (await apiClient.listDeviceRegistrations({ environmentId: core.environmentId })).deviceRegistrations;
2992
2992
  } catch (error) {
@@ -3019,7 +3019,7 @@ const isDeviceRegistrationRequired = (user) => Boolean(user.scope?.includes("dev
3019
3019
  const revokeAllRegisteredDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
3020
3020
  const core = require_InvalidParamError.getCore(client);
3021
3021
  await require_InvalidParamError.createApiClient({}, client).deleteAllDeviceRegistrations({ environmentId: core.environmentId });
3022
- await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "all-devices-revoked" }, client);
3022
+ await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "all-devices-revoked" }, client);
3023
3023
  };
3024
3024
  const __revokeAllRegisteredDevices_impl = revokeAllRegisteredDevices;
3025
3025
  const __revokeAllRegisteredDevices_wrapped = require_InvalidParamError.instrumentFunction({
@@ -3043,7 +3043,7 @@ const revokeRegisteredDevice = async ({ deviceRegistrationId }, client = require
3043
3043
  if ((await require_InvalidParamError.createApiClient({}, client).deleteDeviceRegistration({
3044
3044
  deviceRegistrationId,
3045
3045
  environmentId: core.environmentId
3046
- })).currentDeviceRevoked) await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "device-revoked" }, client);
3046
+ })).currentDeviceRevoked) await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "device-revoked" }, client);
3047
3047
  };
3048
3048
  const __revokeRegisteredDevice_impl = revokeRegisteredDevice;
3049
3049
  const __revokeRegisteredDevice_wrapped = require_InvalidParamError.instrumentFunction({
@@ -3542,7 +3542,7 @@ const fetchWithTimeout = async (client) => {
3542
3542
  /**
3543
3543
  * The schema to store the cached wallet book data.
3544
3544
  */
3545
- const walletBookCacheStorageKeySchema = require_InvalidParamError.createStorageKeySchema({
3545
+ const walletBookCacheStorageKeySchema = require_getNetworkProviderFromNetworkId.createStorageKeySchema({
3546
3546
  key: "legacyWalletBookCache",
3547
3547
  schema: zod_mini.object({
3548
3548
  groups: zod_mini.record(zod_mini.string(), zod_mini.any()),
@@ -3577,7 +3577,7 @@ const fetchLegacyWalletBook = async (client) => {
3577
3577
  const core = require_InvalidParamError.getCore(client);
3578
3578
  core.logger.debug("[fetchLegacyWalletBook] Fetching wallet book...");
3579
3579
  try {
3580
- const walletBook = await require_InvalidParamError.retryOnFail({
3580
+ const walletBook = await require_getNetworkProviderFromNetworkId.retryOnFail({
3581
3581
  delay: RETRY_DELAY_MS,
3582
3582
  fn: async () => fetchWithTimeout(client),
3583
3583
  maxRetries: MAX_RETRIES
@@ -3997,7 +3997,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
3997
3997
  * @not-instrumented
3998
3998
  */
3999
3999
  const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
4000
- const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProviderKey);
4000
+ const { normalizedWalletNameWithChain } = require_getVerifiedCredentialForWalletAccount.splitWalletProviderKey(walletProviderKey);
4001
4001
  const chain = extractChainFromNormalizedName({ normalizedWalletNameWithChain });
4002
4002
  if (!chain) return;
4003
4003
  let walletProviderName = normalizedWalletNameWithChain.toLowerCase();
@@ -4554,9 +4554,9 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
4554
4554
  */
4555
4555
  const classifyWithWalletProviderSource = ({ entry }) => {
4556
4556
  const { priority } = entry;
4557
- if (priority === require_InvalidParamError.WalletProviderPriority.WALLET_SDK) return "sdk";
4558
- if (priority === require_InvalidParamError.WalletProviderPriority.WALLET_SELF_ANNOUNCEMENT_STANDARD) return "selfAnnounced";
4559
- if (priority === require_InvalidParamError.WalletProviderPriority.WINDOW_INJECT) return "windowInjected";
4557
+ if (priority === require_getVerifiedCredentialForWalletAccount.WalletProviderPriority.WALLET_SDK) return "sdk";
4558
+ if (priority === require_getVerifiedCredentialForWalletAccount.WalletProviderPriority.WALLET_SELF_ANNOUNCEMENT_STANDARD) return "selfAnnounced";
4559
+ if (priority === require_getVerifiedCredentialForWalletAccount.WalletProviderPriority.WINDOW_INJECT) return "windowInjected";
4560
4560
  };
4561
4561
 
4562
4562
  //#endregion
@@ -4676,7 +4676,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
4676
4676
  * @not-instrumented
4677
4677
  */
4678
4678
  const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
4679
- const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProvider.key);
4679
+ const { normalizedWalletNameWithChain } = require_getVerifiedCredentialForWalletAccount.splitWalletProviderKey(walletProvider.key);
4680
4680
  const candidates = [normalizedWalletNameWithChain, stripChainSuffix({
4681
4681
  chain,
4682
4682
  normalizedName: normalizedWalletNameWithChain
@@ -5038,7 +5038,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidPa
5038
5038
  const walletBook = includeMobileOptions ? await fetchLegacyWalletBook(client) : EMPTY_WALLET_BOOK;
5039
5039
  const allConnectionOptions = [];
5040
5040
  if (!excludedConnectionOptionTypes.has("withWalletProvider")) {
5041
- const entries = require_InvalidParamError.getWalletProviderRegistry(client).listProviderEntries();
5041
+ const entries = require_getVerifiedCredentialForWalletAccount.getWalletProviderRegistry(client).listProviderEntries();
5042
5042
  allConnectionOptions.push(...buildWithWalletProviderOptions({
5043
5043
  entries,
5044
5044
  walletBook
@@ -5174,13 +5174,13 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
5174
5174
  }
5175
5175
  });
5176
5176
  require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
5177
- require_InvalidParamError.emitEvent({
5177
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5178
5178
  args: { mfaToken: response.mfaToken },
5179
5179
  event: "mfaCompletionSuccess"
5180
5180
  }, client);
5181
5181
  return response;
5182
5182
  } catch (error) {
5183
- require_InvalidParamError.emitEvent({
5183
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5184
5184
  args: { error },
5185
5185
  event: "mfaCompletionFailure"
5186
5186
  }, client);
@@ -5254,13 +5254,13 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
5254
5254
  requestedScopes
5255
5255
  }, client);
5256
5256
  require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
5257
- require_InvalidParamError.emitEvent({
5257
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5258
5258
  args: { mfaToken: response.mfaToken },
5259
5259
  event: "mfaCompletionSuccess"
5260
5260
  }, client);
5261
5261
  return response;
5262
5262
  } catch (error) {
5263
- require_InvalidParamError.emitEvent({
5263
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5264
5264
  args: { error },
5265
5265
  event: "mfaCompletionFailure"
5266
5266
  }, client);
@@ -5298,7 +5298,7 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
5298
5298
  }
5299
5299
  });
5300
5300
  require_getVerifiedCredentialForWalletAccount.updateAuthFromVerifyResponse({ response }, client);
5301
- require_InvalidParamError.emitEvent({
5301
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5302
5302
  args: {
5303
5303
  deviceId,
5304
5304
  mfaToken: response.mfaToken
@@ -5307,7 +5307,7 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
5307
5307
  }, client);
5308
5308
  return response;
5309
5309
  } catch (error) {
5310
- require_InvalidParamError.emitEvent({
5310
+ require_getVerifiedCredentialForWalletAccount.emitEvent({
5311
5311
  args: {
5312
5312
  deviceId,
5313
5313
  error
@@ -6697,7 +6697,7 @@ const getSwapStatus = async (params, client = require_InvalidParamError.getDefau
6697
6697
  const deleteUser = async (client = require_InvalidParamError.getDefaultClient()) => {
6698
6698
  const core = require_InvalidParamError.getCore(client);
6699
6699
  await require_InvalidParamError.createApiClient({ includeMfaToken: true }, client).hardDeleteUser({ environmentId: core.environmentId });
6700
- await require_InvalidParamError.__logoutWithReason_wrapped({ reason: "user-deleted" }, client);
6700
+ await require_getNetworkProviderFromNetworkId.__logoutWithReason_wrapped({ reason: "user-deleted" }, client);
6701
6701
  };
6702
6702
  const __deleteUser_impl = deleteUser;
6703
6703
  const __deleteUser_wrapped = require_InvalidParamError.instrumentFunction({
@@ -6930,7 +6930,7 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
6930
6930
  * @not-instrumented
6931
6931
  */
6932
6932
  const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
6933
- const { addresses } = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
6933
+ const { addresses } = await require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
6934
6934
  if (addresses.length > 0 && !addresses.includes(walletAccount.address)) throw new WalletAccountNotSelectedError({
6935
6935
  expectedAddress: walletAccount.address,
6936
6936
  selectedAddress: addresses[0]
@@ -6954,7 +6954,7 @@ const assertWalletAccountSigningAvailability = async ({ walletAccount }, client
6954
6954
  * @instrumented
6955
6955
  */
6956
6956
  const confirmTransaction = async ({ walletAccount, transactionHash }, client = require_InvalidParamError.getDefaultClient()) => {
6957
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
6957
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
6958
6958
  assertWalletProviderMethodDefined(walletProvider, "confirmTransaction");
6959
6959
  await walletProvider.confirmTransaction({
6960
6960
  transactionHash,
@@ -7017,7 +7017,7 @@ const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWallet
7017
7017
  addressesWithTypes: getAddressesWithTypesFromConnectionResult({ addresses }),
7018
7018
  chain: walletProvider.chain,
7019
7019
  hardwareWalletVendor,
7020
- id: require_InvalidParamError.formatWalletAccountId({
7020
+ id: require_getVerifiedCredentialForWalletAccount.formatWalletAccountId({
7021
7021
  address: mainAddress,
7022
7022
  chain: walletProvider.chain,
7023
7023
  walletProviderKey
@@ -7079,7 +7079,7 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
7079
7079
  const url = new URL(appUniversalLink);
7080
7080
  const domain = url.host;
7081
7081
  const nonce = nonceOverride ?? await require_InvalidParamError.getNonce(client);
7082
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7082
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7083
7083
  if (walletProvider.chain === "STARK")
7084
7084
  /**
7085
7085
  * Starknet requires the strings to be 31 chars long
@@ -7118,7 +7118,7 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
7118
7118
  * @instrumented
7119
7119
  */
7120
7120
  const proveWalletAccountOwnership = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
7121
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7121
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7122
7122
  assertWalletProviderMethodDefined(walletProvider, "signMessage");
7123
7123
  const messageToSign = await getSignInMessage({
7124
7124
  nonce: walletProvider.getConnectProofNonce?.(),
@@ -7149,10 +7149,10 @@ const __proveWalletAccountOwnership_wrapped = require_InvalidParamError.instrume
7149
7149
  //#endregion
7150
7150
  //#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
7151
7151
  /** @not-instrumented */
7152
- const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.normalizeAddress({
7152
+ const isSameAddress = ({ chain, left, right }) => require_getVerifiedCredentialForWalletAccount.normalizeAddress({
7153
7153
  address: left,
7154
7154
  chain
7155
- }) === require_InvalidParamError.normalizeAddress({
7155
+ }) === require_getVerifiedCredentialForWalletAccount.normalizeAddress({
7156
7156
  address: right,
7157
7157
  chain
7158
7158
  });
@@ -7162,7 +7162,7 @@ const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.norm
7162
7162
  /** @not-instrumented */
7163
7163
  const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
7164
7164
  if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
7165
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7165
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7166
7166
  const { messageToSign, signature } = await __proveWalletAccountOwnership_wrapped({ walletAccount }, client);
7167
7167
  const formattedSignature = walletAccount.hardwareWalletVendor ? formatSignatureForHardwareWallet({
7168
7168
  hardwareWalletVendor: walletAccount.hardwareWalletVendor,
@@ -7197,7 +7197,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
7197
7197
  * Remove the now verified wallet account from the unverified wallet accounts
7198
7198
  */
7199
7199
  require_getNetworkProviderFromNetworkId.removeUnverifiedWalletAccount({ unverifiedWalletAccount: walletAccount }, client);
7200
- const verifiedWalletAccount = require_InvalidParamError.getWalletAccounts(client).find(({ address }) => isSameAddress({
7200
+ const verifiedWalletAccount = require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).find(({ address }) => isSameAddress({
7201
7201
  chain: walletAccount.chain,
7202
7202
  left: address,
7203
7203
  right: walletAccount.address
@@ -7347,7 +7347,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidPa
7347
7347
  const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
7348
7348
  const smartWalletVerifiedCredential = require_getVerifiedCredentialForWalletAccount.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
7349
7349
  require_InvalidParamError.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
7350
- return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.verifiedCredentialId === smartWalletVerifiedCredential.signerRefId);
7350
+ return require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).find((walletAccount) => walletAccount.verifiedCredentialId === smartWalletVerifiedCredential.signerRefId);
7351
7351
  };
7352
7352
 
7353
7353
  //#endregion
@@ -7392,7 +7392,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_Inva
7392
7392
  * @returns True if the session has at least one wallet account, false otherwise.
7393
7393
  * @not-instrumented
7394
7394
  */
7395
- const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_InvalidParamError.getWalletAccounts(client).length > 0;
7395
+ const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).length > 0;
7396
7396
 
7397
7397
  //#endregion
7398
7398
  //#region src/modules/wallets/hardwareWallet/canConnectWithHardwareWallet/canConnectWithHardwareWallet.ts
@@ -7485,7 +7485,7 @@ const __addNetwork_wrapped = require_InvalidParamError.instrumentFunction({
7485
7485
  * @not-instrumented
7486
7486
  */
7487
7487
  const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
7488
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7488
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7489
7489
  const { networkId } = await walletProvider.getActiveNetworkId();
7490
7490
  return { networkData: require_getNetworkProviderFromNetworkId.getNetworksData(client).find((data) => data.networkId === networkId && data.chain === walletProvider.chain) };
7491
7491
  };
@@ -7501,7 +7501,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidP
7501
7501
  * @not-instrumented
7502
7502
  */
7503
7503
  const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
7504
- return require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
7504
+ return require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
7505
7505
  };
7506
7506
 
7507
7507
  //#endregion
@@ -7522,7 +7522,7 @@ const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamErro
7522
7522
  * @not-instrumented
7523
7523
  */
7524
7524
  const getNativeBalance = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
7525
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7525
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7526
7526
  const { networkId } = await walletProvider.getActiveNetworkId();
7527
7527
  return require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
7528
7528
  chain: walletProvider.chain,
@@ -7681,9 +7681,9 @@ const __selectPrimaryWalletAccount_wrapped = require_InvalidParamError.instrumen
7681
7681
  */
7682
7682
  const disconnectWalletAccount = async ({ walletAccount }, client) => {
7683
7683
  try {
7684
- await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).disconnectWalletAccount?.({ walletAccount });
7684
+ await require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client).disconnectWalletAccount?.({ walletAccount });
7685
7685
  } catch (error) {
7686
- if (error instanceof require_InvalidParamError.NoWalletProviderFoundError) return;
7686
+ if (error instanceof require_getVerifiedCredentialForWalletAccount.NoWalletProviderFoundError) return;
7687
7687
  throw error;
7688
7688
  }
7689
7689
  };
@@ -7743,7 +7743,7 @@ const __removeWalletAccount_wrapped = require_InvalidParamError.instrumentFuncti
7743
7743
  * @instrumented
7744
7744
  */
7745
7745
  const signMessage = async ({ walletAccount, message }, client = require_InvalidParamError.getDefaultClient()) => {
7746
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7746
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7747
7747
  assertWalletProviderMethodDefined(walletProvider, "signMessage");
7748
7748
  const { signature } = await walletProvider.signMessage({
7749
7749
  message,
@@ -7782,7 +7782,7 @@ const __signMessage_wrapped = require_InvalidParamError.instrumentFunction({
7782
7782
  * @instrumented
7783
7783
  */
7784
7784
  const transferAmount = async ({ walletAccount, amount, recipient, token }, client = require_InvalidParamError.getDefaultClient()) => {
7785
- const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
7785
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
7786
7786
  assertWalletProviderMethodDefined(walletProvider, "transferAmount");
7787
7787
  const { transactionHash } = await walletProvider.transferAmount({
7788
7788
  amount,
@@ -7855,7 +7855,7 @@ const __transferWalletAccount_wrapped = require_InvalidParamError.instrumentFunc
7855
7855
  * @not-instrumented
7856
7856
  */
7857
7857
  const getWalletAccountFromAddress = ({ address, chain }, client = require_InvalidParamError.getDefaultClient()) => {
7858
- return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
7858
+ return require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
7859
7859
  };
7860
7860
 
7861
7861
  //#endregion
@@ -8060,7 +8060,7 @@ exports.detectOAuthRedirect = detectOAuthRedirect;
8060
8060
  exports.detectSocialRedirectUrl = detectSocialRedirectUrl;
8061
8061
  exports.excludeInstalledFromCatalog = excludeInstalledFromCatalog;
8062
8062
  exports.executeSwapTransaction = __executeSwapTransaction_wrapped;
8063
- exports.fetchProjectSettings = require_InvalidParamError.fetchProjectSettings;
8063
+ exports.fetchProjectSettings = require_getNetworkProviderFromNetworkId.fetchProjectSettings;
8064
8064
  exports.findMissingGoogleDriveBackupScopes = findMissingGoogleDriveBackupScopes;
8065
8065
  exports.getActiveNetworkData = getActiveNetworkData;
8066
8066
  exports.getActiveNetworkId = getActiveNetworkId;
@@ -8100,7 +8100,7 @@ exports.getTransactionHistory = getTransactionHistory;
8100
8100
  exports.getUserSocialAccounts = getUserSocialAccounts;
8101
8101
  exports.getWalletAccountAddressByType = getWalletAccountAddressByType;
8102
8102
  exports.getWalletAccountFromAddress = getWalletAccountFromAddress;
8103
- exports.getWalletAccounts = require_InvalidParamError.getWalletAccounts;
8103
+ exports.getWalletAccounts = require_getVerifiedCredentialForWalletAccount.getWalletAccounts;
8104
8104
  exports.getWalletConnectCatalog = getWalletConnectCatalog;
8105
8105
  exports.getWalletConnectCatalogWalletByWalletProviderKey = getWalletConnectCatalogWalletByWalletProviderKey;
8106
8106
  exports.getWalletOptionsCatalogue = getWalletOptionsCatalogue;
@@ -8118,17 +8118,17 @@ exports.isMfaRequiredForAction = require_isMfaRequiredForAction.isMfaRequiredFor
8118
8118
  exports.isMobile = isMobile;
8119
8119
  exports.isPendingRecoveryCodesAcknowledgment = isPendingRecoveryCodesAcknowledgment;
8120
8120
  exports.isProgrammaticNetworkSwitchAvailable = isProgrammaticNetworkSwitchAvailable;
8121
- exports.isSignedIn = require_InvalidParamError.isSignedIn;
8121
+ exports.isSignedIn = require_getNetworkProviderFromNetworkId.isSignedIn;
8122
8122
  exports.isUserMissingMfaAuth = require_getVerifiedCredentialForWalletAccount.isUserMissingMfaAuth;
8123
8123
  exports.isUserOnboardingComplete = isUserOnboardingComplete;
8124
8124
  exports.isWalletAccountVerified = isWalletAccountVerified;
8125
8125
  exports.logout = logout;
8126
8126
  exports.matchWalletProvidersToCatalogGroup = matchWalletProvidersToCatalogGroup;
8127
- exports.offEvent = require_InvalidParamError.offEvent;
8127
+ exports.offEvent = require_getVerifiedCredentialForWalletAccount.offEvent;
8128
8128
  exports.offWalletProviderEvent = offWalletProviderEvent;
8129
- exports.onEvent = require_InvalidParamError.onEvent;
8129
+ exports.onEvent = require_getVerifiedCredentialForWalletAccount.onEvent;
8130
8130
  exports.onWalletProviderEvent = onWalletProviderEvent;
8131
- exports.onceEvent = require_InvalidParamError.onceEvent;
8131
+ exports.onceEvent = require_getVerifiedCredentialForWalletAccount.onceEvent;
8132
8132
  exports.parseUserAgent = parseUserAgent;
8133
8133
  exports.prepareCheckoutTransaction = __prepareCheckoutTransaction_wrapped;
8134
8134
  exports.proveWalletAccountOwnership = __proveWalletAccountOwnership_wrapped;