@dynamic-labs-sdk/client 1.32.0 → 1.33.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 (150) hide show
  1. package/dist/{apiClient-Bwd6cllS.native.esm.js → apiClient-4r7VAsLC.native.esm.js} +45 -12
  2. package/dist/apiClient-4r7VAsLC.native.esm.js.map +1 -0
  3. package/dist/constants.d.ts +6 -0
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/core.cjs +78 -5
  6. package/dist/core.cjs.map +1 -1
  7. package/dist/core.esm.js +77 -6
  8. package/dist/core.esm.js.map +1 -1
  9. package/dist/core.native.esm.js +79 -8
  10. package/dist/core.native.esm.js.map +1 -1
  11. package/dist/errors/UnexpectedConsentResponseError.d.ts +7 -0
  12. package/dist/errors/UnexpectedConsentResponseError.d.ts.map +1 -0
  13. package/dist/exports/core.d.ts +2 -0
  14. package/dist/exports/core.d.ts.map +1 -1
  15. package/dist/exports/index.d.ts +2 -0
  16. package/dist/exports/index.d.ts.map +1 -1
  17. package/dist/exports/waas.d.ts +2 -1
  18. package/dist/exports/waas.d.ts.map +1 -1
  19. package/dist/{getNetworkProviderFromNetworkId-DSsGkava.native.esm.js → getNetworkProviderFromNetworkId-BV229QF3.native.esm.js} +112 -89
  20. package/dist/getNetworkProviderFromNetworkId-BV229QF3.native.esm.js.map +1 -0
  21. package/dist/{getNetworkProviderFromNetworkId-TTqmAiJh.esm.js → getNetworkProviderFromNetworkId-D9oRzWA6.esm.js} +106 -83
  22. package/dist/getNetworkProviderFromNetworkId-D9oRzWA6.esm.js.map +1 -0
  23. package/dist/{getNetworkProviderFromNetworkId-5UBZwUg2.cjs → getNetworkProviderFromNetworkId-DOrcvuFv.cjs} +105 -82
  24. package/dist/getNetworkProviderFromNetworkId-DOrcvuFv.cjs.map +1 -0
  25. package/dist/{getSignedSessionId-DBUnRGjt.cjs → getSignedSessionId-4qHh_BOh.cjs} +3 -3
  26. package/dist/{getSignedSessionId-DBUnRGjt.cjs.map → getSignedSessionId-4qHh_BOh.cjs.map} +1 -1
  27. package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js → getSignedSessionId-Cd8CCp5d.native.esm.js} +3 -3
  28. package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js.map → getSignedSessionId-Cd8CCp5d.native.esm.js.map} +1 -1
  29. package/dist/{getSignedSessionId-DeeDyino.esm.js → getSignedSessionId-DA-MMsJm.esm.js} +3 -3
  30. package/dist/{getSignedSessionId-DeeDyino.esm.js.map → getSignedSessionId-DA-MMsJm.esm.js.map} +1 -1
  31. package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs → getVerifiedCredentialForWalletAccount-Bw5q7QZn.cjs} +2 -2
  32. package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs.map → getVerifiedCredentialForWalletAccount-Bw5q7QZn.cjs.map} +1 -1
  33. package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js → getVerifiedCredentialForWalletAccount-Fr3bEKeU.esm.js} +2 -2
  34. package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js.map → getVerifiedCredentialForWalletAccount-Fr3bEKeU.esm.js.map} +1 -1
  35. package/dist/index.cjs +379 -638
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.esm.js +375 -635
  38. package/dist/index.esm.js.map +1 -1
  39. package/dist/index.native.esm.js +377 -637
  40. package/dist/index.native.esm.js.map +1 -1
  41. package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js → isMfaRequiredForAction-BdU62usM.esm.js} +3 -9
  42. package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js.map → isMfaRequiredForAction-BdU62usM.esm.js.map} +1 -1
  43. package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js → isMfaRequiredForAction-DZfEkyIU.native.esm.js} +3 -9
  44. package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js.map → isMfaRequiredForAction-DZfEkyIU.native.esm.js.map} +1 -1
  45. package/dist/{isMfaRequiredForAction-62zh3W-2.cjs → isMfaRequiredForAction-Djd-jkSl.cjs} +3 -9
  46. package/dist/{isMfaRequiredForAction-62zh3W-2.cjs.map → isMfaRequiredForAction-Djd-jkSl.cjs.map} +1 -1
  47. package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js → isUserOnboardingComplete-BEZOYohA.esm.js} +3 -3
  48. package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js.map → isUserOnboardingComplete-BEZOYohA.esm.js.map} +1 -1
  49. package/dist/{isUserOnboardingComplete-DtxIznZD.cjs → isUserOnboardingComplete-Bwvv6Urs.cjs} +3 -3
  50. package/dist/{isUserOnboardingComplete-DtxIznZD.cjs.map → isUserOnboardingComplete-Bwvv6Urs.cjs.map} +1 -1
  51. package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js → isUserOnboardingComplete-CEUkAzCi.native.esm.js} +3 -3
  52. package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js.map → isUserOnboardingComplete-CEUkAzCi.native.esm.js.map} +1 -1
  53. package/dist/{logoutWithReason-yDqQ0UIt.cjs → logoutWithReason-B-ZF0VmN.cjs} +57 -18
  54. package/dist/logoutWithReason-B-ZF0VmN.cjs.map +1 -0
  55. package/dist/{logoutWithReason-DIc7cC6T.native.esm.js → logoutWithReason-DvnEa2Uv.native.esm.js} +3 -9
  56. package/dist/{logoutWithReason-DIc7cC6T.native.esm.js.map → logoutWithReason-DvnEa2Uv.native.esm.js.map} +1 -1
  57. package/dist/{logoutWithReason-x8mE7EAy.esm.js → logoutWithReason-I6vShLpA.esm.js} +46 -19
  58. package/dist/logoutWithReason-I6vShLpA.esm.js.map +1 -0
  59. package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js → migrateFromFireblocks-6I7lkraQ.native.esm.js} +2 -2
  60. package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js.map → migrateFromFireblocks-6I7lkraQ.native.esm.js.map} +1 -1
  61. package/dist/{migrateFromFireblocks-qYPrnWF8.cjs → migrateFromFireblocks-C23-24bK.cjs} +2 -2
  62. package/dist/{migrateFromFireblocks-qYPrnWF8.cjs.map → migrateFromFireblocks-C23-24bK.cjs.map} +1 -1
  63. package/dist/{migrateFromFireblocks-BapjEhra.esm.js → migrateFromFireblocks-Dtk6t8hN.esm.js} +2 -2
  64. package/dist/{migrateFromFireblocks-BapjEhra.esm.js.map → migrateFromFireblocks-Dtk6t8hN.esm.js.map} +1 -1
  65. package/dist/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.d.ts +1 -1
  66. package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
  67. package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +1 -1
  68. package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
  69. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +95 -0
  70. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -0
  71. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +3 -1
  72. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
  73. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +15 -6
  74. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
  75. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +7 -3
  76. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
  77. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +115 -2
  78. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
  79. package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts +2 -0
  80. package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts.map +1 -0
  81. package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts +27 -0
  82. package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts.map +1 -0
  83. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +13 -6
  84. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
  85. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  86. package/dist/modules/waas/waas.types.d.ts +5 -2
  87. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  88. package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts +42 -0
  89. package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts.map +1 -0
  90. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +7 -1
  91. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +1 -1
  92. package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts.map +1 -1
  93. package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts +27 -0
  94. package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts.map +1 -0
  95. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +4 -0
  96. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
  97. package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts +3 -0
  98. package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts.map +1 -0
  99. package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts +35 -0
  100. package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts.map +1 -0
  101. package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
  102. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +7 -0
  103. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
  104. package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts.map +1 -1
  105. package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts +27 -0
  106. package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts.map +1 -0
  107. package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts +2 -0
  108. package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts.map +1 -0
  109. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
  110. package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +6 -5
  111. package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
  112. package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts +2 -0
  113. package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts.map +1 -0
  114. package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts +19 -0
  115. package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts.map +1 -0
  116. package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +4 -3
  117. package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts.map +1 -1
  118. package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts.map +1 -1
  119. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  120. package/dist/utils/isScreeningBlockedError/index.d.ts +2 -0
  121. package/dist/utils/isScreeningBlockedError/index.d.ts.map +1 -0
  122. package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts +24 -0
  123. package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts.map +1 -0
  124. package/dist/{waas-WID2Fy_N.cjs → waas-C0IDCf3u.cjs} +81 -18
  125. package/dist/waas-C0IDCf3u.cjs.map +1 -0
  126. package/dist/{waas-CyUrvkQr.native.esm.js → waas-DJeW02-Y.native.esm.js} +77 -20
  127. package/dist/waas-DJeW02-Y.native.esm.js.map +1 -0
  128. package/dist/{waas-DzcYsWU8.esm.js → waas-D_alZrtb.esm.js} +77 -20
  129. package/dist/waas-D_alZrtb.esm.js.map +1 -0
  130. package/dist/waas.cjs +5 -4
  131. package/dist/waas.esm.js +5 -5
  132. package/dist/waas.native.esm.js +5 -5
  133. package/dist/waasCore.cjs +8 -6
  134. package/dist/waasCore.cjs.map +1 -1
  135. package/dist/waasCore.esm.js +8 -6
  136. package/dist/waasCore.esm.js.map +1 -1
  137. package/dist/waasCore.native.esm.js +8 -6
  138. package/dist/waasCore.native.esm.js.map +1 -1
  139. package/package.json +5 -4
  140. package/dist/apiClient-Bwd6cllS.native.esm.js.map +0 -1
  141. package/dist/getNetworkProviderFromNetworkId-5UBZwUg2.cjs.map +0 -1
  142. package/dist/getNetworkProviderFromNetworkId-DSsGkava.native.esm.js.map +0 -1
  143. package/dist/getNetworkProviderFromNetworkId-TTqmAiJh.esm.js.map +0 -1
  144. package/dist/logoutWithReason-x8mE7EAy.esm.js.map +0 -1
  145. package/dist/logoutWithReason-yDqQ0UIt.cjs.map +0 -1
  146. package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +0 -18
  147. package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts.map +0 -1
  148. package/dist/waas-CyUrvkQr.native.esm.js.map +0 -1
  149. package/dist/waas-DzcYsWU8.esm.js.map +0 -1
  150. package/dist/waas-WID2Fy_N.cjs.map +0 -1
