@dynamic-labs-sdk/client 1.4.0 → 1.6.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 (195) hide show
  1. package/dist/{InvalidParamError-CDmVW2DS.native.esm.js → InvalidParamError-BIptAjbC.native.esm.js} +839 -93
  2. package/dist/InvalidParamError-BIptAjbC.native.esm.js.map +1 -0
  3. package/dist/{InvalidParamError-BPMi0iWC.esm.js → InvalidParamError-BZ0LHaml.esm.js} +806 -93
  4. package/dist/InvalidParamError-BZ0LHaml.esm.js.map +1 -0
  5. package/dist/{InvalidParamError-DEmLKJKZ.cjs → InvalidParamError-DyXEKMWn.cjs} +1012 -116
  6. package/dist/InvalidParamError-DyXEKMWn.cjs.map +1 -0
  7. package/dist/{NotWaasWalletAccountError-Cntietge.esm.js → NotWaasWalletAccountError-BbOA5rPd.native.esm.js} +4 -4
  8. package/dist/NotWaasWalletAccountError-BbOA5rPd.native.esm.js.map +1 -0
  9. package/dist/{NotWaasWalletAccountError-BZsBHRQe.cjs → NotWaasWalletAccountError-CElqwdQO.cjs} +4 -4
  10. package/dist/NotWaasWalletAccountError-CElqwdQO.cjs.map +1 -0
  11. package/dist/{NotWaasWalletAccountError-Chpne8_Q.native.esm.js → NotWaasWalletAccountError-nT4jrLbp.esm.js} +4 -4
  12. package/dist/NotWaasWalletAccountError-nT4jrLbp.esm.js.map +1 -0
  13. package/dist/core.cjs +45 -23
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.esm.js +27 -6
  16. package/dist/core.esm.js.map +1 -1
  17. package/dist/core.native.esm.js +27 -6
  18. package/dist/core.native.esm.js.map +1 -1
  19. package/dist/errors/CorruptedKeyShareError.d.ts +19 -0
  20. package/dist/errors/CorruptedKeyShareError.d.ts.map +1 -0
  21. package/dist/errors/WebViewLoadFailedError.d.ts +32 -0
  22. package/dist/errors/WebViewLoadFailedError.d.ts.map +1 -0
  23. package/dist/errors/base/BaseError.d.ts.map +1 -1
  24. package/dist/exports/core.d.ts +4 -0
  25. package/dist/exports/core.d.ts.map +1 -1
  26. package/dist/exports/index.d.ts +12 -0
  27. package/dist/exports/index.d.ts.map +1 -1
  28. package/dist/{getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js → getNetworkProviderFromNetworkId-B7DIqT2T.native.esm.js} +39 -328
  29. package/dist/getNetworkProviderFromNetworkId-B7DIqT2T.native.esm.js.map +1 -0
  30. package/dist/{getNetworkProviderFromNetworkId-CEeFL-gV.esm.js → getNetworkProviderFromNetworkId-BkAPIdRC.esm.js} +38 -266
  31. package/dist/getNetworkProviderFromNetworkId-BkAPIdRC.esm.js.map +1 -0
  32. package/dist/{getNetworkProviderFromNetworkId-szJOsbQN.cjs → getNetworkProviderFromNetworkId-DbI5MZhq.cjs} +44 -341
  33. package/dist/getNetworkProviderFromNetworkId-DbI5MZhq.cjs.map +1 -0
  34. package/dist/{getSignedSessionId-B5DikCap.native.esm.js → getSignedSessionId-1TV-x__C.native.esm.js} +3 -3
  35. package/dist/{getSignedSessionId-B5DikCap.native.esm.js.map → getSignedSessionId-1TV-x__C.native.esm.js.map} +1 -1
  36. package/dist/{getSignedSessionId-BxOK-Tdo.cjs → getSignedSessionId-BF6n8gve.cjs} +3 -3
  37. package/dist/{getSignedSessionId-BxOK-Tdo.cjs.map → getSignedSessionId-BF6n8gve.cjs.map} +1 -1
  38. package/dist/{getSignedSessionId-BOx1nFt_.esm.js → getSignedSessionId-y3YtxFHZ.esm.js} +3 -3
  39. package/dist/{getSignedSessionId-BOx1nFt_.esm.js.map → getSignedSessionId-y3YtxFHZ.esm.js.map} +1 -1
  40. package/dist/getVerifiedCredentialForWalletAccount-BfJ29erz.cjs +346 -0
  41. package/dist/getVerifiedCredentialForWalletAccount-BfJ29erz.cjs.map +1 -0
  42. package/dist/getVerifiedCredentialForWalletAccount-CLyC2nOl.native.esm.js +269 -0
  43. package/dist/getVerifiedCredentialForWalletAccount-CLyC2nOl.native.esm.js.map +1 -0
  44. package/dist/getVerifiedCredentialForWalletAccount-etV50QRH.esm.js +269 -0
  45. package/dist/getVerifiedCredentialForWalletAccount-etV50QRH.esm.js.map +1 -0
  46. package/dist/index.cjs +580 -253
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.esm.js +511 -191
  49. package/dist/index.esm.js.map +1 -1
  50. package/dist/index.native.esm.js +511 -191
  51. package/dist/index.native.esm.js.map +1 -1
  52. package/dist/{isMfaRequiredForAction-DUvZEpjA.native.esm.js → isMfaRequiredForAction-B2vKX31S.native.esm.js} +32 -3
  53. package/dist/isMfaRequiredForAction-B2vKX31S.native.esm.js.map +1 -0
  54. package/dist/{isMfaRequiredForAction-D9p_du8C.esm.js → isMfaRequiredForAction-Dy4-S3mr.esm.js} +2 -2
  55. package/dist/{isMfaRequiredForAction-D9p_du8C.esm.js.map → isMfaRequiredForAction-Dy4-S3mr.esm.js.map} +1 -1
  56. package/dist/{isMfaRequiredForAction-6N6JB7wa.cjs → isMfaRequiredForAction-K2Jh-3-j.cjs} +2 -2
  57. package/dist/{isMfaRequiredForAction-6N6JB7wa.cjs.map → isMfaRequiredForAction-K2Jh-3-j.cjs.map} +1 -1
  58. package/dist/modules/apiClient/apiClient.types.d.ts +12 -0
  59. package/dist/modules/apiClient/apiClient.types.d.ts.map +1 -1
  60. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  61. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts +27 -0
  62. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts.map +1 -0
  63. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +11 -1
  64. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
  65. package/dist/modules/auth/logoutReason.d.ts +1 -1
  66. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  67. package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
  68. package/dist/modules/balances/getBalances/getBalances.d.ts +9 -45
  69. package/dist/modules/balances/getBalances/getBalances.d.ts.map +1 -1
  70. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +13 -20
  71. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts.map +1 -1
  72. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +26 -0
  73. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts.map +1 -0
  74. package/dist/modules/balances/getMultichainTokenBalances/index.d.ts +2 -0
  75. package/dist/modules/balances/getMultichainTokenBalances/index.d.ts.map +1 -0
  76. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +56 -0
  77. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts.map +1 -0
  78. package/dist/modules/balances/getTokenBalances/index.d.ts +3 -0
  79. package/dist/modules/balances/getTokenBalances/index.d.ts.map +1 -0
  80. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
  81. package/dist/modules/funding/moonpay/errors/MoonPayCurrenciesFetchError.d.ts +5 -0
  82. package/dist/modules/funding/moonpay/errors/MoonPayCurrenciesFetchError.d.ts.map +1 -0
  83. package/dist/modules/funding/moonpay/errors/MoonPayInvalidUrlError.d.ts +5 -0
  84. package/dist/modules/funding/moonpay/errors/MoonPayInvalidUrlError.d.ts.map +1 -0
  85. package/dist/modules/funding/moonpay/errors/MoonPayProviderNotAvailableError.d.ts +5 -0
  86. package/dist/modules/funding/moonpay/errors/MoonPayProviderNotAvailableError.d.ts.map +1 -0
  87. package/dist/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.d.ts +14 -0
  88. package/dist/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.d.ts.map +1 -0
  89. package/dist/modules/funding/moonpay/getMoonPayCurrencies/index.d.ts +2 -0
  90. package/dist/modules/funding/moonpay/getMoonPayCurrencies/index.d.ts.map +1 -0
  91. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +15 -0
  92. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -0
  93. package/dist/modules/funding/moonpay/getMoonPayUrl/index.d.ts +2 -0
  94. package/dist/modules/funding/moonpay/getMoonPayUrl/index.d.ts.map +1 -0
  95. package/dist/modules/funding/moonpay/moonpay.types.d.ts +26 -0
  96. package/dist/modules/funding/moonpay/moonpay.types.d.ts.map +1 -0
  97. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts +12 -0
  98. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts.map +1 -1
  99. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts +26 -0
  100. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts.map +1 -0
  101. package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts +18 -0
  102. package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts.map +1 -0
  103. package/dist/modules/legacyWalletBook/legacyWalletBook.types.d.ts +2 -2
  104. package/dist/modules/legacyWalletBook/legacyWalletBook.types.d.ts.map +1 -1
  105. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts +13 -1
  106. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts.map +1 -1
  107. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  108. package/dist/modules/waas/createWaasClient/createWaasClient.d.ts +2 -7
  109. package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
  110. package/dist/modules/waas/createWaasClient/createWaasClient.types.d.ts +8 -0
  111. package/dist/modules/waas/createWaasClient/createWaasClient.types.d.ts.map +1 -0
  112. package/dist/modules/waas/createWaasClient/createWaasSDKContainer.d.ts +15 -0
  113. package/dist/modules/waas/createWaasClient/createWaasSDKContainer.d.ts.map +1 -0
  114. package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts +18 -0
  115. package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts.map +1 -0
  116. package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts +27 -0
  117. package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts.map +1 -0
  118. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +26 -0
  119. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +1 -0
  120. package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts +11 -4
  121. package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts.map +1 -1
  122. package/dist/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.d.ts.map +1 -1
  123. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts +35 -0
  124. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts.map +1 -0
  125. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/index.d.ts +2 -0
  126. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/index.d.ts.map +1 -0
  127. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +6 -1
  128. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
  129. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +11 -0
  130. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
  131. package/dist/modules/wallets/constants.d.ts +7 -0
  132. package/dist/modules/wallets/constants.d.ts.map +1 -1
  133. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts.map +1 -1
  134. package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts +26 -0
  135. package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts.map +1 -0
  136. package/dist/modules/wallets/hasWalletProviderConnectMethod/index.d.ts +2 -0
  137. package/dist/modules/wallets/hasWalletProviderConnectMethod/index.d.ts.map +1 -0
  138. package/dist/modules/wallets/isAnyWalletAccountConnected/index.d.ts +2 -0
  139. package/dist/modules/wallets/isAnyWalletAccountConnected/index.d.ts.map +1 -0
  140. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +14 -0
  141. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -0
  142. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +6 -17
  143. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  144. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +24 -0
  145. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -0
  146. package/dist/modules/wallets/networks/getNativeBalance/index.d.ts +2 -0
  147. package/dist/modules/wallets/networks/getNativeBalance/index.d.ts.map +1 -0
  148. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +10 -0
  149. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  150. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  151. package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts +22 -0
  152. package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts.map +1 -0
  153. package/dist/utils/getChainFromWalletBookIdentifier/index.d.ts +2 -0
  154. package/dist/utils/getChainFromWalletBookIdentifier/index.d.ts.map +1 -0
  155. package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts +18 -0
  156. package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts.map +1 -0
  157. package/dist/utils/getNativeLinkScheme/index.d.ts +3 -0
  158. package/dist/utils/getNativeLinkScheme/index.d.ts.map +1 -0
  159. package/dist/utils/isMobile/isMobile.d.ts +8 -0
  160. package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
  161. package/dist/waas.cjs +8 -9
  162. package/dist/waas.cjs.map +1 -1
  163. package/dist/waas.esm.js +3 -3
  164. package/dist/waas.native.esm.js +3 -3
  165. package/dist/waasCore.cjs +3 -4
  166. package/dist/waasCore.cjs.map +1 -1
  167. package/dist/waasCore.esm.js +3 -3
  168. package/dist/waasCore.esm.js.map +1 -1
  169. package/dist/waasCore.native.esm.js +208 -7
  170. package/dist/waasCore.native.esm.js.map +1 -1
  171. package/package.json +5 -5
  172. package/dist/InvalidParamError-BPMi0iWC.esm.js.map +0 -1
  173. package/dist/InvalidParamError-CDmVW2DS.native.esm.js.map +0 -1
  174. package/dist/InvalidParamError-DEmLKJKZ.cjs.map +0 -1
  175. package/dist/NotWaasWalletAccountError-BZsBHRQe.cjs.map +0 -1
  176. package/dist/NotWaasWalletAccountError-Chpne8_Q.native.esm.js.map +0 -1
  177. package/dist/NotWaasWalletAccountError-Cntietge.esm.js.map +0 -1
  178. package/dist/getNetworkProviderFromNetworkId-CEeFL-gV.esm.js.map +0 -1
  179. package/dist/getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js.map +0 -1
  180. package/dist/getNetworkProviderFromNetworkId-szJOsbQN.cjs.map +0 -1
  181. package/dist/getVerifiedCredentialForWalletAccount-B46O0B48.cjs +0 -887
  182. package/dist/getVerifiedCredentialForWalletAccount-B46O0B48.cjs.map +0 -1
  183. package/dist/getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js +0 -701
  184. package/dist/getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js.map +0 -1
  185. package/dist/getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js +0 -701
  186. package/dist/getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js.map +0 -1
  187. package/dist/isMfaRequiredForAction-DUvZEpjA.native.esm.js.map +0 -1
  188. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts +0 -28
  189. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts.map +0 -1
  190. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts +0 -2
  191. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts.map +0 -1
  192. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts +0 -2
  193. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts.map +0 -1
  194. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts +0 -17
  195. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts.map +0 -1
