@dynamic-labs-sdk/client 1.8.1 → 1.9.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 (154) hide show
  1. package/android/src/main/java/xyz/dynamic/client/DynamicClientPackage.kt +10 -0
  2. package/android/src/main/java/xyz/dynamic/client/screenshot/ScreenshotProtectionModule.kt +48 -0
  3. package/dist/{InvalidParamError-DGBih-LJ.cjs → InvalidParamError-C7LLi2cZ.cjs} +91 -13
  4. package/dist/InvalidParamError-C7LLi2cZ.cjs.map +1 -0
  5. package/dist/{InvalidParamError-BKnC9rcJ.esm.js → InvalidParamError-DIPFT3sS.esm.js} +73 -13
  6. package/dist/InvalidParamError-DIPFT3sS.esm.js.map +1 -0
  7. package/dist/{InvalidParamError-Btv8VGSa.native.esm.js → InvalidParamError-YG7yXCq5.native.esm.js} +294 -13
  8. package/dist/InvalidParamError-YG7yXCq5.native.esm.js.map +1 -0
  9. package/dist/NotWaasWalletAccountError-BWrDQFe8.esm.js +18 -0
  10. package/dist/NotWaasWalletAccountError-BWrDQFe8.esm.js.map +1 -0
  11. package/dist/NotWaasWalletAccountError-C8ex1YA_.cjs +23 -0
  12. package/dist/NotWaasWalletAccountError-C8ex1YA_.cjs.map +1 -0
  13. package/dist/NotWaasWalletAccountError-Cd2o0wr0.native.esm.js +18 -0
  14. package/dist/NotWaasWalletAccountError-Cd2o0wr0.native.esm.js.map +1 -0
  15. package/dist/client/core/createCore/getInitialState.d.ts +1 -1
  16. package/dist/client/core/createCore/getInitialState.d.ts.map +1 -1
  17. package/dist/client/createDynamicClient/createDynamicClient.d.ts.map +1 -1
  18. package/dist/client/types/DynamicClient.d.ts +9 -0
  19. package/dist/client/types/DynamicClient.d.ts.map +1 -1
  20. package/dist/core.cjs +24 -5
  21. package/dist/core.cjs.map +1 -1
  22. package/dist/core.esm.js +24 -6
  23. package/dist/core.esm.js.map +1 -1
  24. package/dist/core.native.esm.js +34 -9
  25. package/dist/core.native.esm.js.map +1 -1
  26. package/dist/exports/core.d.ts +4 -0
  27. package/dist/exports/core.d.ts.map +1 -1
  28. package/dist/exports/index.d.ts +0 -7
  29. package/dist/exports/index.d.ts.map +1 -1
  30. package/dist/exports/waasCore.d.ts +2 -0
  31. package/dist/exports/waasCore.d.ts.map +1 -1
  32. package/dist/{getNetworkProviderFromNetworkId-Bm41knUq.native.esm.js → getNetworkProviderFromNetworkId-C46TeXs8.native.esm.js} +17 -12
  33. package/dist/getNetworkProviderFromNetworkId-C46TeXs8.native.esm.js.map +1 -0
  34. package/dist/{getNetworkProviderFromNetworkId-BdgI7g5U.cjs → getNetworkProviderFromNetworkId-CBGWQS_K.cjs} +4 -4
  35. package/dist/{getNetworkProviderFromNetworkId-BdgI7g5U.cjs.map → getNetworkProviderFromNetworkId-CBGWQS_K.cjs.map} +1 -1
  36. package/dist/{getNetworkProviderFromNetworkId-CRuh5pgc.esm.js → getNetworkProviderFromNetworkId-D-wj5mPl.esm.js} +3 -3
  37. package/dist/{getNetworkProviderFromNetworkId-CRuh5pgc.esm.js.map → getNetworkProviderFromNetworkId-D-wj5mPl.esm.js.map} +1 -1
  38. package/dist/{getSignedSessionId-Cwmt4BkY.cjs → getSignedSessionId-CCHKjoeP.cjs} +3 -3
  39. package/dist/{getSignedSessionId-Cwmt4BkY.cjs.map → getSignedSessionId-CCHKjoeP.cjs.map} +1 -1
  40. package/dist/{getSignedSessionId-S6CBWkOn.native.esm.js → getSignedSessionId-DdKTM3Rh.native.esm.js} +3 -3
  41. package/dist/{getSignedSessionId-S6CBWkOn.native.esm.js.map → getSignedSessionId-DdKTM3Rh.native.esm.js.map} +1 -1
  42. package/dist/{getSignedSessionId-D2w_IRdt.esm.js → getSignedSessionId-Dy04984p.esm.js} +3 -3
  43. package/dist/{getSignedSessionId-D2w_IRdt.esm.js.map → getSignedSessionId-Dy04984p.esm.js.map} +1 -1
  44. package/dist/{getVerifiedCredentialForWalletAccount-QwfkKHfr.esm.js → getVerifiedCredentialForWalletAccount-BFCM2wnx.esm.js} +3 -10
  45. package/dist/getVerifiedCredentialForWalletAccount-BFCM2wnx.esm.js.map +1 -0
  46. package/dist/{getVerifiedCredentialForWalletAccount-CDuP1kaI.cjs → getVerifiedCredentialForWalletAccount-BtIVDer3.cjs} +4 -17
  47. package/dist/getVerifiedCredentialForWalletAccount-BtIVDer3.cjs.map +1 -0
  48. package/dist/{getVerifiedCredentialForWalletAccount-D33r7Drd.native.esm.js → getVerifiedCredentialForWalletAccount-Dsca691m.native.esm.js} +3 -236
  49. package/dist/getVerifiedCredentialForWalletAccount-Dsca691m.native.esm.js.map +1 -0
  50. package/dist/getWaasWalletProviderFromWalletAccount-5-EJK6a_.cjs +19 -0
  51. package/dist/getWaasWalletProviderFromWalletAccount-5-EJK6a_.cjs.map +1 -0
  52. package/dist/getWaasWalletProviderFromWalletAccount-AhhyxkKQ.esm.js +14 -0
  53. package/dist/getWaasWalletProviderFromWalletAccount-AhhyxkKQ.esm.js.map +1 -0
  54. package/dist/getWaasWalletProviderFromWalletAccount-EnCRdI3w.native.esm.js +14 -0
  55. package/dist/getWaasWalletProviderFromWalletAccount-EnCRdI3w.native.esm.js.map +1 -0
  56. package/dist/index.cjs +65 -15
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.esm.js +61 -11
  59. package/dist/index.esm.js.map +1 -1
  60. package/dist/index.native.esm.js +64 -14
  61. package/dist/index.native.esm.js.map +1 -1
  62. package/dist/{isMfaRequiredForAction-5p3i98-Z.esm.js → isMfaRequiredForAction-BrmFODJQ.esm.js} +2 -2
  63. package/dist/{isMfaRequiredForAction-5p3i98-Z.esm.js.map → isMfaRequiredForAction-BrmFODJQ.esm.js.map} +1 -1
  64. package/dist/{isMfaRequiredForAction-cmElIVof.native.esm.js → isMfaRequiredForAction-DAfjBLvz.native.esm.js} +2 -2
  65. package/dist/{isMfaRequiredForAction-cmElIVof.native.esm.js.map → isMfaRequiredForAction-DAfjBLvz.native.esm.js.map} +1 -1
  66. package/dist/{isMfaRequiredForAction-z74isCQ7.cjs → isMfaRequiredForAction-aX0vdwv-.cjs} +2 -2
  67. package/dist/{isMfaRequiredForAction-z74isCQ7.cjs.map → isMfaRequiredForAction-aX0vdwv-.cjs.map} +1 -1
  68. package/dist/modules/balances/getBalances/getBalances.d.ts +5 -2
  69. package/dist/modules/balances/getBalances/getBalances.d.ts.map +1 -1
  70. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +6 -3
  71. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts.map +1 -1
  72. package/dist/modules/checkout/checkout.types.d.ts +6 -6
  73. package/dist/modules/checkout/checkout.types.d.ts.map +1 -1
  74. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  75. package/dist/modules/initializeClient/state.d.ts +9 -0
  76. package/dist/modules/initializeClient/state.d.ts.map +1 -1
  77. package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.d.ts +15 -0
  78. package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.d.ts.map +1 -0
  79. package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.types.d.ts +14 -0
  80. package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.types.d.ts.map +1 -0
  81. package/dist/modules/state/raiseStateEvents/events.d.ts +4 -0
  82. package/dist/modules/state/raiseStateEvents/events.d.ts.map +1 -1
  83. package/dist/modules/waas/createWaasClient/createNativeWaasSDKContainer.d.ts +15 -0
  84. package/dist/modules/waas/createWaasClient/createNativeWaasSDKContainer.d.ts.map +1 -0
  85. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  86. package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.d.ts +33 -0
  87. package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.d.ts.map +1 -0
  88. package/dist/modules/waas/exportWaasPrivateKeyToContainer/index.d.ts +2 -0
  89. package/dist/modules/waas/exportWaasPrivateKeyToContainer/index.d.ts.map +1 -0
  90. package/dist/modules/waas/waas.types.d.ts +3 -1
  91. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  92. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +5 -1
  93. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  94. package/dist/{NotWaasWalletAccountError-CHr72wTH.esm.js → refreshAuth-B2kFf0pl.native.esm.js} +4 -18
  95. package/dist/refreshAuth-B2kFf0pl.native.esm.js.map +1 -0
  96. package/dist/{NotWaasWalletAccountError-CRmyVoB3.native.esm.js → refreshAuth-B8xd2JUm.esm.js} +4 -18
  97. package/dist/refreshAuth-B8xd2JUm.esm.js.map +1 -0
  98. package/dist/{NotWaasWalletAccountError-i1FozGep.cjs → refreshAuth-BMtIp1do.cjs} +3 -23
  99. package/dist/refreshAuth-BMtIp1do.cjs.map +1 -0
  100. package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts.map +1 -1
  101. package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
  102. package/dist/services/instrumentation/instrumentation.types.d.ts +6 -0
  103. package/dist/services/instrumentation/instrumentation.types.d.ts.map +1 -1
  104. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  105. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +4 -0
  106. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts.map +1 -1
  107. package/dist/utils/getNonce/state.d.ts +5 -0
  108. package/dist/utils/getNonce/state.d.ts.map +1 -1
  109. package/dist/utils/getOperatingSystem/getOperatingSystem.d.ts +13 -0
  110. package/dist/utils/getOperatingSystem/getOperatingSystem.d.ts.map +1 -0
  111. package/dist/utils/getOperatingSystem/getOperatingSystem.types.d.ts +8 -0
  112. package/dist/utils/getOperatingSystem/getOperatingSystem.types.d.ts.map +1 -0
  113. package/dist/utils/getPlatform/getPlatform.d.ts +11 -0
  114. package/dist/utils/getPlatform/getPlatform.d.ts.map +1 -0
  115. package/dist/utils/getPlatform/getPlatform.types.d.ts +8 -0
  116. package/dist/utils/getPlatform/getPlatform.types.d.ts.map +1 -0
  117. package/dist/waas.cjs +20 -28
  118. package/dist/waas.cjs.map +1 -1
  119. package/dist/waas.esm.js +4 -12
  120. package/dist/waas.esm.js.map +1 -1
  121. package/dist/waas.native.esm.js +4 -12
  122. package/dist/waas.native.esm.js.map +1 -1
  123. package/dist/waasCore.cjs +39 -4
  124. package/dist/waasCore.cjs.map +1 -1
  125. package/dist/waasCore.esm.js +39 -5
  126. package/dist/waasCore.esm.js.map +1 -1
  127. package/dist/waasCore.native.esm.js +68 -10
  128. package/dist/waasCore.native.esm.js.map +1 -1
  129. package/ios/DynamicClientScreenshotProtection.h +4 -0
  130. package/ios/DynamicClientScreenshotProtection.mm +137 -0
  131. package/package.json +14 -7
  132. package/src/turboModules/NativeScreenshotProtection.native.spec.ts +57 -0
  133. package/src/turboModules/NativeScreenshotProtection.ts +26 -0
  134. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  135. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  136. package/android/gradlew +0 -251
  137. package/android/gradlew.bat +0 -94
  138. package/android/settings.gradle +0 -30
  139. package/android/src/test/java/xyz/dynamic/client/keychain/KeyStoreKeyManagerTest.kt +0 -288
  140. package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewClientTest.kt +0 -196
  141. package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewHostOpenTest.kt +0 -347
  142. package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewHostTest.kt +0 -171
  143. package/android/src/test/java/xyz/dynamic/client/webview/DynamicWebViewModuleTest.kt +0 -191
  144. package/dist/InvalidParamError-BKnC9rcJ.esm.js.map +0 -1
  145. package/dist/InvalidParamError-Btv8VGSa.native.esm.js.map +0 -1
  146. package/dist/InvalidParamError-DGBih-LJ.cjs.map +0 -1
  147. package/dist/NotWaasWalletAccountError-CHr72wTH.esm.js.map +0 -1
  148. package/dist/NotWaasWalletAccountError-CRmyVoB3.native.esm.js.map +0 -1
  149. package/dist/NotWaasWalletAccountError-i1FozGep.cjs.map +0 -1
  150. package/dist/getNetworkProviderFromNetworkId-Bm41knUq.native.esm.js.map +0 -1
  151. package/dist/getVerifiedCredentialForWalletAccount-CDuP1kaI.cjs.map +0 -1
  152. package/dist/getVerifiedCredentialForWalletAccount-D33r7Drd.native.esm.js.map +0 -1
  153. package/dist/getVerifiedCredentialForWalletAccount-QwfkKHfr.esm.js.map +0 -1
  154. package/react-native.config.cjs +0 -14