@@ -1,15 +1,15 @@
1
- import { $ as NONCE_POOL_SIZE, A as onEvent, B as splitWalletProviderKey, D as getWalletProviderRegistry, E as WalletProviderPriority, Et as version, H as isUserMissingMfaAuth, I as getChainFromVerifiedCredentialChain, J as getNonce, L as CHAINS_INFO_MAP, N as getWalletAccounts, O as emitEvent, Q as createLocalStorageAdapter, R as formatWalletAccountId, St as BaseError, T as getWalletProviders, Tt as name, X as updateNoncePoolStorage, Y as fetchAndStoreNonces, Z as createStorageKeySchema, _t as getPlatform, a as instrumentFunction, at as InvalidExternalAuthError, c as getUserAgent, d as updateAuthFromVerifyResponse, et as UnauthorizedError, f as upsertElevatedAccessToken, ft as isCookieEnabled, g as checkAndRaiseWalletAccountsChangedEvent, gt as randomString, h as InvalidParamError, ht as getElevatedAccessToken, i as __refreshAuth_wrapped, it as LinkCredentialError, j as onceEvent, k as offEvent, l as getOperatingSystem, lt as DYNAMIC_ICONIC_SPRITE_URL, m as decodeJwt, mt as ValueMustBeDefinedError, n as NoWalletProviderFoundError, nt as MfaRateLimitedError, o as scrubParameters, ot as APIError, p as parseElevatedAccessToken, pt as assertDefined, r as createApiClient, rt as MfaInvalidOtpError, s as DEFAULT_PII_FIELDS, t as getWalletProviderFromWalletAccount, tt as SandboxMaximumThresholdReachedError, u as extractSessionId, ut as SDK_API_CORE_VERSION, v as initializeWaasClientsForEagerRecovery, vt as getDefaultClient, wt as TokenScope, xt as getCore, yt as setDefaultClient, z as normalizeAddress } from "./apiClient-Bwd6cllS.native.esm.js";
2
- import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-BUhWQCqm.native.esm.js";
3
- import { Q as WaasChainEnum } from "./waas-CyUrvkQr.native.esm.js";
4
- import { A as createLogger, B as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, C as MergeAccountsConfirmationError, D as createKeychainService, E as assertSafeDeeplinkUrl, F as createDeferredPromise, G as isEqualShallow, H as isServerSideRendering, I as createAppForegroundSubscriber, K as createStorage, L as FETCH_PROJECT_SETTINGS_TRACKER_KEY, M as createCrossTabBroadcast, O as assertSafeNavigationUrl, P as CannotTrackError, R as GENERATE_SESSION_KEYS_TRACKER_KEY, S as NoNetworkProvidersError, T as createRealtimeService, U as getBuffer, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as subscribeWithSelector, _ as isCaptchaRequired, a as verifyMessageSignatureOwnership, b as WalletScreeningBlockedError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as consumeCaptchaToken, h as __setCaptchaToken_wrapped, i as getUriConnectionStarterRegistry, j as createEventEmitter, l as reconcileWalletAccountsAgainstClient, m as hasExtension, o as removeUnverifiedWalletAccount, p as getNetworkProviderBuilderRegistry, r as getNetworksData, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as getAppMetadata, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as MethodNotImplementedError, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-DSsGkava.native.esm.js";
5
- import { a as retryOnFail, i as isSignedIn, n as generateSessionKeys, o as getVerifiedCredentialForWalletAccount, r as fetchProjectSettings, s as getWalletProviderByKey, t as __logoutWithReason_wrapped } from "./logoutWithReason-DIc7cC6T.native.esm.js";
6
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DfrEFvU2.native.esm.js";
7
- import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-BWrCHXXO.native.esm.js";
1
+ import { $ as createLocalStorageAdapter, A as offEvent, B as normalizeAddress, Ct as getCore, D as WalletProviderPriority, Dt as name, E as getWalletProviders, Et as TokenScope, L as getChainFromVerifiedCredentialChain, M as onceEvent, O as getWalletProviderRegistry, Ot as version, P as getWalletAccounts, Q as createStorageKeySchema, R as CHAINS_INFO_MAP, U as isUserMissingMfaAuth, V as splitWalletProviderKey, X as fetchAndStoreNonces, Y as getNonce, Z as updateNoncePoolStorage, _ as checkAndRaiseWalletAccountsChangedEvent, _t as getElevatedAccessToken, a as resolveInstrumentationCore, at as LinkCredentialError, bt as getDefaultClient, c as DEFAULT_PII_FIELDS, d as extractSessionId, et as NONCE_POOL_SIZE, f as updateAuthFromVerifyResponse, ft as SDK_API_CORE_VERSION, g as InvalidParamError, gt as ValueMustBeDefinedError, h as decodeJwt, ht as assertDefined, i as __refreshAuth_wrapped, it as MfaInvalidOtpError, j as onEvent, k as emitEvent, l as getUserAgent, m as parseElevatedAccessToken, mt as isCookieEnabled, n as NoWalletProviderFoundError, nt as SandboxMaximumThresholdReachedError, o as instrumentFunction, ot as InvalidExternalAuthError, p as upsertElevatedAccessToken, r as createApiClient, rt as MfaRateLimitedError, s as scrubParameters, st as APIError, t as getWalletProviderFromWalletAccount, tt as UnauthorizedError, u as getOperatingSystem, ut as DYNAMIC_ICONIC_SPRITE_URL, vt as randomString, wt as BaseError, xt as setDefaultClient, y as initializeWaasClientsForEagerRecovery, yt as getPlatform, z as formatWalletAccountId } from "./apiClient-4r7VAsLC.native.esm.js";
2
+ import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-6I7lkraQ.native.esm.js";
3
+ import { $ as WaasChainEnum } from "./waas-DJeW02-Y.native.esm.js";
4
+ import { A as createLogger, B as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, C as MergeAccountsConfirmationError, D as createKeychainService, E as assertSafeDeeplinkUrl, F as createDeferredPromise, G as isEqualShallow, H as isServerSideRendering, I as createAppForegroundSubscriber, K as createStorage, L as FETCH_PROJECT_SETTINGS_TRACKER_KEY, M as createCrossTabBroadcast, O as assertSafeNavigationUrl, P as CannotTrackError, R as GENERATE_SESSION_KEYS_TRACKER_KEY, S as NoNetworkProvidersError, T as createRealtimeService, U as getBuffer, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as subscribeWithSelector, _ as isCaptchaRequired, a as removeUnverifiedWalletAccount, b as WalletScreeningBlockedError, c as reconcileWalletAccountsAgainstClient, d as createVisit, f as getUriConnectionStarterRegistry, g as consumeCaptchaToken, h as __setCaptchaToken_wrapped, i as verifyMessageSignatureOwnership, j as createEventEmitter, l as updateWalletProviderKeysForVerifiedCredentials, m as hasExtension, o as createSignInMessageStatement, p as getNetworkProviderBuilderRegistry, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as getAppMetadata, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as MethodNotImplementedError, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-BV229QF3.native.esm.js";
5
+ import { a as retryOnFail, i as isSignedIn, n as generateSessionKeys, o as getVerifiedCredentialForWalletAccount, r as fetchProjectSettings, s as getWalletProviderByKey, t as __logoutWithReason_wrapped } from "./logoutWithReason-DvnEa2Uv.native.esm.js";
6
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DZfEkyIU.native.esm.js";
7
+ import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-CEUkAzCi.native.esm.js";
8
8
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
9
9
  import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ChainEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction as MFAAction$1, MfaBackupCodeAcknowledgement, ProviderEnum as ProviderEnum$1, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
10
10
  import * as z from "zod/mini";
11
11
  import { Linking } from "react-native";
12
- import { EventEmitter as EventEmitter$1 } from "eventemitter3";
12
+ import { EventEmitter } from "eventemitter3";
13
13
  import { Passkey } from "react-native-passkey";
14
14
 
15
15
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -412,13 +412,7 @@ const __refreshUser_impl = refreshUser;
412
412
  const __refreshUser_wrapped = instrumentFunction({
413
413
  fn: __refreshUser_impl,
414
414
  functionName: "refreshUser",
415
- getCore: () => {
416
- try {
417
- return getCore(getDefaultClient());
418
- } catch {
419
- return;
420
- }
421
- }
415
+ getCore: resolveInstrumentationCore
422
416
  });
423
417
 
424
418
  //#endregion
@@ -609,13 +603,7 @@ const __initializeClient_impl = initializeClient;
609
603
  const __initializeClient_wrapped = instrumentFunction({
610
604
  fn: __initializeClient_impl,
611
605
  functionName: "initializeClient",
612
- getCore: () => {
613
- try {
614
- return getCore(getDefaultClient());
615
- } catch {
616
- return;
617
- }
618
- }
606
+ getCore: resolveInstrumentationCore
619
607
  });
620
608
 
621
609
  //#endregion
@@ -632,7 +620,7 @@ const createAsyncTrack = () => {
632
620
  * This ensures no process is missed (as it would throw when tracked on a different node tick).
633
621
  */
634
622
  let isTrackEnabled = true;
635
- const eventEmitter = new EventEmitter$1();
623
+ const eventEmitter = new EventEmitter();
636
624
  const allSettledPromise = createDeferredPromise();
637
625
  const tracker = /* @__PURE__ */ new Map();
638
626
  /**
@@ -792,8 +780,9 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
792
780
  * synchronous tick are coalesced into one request, avoiding a round-trip per
793
781
  * event.
794
782
  *
795
- * Fetch errors are swallowed to prevent an instrumentation failure from
796
- * triggering another instrumentation event and causing an infinite loop.
783
+ * Fetch and serialization errors are swallowed to prevent an instrumentation
784
+ * failure from triggering another instrumentation event and causing an
785
+ * infinite loop.
797
786
  *
798
787
  * Works in both browser and SSR environments — fetch is injected and
799
788
  * queueMicrotask is available in Node.js >= 11.
@@ -807,11 +796,13 @@ const createDynamicTransport = (params) => {
807
796
  const events = queue.splice(0);
808
797
  if (events.length === 0) return;
809
798
  const url = `${LOGS_BASE_URL}/${params.environmentId}`;
810
- params.fetch(url, {
811
- body: JSON.stringify(events),
812
- headers: { "Content-Type": "application/json" },
813
- method: "POST"
814
- }).catch(() => {});
799
+ try {
800
+ params.fetch(url, {
801
+ body: JSON.stringify(events),
802
+ headers: { "Content-Type": "application/json" },
803
+ method: "POST"
804
+ }).catch(() => {});
805
+ } catch {}
815
806
  };
816
807
  return { log: (event) => {
817
808
  queue.push(event);
@@ -1275,13 +1266,7 @@ const __createDynamicClient_impl = createDynamicClient;
1275
1266
  const __createDynamicClient_wrapped = instrumentFunction({
1276
1267
  fn: __createDynamicClient_impl,
1277
1268
  functionName: "createDynamicClient",
1278
- getCore: () => {
1279
- try {
1280
- return getCore(getDefaultClient());
1281
- } catch {
1282
- return;
1283
- }
1284
- }
1269
+ getCore: resolveInstrumentationCore
1285
1270
  });
1286
1271
 
1287
1272
  //#endregion
@@ -2168,13 +2153,7 @@ const __checkStepUpAuth_impl = checkStepUpAuth;
2168
2153
  const __checkStepUpAuth_wrapped = instrumentFunction({
2169
2154
  fn: __checkStepUpAuth_impl,
2170
2155
  functionName: "checkStepUpAuth",
2171
- getCore: () => {
2172
- try {
2173
- return getCore(getDefaultClient());
2174
- } catch {
2175
- return;
2176
- }
2177
- }
2156
+ getCore: resolveInstrumentationCore
2178
2157
  });
2179
2158
 
2180
2159
  //#endregion
@@ -2214,13 +2193,7 @@ const __requestExternalAuthElevatedToken_impl = requestExternalAuthElevatedToken
2214
2193
  const __requestExternalAuthElevatedToken_wrapped = instrumentFunction({
2215
2194
  fn: __requestExternalAuthElevatedToken_impl,
2216
2195
  functionName: "requestExternalAuthElevatedToken",
2217
- getCore: () => {
2218
- try {
2219
- return getCore(getDefaultClient());
2220
- } catch {
2221
- return;
2222
- }
2223
- }
2196
+ getCore: resolveInstrumentationCore
2224
2197
  });
2225
2198
 
2226
2199
  //#endregion
@@ -2262,13 +2235,7 @@ const __signInWithExternalJwt_impl = signInWithExternalJwt;
2262
2235
  const __signInWithExternalJwt_wrapped = instrumentFunction({
2263
2236
  fn: __signInWithExternalJwt_impl,
2264
2237
  functionName: "signInWithExternalJwt",
2265
- getCore: () => {
2266
- try {
2267
- return getCore(getDefaultClient());
2268
- } catch {
2269
- return;
2270
- }
2271
- }
2238
+ getCore: resolveInstrumentationCore
2272
2239
  });
2273
2240
 
2274
2241
  //#endregion
@@ -2379,13 +2346,7 @@ const __deletePasskey_impl = deletePasskey;
2379
2346
  const __deletePasskey_wrapped = instrumentFunction({
2380
2347
  fn: __deletePasskey_impl,
2381
2348
  functionName: "deletePasskey",
2382
- getCore: () => {
2383
- try {
2384
- return getCore(getDefaultClient());
2385
- } catch {
2386
- return;
2387
- }
2388
- }
2349
+ getCore: resolveInstrumentationCore
2389
2350
  });
2390
2351
 
2391
2352
  //#endregion
@@ -2468,13 +2429,7 @@ const __registerPasskey_impl = registerPasskey;
2468
2429
  const __registerPasskey_wrapped = instrumentFunction({
2469
2430
  fn: __registerPasskey_impl,
2470
2431
  functionName: "registerPasskey",
2471
- getCore: () => {
2472
- try {
2473
- return getCore(getDefaultClient());
2474
- } catch {
2475
- return;
2476
- }
2477
- }
2432
+ getCore: resolveInstrumentationCore
2478
2433
  });
2479
2434
 
2480
2435
  //#endregion
@@ -2541,13 +2496,7 @@ const __signInWithPasskey_impl = signInWithPasskey;
2541
2496
  const __signInWithPasskey_wrapped = instrumentFunction({
2542
2497
  fn: __signInWithPasskey_impl,
2543
2498
  functionName: "signInWithPasskey",
2544
- getCore: () => {
2545
- try {
2546
- return getCore(getDefaultClient());
2547
- } catch {
2548
- return;
2549
- }
2550
- }
2499
+ getCore: resolveInstrumentationCore
2551
2500
  });
2552
2501
 
2553
2502
  //#endregion
@@ -2592,13 +2541,7 @@ const __signInWithSocialRedirect_impl = signInWithSocialRedirect;
2592
2541
  const __signInWithSocialRedirect_wrapped = instrumentFunction({
2593
2542
  fn: __signInWithSocialRedirect_impl,
2594
2543
  functionName: "signInWithSocialRedirect",
2595
- getCore: () => {
2596
- try {
2597
- return getCore(getDefaultClient());
2598
- } catch {
2599
- return;
2600
- }
2601
- }
2544
+ getCore: resolveInstrumentationCore
2602
2545
  });
2603
2546
 
2604
2547
  //#endregion
@@ -2623,13 +2566,7 @@ const __authenticateWithSocial_impl = authenticateWithSocial;
2623
2566
  const __authenticateWithSocial_wrapped = instrumentFunction({
2624
2567
  fn: __authenticateWithSocial_impl,
2625
2568
  functionName: "authenticateWithSocial",
2626
- getCore: () => {
2627
- try {
2628
- return getCore(getDefaultClient());
2629
- } catch {
2630
- return;
2631
- }
2632
- }
2569
+ getCore: resolveInstrumentationCore
2633
2570
  });
2634
2571
 
2635
2572
  //#endregion
@@ -2664,13 +2601,7 @@ const __completeSocialRedirect_impl = completeSocialRedirect;
2664
2601
  const __completeSocialRedirect_wrapped = instrumentFunction({
2665
2602
  fn: __completeSocialRedirect_impl,
2666
2603
  functionName: "completeSocialRedirect",
2667
- getCore: () => {
2668
- try {
2669
- return getCore(getDefaultClient());
2670
- } catch {
2671
- return;
2672
- }
2673
- }
2604
+ getCore: resolveInstrumentationCore
2674
2605
  });
2675
2606
 
2676
2607
  //#endregion
@@ -2687,13 +2618,7 @@ const __completeSocialAuthentication_impl = completeSocialAuthentication;
2687
2618
  const __completeSocialAuthentication_wrapped = instrumentFunction({
2688
2619
  fn: __completeSocialAuthentication_impl,
2689
2620
  functionName: "completeSocialAuthentication",
2690
- getCore: () => {
2691
- try {
2692
- return getCore(getDefaultClient());
2693
- } catch {
2694
- return;
2695
- }
2696
- }
2621
+ getCore: resolveInstrumentationCore
2697
2622
  });
2698
2623
 
2699
2624
  //#endregion
@@ -2796,13 +2721,7 @@ const __processSocialCallback_impl = processSocialCallback;
2796
2721
  const __processSocialCallback_wrapped = instrumentFunction({
2797
2722
  fn: __processSocialCallback_impl,
2798
2723
  functionName: "processSocialCallback",
2799
- getCore: () => {
2800
- try {
2801
- return getCore(getDefaultClient());
2802
- } catch {
2803
- return;
2804
- }
2805
- }
2724
+ getCore: resolveInstrumentationCore
2806
2725
  });
2807
2726
 
2808
2727
  //#endregion
@@ -3008,13 +2927,7 @@ const __signInWithSocialPopUp_impl = signInWithSocialPopUp;
3008
2927
  const __signInWithSocialPopUp_wrapped = instrumentFunction({
3009
2928
  fn: __signInWithSocialPopUp_impl,
3010
2929
  functionName: "signInWithSocialPopUp",
3011
- getCore: () => {
3012
- try {
3013
- return getCore(getDefaultClient());
3014
- } catch {
3015
- return;
3016
- }
3017
- }
2930
+ getCore: resolveInstrumentationCore
3018
2931
  });
3019
2932
 
3020
2933
  //#endregion
@@ -3089,13 +3002,7 @@ const __unlinkSocialAccount_impl = unlinkSocialAccount;
3089
3002
  const __unlinkSocialAccount_wrapped = instrumentFunction({
3090
3003
  fn: __unlinkSocialAccount_impl,
3091
3004
  functionName: "unlinkSocialAccount",
3092
- getCore: () => {
3093
- try {
3094
- return getCore(getDefaultClient());
3095
- } catch {
3096
- return;
3097
- }
3098
- }
3005
+ getCore: resolveInstrumentationCore
3099
3006
  });
3100
3007
 
3101
3008
  //#endregion
@@ -3352,13 +3259,7 @@ const __attachCheckoutTransactionSource_impl = attachCheckoutTransactionSource;
3352
3259
  const __attachCheckoutTransactionSource_wrapped = instrumentFunction({
3353
3260
  fn: __attachCheckoutTransactionSource_impl,
3354
3261
  functionName: "attachCheckoutTransactionSource",
3355
- getCore: () => {
3356
- try {
3357
- return getCore(getDefaultClient());
3358
- } catch {
3359
- return;
3360
- }
3361
- }
3262
+ getCore: resolveInstrumentationCore
3362
3263
  });
3363
3264
 
3364
3265
  //#endregion
@@ -3394,13 +3295,7 @@ const __broadcastCheckoutTransaction_impl = broadcastCheckoutTransaction;
3394
3295
  const __broadcastCheckoutTransaction_wrapped = instrumentFunction({
3395
3296
  fn: __broadcastCheckoutTransaction_impl,
3396
3297
  functionName: "broadcastCheckoutTransaction",
3397
- getCore: () => {
3398
- try {
3399
- return getCore(getDefaultClient());
3400
- } catch {
3401
- return;
3402
- }
3403
- }
3298
+ getCore: resolveInstrumentationCore
3404
3299
  });
3405
3300
 
3406
3301
  //#endregion
@@ -3433,13 +3328,7 @@ const __cancelCheckoutTransaction_impl = cancelCheckoutTransaction;
3433
3328
  const __cancelCheckoutTransaction_wrapped = instrumentFunction({
3434
3329
  fn: __cancelCheckoutTransaction_impl,
3435
3330
  functionName: "cancelCheckoutTransaction",
3436
- getCore: () => {
3437
- try {
3438
- return getCore(getDefaultClient());
3439
- } catch {
3440
- return;
3441
- }
3442
- }
3331
+ getCore: resolveInstrumentationCore
3443
3332
  });
3444
3333
 
3445
3334
  //#endregion
@@ -3491,13 +3380,7 @@ const __createCheckoutTransaction_impl = createCheckoutTransaction;
3491
3380
  const __createCheckoutTransaction_wrapped = instrumentFunction({
3492
3381
  fn: __createCheckoutTransaction_impl,
3493
3382
  functionName: "createCheckoutTransaction",
3494
- getCore: () => {
3495
- try {
3496
- return getCore(getDefaultClient());
3497
- } catch {
3498
- return;
3499
- }
3500
- }
3383
+ getCore: resolveInstrumentationCore
3501
3384
  });
3502
3385
 
3503
3386
  //#endregion
@@ -3585,13 +3468,7 @@ const __prepareCheckoutTransaction_impl = prepareCheckoutTransaction;
3585
3468
  const __prepareCheckoutTransaction_wrapped = instrumentFunction({
3586
3469
  fn: __prepareCheckoutTransaction_impl,
3587
3470
  functionName: "prepareCheckoutTransaction",
3588
- getCore: () => {
3589
- try {
3590
- return getCore(getDefaultClient());
3591
- } catch {
3592
- return;
3593
- }
3594
- }
3471
+ getCore: resolveInstrumentationCore
3595
3472
  });
3596
3473
 
3597
3474
  //#endregion
@@ -3689,13 +3566,7 @@ const __executeSwapTransaction_impl = executeSwapTransaction;
3689
3566
  const __executeSwapTransaction_wrapped = instrumentFunction({
3690
3567
  fn: __executeSwapTransaction_impl,
3691
3568
  functionName: "executeSwapTransaction",
3692
- getCore: () => {
3693
- try {
3694
- return getCore(getDefaultClient());
3695
- } catch {
3696
- return;
3697
- }
3698
- }
3569
+ getCore: resolveInstrumentationCore
3699
3570
  });
3700
3571
 
3701
3572
  //#endregion
@@ -3738,13 +3609,7 @@ const __submitCheckoutTransaction_impl = submitCheckoutTransaction;
3738
3609
  const __submitCheckoutTransaction_wrapped = instrumentFunction({
3739
3610
  fn: __submitCheckoutTransaction_impl,
3740
3611
  functionName: "submitCheckoutTransaction",
3741
- getCore: () => {
3742
- try {
3743
- return getCore(getDefaultClient());
3744
- } catch {
3745
- return;
3746
- }
3747
- }
3612
+ getCore: resolveInstrumentationCore
3748
3613
  });
3749
3614
 
3750
3615
  //#endregion
@@ -3852,13 +3717,7 @@ const __completeDeviceRegistration_impl = completeDeviceRegistration;
3852
3717
  const __completeDeviceRegistration_wrapped = instrumentFunction({
3853
3718
  fn: __completeDeviceRegistration_impl,
3854
3719
  functionName: "completeDeviceRegistration",
3855
- getCore: () => {
3856
- try {
3857
- return getCore(getDefaultClient());
3858
- } catch {
3859
- return;
3860
- }
3861
- }
3720
+ getCore: resolveInstrumentationCore
3862
3721
  });
3863
3722
 
3864
3723
  //#endregion
@@ -3935,13 +3794,7 @@ const __revokeAllRegisteredDevices_impl = revokeAllRegisteredDevices;
3935
3794
  const __revokeAllRegisteredDevices_wrapped = instrumentFunction({
3936
3795
  fn: __revokeAllRegisteredDevices_impl,
3937
3796
  functionName: "revokeAllRegisteredDevices",
3938
- getCore: () => {
3939
- try {
3940
- return getCore(getDefaultClient());
3941
- } catch {
3942
- return;
3943
- }
3944
- }
3797
+ getCore: resolveInstrumentationCore
3945
3798
  });
3946
3799
 
3947
3800
  //#endregion
@@ -3959,13 +3812,7 @@ const __revokeRegisteredDevice_impl = revokeRegisteredDevice;
3959
3812
  const __revokeRegisteredDevice_wrapped = instrumentFunction({
3960
3813
  fn: __revokeRegisteredDevice_impl,
3961
3814
  functionName: "revokeRegisteredDevice",
3962
- getCore: () => {
3963
- try {
3964
- return getCore(getDefaultClient());
3965
- } catch {
3966
- return;
3967
- }
3968
- }
3815
+ getCore: resolveInstrumentationCore
3969
3816
  });
3970
3817
 
3971
3818
  //#endregion
@@ -4086,13 +3933,7 @@ const __attachFlowSource_impl = attachFlowSource;
4086
3933
  const __attachFlowSource_wrapped = instrumentFunction({
4087
3934
  fn: __attachFlowSource_impl,
4088
3935
  functionName: "attachFlowSource",
4089
- getCore: () => {
4090
- try {
4091
- return getCore(getDefaultClient());
4092
- } catch {
4093
- return;
4094
- }
4095
- },
3936
+ getCore: resolveInstrumentationCore,
4096
3937
  selectors: attachFlowSourceInstrumentation
4097
3938
  });
4098
3939
 
@@ -4157,13 +3998,7 @@ const __broadcastFlow_impl = broadcastFlow;
4157
3998
  const __broadcastFlow_wrapped = instrumentFunction({
4158
3999
  fn: __broadcastFlow_impl,
4159
4000
  functionName: "broadcastFlow",
4160
- getCore: () => {
4161
- try {
4162
- return getCore(getDefaultClient());
4163
- } catch {
4164
- return;
4165
- }
4166
- },
4001
+ getCore: resolveInstrumentationCore,
4167
4002
  selectors: broadcastFlowInstrumentation
4168
4003
  });
4169
4004
 
@@ -4216,13 +4051,7 @@ const __cancelFlow_impl = cancelFlow;
4216
4051
  const __cancelFlow_wrapped = instrumentFunction({
4217
4052
  fn: __cancelFlow_impl,
4218
4053
  functionName: "cancelFlow",
4219
- getCore: () => {
4220
- try {
4221
- return getCore(getDefaultClient());
4222
- } catch {
4223
- return;
4224
- }
4225
- },
4054
+ getCore: resolveInstrumentationCore,
4226
4055
  selectors: cancelFlowInstrumentation
4227
4056
  });
4228
4057
 
@@ -4339,13 +4168,7 @@ const __prepareFlowSigning_impl = prepareFlowSigning;
4339
4168
  const __prepareFlowSigning_wrapped = instrumentFunction({
4340
4169
  fn: __prepareFlowSigning_impl,
4341
4170
  functionName: "prepareFlowSigning",
4342
- getCore: () => {
4343
- try {
4344
- return getCore(getDefaultClient());
4345
- } catch {
4346
- return;
4347
- }
4348
- },
4171
+ getCore: resolveInstrumentationCore,
4349
4172
  selectors: prepareFlowSigningInstrumentation
4350
4173
  });
4351
4174
 
@@ -4404,13 +4227,7 @@ const __submitFlowTransaction_impl = submitFlowTransaction;
4404
4227
  const __submitFlowTransaction_wrapped = instrumentFunction({
4405
4228
  fn: __submitFlowTransaction_impl,
4406
4229
  functionName: "submitFlowTransaction",
4407
- getCore: () => {
4408
- try {
4409
- return getCore(getDefaultClient());
4410
- } catch {
4411
- return;
4412
- }
4413
- },
4230
+ getCore: resolveInstrumentationCore,
4414
4231
  selectors: submitFlowTransactionInstrumentation
4415
4232
  });
4416
4233
 
@@ -4752,13 +4569,7 @@ const __createCoinbaseOnrampOrder_impl = createCoinbaseOnrampOrder;
4752
4569
  const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
4753
4570
  fn: __createCoinbaseOnrampOrder_impl,
4754
4571
  functionName: "createCoinbaseOnrampOrder",
4755
- getCore: () => {
4756
- try {
4757
- return getCore(getDefaultClient());
4758
- } catch {
4759
- return;
4760
- }
4761
- }
4572
+ getCore: resolveInstrumentationCore
4762
4573
  });
4763
4574
 
4764
4575
  //#endregion
@@ -4797,7 +4608,7 @@ const assertChainName = (chainName) => {
4797
4608
  * ```
4798
4609
  * @see createCoinbaseExchangeTransfer
4799
4610
  * @see GetCoinbaseAccountsParams
4800
- * @notInstrumented
4611
+ * @instrumented
4801
4612
  */
4802
4613
  const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
4803
4614
  const core = getCore(client);
@@ -4813,6 +4624,12 @@ const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
4813
4624
  networkId
4814
4625
  });
4815
4626
  };