@@ -1,5 +1,17 @@
1
1
  import type { Chain } from '../../../chain';
2
2
  import type { WalletSchema } from '../../legacyWalletBook.types';
3
+ type ExtractChainPrefixParams = {
4
+ chainIdentifier: string;
5
+ };
6
+ /**
7
+ * Extracts the chain prefix from a chain identifier string.
8
+ * For example, "eip155:1" -> "eip155", "solana:..." -> "solana"
9
+ *
10
+ * Exported so {@link getChainsFromWalletSchema} can apply the same
11
+ * parsing to its multi-chain pass without duplicating the logic.
12
+ * @not-instrumented
13
+ */
14
+ export declare const extractChainPrefix: ({ chainIdentifier, }: ExtractChainPrefixParams) => string;
3
15
  type GetChainFromWalletSchemaParams = {
4
16
  wallet: WalletSchema;
5
17
  walletKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getChainFromWalletSchema.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AA0FjE,KAAK,8BAA8B,GAAG;IACpC,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,wBAAwB,2BAGlC,8BAA8B,KAAG,KAiCnC,CAAC"}
1
+ {"version":3,"file":"getChainFromWalletSchema.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,KAAK,wBAAwB,GAAG;IAC9B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,yBAE5B,wBAAwB,KAAG,MAQ7B,CAAC;AAmCF,KAAK,8BAA8B,GAAG;IACpC,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,wBAAwB,2BAGlC,8BAA8B,KAAG,KAuCnC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { Chain } from '../../../chain';
2
+ import type { WalletSchema } from '../../legacyWalletBook.types';
3
+ type GetChainsFromWalletSchemaParams = {
4
+ wallet: WalletSchema;
5
+ walletKey?: string;
6
+ };
7
+ /**
8
+ * Returns every chain a wallet book entry advertises support for —
9
+ * deduped, in `injectedConfig` order, then `chains` order. Used by the
10
+ * catalogue's WalletConnect builder so a multi-chain wallet (e.g. Trust
11
+ * supports EVM + SOL) gets one option per chain rather than one option
12
+ * for whichever chain `getChainFromWalletSchema` happened to pick first.
13
+ *
14
+ * Falls back to {@link getChainFromWalletSchema}'s single-result behavior
15
+ * (`['EVM']` default) when neither field is populated, so the helper
16
+ * never returns an empty array — every eligible wallet emits at least
17
+ * one option.
18
+ *
19
+ * @param params.wallet - The wallet schema from the wallet book.
20
+ * @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
21
+ * @returns Ordered, deduped array of Chains.
22
+ * @not-instrumented
23
+ */
24
+ export declare const getChainsFromWalletSchema: ({ wallet, walletKey, }: GetChainsFromWalletSchemaParams) => Chain[];
25
+ export {};
26
+ //# sourceMappingURL=getChainsFromWalletSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChainsFromWalletSchema.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMjE,KAAK,+BAA+B,GAAG;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB,2BAGnC,+BAA+B,KAAG,KAAK,EA+BzC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { WalletSchema } from '../legacyWalletBook.types';
2
+ type HasUsableDeeplinkParams = {
3
+ wallet: WalletSchema;
4
+ };
5
+ /**
6
+ * Whether a wallet book entry exposes at least one mobile deeplink the
7
+ * catalogue can drive — either a native scheme (`metamask://`) or a
8
+ * universal link (`https://metamask.app.link`). Used by the URI-deeplink
9
+ * builders (`buildWalletConnectOptions`, `buildMetaMaskSdkUriOptions`)
10
+ * to skip wallets that have no app to launch.
11
+ *
12
+ * @param params.wallet - The wallet schema from the wallet book.
13
+ * @returns True when the wallet has a native or universal mobile link.
14
+ * @not-instrumented
15
+ */
16
+ export declare const hasUsableDeeplink: ({ wallet, }: HasUsableDeeplinkParams) => boolean;
17
+ export {};
18
+ //# sourceMappingURL=hasUsableDeeplink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasUsableDeeplink.d.ts","sourceRoot":"","sources":["../../../../src/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,gBAE3B,uBAAuB,KAAG,OAC+B,CAAC"}
@@ -157,8 +157,8 @@ export type WalletSchema = {
157
157
  name: string;
158
158
  /** Whether the wallet requires disconnecting before establishing a new connection */
159
159
  requiresDisconnectBeforeNewConnection?: boolean;
160
- /** Short display name or abbreviation for the wallet */
161
- shortName: string;
160
+ /** Short display name or abbreviation for the wallet. Optional — not every wallet book entry provides one. */
161
+ shortName?: string;
162
162
  /** Whether to only show this wallet if it's already installed */
163
163
  showOnlyIfInstalled?: boolean;
164
164
  /** Whether network switching can only be initiated from the wallet itself */
@@ -1 +1 @@
1
- {"version":3,"file":"legacyWalletBook.types.d.ts","sourceRoot":"","sources":["../../../src/modules/legacyWalletBook/legacyWalletBook.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CACl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GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC1C,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"legacyWalletBook.types.d.ts","sourceRoot":"","sources":["../../../src/modules/legacyWalletBook/legacyWalletBook.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/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type ExecuteSwapTransactionParams = {
13
13
  * Usually obtained from a `getSwapQuote` call.
14
14
  */
15
15
  signingPayload: SwapTransactionSigningPayload;
16
+ /**
17
+ * Controls whether the swap is routed through Dynamic's gas sponsorship.
18
+ *
19
+ * - `'auto'` (default): the swap is sponsored when gas sponsorship is enabled
20
+ * for the chain AND the wallet is a Dynamic embedded wallet. Otherwise the
21
+ * user pays gas.
22
+ * - `'off'`: the swap is never sponsored, regardless of project settings or
23
+ * wallet capabilities. The user pays gas.
24
+ *
25
+ * @default 'auto'
26
+ */
27
+ sponsorshipMode?: 'auto' | 'off';
16
28
  /**
17
29
  * The wallet account to execute the swap transaction on.
18
30
  */
@@ -26,7 +38,7 @@ export type ExecuteSwapTransactionParams = {
26
38
  * @returns The transaction hash.
27
39
  * @instrumented
28
40
  */
29
- export declare const executeSwapTransaction: ({ walletAccount, signingPayload, onStepChange }: ExecuteSwapTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<{
41
+ export declare const executeSwapTransaction: ({ walletAccount, signingPayload, onStepChange, sponsorshipMode, }: ExecuteSwapTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<{
30
42
  transactionHash: string;
31
43
  }>;
32
44
  //# sourceMappingURL=executeSwapTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeSwapTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/executeSwapTransaction/executeSwapTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAGnE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,oDACgB,4BAA4B,wDAE5E,OAAO,CAAC;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CA6BrC,CAAC"}
1
+ {"version":3,"file":"executeSwapTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/executeSwapTransaction/executeSwapTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAGnE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACjC;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,sEAM9B,4BAA4B,wDAE9B,OAAO,CAAC;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CA8BrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
1
+ {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAaxB,CAAC"}
@@ -1,9 +1,4 @@
1
- import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
2
- import type { DynamicClient } from '../../../client/types/DynamicClient';
3
- type CreateWaasClientParams = {
4
- chainName: string;
5
- };
1
+ import type { CreateWaasClient } from './createWaasClient.types';
6
2
  /** @not-instrumented */
7
- export declare const createWaasClient: ({ chainName }: CreateWaasClientParams, client: DynamicClient) => DynamicWalletClient;
8
- export {};
3
+ export declare const createWaasClient: CreateWaasClient;
9
4
  //# sourceMappingURL=createWaasClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAQzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,kBACZ,sBAAsB,UAC7B,aAAa,wBA6BtB,CAAC"}
1
+ {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,EAAE,gBA4B9B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
2
+ import type { DynamicClient } from '../../../client/types/DynamicClient';
3
+ type CreateWaasClientParams = {
4
+ chainName: string;
5
+ };
6
+ export type CreateWaasClient = (params: CreateWaasClientParams, client: DynamicClient) => DynamicWalletClient;
7
+ export {};
8
+ //# sourceMappingURL=createWaasClient.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWaasClient.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAC7B,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,aAAa,KAClB,mBAAmB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { WaasSDKContainer } from '@dynamic-labs-wallet/core';
2
+ /**
3
+ * Creates a `WaasSDKContainer` that hosts the WaaS sandbox.
4
+ *
5
+ * This factory only exists for React Native, where the SDK injects a
6
+ * WebView-backed container into the WaaS client (see
7
+ * `createWaasSDKContainer.native.ts`). On web the browser WaaS client
8
+ * manages its own iframe host, so no container is supplied and this
9
+ * function is never called — it throws a `ReactNativeOnlyError` to make
10
+ * an accidental web invocation explicit rather than silently no-op.
11
+ *
12
+ * @not-instrumented
13
+ */
14
+ export declare const createWaasSDKContainer: () => WaasSDKContainer;
15
+ //# sourceMappingURL=createWaasSDKContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWaasSDKContainer.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasSDKContainer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,QAAO,gBAEzC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { WebViewLoadFailedError } from '../../../errors/WebViewLoadFailedError';
2
+ /**
3
+ * Translates a native `DynamicWebView.open()` rejection into a typed
4
+ * `WebViewLoadFailedError`. Maps the native RCT reject code to the JS-level
5
+ * `WebViewLoadFailureReason` discriminator (falling back to
6
+ * `navigation_failed` for unrecognized codes) and carries through the
7
+ * structured `statusCode` / `underlyingError` metadata.
8
+ *
9
+ * The `reason` it produces is the contract `createWaasSDKContainer` branches
10
+ * on — notably `emitError` swallows `cancelled` because that code is only ever
11
+ * produced by our own `close()` teardown (verified on both the iOS and Android
12
+ * native sides). Keep `REASON_BY_NATIVE_CODE` in sync with the native reject
13
+ * codes so that branching stays correct.
14
+ *
15
+ * @not-instrumented
16
+ */
17
+ export declare const translateNativeOpenError: (err: unknown) => WebViewLoadFailedError;
18
+ //# sourceMappingURL=translateNativeOpenError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translateNativeOpenError.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/translateNativeOpenError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAEvB,MAAM,wCAAwC,CAAC;AA2BhD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,QAC9B,OAAO,KACX,sBAuBF,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { WalletBookSchema } from '../../legacyWalletBook/legacyWalletBook.types';
2
+ import type { ConnectionOptionForWalletOption } from '../groupOptionsByWalletOption/groupOptionsByWalletOption';
3
+ type BuildMetaMaskSdkUriOptionsParams = {
4
+ walletBook: WalletBookSchema;
5
+ };
6
+ /**
7
+ * Builds the `metamaskSdkUri`-discriminator catalogue options from a
8
+ * fetched wallet book. The MetaMask SDK URI extension only targets the
9
+ * MetaMask wallet, so the builder iterates the book looking for the
10
+ * entry whose resolved wallet option key is `'metamask'`.
11
+ *
12
+ * Applies the generic `shouldFilterWallet` rules (drops embedded keys +
13
+ * injected-only-without-links entries). Crucially does NOT require WC
14
+ * `sign_v2` support — MetaMask SDK URI is a different protocol from
15
+ * WalletConnect, so the WC-specific filter does not apply here.
16
+ *
17
+ * Emits one `metamaskSdkUri` option per chain the MetaMask SDK URI pairing
18
+ * supports (see {@link METAMASK_SDK_URI_SUPPORTED_CHAINS}) so the picker can
19
+ * offer both the EVM and Solana pairings for the single MetaMask entry.
20
+ *
21
+ * @param params.walletBook - The fetched wallet book.
22
+ * @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
23
+ * @not-instrumented
24
+ */
25
+ export declare const buildMetaMaskSdkUriOptions: ({ walletBook, }: BuildMetaMaskSdkUriOptionsParams) => ConnectionOptionForWalletOption[];
26
+ export {};
27
+ //# sourceMappingURL=buildMetaMaskSdkUriOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildMetaMaskSdkUriOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0DAA0D,CAAC;AAqBhH,KAAK,gCAAgC,GAAG;IACtC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,oBAEpC,gCAAgC,KAAG,+BAA+B,EAqCpE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { WalletBookSchema } from '../../legacyWalletBook/legacyWalletBook.types';
2
+ import type { ConnectionOptionForWalletOption } from '../groupOptionsByWalletOption/groupOptionsByWalletOption';
3
+ type BuildWalletConnectOptionsParams = {
4
+ walletBook: WalletBookSchema;
5
+ };
6
+ /**
7
+ * Builds the `walletConnect`-discriminator catalogue options from a fetched
8
+ * wallet book. Applies the WalletConnect-specific eligibility filter
9
+ * (`shouldFilterWalletForWalletConnect`) so embedded wallets and entries
10
+ * without `sign_v2` support are excluded — same surface as
11
+ * `getWalletConnectCatalog`.
12
+ *
13
+ * Skips the MetaMask wallet entry: MetaMask is steered to its own URI
14
+ * connection extension via `buildMetaMaskSdkUriOptions`. Keeping the two
15
+ * builders separate means each protocol owns its own eligibility rules
16
+ * (WC needs `sign_v2`; MM SDK URI does not), so excluding one
17
+ * discriminator via `excludedConnectionOptionTypes` doesn't accidentally
18
+ * gate the other.
19
+ *
20
+ * @param params.walletBook - The fetched wallet book.
21
+ * @returns Tagged `walletConnect` options paired with their wallet option keys.
22
+ * @not-instrumented
23
+ */
24
+ export declare const buildWalletConnectOptions: ({ walletBook, }: BuildWalletConnectOptionsParams) => ConnectionOptionForWalletOption[];
25
+ export {};
26
+ //# sourceMappingURL=buildWalletConnectOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildWalletConnectOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0DAA0D,CAAC;AAchH,KAAK,+BAA+B,GAAG;IACrC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,yBAAyB,oBAEnC,+BAA+B,KAAG,+BAA+B,EA0CnE,CAAC"}
@@ -15,12 +15,19 @@ type BuildWalletOptionParams = {
15
15
  *
16
16
  * Display merge rules (provider self-announced metadata wins where set):
17
17
  *
18
- * - `name`: `displayOverride.name` ?? wallet book group name ?? bare key.
19
- * - `iconUrl`: `displayOverride.iconUrl` ?? wallet book group sprite URL ?? `''`.
20
- * - `primaryColor`: wallet book group brand color only (providers do not
21
- * ship a primary color in their announcement metadata).
18
+ * - `name`: `displayOverride.name` ?? wallet book group name ?? wallet
19
+ * book wallet name ?? bare key.
20
+ * - `iconUrl`: `displayOverride.iconUrl` ?? wallet book group sprite URL
21
+ * ?? wallet book wallet sprite URL ?? `''`.
22
+ * - `primaryColor`: wallet book group brand color ?? wallet book wallet
23
+ * brand color (providers do not ship a primary color in their
24
+ * announcement metadata).
22
25
  * - `installationUrls`: copied through if present.
23
26
  *
27
+ * The per-wallet fallback handles wallets that exist as individual entries
28
+ * in the book (e.g. Rainbow) rather than as members of a multi-wallet group
29
+ * — those don't get a `walletBook.groups[…]` shell.
30
+ *
24
31
  * Why provider precedence: a registered wallet provider knows its own
25
32
  * brand best (EIP-6963 / Wallet Standard / vendor SDK announcement is the
26
33
  * wallet authoring its own identity). The wallet book fills in fields the
@@ -1 +1 @@
1
- {"version":3,"file":"buildWalletOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAEzC,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,iBAAiB,2FAM3B,uBAAuB,KAAG,YAe5B,CAAC"}
1
+ {"version":3,"file":"buildWalletOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAEzC,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,2FAM3B,uBAAuB,KAAG,YA4B5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildWithWalletProviderOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAGxF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,eAAe,EAAE,iCAAiC,CAAC;IACnD,MAAM,EAAE,kCAAkC,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,oCAAoC,GAAG;IAC1C,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B,4BAChB,oCAAoC,UACrD,aAAa,KACpB,uCAAuC,EA0CzC,CAAC"}
1
+ {"version":3,"file":"buildWithWalletProviderOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAGxF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAE1F;;;;;;GAMG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,eAAe,EAAE,iCAAiC,CAAC;IACnD,MAAM,EAAE,kCAAkC,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,oCAAoC,GAAG;IAC1C,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B,4BAChB,oCAAoC,UACrD,aAAa,KACpB,uCAAuC,EA8CzC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { InstallationUrls } from '../walletOptionsCatalogue.types';
2
+ type GetInstallationLinkForCurrentPlatformParams = {
3
+ installationUrls: InstallationUrls;
4
+ };
5
+ /**
6
+ * Resolves the {@link InstallationUrls} field that matches the platform
7
+ * the SDK is currently running on:
8
+ *
9
+ * - iOS → `ios`
10
+ * - Android → `android`
11
+ * - Edge → `edge`
12
+ * - Opera → `opera`
13
+ * - Firefox → `firefox`
14
+ * - Safari → `safari`
15
+ * - Chrome (or other Chromium-based browsers) → `chrome`
16
+ *
17
+ * Returns `undefined` when no entry exists for the detected platform —
18
+ * callers typically render a "not available on this device" affordance
19
+ * in that case rather than offering a download targeted at a different
20
+ * browser/OS.
21
+ *
22
+ * Each branch returns exactly the field for the detected platform — no
23
+ * fallback to a different browser's URL. If you'd rather surface every
24
+ * link a wallet's manifest publishes so the user can pick where to
25
+ * install, read `installationUrls` directly instead of going through
26
+ * this helper.
27
+ *
28
+ * @param params.installationUrls - The wallet option's `installationUrls`
29
+ * record (from `getWalletOptionsCatalogue`).
30
+ * @returns The install URL for the detected platform, or `undefined`.
31
+ * @not-instrumented
32
+ */
33
+ export declare const getInstallationLinkForCurrentPlatform: ({ installationUrls, }: GetInstallationLinkForCurrentPlatformParams) => string | undefined;
34
+ export {};
35
+ //# sourceMappingURL=getInstallationLinkForCurrentPlatform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInstallationLinkForCurrentPlatform.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,KAAK,2CAA2C,GAAG;IACjD,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,qCAAqC,0BAE/C,2CAA2C,KAAG,MAAM,GAAG,SASzD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getInstallationLinkForCurrentPlatform } from './getInstallationLinkForCurrentPlatform';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
@@ -5,7 +5,12 @@ import type { GetWalletOptionsCatalogueParams, WalletOptionsCatalogue } from '..
5
5
  * pass `includeMobileOptions: true` to additionally surface
6
6
  * WalletConnect, in-app-browser, and install links.
7
7
  *
8
- * @param [params] - Inclusion flag + ordering preference.
8
+ * Pass `excludedConnectionOptionTypes` to drop specific connection types
9
+ * from the catalogue (e.g. `['inAppBrowser']` on desktop). Wallets whose
10
+ * only connection was an excluded type fall through to the install-only
11
+ * tier of the relevance ordering.
12
+ *
13
+ * @param [params] - Inclusion flag + ordering preference + exclusions.
9
14
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
15
  * @returns A promise that resolves to the wallet options catalogue.
11
16
  * @not-instrumented
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA6DhC,CAAC"}
1
+ {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA2EhC,CAAC"}
@@ -135,6 +135,17 @@ export type WalletOption = {
135
135
  export type WalletOptionOrdering = 'relevance' | 'alphabetical';
136
136
  /** Parameters for `getWalletOptionsCatalogue`. */
137
137
  export type GetWalletOptionsCatalogueParams = {
138
+ /**
139
+ * Connection option types to drop from the catalogue before sorting and
140
+ * bucketing. Use this to opt a surface out of the catalogue without
141
+ * relying on caller-side filters — e.g. dropping `'inAppBrowser'` on
142
+ * desktop so wallets whose only connection was an in-app-browser entry
143
+ * fall through to the install-only tier instead of appearing in the
144
+ * connectable bucket with no effective connect path.
145
+ *
146
+ * Defaults to `[]` (include every type).
147
+ */
148
+ excludedConnectionOptionTypes?: WalletConnectionOption['type'][];
138
149
  /**
139
150
  * Defaults to `false`. When `true`, additionally includes
140
151
  * WalletConnect, in-app-browser, and install link surfaces. Adds
@@ -1 +1 @@
1
- {"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE;QACT,gDAAgD;QAChD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,4DAA4D;QAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,eAAe,GAAG,gBAAgB,CAAC;CAC1C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,I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,kCAAkC,GAClC,2BAA2B,GAC3B,4BAA4B,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;OAKG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;;;;;;;OASG;IACH,6BAA6B,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;IACjE;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,YAAY,EAAE,CAAC"}
@@ -2,6 +2,13 @@ import type { Chain } from '../chain';
2
2
  type ChainInfo = {
3
3
  apiChainName: string;
4
4
  blockchainName: string;
5
+ /**
6
+ * Extra identifiers the wallet book may use to refer to this chain in
7
+ * `injectedConfig[].chain` or embedded in a wallet key, in addition to
8
+ * `apiChainName`. e.g. `bitcoin` uses apiChainName but `btc` is also
9
+ * accepted in wallet book entries.
10
+ */
11
+ legacyWalletBookAliases?: string[];
5
12
  verifiedCredentialChainName: string;
6
13
  waasChainNameOverride?: string;
7
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CAwFpD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CA2FpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAgBpB,CAAC"}
1
+ {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAcpB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { WalletProvider } from '../walletProvider';
2
+ type HasWalletProviderConnectMethodParams = {
3
+ walletProvider: WalletProvider;
4
+ };
5
+ /**
6
+ * Returns true when the given wallet provider exposes a `connect` method,
7
+ * which is the signal we use to decide whether it belongs in the external
8
+ * wallet picker as an `available provider`.
9
+ *
10
+ * Providers that don't expose `connect` (embedded wallets,
11
+ * account-abstraction wrappers, MetaMask SDK / WalletConnect-backed
12
+ * providers) are still sign-in capable, but via different SDK entry
13
+ * points — they should not appear in the external picker as a
14
+ * `withWalletProvider`-style option.
15
+ *
16
+ * Centralizing the predicate means future tweaks (e.g. a registry of
17
+ * provider keys to exclude) land in one place and every consumer stays
18
+ * in lockstep.
19
+ *
20
+ * @param params.walletProvider - The wallet provider to test.
21
+ * @returns True when the provider exposes a `connect` method.
22
+ * @not-instrumented
23
+ */
24
+ export declare const hasWalletProviderConnectMethod: ({ walletProvider, }: HasWalletProviderConnectMethodParams) => boolean;
25
+ export {};
26
+ //# sourceMappingURL=hasWalletProviderConnectMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasWalletProviderConnectMethod.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,oCAAoC,GAAG;IAC1C,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,wBAExC,oCAAoC,KAAG,OACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { hasWalletProviderConnectMethod } from './hasWalletProviderConnectMethod';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/hasWalletProviderConnectMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { isAnyWalletAccountConnected } from './isAnyWalletAccountConnected';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Checks whether the session has at least one connected wallet account.
3
+ *
4
+ * Both verified and unverified wallet accounts count as connected. This is a
5
+ * single building block for a custom signed-in check — combine it with whatever
6
+ * else your app considers "signed in" (e.g. `client.user`, completed onboarding,
7
+ * a required embedded wallet, …).
8
+ *
9
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
+ * @returns True if the session has at least one wallet account, false otherwise.
11
+ * @not-instrumented
12
+ */
13
+ export declare const isAnyWalletAccountConnected: (client?: import("../../../exports").DynamicClient) => boolean;
14
+ //# sourceMappingURL=isAnyWalletAccountConnected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,yDAErC,OAA+C,CAAC"}
@@ -1,20 +1,9 @@
1
- import type { WalletAccount } from '../../walletAccount';
2
- type GetBalanceParams = {
3
- walletAccount: WalletAccount;
4
- };
5
1
  /**
6
- * Retrieves the native token balance for a wallet account.
7
- *
8
- * This function fetches the balance of the native cryptocurrency
9
- * (e.g., ETH, SOL, BTC, etc.) for the specified wallet account.
10
- *
11
- * @param params.walletAccount - The wallet account to get the balance for.
12
- * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
- * @returns A promise that resolves to an object containing the balance as a string or null.
14
- * @not-instrumented
2
+ * @deprecated Use {@link getNativeBalance} instead. Renamed so its name
3
+ * states what it returns (native gas balance) and is no longer confusable
4
+ * with the token-balance fetchers (`getTokenBalances` /
5
+ * `getMultichainTokenBalances`).
6
+ * @not-instrumented
15
7
  */
16
- export declare const getBalance: ({ walletAccount }: GetBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
17
- balance: string | null;
18
- }>;
19
- export {};
8
+ export { getNativeBalance as getBalance } from '../getNativeBalance/getNativeBalance';
20
9
  //# sourceMappingURL=getBalance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,sBACF,gBAAgB,2DAElC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
1
+ {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ type GetNativeBalanceParams = {
3
+ walletAccount: WalletAccount;
4
+ };
5
+ /**
6
+ * Retrieves the native token balance for a wallet account on its active
7
+ * network. Reads directly from the chain's network provider (RPC), not
8
+ * the Dynamic API.
9
+ *
10
+ * Use this when you only need the user's gas / native-currency balance
11
+ * (ETH, SOL, BTC, etc.). For token balances, use
12
+ * {@link getTokenBalances}; for a multi-chain portfolio snapshot, use
13
+ * {@link getMultichainTokenBalances}.
14
+ *
15
+ * @param params.walletAccount - The wallet account to get the balance for.
16
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
+ * @returns A promise that resolves to an object containing the balance as a string or null.
18
+ * @not-instrumented
19
+ */
20
+ export declare const getNativeBalance: ({ walletAccount }: GetNativeBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
21
+ balance: string | null;
22
+ }>;
23
+ export {};
24
+ //# sourceMappingURL=getNativeBalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,sBACR,sBAAsB,2DAExC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getNativeBalance } from './getNativeBalance';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}