package/dist/index.cjs CHANGED
@@ -1,8 +1,9 @@
1
- const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-z74isCQ7.cjs');
2
- const require_InvalidParamError = require('./InvalidParamError-DGBih-LJ.cjs');
3
- const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-BdgI7g5U.cjs');
4
- const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-CDuP1kaI.cjs');
5
- const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-i1FozGep.cjs');
1
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-aX0vdwv-.cjs');
2
+ const require_InvalidParamError = require('./InvalidParamError-C7LLi2cZ.cjs');
3
+ const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-CBGWQS_K.cjs');
4
+ const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-BtIVDer3.cjs');
5
+ const require_refreshAuth = require('./refreshAuth-BMtIp1do.cjs');
6
+ const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-C8ex1YA_.cjs');
6
7
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
7
8
  let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
8
9
  let zod_mini = require("zod/mini");
@@ -19,6 +20,7 @@ let _simplewebauthn_browser = require("@simplewebauthn/browser");
19
20
  * will have to come to this file and remember to add it here and in the interface.
20
21
  */
21
22
  const stateChangeEvents = {
23
+ initError: "initErrorChanged",
22
24
  initStatus: "initStatusChanged",
23
25
  mfaToken: "mfaTokenChanged",
24
26
  projectSettings: "projectSettingsChanged",
@@ -448,7 +450,10 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
448
450
  const core = require_InvalidParamError.getCore(client);
449
451
  core.logger.debug("[initializeClient] Initializing client. Current init status", core.state.get().initStatus);
450
452
  if (core.state.get().initStatus !== "uninitialized") throw new ClientAlreadyInitializedError();
451
- core.state.set({ initStatus: "in-progress" });
453
+ core.state.set({
454
+ initError: null,
455
+ initStatus: "in-progress"
456
+ });
452
457
  initializeAuth(client);
453
458
  raiseStateEvents(client);
454
459
  setupCrossTabEventSync(client);
@@ -493,7 +498,7 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
493
498
  * This call can fail with a 401 error if the user is not logged in and the SDK should finish its initialization process
494
499
  * without throwing an error because that is an expected behavior.
495
500
  */
496
- if (require_InvalidParamError.isCookieEnabled(client)) await require_NotWaasWalletAccountError.__refreshAuth_wrapped(client).catch(async (error) => {
501
+ if (require_InvalidParamError.isCookieEnabled(client)) await require_refreshAuth.__refreshAuth_wrapped(client).catch(async (error) => {
497
502
  if (error.status === 401) {
498
503
  core.logger.error("Session expired during initialization", error);
499
504
  if (client.user) await require_isMfaRequiredForAction.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
@@ -535,7 +540,10 @@ const initializeClient = async (client = require_InvalidParamError.getDefaultCli
535
540
  core.state.set({ initStatus: "finished" });
536
541
  } catch (error) {
537
542
  core.logger.error("Client initialization failed", error);
538
- core.state.set({ initStatus: "failed" });
543
+ core.state.set({
544
+ initError: error instanceof Error ? error : null,
545
+ initStatus: "failed"
546
+ });
539
547
  throw error;
540
548
  }
541
549
  if (client.user) require_getVerifiedCredentialForWalletAccount.restoreUserSharesForAllWalletAccounts(client);
@@ -658,6 +666,7 @@ const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumenta
658
666
  const { token, user } = state.get();
659
667
  instrumentation.log({
660
668
  environmentId,
669
+ operatingSystem: require_InvalidParamError.getOperatingSystem(),
661
670
  parameters: require_InvalidParamError.scrubParameters({
662
671
  piiFields: instrumentation.config.piiFields,
663
672
  value: {
@@ -665,6 +674,7 @@ const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumenta
665
674
  message
666
675
  }
667
676
  }),
677
+ platform: require_InvalidParamError.getPlatform(),
668
678
  registeredExtensionKeys: Array.from(extensions),
669
679
  sdkSessionId,
670
680
  sdkVersion,
@@ -953,9 +963,11 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
953
963
  const getInitialState = () => ({
954
964
  captchaToken: null,
955
965
  elevatedAccessTokens: [],
966
+ initError: null,
956
967
  initStatus: "uninitialized",
957
968
  legacyToken: null,
958
969
  mfaToken: null,
970
+ nonceFetchInFlight: null,
959
971
  prefetchedNonces: [],
960
972
  prefetchedNoncesExpiration: null,
961
973
  projectSettings: null,
@@ -1066,6 +1078,9 @@ const createDynamicClient = (config) => {
1066
1078
  get __core() {
1067
1079
  return core;
1068
1080
  },
1081
+ get initError() {
1082
+ return core.state.get().initError;
1083
+ },
1069
1084
  get initStatus() {
1070
1085
  return core.state.get().initStatus;
1071
1086
  },
@@ -2383,6 +2398,29 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_I
2383
2398
  })).chainBalances;
2384
2399
  };
2385
2400
 
2401
+ //#endregion
2402
+ //#region src/modules/balances/getBalances/getBalances.ts
2403
+ /**
2404
+ * @deprecated Use {@link getTokenBalances} instead. Renamed so its name
2405
+ * states what it returns (a wallet account's token balances) and is no
2406
+ * longer confusable with the native-only `getBalance` or the
2407
+ * multi-chain `getMultichainTokenBalances`.
2408
+ *
2409
+ * @not-instrumented
2410
+ */
2411
+ const getBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getTokenBalances(params, client);
2412
+
2413
+ //#endregion
2414
+ //#region src/modules/balances/getMultichainBalances/getMultichainBalances.ts
2415
+ /**
2416
+ * @deprecated Use {@link getMultichainTokenBalances} instead. Renamed so
2417
+ * the name aligns with `getTokenBalances` and signals that this fetches
2418
+ * token balances (not native-only) across multiple chains.
2419
+ *
2420
+ * @not-instrumented
2421
+ */
2422
+ const getMultichainBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getMultichainTokenBalances(params, client);
2423
+
2386
2424
  //#endregion
2387
2425
  //#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
2388
2426
  /** @not-instrumented */
@@ -2520,7 +2558,7 @@ const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client =
2520
2558
  return withCheckoutSessionTokenCleanupOn401({
2521
2559
  call: () => apiClient.recordCheckoutBroadcast({
2522
2560
  environmentId,
2523
- recordBroadcastRequest: { txHash },
2561
+ flowRecordBroadcastRequest: { txHash },
2524
2562
  transactionId,
2525
2563
  xDynamicCheckoutSessionToken: sessionToken
2526
2564
  }),
@@ -2664,7 +2702,7 @@ const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slip
2664
2702
  return withCheckoutSessionTokenCleanupOn401({
2665
2703
  call: () => apiClient.quoteCheckoutTransaction({
2666
2704
  environmentId,
2667
- quoteRequest: {
2705
+ flowQuoteRequest: {
2668
2706
  fromChainId,
2669
2707
  fromTokenAddress,
2670
2708
  slippage
@@ -2693,7 +2731,7 @@ const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalan
2693
2731
  return withCheckoutSessionTokenCleanupOn401({
2694
2732
  call: () => apiClient.prepareCheckoutTransaction({
2695
2733
  environmentId,
2696
- prepareSigningRequest: {
2734
+ flowPrepareSigningRequest: {
2697
2735
  assertBalanceForGasCost: assertBalanceForGasCost ?? false,
2698
2736
  assertBalanceForTransferAmount: assertBalanceForTransferAmount ?? false
2699
2737
  },
@@ -7530,6 +7568,18 @@ const getNativeBalance = async ({ walletAccount }, client = require_InvalidParam
7530
7568
  }, client).getBalance({ address: walletAccount.address });
7531
7569
  };
7532
7570
 
7571
+ //#endregion
7572
+ //#region src/modules/wallets/networks/getBalance/getBalance.ts
7573
+ /**
7574
+ * @deprecated Use {@link getNativeBalance} instead. Renamed so its name
7575
+ * states what it returns (native gas balance) and is no longer confusable
7576
+ * with the token-balance fetchers (`getTokenBalances` /
7577
+ * `getMultichainTokenBalances`).
7578
+ *
7579
+ * @not-instrumented
7580
+ */
7581
+ const getBalance = (params, client = require_InvalidParamError.getDefaultClient()) => getNativeBalance(params, client);
7582
+
7533
7583
  //#endregion
7534
7584
  //#region src/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.ts
7535
7585
  /**
@@ -8065,9 +8115,9 @@ exports.findMissingGoogleDriveBackupScopes = findMissingGoogleDriveBackupScopes;
8065
8115
  exports.getActiveNetworkData = getActiveNetworkData;
8066
8116
  exports.getActiveNetworkId = getActiveNetworkId;
8067
8117
  exports.getAvailableWalletProvidersData = getAvailableWalletProvidersData;
8068
- exports.getBalance = getNativeBalance;
8118
+ exports.getBalance = getBalance;
8069
8119
  exports.getBalanceForAddress = getBalanceForAddress;
8070
- exports.getBalances = getTokenBalances;
8120
+ exports.getBalances = getBalances;
8071
8121
  exports.getCheckoutTransaction = getCheckoutTransaction;
8072
8122
  exports.getCheckoutTransactionQuote = getCheckoutTransactionQuote;
8073
8123
  exports.getCoinbaseBuyUrl = getCoinbaseBuyUrl;
@@ -8085,7 +8135,7 @@ exports.getMfaRecoveryCodes = getMfaRecoveryCodes;
8085
8135
  exports.getMissingVerificationForCoinbaseOnrampOrder = getMissingVerificationForCoinbaseOnrampOrder;
8086
8136
  exports.getMoonPayCurrencies = __getMoonPayCurrencies_wrapped;
8087
8137
  exports.getMoonPayUrl = __getMoonPayUrl_wrapped;
8088
- exports.getMultichainBalances = getMultichainTokenBalances;
8138
+ exports.getMultichainBalances = getMultichainBalances;
8089
8139
  exports.getMultichainTokenBalances = getMultichainTokenBalances;
8090
8140
  exports.getNativeBalance = getNativeBalance;
8091
8141
  exports.getNetworksData = require_getNetworkProviderFromNetworkId.getNetworksData;
@@ -8132,7 +8182,7 @@ exports.onceEvent = require_InvalidParamError.onceEvent;
8132
8182
  exports.parseUserAgent = parseUserAgent;
8133
8183
  exports.prepareCheckoutTransaction = __prepareCheckoutTransaction_wrapped;
8134
8184
  exports.proveWalletAccountOwnership = __proveWalletAccountOwnership_wrapped;
8135
- exports.refreshAuth = require_NotWaasWalletAccountError.__refreshAuth_wrapped;
8185
+ exports.refreshAuth = require_refreshAuth.__refreshAuth_wrapped;
8136
8186
  exports.refreshUser = __refreshUser_wrapped;
8137
8187
  exports.registerPasskey = __registerPasskey_wrapped;
8138
8188
  exports.registerTotpMfaDevice = __registerTotpMfaDevice_wrapped;