4627
+ const __getCoinbaseAccounts_impl = getCoinbaseAccounts;
4628
+ const __getCoinbaseAccounts_wrapped = instrumentFunction({
4629
+ fn: __getCoinbaseAccounts_impl,
4630
+ functionName: "getCoinbaseAccounts",
4631
+ getCore: resolveInstrumentationCore
4632
+ });
4816
4633
 
4817
4634
  //#endregion
4818
4635
  //#region src/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.ts
@@ -4822,7 +4639,7 @@ const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
4822
4639
  * @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
4823
4640
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
4824
4641
  * @returns an object containing the buy URL
4825
- * @notInstrumented
4642
+ * @instrumented
4826
4643
  */
4827
4644
  const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
4828
4645
  const core = getCore(client);
@@ -4831,6 +4648,12 @@ const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
4831
4648
  environmentId: core.environmentId
4832
4649
  });
4833
4650
  };
4651
+ const __getCoinbaseBuyUrl_impl = getCoinbaseBuyUrl;
4652
+ const __getCoinbaseBuyUrl_wrapped = instrumentFunction({
4653
+ fn: __getCoinbaseBuyUrl_impl,
4654
+ functionName: "getCoinbaseBuyUrl",
4655
+ getCore: resolveInstrumentationCore
4656
+ });
4834
4657
 
4835
4658
  //#endregion
4836
4659
  //#region src/modules/funding/cryptoDotCom/createCryptoDotComPayment/createCryptoDotComPayment.ts
@@ -4856,13 +4679,7 @@ const __createCryptoDotComPayment_impl = createCryptoDotComPayment;
4856
4679
  const __createCryptoDotComPayment_wrapped = instrumentFunction({
4857
4680
  fn: __createCryptoDotComPayment_impl,
4858
4681
  functionName: "createCryptoDotComPayment",
4859
- getCore: () => {
4860
- try {
4861
- return getCore(getDefaultClient());
4862
- } catch {
4863
- return;
4864
- }
4865
- }
4682
+ getCore: resolveInstrumentationCore
4866
4683
  });
4867
4684
 
4868
4685
  //#endregion
@@ -4895,7 +4712,7 @@ const createKrakenExchangeTransfer = async (transferParams, client = getDefaultC
4895
4712
  * @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
4896
4713
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
4897
4714
  * @returns Array of Kraken accounts with balances
4898
- * @notInstrumented
4715
+ * @instrumented
4899
4716
  */
4900
4717
  const getKrakenAccounts = async (params, client = getDefaultClient()) => {
4901
4718
  const core = getCore(client);
@@ -4906,6 +4723,12 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
4906
4723
  networkId: params?.networkId
4907
4724
  });
4908
4725
  };
4726
+ const __getKrakenAccounts_impl = getKrakenAccounts;
4727
+ const __getKrakenAccounts_wrapped = instrumentFunction({
4728
+ fn: __getKrakenAccounts_impl,
4729
+ functionName: "getKrakenAccounts",
4730
+ getCore: resolveInstrumentationCore
4731
+ });
4909
4732
 
4910
4733
  //#endregion
4911
4734
  //#region src/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.ts
@@ -4914,7 +4737,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
4914
4737
  *
4915
4738
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
4916
4739
  * @returns Transfer destinations response with whitelisted addresses
4917
- * @notInstrumented
4740
+ * @instrumented
4918
4741
  */
4919
4742
  const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
4920
4743
  const core = getCore(client);
@@ -4923,6 +4746,12 @@ const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
4923
4746
  exchangeKey: ExchangeKeyEnum.Kraken
4924
4747
  });
4925
4748
  };
4749
+ const __getKrakenWhitelistedAddresses_impl = getKrakenWhitelistedAddresses;
4750
+ const __getKrakenWhitelistedAddresses_wrapped = instrumentFunction({
4751
+ fn: __getKrakenWhitelistedAddresses_impl,
4752
+ functionName: "getKrakenWhitelistedAddresses",
4753
+ getCore: resolveInstrumentationCore
4754
+ });
4926
4755
 
4927
4756
  //#endregion
4928
4757
  //#region src/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.ts
@@ -4948,13 +4777,7 @@ const __getMoonPayCurrencies_impl = getMoonPayCurrencies;
4948
4777
  const __getMoonPayCurrencies_wrapped = instrumentFunction({
4949
4778
  fn: __getMoonPayCurrencies_impl,
4950
4779
  functionName: "getMoonPayCurrencies",
4951
- getCore: () => {
4952
- try {
4953
- return getCore(getDefaultClient());
4954
- } catch {
4955
- return;
4956
- }
4957
- }
4780
+ getCore: resolveInstrumentationCore
4958
4781
  });
4959
4782
 
4960
4783
  //#endregion
@@ -5024,13 +4847,7 @@ const __getMoonPayUrl_impl = getMoonPayUrl;
5024
4847
  const __getMoonPayUrl_wrapped = instrumentFunction({
5025
4848
  fn: __getMoonPayUrl_impl,
5026
4849
  functionName: "getMoonPayUrl",
5027
- getCore: () => {
5028
- try {
5029
- return getCore(getDefaultClient());
5030
- } catch {
5031
- return;
5032
- }
5033
- }
4850
+ getCore: resolveInstrumentationCore
5034
4851
  });
5035
4852
 
5036
4853
  //#endregion
@@ -5074,13 +4891,7 @@ const __setInstrumentationEnabled_impl = setInstrumentationEnabled;
5074
4891
  const __setInstrumentationEnabled_wrapped = instrumentFunction({
5075
4892
  fn: __setInstrumentationEnabled_impl,
5076
4893
  functionName: "setInstrumentationEnabled",
5077
- getCore: () => {
5078
- try {
5079
- return getCore(getDefaultClient());
5080
- } catch {
5081
- return;
5082
- }
5083
- }
4894
+ getCore: resolveInstrumentationCore
5084
4895
  });
5085
4896
 
5086
4897
  //#endregion
@@ -5647,13 +5458,7 @@ const __updateUser_impl = updateUser;
5647
5458
  const __updateUser_wrapped = instrumentFunction({
5648
5459
  fn: __updateUser_impl,
5649
5460
  functionName: "updateUser",
5650
- getCore: () => {
5651
- try {
5652
- return getCore(getDefaultClient());
5653
- } catch {
5654
- return;
5655
- }
5656
- }
5461
+ getCore: resolveInstrumentationCore
5657
5462
  });
5658
5463
 
5659
5464
  //#endregion
@@ -5675,13 +5480,7 @@ const __acknowledgeRecoveryCodes_impl = acknowledgeRecoveryCodes;
5675
5480
  const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
5676
5481
  fn: __acknowledgeRecoveryCodes_impl,
5677
5482
  functionName: "acknowledgeRecoveryCodes",
5678
- getCore: () => {
5679
- try {
5680
- return getCore(getDefaultClient());
5681
- } catch {
5682
- return;
5683
- }
5684
- }
5483
+ getCore: resolveInstrumentationCore
5685
5484
  });
5686
5485
 
5687
5486
  //#endregion
@@ -5876,13 +5675,7 @@ const __createNewMfaRecoveryCodes_impl = createNewMfaRecoveryCodes;
5876
5675
  const __createNewMfaRecoveryCodes_wrapped = instrumentFunction({
5877
5676
  fn: __createNewMfaRecoveryCodes_impl,
5878
5677
  functionName: "createNewMfaRecoveryCodes",
5879
- getCore: () => {
5880
- try {
5881
- return getCore(getDefaultClient());
5882
- } catch {
5883
- return;
5884
- }
5885
- }
5678
+ getCore: resolveInstrumentationCore
5886
5679
  });
5887
5680
 
5888
5681
  //#endregion
@@ -5918,13 +5711,7 @@ const __deleteMfaDevice_impl = deleteMfaDevice;
5918
5711
  const __deleteMfaDevice_wrapped = instrumentFunction({
5919
5712
  fn: __deleteMfaDevice_impl,
5920
5713
  functionName: "deleteMfaDevice",
5921
- getCore: () => {
5922
- try {
5923
- return getCore(getDefaultClient());
5924
- } catch {
5925
- return;
5926
- }
5927
- }
5714
+ getCore: resolveInstrumentationCore
5928
5715
  });
5929
5716
 
5930
5717
  //#endregion
@@ -5985,13 +5772,7 @@ const __registerTotpMfaDevice_impl = registerTotpMfaDevice;
5985
5772
  const __registerTotpMfaDevice_wrapped = instrumentFunction({
5986
5773
  fn: __registerTotpMfaDevice_impl,
5987
5774
  functionName: "registerTotpMfaDevice",
5988
- getCore: () => {
5989
- try {
5990
- return getCore(getDefaultClient());
5991
- } catch {
5992
- return;
5993
- }
5994
- }
5775
+ getCore: resolveInstrumentationCore
5995
5776
  });
5996
5777
 
5997
5778
  //#endregion
@@ -6020,13 +5801,7 @@ const __setDefaultMfaDevice_impl = setDefaultMfaDevice;
6020
5801
  const __setDefaultMfaDevice_wrapped = instrumentFunction({
6021
5802
  fn: __setDefaultMfaDevice_impl,
6022
5803
  functionName: "setDefaultMfaDevice",
6023
- getCore: () => {
6024
- try {
6025
- return getCore(getDefaultClient());
6026
- } catch {
6027
- return;
6028
- }
6029
- }
5804
+ getCore: resolveInstrumentationCore
6030
5805
  });
6031
5806
 
6032
5807
  //#endregion
@@ -6075,13 +5850,7 @@ const __sendEmailOTP_impl = sendEmailOTP;
6075
5850
  const __sendEmailOTP_wrapped = instrumentFunction({
6076
5851
  fn: __sendEmailOTP_impl,
6077
5852
  functionName: "sendEmailOTP",
6078
- getCore: () => {
6079
- try {
6080
- return getCore(getDefaultClient());
6081
- } catch {
6082
- return;
6083
- }
6084
- }
5853
+ getCore: resolveInstrumentationCore
6085
5854
  });
6086
5855
 
6087
5856
  //#endregion
@@ -7053,13 +6822,7 @@ const __sendSmsOTP_impl = sendSmsOTP;
7053
6822
  const __sendSmsOTP_wrapped = instrumentFunction({
7054
6823
  fn: __sendSmsOTP_impl,
7055
6824
  functionName: "sendSmsOTP",
7056
- getCore: () => {
7057
- try {
7058
- return getCore(getDefaultClient());
7059
- } catch {
7060
- return;
7061
- }
7062
- }
6825
+ getCore: resolveInstrumentationCore
7063
6826
  });
7064
6827
 
7065
6828
  //#endregion
@@ -7151,13 +6914,7 @@ const __verifyOTP_impl = verifyOTP;
7151
6914
  const __verifyOTP_wrapped = instrumentFunction({
7152
6915
  fn: __verifyOTP_impl,
7153
6916
  functionName: "verifyOTP",
7154
- getCore: () => {
7155
- try {
7156
- return getCore(getDefaultClient());
7157
- } catch {
7158
- return;
7159
- }
7160
- }
6917
+ getCore: resolveInstrumentationCore
7161
6918
  });
7162
6919
 
7163
6920
  //#endregion
@@ -7295,13 +7052,7 @@ const __deleteUser_impl = deleteUser;
7295
7052
  const __deleteUser_wrapped = instrumentFunction({
7296
7053
  fn: __deleteUser_impl,
7297
7054
  functionName: "deleteUser",
7298
- getCore: () => {
7299
- try {
7300
- return getCore(getDefaultClient());
7301
- } catch {
7302
- return;
7303
- }
7304
- }
7055
+ getCore: resolveInstrumentationCore
7305
7056
  });
7306
7057
 
7307
7058
  //#endregion
@@ -7444,13 +7195,7 @@ const __getGoogleDriveBackupReadiness_impl = getGoogleDriveBackupReadiness;
7444
7195
  const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
7445
7196
  fn: __getGoogleDriveBackupReadiness_impl,
7446
7197
  functionName: "getGoogleDriveBackupReadiness",
7447
- getCore: () => {
7448
- try {
7449
- return getCore(getDefaultClient());
7450
- } catch {
7451
- return;
7452
- }
7453
- }
7198
+ getCore: resolveInstrumentationCore
7454
7199
  });
7455
7200
 
7456
7201
  //#endregion
@@ -7688,6 +7433,43 @@ const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
7688
7433
  return Array.from(chains);
7689
7434
  };
7690
7435
 
7436
+ //#endregion
7437
+ //#region src/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.ts
7438
+ const PLAY_STORE_URL_TEMPLATE = "https://play.google.com/store/apps/details?id=";
7439
+ const APP_STORE_URL_TEMPLATE = "https://apps.apple.com/app/";
7440
+ const CHROME_WEB_STORE_URL_TEMPLATE = "https://chrome.google.com/webstore/detail/";
7441
+ const FIREFOX_ADDONS_URL_TEMPLATE = "https://addons.mozilla.org/firefox/addon/";
7442
+ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/detail/";
7443
+ /**
7444
+ * Builds the install/download URL bag for a wallet book entry. Returns the
7445
+ * concrete URLs assembled from each store's ID field — Play Store, App
7446
+ * Store, Chrome Web Store, Firefox Add-ons, Edge Add-ons — plus the wallet's
7447
+ * own `desktop.universal` / `desktop.native` URLs when set.
7448
+ *
7449
+ * Fields the wallet book does not carry are left undefined; callers should
7450
+ * skip emitting an installation option for a wallet whose URL bag is empty.
7451
+ *
7452
+ * @param params.wallet - The wallet book entry.
7453
+ * @returns The URL bag, omitting fields the wallet does not provide.
7454
+ * @notInstrumented
7455
+ */
7456
+ const buildInstallationUrls = ({ wallet }) => {
7457
+ const androidId = wallet.mobile?.androidId;
7458
+ const iosId = wallet.mobile?.iosId;
7459
+ const chromeId = wallet.desktop?.chromeId;
7460
+ const firefoxId = wallet.desktop?.firefoxId;
7461
+ const edgeId = wallet.desktop?.edgeId;
7462
+ const native = wallet.desktop?.universal ?? wallet.desktop?.native;
7463
+ return {
7464
+ android: androidId ? `${PLAY_STORE_URL_TEMPLATE}${androidId}` : void 0,
7465
+ chrome: chromeId ? `${CHROME_WEB_STORE_URL_TEMPLATE}${chromeId}` : void 0,
7466
+ edge: edgeId ? `${EDGE_ADDONS_URL_TEMPLATE}${edgeId}` : void 0,
7467
+ firefox: firefoxId ? `${FIREFOX_ADDONS_URL_TEMPLATE}${firefoxId}` : void 0,
7468
+ ios: iosId ? `${APP_STORE_URL_TEMPLATE}${iosId}` : void 0,
7469
+ native: native || void 0
7470
+ };
7471
+ };
7472
+
7691
7473
  //#endregion
7692
7474
  //#region src/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.ts
7693
7475
  /**
@@ -7707,21 +7489,99 @@ const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
7707
7489
  const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
7708
7490
 
7709
7491
  //#endregion
7710
- //#region src/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.ts
7492
+ //#region src/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.ts
7711
7493
  /**
7712
- * Returns the wallet's in-app browser URL template, preferring the v2
7713
- * field. `inAppBrowser` is deprecated but some wallet book entries
7714
- * still carry only the v1 value, so it acts as a fallback. Trailing
7715
- * `?? undefined` collapses the schema's `string | null` typing down to
7716
- * the `string | undefined` return contract.
7717
- *
7718
- * @param params.wallet - The wallet book wallet entry.
7719
- * @returns The in-app browser URL, or `undefined` if neither field is set.
7720
- * @notInstrumented
7494
+ * `buildInstallationUrls` always returns an object, but it can be fully
7495
+ * `undefined`-valued when the wallet book entry has no installable surface.
7496
+ * Skip those wallets emitting an empty URL bag helps nobody.
7721
7497
  */
7722
- const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
7723
-
7724
- //#endregion
7498
+ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
7499
+ /**
7500
+ * Collects install / download URLs for every wallet book entry that has
7501
+ * at least one installable surface, keyed by the wallet option key the
7502
+ * wallet groups under. The catalogue assembly step merges this map into
7503
+ * the per-key wallet option shell so `WalletOption.installationUrls` is
7504
+ * populated alongside (or instead of) `connectionOptions`.
7505
+ *
7506
+ * First-seen URLs win when multiple wallet book entries resolve to the
7507
+ * same wallet option key — wallet book authors put the most accurate
7508
+ * install links on the canonical entry, so the first-seen one is the
7509
+ * right pick.
7510
+ *
7511
+ * Reuses the generic `shouldFilterWallet` rules so embedded wallets do
7512
+ * not appear here either — they're not user-installable products.
7513
+ *
7514
+ * Wallets that advertise no chain this client has an extension for are
7515
+ * skipped: installing them would not make them connectable.
7516
+ *
7517
+ * @param params.enabledChains - Chains the client has an extension for.
7518
+ * @param params.walletBook - The fetched wallet book.
7519
+ * @returns A map from wallet option key to its install URL bag.
7520
+ * @notInstrumented
7521
+ */
7522
+ const buildInstallationUrlsByWalletOptionKey = ({ enabledChains, walletBook }) => {
7523
+ const map = /* @__PURE__ */ new Map();
7524
+ for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
7525
+ if (shouldFilterWallet({
7526
+ wallet,
7527
+ walletKey
7528
+ })) continue;
7529
+ if (!getChainsFromWalletSchema({
7530
+ wallet,
7531
+ walletKey
7532
+ }).some((chain) => enabledChains.has(chain))) continue;
7533
+ const urls = buildInstallationUrls({ wallet });
7534
+ if (!hasAnyInstallationUrl({ urls })) continue;
7535
+ const walletOptionKey = resolveWalletBookWalletOptionKey({
7536
+ wallet,
7537
+ walletKey
7538
+ });
7539
+ if (!map.has(walletOptionKey)) map.set(walletOptionKey, urls);
7540
+ }
7541
+ return map;
7542
+ };
7543
+
7544
+ //#endregion
7545
+ //#region src/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.ts
7546
+ /**
7547
+ * Returns the chains that have a URI connection starter registered for a
7548
+ * given URI protocol. An empty set means no chain extension can mint a
7549
+ * pairing URI for that protocol, so surfaces driven by it are not
7550
+ * reachable on this client.
7551
+ *
7552
+ * @example
7553
+ * ```ts
7554
+ * const chains = getUriConnectionStarterChains({ type: 'walletConnect' }, client);
7555
+ * ```
7556
+ *
7557
+ * @param params.type - The URI protocol to look up starters for.
7558
+ * @param client - The Dynamic client instance.
7559
+ * @returns The chains with a registered starter for the given protocol.
7560
+ * @see getUriConnectionStarterRegistry
7561
+ * @see UriConnectionType
7562
+ * @notInstrumented
7563
+ */
7564
+ const getUriConnectionStarterChains = ({ type }, client) => {
7565
+ const starters = getUriConnectionStarterRegistry(client).getAll();
7566
+ return new Set(starters.filter((starter) => starter.type === type).map((starter) => starter.chain));
7567
+ };
7568
+
7569
+ //#endregion
7570
+ //#region src/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.ts
7571
+ /**
7572
+ * Returns the wallet's in-app browser URL template, preferring the v2
7573
+ * field. `inAppBrowser` is deprecated but some wallet book entries
7574
+ * still carry only the v1 value, so it acts as a fallback. Trailing
7575
+ * `?? undefined` collapses the schema's `string | null` typing down to
7576
+ * the `string | undefined` return contract.
7577
+ *
7578
+ * @param params.wallet - The wallet book wallet entry.
7579
+ * @returns The in-app browser URL, or `undefined` if neither field is set.
7580
+ * @notInstrumented
7581
+ */
7582
+ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
7583
+
7584
+ //#endregion
7725
7585
  //#region src/modules/walletOptionsCatalogue/buildInAppBrowserOptions/buildInAppBrowserOptions.ts
7726
7586
  /**
7727
7587
  * Builds the `inAppBrowser` catalogue options from the wallet book. A wallet
@@ -7772,96 +7632,6 @@ const buildInAppBrowserOptions = ({ enabledChains, walletBook }) => {
7772
7632
  return result;
7773
7633
  };
7774
7634
 
7775
- //#endregion
7776
- //#region src/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.ts
7777
- const PLAY_STORE_URL_TEMPLATE = "https://play.google.com/store/apps/details?id=";
7778
- const APP_STORE_URL_TEMPLATE = "https://apps.apple.com/app/";
7779
- const CHROME_WEB_STORE_URL_TEMPLATE = "https://chrome.google.com/webstore/detail/";
7780
- const FIREFOX_ADDONS_URL_TEMPLATE = "https://addons.mozilla.org/firefox/addon/";
7781
- const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/detail/";
7782
- /**
7783
- * Builds the install/download URL bag for a wallet book entry. Returns the
7784
- * concrete URLs assembled from each store's ID field — Play Store, App
7785
- * Store, Chrome Web Store, Firefox Add-ons, Edge Add-ons — plus the wallet's
7786
- * own `desktop.universal` / `desktop.native` URLs when set.
7787
- *
7788
- * Fields the wallet book does not carry are left undefined; callers should
7789
- * skip emitting an installation option for a wallet whose URL bag is empty.
7790
- *
7791
- * @param params.wallet - The wallet book entry.
7792
- * @returns The URL bag, omitting fields the wallet does not provide.
7793
- * @notInstrumented
7794
- */
7795
- const buildInstallationUrls = ({ wallet }) => {
7796
- const androidId = wallet.mobile?.androidId;
7797
- const iosId = wallet.mobile?.iosId;
7798
- const chromeId = wallet.desktop?.chromeId;
7799
- const firefoxId = wallet.desktop?.firefoxId;
7800
- const edgeId = wallet.desktop?.edgeId;
7801
- const native = wallet.desktop?.universal ?? wallet.desktop?.native;
7802
- return {
7803
- android: androidId ? `${PLAY_STORE_URL_TEMPLATE}${androidId}` : void 0,
7804
- chrome: chromeId ? `${CHROME_WEB_STORE_URL_TEMPLATE}${chromeId}` : void 0,
7805
- edge: edgeId ? `${EDGE_ADDONS_URL_TEMPLATE}${edgeId}` : void 0,
7806
- firefox: firefoxId ? `${FIREFOX_ADDONS_URL_TEMPLATE}${firefoxId}` : void 0,
7807
- ios: iosId ? `${APP_STORE_URL_TEMPLATE}${iosId}` : void 0,
7808
- native: native || void 0
7809
- };
7810
- };
7811
-
7812
- //#endregion
7813
- //#region src/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.ts
7814
- /**
7815
- * `buildInstallationUrls` always returns an object, but it can be fully
7816
- * `undefined`-valued when the wallet book entry has no installable surface.
7817
- * Skip those wallets — emitting an empty URL bag helps nobody.
7818
- */
7819
- const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
7820
- /**
7821
- * Collects install / download URLs for every wallet book entry that has
7822
- * at least one installable surface, keyed by the wallet option key the
7823
- * wallet groups under. The catalogue assembly step merges this map into
7824
- * the per-key wallet option shell so `WalletOption.installationUrls` is
7825
- * populated alongside (or instead of) `connectionOptions`.
7826
- *
7827
- * First-seen URLs win when multiple wallet book entries resolve to the
7828
- * same wallet option key — wallet book authors put the most accurate
7829
- * install links on the canonical entry, so the first-seen one is the
7830
- * right pick.
7831
- *
7832
- * Reuses the generic `shouldFilterWallet` rules so embedded wallets do
7833
- * not appear here either — they're not user-installable products.
7834
- *
7835
- * Wallets that advertise no chain this client has an extension for are
7836
- * skipped: installing them would not make them connectable.
7837
- *
7838
- * @param params.enabledChains - Chains the client has an extension for.
7839
- * @param params.walletBook - The fetched wallet book.
7840
- * @returns A map from wallet option key to its install URL bag.
7841
- * @notInstrumented
7842
- */
7843
- const buildInstallationUrlsByWalletOptionKey = ({ enabledChains, walletBook }) => {
7844
- const map = /* @__PURE__ */ new Map();
7845
- for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
7846
- if (shouldFilterWallet({
7847
- wallet,
7848
- walletKey
7849
- })) continue;
7850
- if (!getChainsFromWalletSchema({
7851
- wallet,
7852
- walletKey
7853
- }).some((chain) => enabledChains.has(chain))) continue;
7854
- const urls = buildInstallationUrls({ wallet });
7855
- if (!hasAnyInstallationUrl({ urls })) continue;
7856
- const walletOptionKey = resolveWalletBookWalletOptionKey({
7857
- wallet,
7858
- walletKey
7859
- });
7860
- if (!map.has(walletOptionKey)) map.set(walletOptionKey, urls);
7861
- }
7862
- return map;
7863
- };
7864
-
7865
7635
  //#endregion
7866
7636
  //#region src/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.ts
7867
7637
  /**
@@ -7945,13 +7715,6 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
7945
7715
  //#endregion
7946
7716
  //#region src/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.ts
7947
7717
  /**
7948
- * Chains Dynamic ships a WalletConnect extension for. Anything else a
7949
- * wallet book entry advertises (Cosmos, BTC, …) gets filtered out — the
7950
- * catalogue should not surface a chain the SDK has no `connectWithWalletConnect<Chain>`
7951
- * primitive for.
7952
- */
7953
- const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
7954
- /**
7955
7718
  * Builds the `walletConnect`-discriminator catalogue options from a fetched
7956
7719
  * wallet book. Applies the WalletConnect-specific eligibility filter
7957
7720
  * (`shouldFilterWalletForWalletConnect`) so embedded wallets and entries
@@ -7965,11 +7728,15 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
7965
7728
  * discriminator via `excludedConnectionOptionTypes` doesn't accidentally
7966
7729
  * gate the other.
7967
7730
  *
7731
+ * Chains a wallet book entry advertises without a registered WalletConnect
7732
+ * starter are filtered out.
7733
+ *
7968
7734
  * @param params.walletBook - The fetched wallet book.
7735
+ * @param params.walletConnectChains - Chains with a registered `walletConnect` URI connection starter.
7969
7736
  * @returns Tagged `walletConnect` options paired with their wallet option keys.
7970
7737
  * @notInstrumented
7971
7738
  */
7972
- const buildWalletConnectOptions = ({ walletBook }) => {
7739
+ const buildWalletConnectOptions = ({ walletBook, walletConnectChains }) => {
7973
7740
  const result = [];
7974
7741
  for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
7975
7742
  if (shouldFilterWalletForWalletConnect({
@@ -7985,7 +7752,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
7985
7752
  const chains = getChainsFromWalletSchema({
7986
7753
  wallet,
7987
7754
  walletKey
7988
- }).filter((chain) => WALLETCONNECT_SUPPORTED_CHAINS.has(chain));
7755
+ }).filter((chain) => walletConnectChains.has(chain));
7989
7756
  for (const chain of chains) result.push({
7990
7757
  option: {
7991
7758
  chain,
@@ -8001,6 +7768,108 @@ const buildWalletConnectOptions = ({ walletBook }) => {
8001
7768
  return result;
8002
7769
  };
8003
7770
 
7771
+ //#endregion
7772
+ //#region src/modules/walletOptionsCatalogue/filterConnectionOptionsByEnabledChains/filterConnectionOptionsByEnabledChains.ts
7773
+ /**
7774
+ * Drops options whose chain has no extension on this client. The wallet
7775
+ * book advertises every chain a wallet supports, so options derived from
7776
+ * it have to be narrowed to the chains the client can actually connect
7777
+ * on — otherwise the catalogue surfaces a connection the customer has no
7778
+ * primitive to drive.
7779
+ *
7780
+ * @param params.enabledChains - Chains the client has an extension for.
7781
+ * @param params.options - The tagged options to narrow.
7782
+ * @returns The options on enabled chains, in input order.
7783
+ * @example
7784
+ * ```typescript
7785
+ * filterConnectionOptionsByEnabledChains({
7786
+ * enabledChains: new Set(['EVM']),
7787
+ * options: [evmOption, solOption],
7788
+ * }); // [evmOption]
7789
+ * ```
7790
+ * @see {@link getEnabledChains} for how the enabled chains are derived.
7791
+ * @see {@link getWalletOptionsCatalogue} for the catalogue that applies this filter.
7792
+ * @notInstrumented
7793
+ */
7794
+ const filterConnectionOptionsByEnabledChains = ({ enabledChains, options }) => options.filter(({ option }) => enabledChains.has(option.chain));
7795
+
7796
+ //#endregion
7797
+ //#region src/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.ts
7798
+ /**
7799
+ * Builds every wallet-book-sourced connection option — WalletConnect,
7800
+ * MetaMask SDK URI and in-app browser — narrowed to the chains this client
7801
+ * has an extension for.
7802
+ *
7803
+ * Each URI-deeplink discriminator has its own builder with its own
7804
+ * eligibility filter (WalletConnect requires `sign_v2`; MetaMask SDK URI
7805
+ * does not), so excluding one discriminator never gates the other.
7806
+ *
7807
+ * WalletConnect options are emitted only on the chains with a registered
7808
+ * `walletConnect` URI connection starter.
7809
+ *
7810
+ * @example
7811
+ * ```ts
7812
+ * const options = buildWalletBookConnectionOptions(
7813
+ * { enabledChains, excludedConnectionOptionTypes: new Set(), walletBook },
7814
+ * client
7815
+ * );
7816
+ * ```
7817
+ *
7818
+ * @param params.enabledChains - Chains the client has an extension for.
7819
+ * @param params.excludedConnectionOptionTypes - Connection types to drop.
7820
+ * @param params.walletBook - The fetched wallet book.
7821
+ * @param client - The Dynamic client instance.
7822
+ * @returns Tagged wallet-book options paired with their wallet option keys.
7823
+ * @see getWalletOptionsCatalogue
7824
+ * @see filterConnectionOptionsByEnabledChains
7825
+ * @notInstrumented
7826
+ */
7827
+ const buildWalletBookConnectionOptions = ({ enabledChains, excludedConnectionOptionTypes, walletBook }, client) => {
7828
+ const options = [];
7829
+ const walletConnectChains = getUriConnectionStarterChains({ type: "walletConnect" }, client);
7830
+ const hasWalletConnectStarter = walletConnectChains.size > 0;
7831
+ if (!excludedConnectionOptionTypes.has("walletConnect") && hasWalletConnectStarter) options.push(...buildWalletConnectOptions({
7832
+ walletBook,
7833
+ walletConnectChains
7834
+ }));
7835
+ if (!excludedConnectionOptionTypes.has("metamaskSdkUri")) options.push(...buildMetaMaskSdkUriOptions({ walletBook }));
7836
+ if (!excludedConnectionOptionTypes.has("inAppBrowser")) options.push(...buildInAppBrowserOptions({
7837
+ enabledChains,
7838
+ walletBook
7839
+ }));
7840
+ return filterConnectionOptionsByEnabledChains({
7841
+ enabledChains,
7842
+ options
7843
+ });
7844
+ };
7845
+
7846
+ //#endregion
7847
+ //#region src/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.ts
7848
+ /**
7849
+ * Derives the chains a wallet option can be connected on from its connection
7850
+ * options, deduped and sorted alphabetically so the order is stable
7851
+ * regardless of how the connection options rank.
7852
+ *
7853
+ * Install-only wallet options have no connection options, so they support no
7854
+ * chain until the wallet is installed.
7855
+ *
7856
+ * @example
7857
+ * ```ts
7858
+ * const supportedChains = deriveSupportedChains({ connectionOptions });
7859
+ * ```
7860
+ *
7861
+ * @param params.connectionOptions - The wallet option's connection options.
7862
+ * @returns The chains supported by the wallet option.
7863
+ * @see buildWalletOption
7864
+ * @see WalletOption
7865
+ * @notInstrumented
7866
+ */
7867
+ const deriveSupportedChains = ({ connectionOptions }) => {
7868
+ const chains = /* @__PURE__ */ new Set();
7869
+ for (const connectionOption of connectionOptions) chains.add(connectionOption.chain);
7870
+ return Array.from(chains).sort((a, b) => a.localeCompare(b));
7871
+ };
7872
+
8004
7873
  //#endregion
8005
7874
  //#region src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts
8006
7875
  /**
@@ -8049,7 +7918,8 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
8049
7918
  installationUrls,
8050
7919
  key: walletOptionKey,
8051
7920
  name: displayOverride?.name ?? group?.name ?? walletEntry?.name ?? walletOptionKey,
8052
- primaryColor: group?.brand?.primaryColor ?? walletEntry?.brand?.primaryColor
7921
+ primaryColor: group?.brand?.primaryColor ?? walletEntry?.brand?.primaryColor,
7922
+ supportedChains: deriveSupportedChains({ connectionOptions })
8053
7923
  };
8054
7924
  };
8055
7925
 
@@ -8326,31 +8196,6 @@ const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
8326
8196
  */
8327
8197
  const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
8328
8198
 
8329
- //#endregion
8330
- //#region src/modules/walletOptionsCatalogue/filterConnectionOptionsByEnabledChains/filterConnectionOptionsByEnabledChains.ts
8331
- /**
8332
- * Drops options whose chain has no extension on this client. The wallet
8333
- * book advertises every chain a wallet supports, so options derived from
8334
- * it have to be narrowed to the chains the client can actually connect
8335
- * on — otherwise the catalogue surfaces a connection the customer has no
8336
- * primitive to drive.
8337
- *
8338
- * @param params.enabledChains - Chains the client has an extension for.
8339
- * @param params.options - The tagged options to narrow.
8340
- * @returns The options on enabled chains, in input order.
8341
- * @example
8342
- * ```typescript
8343
- * filterConnectionOptionsByEnabledChains({
8344
- * enabledChains: new Set(['EVM']),
8345
- * options: [evmOption, solOption],
8346
- * }); // [evmOption]
8347
- * ```
8348
- * @see {@link getEnabledChains} for how the enabled chains are derived.
8349
- * @see {@link getWalletOptionsCatalogue} for the catalogue that applies this filter.
8350
- * @notInstrumented
8351
- */
8352
- const filterConnectionOptionsByEnabledChains = ({ enabledChains, options }) => options.filter(({ option }) => enabledChains.has(option.chain));
8353
-
8354
8199
  //#endregion
8355
8200
  //#region src/modules/walletOptionsCatalogue/groupOptionsByWalletOption/groupOptionsByWalletOption.ts
8356
8201
  /**
@@ -8514,19 +8359,26 @@ const compareByRelevance = ({ a, b }) => {
8514
8359
  const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
8515
8360
 
8516
8361
  //#endregion
8517
- //#region src/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.ts
8362
+ //#region src/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.ts
8518
8363
  /**
8519
- * True when the wallet option has a `withWalletProvider` connection — i.e.
8520
- * the user already has the wallet available in the page (browser extension,
8521
- * Wallet Standard announcement, window injection, or an SDK-backed provider
8522
- * one of our chain extensions registered). `connectionOptions` is
8523
- * pre-sorted, so a registered provider always sits at index 0 when present.
8364
+ * Returns true when the wallet option has any `withWalletProvider` connection
8365
+ * option, meaning the wallet is available in the page through a browser
8366
+ * extension, Wallet Standard announcement, window injection, or an SDK-backed
8367
+ * provider registered by a chain extension.
8524
8368
  *
8369
+ * @description Detects whether a wallet option is available through a provider
8370
+ * registered in the page.
8525
8371
  * @param params.walletOption - The wallet option to inspect.
8526
- * @returns True when an installed provider is available.
8372
+ * @returns True when the wallet is available in the page.
8373
+ * @example
8374
+ * ```ts
8375
+ * const isInstalled = isWalletExtensionInstalled({ walletOption });
8376
+ * ```
8377
+ * @see getWalletOptionsCatalogue
8378
+ * @see WalletOption
8527
8379
  * @notInstrumented
8528
8380
  */
8529
- const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
8381
+ const isWalletExtensionInstalled = ({ walletOption }) => walletOption.connectionOptions.some(({ type }) => type === "withWalletProvider");
8530
8382
 
8531
8383
  //#endregion
8532
8384
  //#region src/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.ts
@@ -8539,7 +8391,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
8539
8391
  * - `'relevance'` (default): bucket wallet options into three tiers, in
8540
8392
  * this order:
8541
8393
  * 1. **Installed provider** — user already has the wallet available
8542
- * (`withWalletProvider` at index 0).
8394
+ * (any `withWalletProvider` connection option).
8543
8395
  * 2. **Connectable** — has at least one connection (URI deeplink
8544
8396
  * or `inAppBrowser`) but no installed provider.
8545
8397
  * 3. **Install-only** — no connection at all; only `installationUrls`.
@@ -8561,7 +8413,7 @@ const sortWalletOptions = ({ walletOptions, ordering }) => {
8561
8413
  const installed = [];
8562
8414
  const connectable = [];
8563
8415
  const installOnly = [];
8564
- for (const walletOption of walletOptions) if (hasInstalledProvider({ walletOption })) installed.push(walletOption);
8416
+ for (const walletOption of walletOptions) if (isWalletExtensionInstalled({ walletOption })) installed.push(walletOption);
8565
8417
  else if (hasAnyConnectionOption({ walletOption })) connectable.push(walletOption);
8566
8418
  else installOnly.push(walletOption);
8567
8419
  installed.sort((a, b) => compareByRelevance({
@@ -8599,6 +8451,10 @@ const EMPTY_WALLET_BOOK = {
8599
8451
  * client has an extension for — a wallet is only surfaced on chains the
8600
8452
  * customer can actually connect on.
8601
8453
  *
8454
+ * WalletConnect surfaces require a registered `walletConnect` URI
8455
+ * connection starter, so they only appear once a chain extension that can
8456
+ * mint a WalletConnect URI is added to the client.
8457
+ *
8602
8458
  * Pass `excludedConnectionOptionTypes` to drop specific connection types
8603
8459
  * from the catalogue (e.g. `['inAppBrowser']` on desktop). Wallets whose
8604
8460
  * only connection was an excluded type fall through to the install-only
@@ -8623,19 +8479,11 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
8623
8479
  walletBook
8624
8480
  }, client));
8625
8481
  }
8626
- if (includeMobileOptions) {
8627
- const walletBookOptions = [];
8628
- if (!excludedConnectionOptionTypes.has("walletConnect")) walletBookOptions.push(...buildWalletConnectOptions({ walletBook }));
8629
- if (!excludedConnectionOptionTypes.has("metamaskSdkUri")) walletBookOptions.push(...buildMetaMaskSdkUriOptions({ walletBook }));
8630
- if (!excludedConnectionOptionTypes.has("inAppBrowser")) walletBookOptions.push(...buildInAppBrowserOptions({
8631
- enabledChains,
8632
- walletBook
8633
- }));
8634
- allConnectionOptions.push(...filterConnectionOptionsByEnabledChains({
8635
- enabledChains,
8636
- options: walletBookOptions
8637
- }));
8638
- }
8482
+ if (includeMobileOptions) allConnectionOptions.push(...buildWalletBookConnectionOptions({
8483
+ enabledChains,
8484
+ excludedConnectionOptionTypes,
8485
+ walletBook
8486
+ }, client));
8639
8487
  const installationUrlsByKey = includeMobileOptions ? buildInstallationUrlsByWalletOptionKey({
8640
8488
  enabledChains,
8641
8489
  walletBook
@@ -8714,13 +8562,7 @@ const __confirmTransaction_impl = confirmTransaction;
8714
8562
  const __confirmTransaction_wrapped = instrumentFunction({
8715
8563
  fn: __confirmTransaction_impl,
8716
8564
  functionName: "confirmTransaction",
8717
- getCore: () => {
8718
- try {
8719
- return getCore(getDefaultClient());
8720
- } catch {
8721
- return;
8722
- }
8723
- }
8565
+ getCore: resolveInstrumentationCore
8724
8566
  });
8725
8567
 
8726
8568
  //#endregion
@@ -8815,13 +8657,7 @@ const __connectWithWalletProvider_impl = connectWithWalletProvider;
8815
8657
  const __connectWithWalletProvider_wrapped = instrumentFunction({
8816
8658
  fn: __connectWithWalletProvider_impl,
8817
8659
  functionName: "connectWithWalletProvider",
8818
- getCore: () => {
8819
- try {
8820
- return getCore(getDefaultClient());
8821
- } catch {
8822
- return;
8823
- }
8824
- }
8660
+ getCore: resolveInstrumentationCore
8825
8661
  });
8826
8662
 
8827
8663
  //#endregion
@@ -8950,13 +8786,7 @@ const __proveWalletAccountOwnership_impl = proveWalletAccountOwnership;
8950
8786
  const __proveWalletAccountOwnership_wrapped = instrumentFunction({
8951
8787
  fn: __proveWalletAccountOwnership_impl,
8952
8788
  functionName: "proveWalletAccountOwnership",
8953
- getCore: () => {
8954
- try {
8955
- return getCore(getDefaultClient());
8956
- } catch {
8957
- return;
8958
- }
8959
- }
8789
+ getCore: resolveInstrumentationCore
8960
8790
  });
8961
8791
 
8962
8792
  //#endregion
@@ -9066,13 +8896,7 @@ const __verifyWalletAccount_impl = verifyWalletAccount;
9066
8896
  const __verifyWalletAccount_wrapped = instrumentFunction({
9067
8897
  fn: __verifyWalletAccount_impl,
9068
8898
  functionName: "verifyWalletAccount",
9069
- getCore: () => {
9070
- try {
9071
- return getCore(getDefaultClient());
9072
- } catch {
9073
- return;
9074
- }
9075
- }
8899
+ getCore: resolveInstrumentationCore
9076
8900
  });
9077
8901
 
9078
8902
  //#endregion
@@ -9137,13 +8961,7 @@ const __connectAndVerifyWithWalletProvider_impl = connectAndVerifyWithWalletProv
9137
8961
  const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
9138
8962
  fn: __connectAndVerifyWithWalletProvider_impl,
9139
8963
  functionName: "connectAndVerifyWithWalletProvider",
9140
- getCore: () => {
9141
- try {
9142
- return getCore(getDefaultClient());
9143
- } catch {
9144
- return;
9145
- }
9146
- }
8964
+ getCore: resolveInstrumentationCore
9147
8965
  });
9148
8966
 
9149
8967
  //#endregion
@@ -9412,13 +9230,7 @@ const __redirectToInAppBrowser_impl = redirectToInAppBrowser;
9412
9230
  const __redirectToInAppBrowser_wrapped = instrumentFunction({
9413
9231
  fn: __redirectToInAppBrowser_impl,
9414
9232
  functionName: "redirectToInAppBrowser",
9415
- getCore: () => {
9416
- try {
9417
- return getCore(getDefaultClient());
9418
- } catch {
9419
- return;
9420
- }
9421
- }
9233
+ getCore: resolveInstrumentationCore
9422
9234
  });
9423
9235
 
9424
9236
  //#endregion
@@ -9588,13 +9400,7 @@ const __connectWalletOption_impl = connectWalletOption;
9588
9400
  const __connectWalletOption_wrapped = instrumentFunction({
9589
9401
  fn: __connectWalletOption_impl,
9590
9402
  functionName: "connectWalletOption",
9591
- getCore: () => {
9592
- try {
9593
- return getCore(getDefaultClient());
9594
- } catch {
9595
- return;
9596
- }
9597
- }
9403
+ getCore: resolveInstrumentationCore
9598
9404
  });
9599
9405
 
9600
9406
  //#endregion
@@ -9816,13 +9622,7 @@ const __addNetwork_impl = addNetwork;
9816
9622
  const __addNetwork_wrapped = instrumentFunction({
9817
9623
  fn: __addNetwork_impl,
9818
9624
  functionName: "addNetwork",
9819
- getCore: () => {
9820
- try {
9821
- return getCore(getDefaultClient());
9822
- } catch {
9823
- return;
9824
- }
9825
- }
9625
+ getCore: resolveInstrumentationCore
9826
9626
  });
9827
9627
 
9828
9628
  //#endregion
@@ -10024,13 +9824,7 @@ const __switchActiveNetwork_impl = switchActiveNetwork;
10024
9824
  const __switchActiveNetwork_wrapped = instrumentFunction({
10025
9825
  fn: __switchActiveNetwork_impl,
10026
9826
  functionName: "switchActiveNetwork",
10027
- getCore: () => {
10028
- try {
10029
- return getCore(getDefaultClient());
10030
- } catch {
10031
- return;
10032
- }
10033
- }
9827
+ getCore: resolveInstrumentationCore
10034
9828
  });
10035
9829
 
10036
9830
  //#endregion
@@ -10123,13 +9917,7 @@ const __setSelectedWalletAccount_impl = setSelectedWalletAccount;
10123
9917
  const __setSelectedWalletAccount_wrapped = instrumentFunction({
10124
9918
  fn: __setSelectedWalletAccount_impl,
10125
9919
  functionName: "setSelectedWalletAccount",
10126
- getCore: () => {
10127
- try {
10128
- return getCore(getDefaultClient());
10129
- } catch {
10130
- return;
10131
- }
10132
- }
9920
+ getCore: resolveInstrumentationCore
10133
9921
  });
10134
9922
 
10135
9923
  //#endregion
@@ -10185,13 +9973,7 @@ const __selectPrimaryWalletAccount_impl = selectPrimaryWalletAccount;
10185
9973
  const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
10186
9974
  fn: __selectPrimaryWalletAccount_impl,
10187
9975
  functionName: "selectPrimaryWalletAccount",
10188
- getCore: () => {
10189
- try {
10190
- return getCore(getDefaultClient());
10191
- } catch {
10192
- return;
10193
- }
10194
- }
9976
+ getCore: resolveInstrumentationCore
10195
9977
  });
10196
9978
 
10197
9979
  //#endregion
@@ -10264,13 +10046,7 @@ const __removeWalletAccount_impl = removeWalletAccount;
10264
10046
  const __removeWalletAccount_wrapped = instrumentFunction({
10265
10047
  fn: __removeWalletAccount_impl,
10266
10048
  functionName: "removeWalletAccount",
10267
- getCore: () => {
10268
- try {
10269
- return getCore(getDefaultClient());
10270
- } catch {
10271
- return;
10272
- }
10273
- }
10049
+ getCore: resolveInstrumentationCore
10274
10050
  });
10275
10051
 
10276
10052
  //#endregion
@@ -10311,13 +10087,7 @@ const __signMessage_impl = signMessage;
10311
10087
  const __signMessage_wrapped = instrumentFunction({
10312
10088
  fn: __signMessage_impl,
10313
10089
  functionName: "signMessage",
10314
- getCore: () => {
10315
- try {
10316
- return getCore(getDefaultClient());
10317
- } catch {
10318
- return;
10319
- }
10320
- }
10090
+ getCore: resolveInstrumentationCore
10321
10091
  });
10322
10092
 
10323
10093
  //#endregion
@@ -10363,13 +10133,7 @@ const __transferAmount_impl = transferAmount;
10363
10133
  const __transferAmount_wrapped = instrumentFunction({
10364
10134
  fn: __transferAmount_impl,
10365
10135
  functionName: "transferAmount",
10366
- getCore: () => {
10367
- try {
10368
- return getCore(getDefaultClient());
10369
- } catch {
10370
- return;
10371
- }
10372
- }
10136
+ getCore: resolveInstrumentationCore
10373
10137
  });
10374
10138
 
10375
10139
  //#endregion
@@ -10407,13 +10171,7 @@ const __transferWalletAccount_impl = transferWalletAccount;
10407
10171
  const __transferWalletAccount_wrapped = instrumentFunction({
10408
10172
  fn: __transferWalletAccount_impl,
10409
10173
  functionName: "transferWalletAccount",
10410
- getCore: () => {
10411
- try {
10412
- return getCore(getDefaultClient());
10413
- } catch {
10414
- return;
10415
- }
10416
- }
10174
+ getCore: resolveInstrumentationCore
10417
10175
  });
10418
10176
 
10419
10177
  //#endregion
@@ -10556,13 +10314,7 @@ const __claimYieldRewards_impl = claimYieldRewards;
10556
10314
  const __claimYieldRewards_wrapped = instrumentFunction({
10557
10315
  fn: __claimYieldRewards_impl,
10558
10316
  functionName: "claimYieldRewards",
10559
- getCore: () => {
10560
- try {
10561
- return getCore(getDefaultClient());
10562
- } catch {
10563
- return;
10564
- }
10565
- }
10317
+ getCore: resolveInstrumentationCore
10566
10318
  });
10567
10319
 
10568
10320
  //#endregion
@@ -10614,13 +10366,7 @@ const __depositToYieldVault_impl = depositToYieldVault;
10614
10366
  const __depositToYieldVault_wrapped = instrumentFunction({
10615
10367
  fn: __depositToYieldVault_impl,
10616
10368
  functionName: "depositToYieldVault",
10617
- getCore: () => {
10618
- try {
10619
- return getCore(getDefaultClient());
10620
- } catch {
10621
- return;
10622
- }
10623
- }
10369
+ getCore: resolveInstrumentationCore
10624
10370
  });
10625
10371
 
10626
10372
  //#endregion
@@ -10786,13 +10532,7 @@ const __withdrawFromYieldVault_impl = withdrawFromYieldVault;
10786
10532
  const __withdrawFromYieldVault_wrapped = instrumentFunction({
10787
10533
  fn: __withdrawFromYieldVault_impl,
10788
10534
  functionName: "withdrawFromYieldVault",
10789
- getCore: () => {
10790
- try {
10791
- return getCore(getDefaultClient());
10792
- } catch {
10793
- return;
10794
- }
10795
- }
10535
+ getCore: resolveInstrumentationCore
10796
10536
  });
10797
10537
 
10798
10538
  //#endregion
@@ -10876,5 +10616,5 @@ const parseUserAgent = ({ userAgent }) => {
10876
10616
  assertPackageVersion(name, version);
10877
10617
 
10878
10618
  //#endregion
10879
- export { AmbiguousWalletChainError, BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, ConnectionUriHandlerMissingError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoConnectionOptionAvailableError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletBrowserRedirectHandlerMissingError, WalletOptionNotFoundError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWalletOption_wrapped as connectWalletOption, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseAccounts, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPreferredWalletDeepLink, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __redirectToInAppBrowser_wrapped as redirectToInAppBrowser, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
10619
+ export { AmbiguousWalletChainError, BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, ConnectionUriHandlerMissingError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoConnectionOptionAvailableError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletBrowserRedirectHandlerMissingError, WalletOptionNotFoundError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWalletOption_wrapped as connectWalletOption, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, __getCoinbaseAccounts_wrapped as getCoinbaseAccounts, __getCoinbaseBuyUrl_wrapped as getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, __getKrakenAccounts_wrapped as getKrakenAccounts, __getKrakenWhitelistedAddresses_wrapped as getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPreferredWalletDeepLink, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, isWalletExtensionInstalled, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __redirectToInAppBrowser_wrapped as redirectToInAppBrowser, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
10880
10620
  //# sourceMappingURL=index.native.esm.js.map