@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.
- package/dist/{apiClient-Bwd6cllS.native.esm.js → apiClient-4r7VAsLC.native.esm.js} +45 -12
- package/dist/apiClient-4r7VAsLC.native.esm.js.map +1 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/core.cjs +78 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +77 -6
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +79 -8
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/UnexpectedConsentResponseError.d.ts +7 -0
- package/dist/errors/UnexpectedConsentResponseError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +2 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +2 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +2 -1
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DSsGkava.native.esm.js → getNetworkProviderFromNetworkId-BV229QF3.native.esm.js} +112 -89
- package/dist/getNetworkProviderFromNetworkId-BV229QF3.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-TTqmAiJh.esm.js → getNetworkProviderFromNetworkId-D9oRzWA6.esm.js} +106 -83
- package/dist/getNetworkProviderFromNetworkId-D9oRzWA6.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-5UBZwUg2.cjs → getNetworkProviderFromNetworkId-DOrcvuFv.cjs} +105 -82
- package/dist/getNetworkProviderFromNetworkId-DOrcvuFv.cjs.map +1 -0
- package/dist/{getSignedSessionId-DBUnRGjt.cjs → getSignedSessionId-4qHh_BOh.cjs} +3 -3
- package/dist/{getSignedSessionId-DBUnRGjt.cjs.map → getSignedSessionId-4qHh_BOh.cjs.map} +1 -1
- package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js → getSignedSessionId-Cd8CCp5d.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js.map → getSignedSessionId-Cd8CCp5d.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DeeDyino.esm.js → getSignedSessionId-DA-MMsJm.esm.js} +3 -3
- package/dist/{getSignedSessionId-DeeDyino.esm.js.map → getSignedSessionId-DA-MMsJm.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs → getVerifiedCredentialForWalletAccount-Bw5q7QZn.cjs} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs.map → getVerifiedCredentialForWalletAccount-Bw5q7QZn.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js → getVerifiedCredentialForWalletAccount-Fr3bEKeU.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js.map → getVerifiedCredentialForWalletAccount-Fr3bEKeU.esm.js.map} +1 -1
- package/dist/index.cjs +379 -638
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +375 -635
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +377 -637
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js → isMfaRequiredForAction-BdU62usM.esm.js} +3 -9
- package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js.map → isMfaRequiredForAction-BdU62usM.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js → isMfaRequiredForAction-DZfEkyIU.native.esm.js} +3 -9
- package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js.map → isMfaRequiredForAction-DZfEkyIU.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-62zh3W-2.cjs → isMfaRequiredForAction-Djd-jkSl.cjs} +3 -9
- package/dist/{isMfaRequiredForAction-62zh3W-2.cjs.map → isMfaRequiredForAction-Djd-jkSl.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js → isUserOnboardingComplete-BEZOYohA.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js.map → isUserOnboardingComplete-BEZOYohA.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-DtxIznZD.cjs → isUserOnboardingComplete-Bwvv6Urs.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-DtxIznZD.cjs.map → isUserOnboardingComplete-Bwvv6Urs.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js → isUserOnboardingComplete-CEUkAzCi.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js.map → isUserOnboardingComplete-CEUkAzCi.native.esm.js.map} +1 -1
- package/dist/{logoutWithReason-yDqQ0UIt.cjs → logoutWithReason-B-ZF0VmN.cjs} +57 -18
- package/dist/logoutWithReason-B-ZF0VmN.cjs.map +1 -0
- package/dist/{logoutWithReason-DIc7cC6T.native.esm.js → logoutWithReason-DvnEa2Uv.native.esm.js} +3 -9
- package/dist/{logoutWithReason-DIc7cC6T.native.esm.js.map → logoutWithReason-DvnEa2Uv.native.esm.js.map} +1 -1
- package/dist/{logoutWithReason-x8mE7EAy.esm.js → logoutWithReason-I6vShLpA.esm.js} +46 -19
- package/dist/logoutWithReason-I6vShLpA.esm.js.map +1 -0
- package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js → migrateFromFireblocks-6I7lkraQ.native.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js.map → migrateFromFireblocks-6I7lkraQ.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-qYPrnWF8.cjs → migrateFromFireblocks-C23-24bK.cjs} +2 -2
- package/dist/{migrateFromFireblocks-qYPrnWF8.cjs.map → migrateFromFireblocks-C23-24bK.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-BapjEhra.esm.js → migrateFromFireblocks-Dtk6t8hN.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-BapjEhra.esm.js.map → migrateFromFireblocks-Dtk6t8hN.esm.js.map} +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.d.ts +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +95 -0
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +3 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +15 -6
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +7 -3
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +115 -2
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts +27 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +13 -6
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/waas.types.d.ts +5 -2
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts +42 -0
- package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +7 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts +27 -0
- package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +4 -0
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts +3 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts +35 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +7 -0
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
- package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts.map +1 -1
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts +27 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts +2 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts.map +1 -0
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +6 -5
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
- package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts +2 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts.map +1 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts +19 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts.map +1 -0
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +4 -3
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts.map +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/isScreeningBlockedError/index.d.ts +2 -0
- package/dist/utils/isScreeningBlockedError/index.d.ts.map +1 -0
- package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts +24 -0
- package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts.map +1 -0
- package/dist/{waas-WID2Fy_N.cjs → waas-C0IDCf3u.cjs} +81 -18
- package/dist/waas-C0IDCf3u.cjs.map +1 -0
- package/dist/{waas-CyUrvkQr.native.esm.js → waas-DJeW02-Y.native.esm.js} +77 -20
- package/dist/waas-DJeW02-Y.native.esm.js.map +1 -0
- package/dist/{waas-DzcYsWU8.esm.js → waas-D_alZrtb.esm.js} +77 -20
- package/dist/waas-D_alZrtb.esm.js.map +1 -0
- package/dist/waas.cjs +5 -4
- package/dist/waas.esm.js +5 -5
- package/dist/waas.native.esm.js +5 -5
- package/dist/waasCore.cjs +8 -6
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +8 -6
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +8 -6
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +5 -4
- package/dist/apiClient-Bwd6cllS.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-5UBZwUg2.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DSsGkava.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-TTqmAiJh.esm.js.map +0 -1
- package/dist/logoutWithReason-x8mE7EAy.esm.js.map +0 -1
- package/dist/logoutWithReason-yDqQ0UIt.cjs.map +0 -1
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +0 -18
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts.map +0 -1
- package/dist/waas-CyUrvkQr.native.esm.js.map +0 -1
- package/dist/waas-DzcYsWU8.esm.js.map +0 -1
- package/dist/waas-WID2Fy_N.cjs.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-
|
|
3
|
-
import {
|
|
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 createStorage, H as getBuffer, I as createAppForegroundSubscriber, J as isServerSideRendering, 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 subscribeWithSelector, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as isEqualShallow, Y as UnavailableInServerSideError, _ as MethodNotImplementedError, a as
|
|
5
|
-
import { n as getWalletProviderByKey, t as getVerifiedCredentialForWalletAccount } from "./getVerifiedCredentialForWalletAccount-
|
|
6
|
-
import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-
|
|
7
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
1
|
+
import { $ as fetchAndStoreNonces, Dt as name, Et as TokenScope, F as offEvent, G as normalizeAddress, H as getChainFromVerifiedCredentialChain, I as onEvent, J as isUserMissingMfaAuth, K as splitWalletProviderKey, L as onceEvent, M as WalletProviderPriority, N as getWalletProviderRegistry, Ot as version, P as emitEvent, Q as getNonce, S as checkAndRaiseWalletAccountsChangedEvent, St as setDefaultClient, Tt as BaseError, U as CHAINS_INFO_MAP, W as formatWalletAccountId, _ as updateAuthFromVerifyResponse, _t as ValueMustBeDefinedError, a as retryOnFail, at as MfaRateLimitedError, b as decodeJwt, bt as getPlatform, c as createApiClient, ct as InvalidExternalAuthError, d as instrumentFunction, dt as DYNAMIC_ICONIC_SPRITE_URL, et as updateNoncePoolStorage, f as scrubParameters, g as extractSessionId, gt as assertDefined, h as getOperatingSystem, ht as isCookieEnabled, i as isSignedIn, it as SandboxMaximumThresholdReachedError, j as getWalletProviders, l as __refreshAuth_wrapped, lt as APIError, m as getUserAgent, n as generateSessionKeys, nt as NONCE_POOL_SIZE, o as getWalletProviderFromWalletAccount, ot as MfaInvalidOtpError, p as DEFAULT_PII_FIELDS, pt as SDK_API_CORE_VERSION, r as fetchProjectSettings, rt as UnauthorizedError, s as NoWalletProviderFoundError, st as LinkCredentialError, t as __logoutWithReason_wrapped, tt as createStorageKeySchema, u as resolveInstrumentationCore, v as upsertElevatedAccessToken, vt as getElevatedAccessToken, w as initializeWaasClientsForEagerRecovery, wt as getCore, x as InvalidParamError, xt as getDefaultClient, y as parseElevatedAccessToken, yt as randomString, z as getWalletAccounts } from "./logoutWithReason-I6vShLpA.esm.js";
|
|
2
|
+
import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-Dtk6t8hN.esm.js";
|
|
3
|
+
import { $ as WaasChainEnum } from "./waas-D_alZrtb.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 createStorage, H as getBuffer, I as createAppForegroundSubscriber, J as isServerSideRendering, 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 subscribeWithSelector, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as isEqualShallow, Y as UnavailableInServerSideError, _ as MethodNotImplementedError, a as removeUnverifiedWalletAccount, b as WalletScreeningBlockedError, c as getAppMetadata, d as setUnverifiedWalletAccounts, f as createVisit, g as __setCaptchaToken_wrapped, h as hasExtension, i as verifyMessageSignatureOwnership, j as createEventEmitter, l as reconcileWalletAccountsAgainstClient, m as getNetworkProviderBuilderRegistry, o as createSignInMessageStatement, p as getUriConnectionStarterRegistry, q as createLocalStorageAdapter, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as consumeCaptchaToken, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as isCaptchaRequired, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-D9oRzWA6.esm.js";
|
|
5
|
+
import { n as getWalletProviderByKey, t as getVerifiedCredentialForWalletAccount } from "./getVerifiedCredentialForWalletAccount-Fr3bEKeU.esm.js";
|
|
6
|
+
import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-BEZOYohA.esm.js";
|
|
7
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BdU62usM.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";
|
|
@@ -411,13 +411,7 @@ const __refreshUser_impl = refreshUser;
|
|
|
411
411
|
const __refreshUser_wrapped = instrumentFunction({
|
|
412
412
|
fn: __refreshUser_impl,
|
|
413
413
|
functionName: "refreshUser",
|
|
414
|
-
getCore:
|
|
415
|
-
try {
|
|
416
|
-
return getCore(getDefaultClient());
|
|
417
|
-
} catch {
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
414
|
+
getCore: resolveInstrumentationCore
|
|
421
415
|
});
|
|
422
416
|
|
|
423
417
|
//#endregion
|
|
@@ -608,13 +602,7 @@ const __initializeClient_impl = initializeClient;
|
|
|
608
602
|
const __initializeClient_wrapped = instrumentFunction({
|
|
609
603
|
fn: __initializeClient_impl,
|
|
610
604
|
functionName: "initializeClient",
|
|
611
|
-
getCore:
|
|
612
|
-
try {
|
|
613
|
-
return getCore(getDefaultClient());
|
|
614
|
-
} catch {
|
|
615
|
-
return;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
605
|
+
getCore: resolveInstrumentationCore
|
|
618
606
|
});
|
|
619
607
|
|
|
620
608
|
//#endregion
|
|
@@ -777,8 +765,9 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
|
|
|
777
765
|
* synchronous tick are coalesced into one request, avoiding a round-trip per
|
|
778
766
|
* event.
|
|
779
767
|
*
|
|
780
|
-
* Fetch errors are swallowed to prevent an instrumentation
|
|
781
|
-
* triggering another instrumentation event and causing an
|
|
768
|
+
* Fetch and serialization errors are swallowed to prevent an instrumentation
|
|
769
|
+
* failure from triggering another instrumentation event and causing an
|
|
770
|
+
* infinite loop.
|
|
782
771
|
*
|
|
783
772
|
* Works in both browser and SSR environments — fetch is injected and
|
|
784
773
|
* queueMicrotask is available in Node.js >= 11.
|
|
@@ -792,11 +781,13 @@ const createDynamicTransport = (params) => {
|
|
|
792
781
|
const events = queue.splice(0);
|
|
793
782
|
if (events.length === 0) return;
|
|
794
783
|
const url = `${LOGS_BASE_URL}/${params.environmentId}`;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
784
|
+
try {
|
|
785
|
+
params.fetch(url, {
|
|
786
|
+
body: JSON.stringify(events),
|
|
787
|
+
headers: { "Content-Type": "application/json" },
|
|
788
|
+
method: "POST"
|
|
789
|
+
}).catch(() => {});
|
|
790
|
+
} catch {}
|
|
800
791
|
};
|
|
801
792
|
return { log: (event) => {
|
|
802
793
|
queue.push(event);
|
|
@@ -1194,13 +1185,7 @@ const __createDynamicClient_impl = createDynamicClient;
|
|
|
1194
1185
|
const __createDynamicClient_wrapped = instrumentFunction({
|
|
1195
1186
|
fn: __createDynamicClient_impl,
|
|
1196
1187
|
functionName: "createDynamicClient",
|
|
1197
|
-
getCore:
|
|
1198
|
-
try {
|
|
1199
|
-
return getCore(getDefaultClient());
|
|
1200
|
-
} catch {
|
|
1201
|
-
return;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1188
|
+
getCore: resolveInstrumentationCore
|
|
1204
1189
|
});
|
|
1205
1190
|
|
|
1206
1191
|
//#endregion
|
|
@@ -2087,13 +2072,7 @@ const __checkStepUpAuth_impl = checkStepUpAuth;
|
|
|
2087
2072
|
const __checkStepUpAuth_wrapped = instrumentFunction({
|
|
2088
2073
|
fn: __checkStepUpAuth_impl,
|
|
2089
2074
|
functionName: "checkStepUpAuth",
|
|
2090
|
-
getCore:
|
|
2091
|
-
try {
|
|
2092
|
-
return getCore(getDefaultClient());
|
|
2093
|
-
} catch {
|
|
2094
|
-
return;
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2075
|
+
getCore: resolveInstrumentationCore
|
|
2097
2076
|
});
|
|
2098
2077
|
|
|
2099
2078
|
//#endregion
|
|
@@ -2133,13 +2112,7 @@ const __requestExternalAuthElevatedToken_impl = requestExternalAuthElevatedToken
|
|
|
2133
2112
|
const __requestExternalAuthElevatedToken_wrapped = instrumentFunction({
|
|
2134
2113
|
fn: __requestExternalAuthElevatedToken_impl,
|
|
2135
2114
|
functionName: "requestExternalAuthElevatedToken",
|
|
2136
|
-
getCore:
|
|
2137
|
-
try {
|
|
2138
|
-
return getCore(getDefaultClient());
|
|
2139
|
-
} catch {
|
|
2140
|
-
return;
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2115
|
+
getCore: resolveInstrumentationCore
|
|
2143
2116
|
});
|
|
2144
2117
|
|
|
2145
2118
|
//#endregion
|
|
@@ -2181,13 +2154,7 @@ const __signInWithExternalJwt_impl = signInWithExternalJwt;
|
|
|
2181
2154
|
const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
2182
2155
|
fn: __signInWithExternalJwt_impl,
|
|
2183
2156
|
functionName: "signInWithExternalJwt",
|
|
2184
|
-
getCore:
|
|
2185
|
-
try {
|
|
2186
|
-
return getCore(getDefaultClient());
|
|
2187
|
-
} catch {
|
|
2188
|
-
return;
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2157
|
+
getCore: resolveInstrumentationCore
|
|
2191
2158
|
});
|
|
2192
2159
|
|
|
2193
2160
|
//#endregion
|
|
@@ -2298,13 +2265,7 @@ const __deletePasskey_impl = deletePasskey;
|
|
|
2298
2265
|
const __deletePasskey_wrapped = instrumentFunction({
|
|
2299
2266
|
fn: __deletePasskey_impl,
|
|
2300
2267
|
functionName: "deletePasskey",
|
|
2301
|
-
getCore:
|
|
2302
|
-
try {
|
|
2303
|
-
return getCore(getDefaultClient());
|
|
2304
|
-
} catch {
|
|
2305
|
-
return;
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2268
|
+
getCore: resolveInstrumentationCore
|
|
2308
2269
|
});
|
|
2309
2270
|
|
|
2310
2271
|
//#endregion
|
|
@@ -2387,13 +2348,7 @@ const __registerPasskey_impl = registerPasskey;
|
|
|
2387
2348
|
const __registerPasskey_wrapped = instrumentFunction({
|
|
2388
2349
|
fn: __registerPasskey_impl,
|
|
2389
2350
|
functionName: "registerPasskey",
|
|
2390
|
-
getCore:
|
|
2391
|
-
try {
|
|
2392
|
-
return getCore(getDefaultClient());
|
|
2393
|
-
} catch {
|
|
2394
|
-
return;
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2351
|
+
getCore: resolveInstrumentationCore
|
|
2397
2352
|
});
|
|
2398
2353
|
|
|
2399
2354
|
//#endregion
|
|
@@ -2460,13 +2415,7 @@ const __signInWithPasskey_impl = signInWithPasskey;
|
|
|
2460
2415
|
const __signInWithPasskey_wrapped = instrumentFunction({
|
|
2461
2416
|
fn: __signInWithPasskey_impl,
|
|
2462
2417
|
functionName: "signInWithPasskey",
|
|
2463
|
-
getCore:
|
|
2464
|
-
try {
|
|
2465
|
-
return getCore(getDefaultClient());
|
|
2466
|
-
} catch {
|
|
2467
|
-
return;
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2418
|
+
getCore: resolveInstrumentationCore
|
|
2470
2419
|
});
|
|
2471
2420
|
|
|
2472
2421
|
//#endregion
|
|
@@ -2681,13 +2630,7 @@ const __signInWithSocialRedirect_impl = signInWithSocialRedirect;
|
|
|
2681
2630
|
const __signInWithSocialRedirect_wrapped = instrumentFunction({
|
|
2682
2631
|
fn: __signInWithSocialRedirect_impl,
|
|
2683
2632
|
functionName: "signInWithSocialRedirect",
|
|
2684
|
-
getCore:
|
|
2685
|
-
try {
|
|
2686
|
-
return getCore(getDefaultClient());
|
|
2687
|
-
} catch {
|
|
2688
|
-
return;
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2633
|
+
getCore: resolveInstrumentationCore
|
|
2691
2634
|
});
|
|
2692
2635
|
|
|
2693
2636
|
//#endregion
|
|
@@ -2712,13 +2655,7 @@ const __authenticateWithSocial_impl = authenticateWithSocial;
|
|
|
2712
2655
|
const __authenticateWithSocial_wrapped = instrumentFunction({
|
|
2713
2656
|
fn: __authenticateWithSocial_impl,
|
|
2714
2657
|
functionName: "authenticateWithSocial",
|
|
2715
|
-
getCore:
|
|
2716
|
-
try {
|
|
2717
|
-
return getCore(getDefaultClient());
|
|
2718
|
-
} catch {
|
|
2719
|
-
return;
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2658
|
+
getCore: resolveInstrumentationCore
|
|
2722
2659
|
});
|
|
2723
2660
|
|
|
2724
2661
|
//#endregion
|
|
@@ -2830,13 +2767,7 @@ const __processSocialCallback_impl = processSocialCallback;
|
|
|
2830
2767
|
const __processSocialCallback_wrapped = instrumentFunction({
|
|
2831
2768
|
fn: __processSocialCallback_impl,
|
|
2832
2769
|
functionName: "processSocialCallback",
|
|
2833
|
-
getCore:
|
|
2834
|
-
try {
|
|
2835
|
-
return getCore(getDefaultClient());
|
|
2836
|
-
} catch {
|
|
2837
|
-
return;
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2770
|
+
getCore: resolveInstrumentationCore
|
|
2840
2771
|
});
|
|
2841
2772
|
|
|
2842
2773
|
//#endregion
|
|
@@ -2897,13 +2828,7 @@ const __completeSocialRedirect_impl = completeSocialRedirect;
|
|
|
2897
2828
|
const __completeSocialRedirect_wrapped = instrumentFunction({
|
|
2898
2829
|
fn: __completeSocialRedirect_impl,
|
|
2899
2830
|
functionName: "completeSocialRedirect",
|
|
2900
|
-
getCore:
|
|
2901
|
-
try {
|
|
2902
|
-
return getCore(getDefaultClient());
|
|
2903
|
-
} catch {
|
|
2904
|
-
return;
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2831
|
+
getCore: resolveInstrumentationCore
|
|
2907
2832
|
});
|
|
2908
2833
|
|
|
2909
2834
|
//#endregion
|
|
@@ -2920,13 +2845,7 @@ const __completeSocialAuthentication_impl = completeSocialAuthentication;
|
|
|
2920
2845
|
const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
2921
2846
|
fn: __completeSocialAuthentication_impl,
|
|
2922
2847
|
functionName: "completeSocialAuthentication",
|
|
2923
|
-
getCore:
|
|
2924
|
-
try {
|
|
2925
|
-
return getCore(getDefaultClient());
|
|
2926
|
-
} catch {
|
|
2927
|
-
return;
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2848
|
+
getCore: resolveInstrumentationCore
|
|
2930
2849
|
});
|
|
2931
2850
|
|
|
2932
2851
|
//#endregion
|
|
@@ -2995,13 +2914,7 @@ const __signInWithSocialPopUp_impl = signInWithSocialPopUp;
|
|
|
2995
2914
|
const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
2996
2915
|
fn: __signInWithSocialPopUp_impl,
|
|
2997
2916
|
functionName: "signInWithSocialPopUp",
|
|
2998
|
-
getCore:
|
|
2999
|
-
try {
|
|
3000
|
-
return getCore(getDefaultClient());
|
|
3001
|
-
} catch {
|
|
3002
|
-
return;
|
|
3003
|
-
}
|
|
3004
|
-
}
|
|
2917
|
+
getCore: resolveInstrumentationCore
|
|
3005
2918
|
});
|
|
3006
2919
|
|
|
3007
2920
|
//#endregion
|
|
@@ -3076,13 +2989,7 @@ const __unlinkSocialAccount_impl = unlinkSocialAccount;
|
|
|
3076
2989
|
const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
3077
2990
|
fn: __unlinkSocialAccount_impl,
|
|
3078
2991
|
functionName: "unlinkSocialAccount",
|
|
3079
|
-
getCore:
|
|
3080
|
-
try {
|
|
3081
|
-
return getCore(getDefaultClient());
|
|
3082
|
-
} catch {
|
|
3083
|
-
return;
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
2992
|
+
getCore: resolveInstrumentationCore
|
|
3086
2993
|
});
|
|
3087
2994
|
|
|
3088
2995
|
//#endregion
|
|
@@ -3339,13 +3246,7 @@ const __attachCheckoutTransactionSource_impl = attachCheckoutTransactionSource;
|
|
|
3339
3246
|
const __attachCheckoutTransactionSource_wrapped = instrumentFunction({
|
|
3340
3247
|
fn: __attachCheckoutTransactionSource_impl,
|
|
3341
3248
|
functionName: "attachCheckoutTransactionSource",
|
|
3342
|
-
getCore:
|
|
3343
|
-
try {
|
|
3344
|
-
return getCore(getDefaultClient());
|
|
3345
|
-
} catch {
|
|
3346
|
-
return;
|
|
3347
|
-
}
|
|
3348
|
-
}
|
|
3249
|
+
getCore: resolveInstrumentationCore
|
|
3349
3250
|
});
|
|
3350
3251
|
|
|
3351
3252
|
//#endregion
|
|
@@ -3381,13 +3282,7 @@ const __broadcastCheckoutTransaction_impl = broadcastCheckoutTransaction;
|
|
|
3381
3282
|
const __broadcastCheckoutTransaction_wrapped = instrumentFunction({
|
|
3382
3283
|
fn: __broadcastCheckoutTransaction_impl,
|
|
3383
3284
|
functionName: "broadcastCheckoutTransaction",
|
|
3384
|
-
getCore:
|
|
3385
|
-
try {
|
|
3386
|
-
return getCore(getDefaultClient());
|
|
3387
|
-
} catch {
|
|
3388
|
-
return;
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3285
|
+
getCore: resolveInstrumentationCore
|
|
3391
3286
|
});
|
|
3392
3287
|
|
|
3393
3288
|
//#endregion
|
|
@@ -3420,13 +3315,7 @@ const __cancelCheckoutTransaction_impl = cancelCheckoutTransaction;
|
|
|
3420
3315
|
const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
3421
3316
|
fn: __cancelCheckoutTransaction_impl,
|
|
3422
3317
|
functionName: "cancelCheckoutTransaction",
|
|
3423
|
-
getCore:
|
|
3424
|
-
try {
|
|
3425
|
-
return getCore(getDefaultClient());
|
|
3426
|
-
} catch {
|
|
3427
|
-
return;
|
|
3428
|
-
}
|
|
3429
|
-
}
|
|
3318
|
+
getCore: resolveInstrumentationCore
|
|
3430
3319
|
});
|
|
3431
3320
|
|
|
3432
3321
|
//#endregion
|
|
@@ -3478,13 +3367,7 @@ const __createCheckoutTransaction_impl = createCheckoutTransaction;
|
|
|
3478
3367
|
const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
3479
3368
|
fn: __createCheckoutTransaction_impl,
|
|
3480
3369
|
functionName: "createCheckoutTransaction",
|
|
3481
|
-
getCore:
|
|
3482
|
-
try {
|
|
3483
|
-
return getCore(getDefaultClient());
|
|
3484
|
-
} catch {
|
|
3485
|
-
return;
|
|
3486
|
-
}
|
|
3487
|
-
}
|
|
3370
|
+
getCore: resolveInstrumentationCore
|
|
3488
3371
|
});
|
|
3489
3372
|
|
|
3490
3373
|
//#endregion
|
|
@@ -3572,13 +3455,7 @@ const __prepareCheckoutTransaction_impl = prepareCheckoutTransaction;
|
|
|
3572
3455
|
const __prepareCheckoutTransaction_wrapped = instrumentFunction({
|
|
3573
3456
|
fn: __prepareCheckoutTransaction_impl,
|
|
3574
3457
|
functionName: "prepareCheckoutTransaction",
|
|
3575
|
-
getCore:
|
|
3576
|
-
try {
|
|
3577
|
-
return getCore(getDefaultClient());
|
|
3578
|
-
} catch {
|
|
3579
|
-
return;
|
|
3580
|
-
}
|
|
3581
|
-
}
|
|
3458
|
+
getCore: resolveInstrumentationCore
|
|
3582
3459
|
});
|
|
3583
3460
|
|
|
3584
3461
|
//#endregion
|
|
@@ -3676,13 +3553,7 @@ const __executeSwapTransaction_impl = executeSwapTransaction;
|
|
|
3676
3553
|
const __executeSwapTransaction_wrapped = instrumentFunction({
|
|
3677
3554
|
fn: __executeSwapTransaction_impl,
|
|
3678
3555
|
functionName: "executeSwapTransaction",
|
|
3679
|
-
getCore:
|
|
3680
|
-
try {
|
|
3681
|
-
return getCore(getDefaultClient());
|
|
3682
|
-
} catch {
|
|
3683
|
-
return;
|
|
3684
|
-
}
|
|
3685
|
-
}
|
|
3556
|
+
getCore: resolveInstrumentationCore
|
|
3686
3557
|
});
|
|
3687
3558
|
|
|
3688
3559
|
//#endregion
|
|
@@ -3725,13 +3596,7 @@ const __submitCheckoutTransaction_impl = submitCheckoutTransaction;
|
|
|
3725
3596
|
const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
3726
3597
|
fn: __submitCheckoutTransaction_impl,
|
|
3727
3598
|
functionName: "submitCheckoutTransaction",
|
|
3728
|
-
getCore:
|
|
3729
|
-
try {
|
|
3730
|
-
return getCore(getDefaultClient());
|
|
3731
|
-
} catch {
|
|
3732
|
-
return;
|
|
3733
|
-
}
|
|
3734
|
-
}
|
|
3599
|
+
getCore: resolveInstrumentationCore
|
|
3735
3600
|
});
|
|
3736
3601
|
|
|
3737
3602
|
//#endregion
|
|
@@ -3854,13 +3719,7 @@ const __completeDeviceRegistration_impl = completeDeviceRegistration;
|
|
|
3854
3719
|
const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
3855
3720
|
fn: __completeDeviceRegistration_impl,
|
|
3856
3721
|
functionName: "completeDeviceRegistration",
|
|
3857
|
-
getCore:
|
|
3858
|
-
try {
|
|
3859
|
-
return getCore(getDefaultClient());
|
|
3860
|
-
} catch {
|
|
3861
|
-
return;
|
|
3862
|
-
}
|
|
3863
|
-
}
|
|
3722
|
+
getCore: resolveInstrumentationCore
|
|
3864
3723
|
});
|
|
3865
3724
|
|
|
3866
3725
|
//#endregion
|
|
@@ -3937,13 +3796,7 @@ const __revokeAllRegisteredDevices_impl = revokeAllRegisteredDevices;
|
|
|
3937
3796
|
const __revokeAllRegisteredDevices_wrapped = instrumentFunction({
|
|
3938
3797
|
fn: __revokeAllRegisteredDevices_impl,
|
|
3939
3798
|
functionName: "revokeAllRegisteredDevices",
|
|
3940
|
-
getCore:
|
|
3941
|
-
try {
|
|
3942
|
-
return getCore(getDefaultClient());
|
|
3943
|
-
} catch {
|
|
3944
|
-
return;
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3799
|
+
getCore: resolveInstrumentationCore
|
|
3947
3800
|
});
|
|
3948
3801
|
|
|
3949
3802
|
//#endregion
|
|
@@ -3961,13 +3814,7 @@ const __revokeRegisteredDevice_impl = revokeRegisteredDevice;
|
|
|
3961
3814
|
const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
3962
3815
|
fn: __revokeRegisteredDevice_impl,
|
|
3963
3816
|
functionName: "revokeRegisteredDevice",
|
|
3964
|
-
getCore:
|
|
3965
|
-
try {
|
|
3966
|
-
return getCore(getDefaultClient());
|
|
3967
|
-
} catch {
|
|
3968
|
-
return;
|
|
3969
|
-
}
|
|
3970
|
-
}
|
|
3817
|
+
getCore: resolveInstrumentationCore
|
|
3971
3818
|
});
|
|
3972
3819
|
|
|
3973
3820
|
//#endregion
|
|
@@ -4088,13 +3935,7 @@ const __attachFlowSource_impl = attachFlowSource;
|
|
|
4088
3935
|
const __attachFlowSource_wrapped = instrumentFunction({
|
|
4089
3936
|
fn: __attachFlowSource_impl,
|
|
4090
3937
|
functionName: "attachFlowSource",
|
|
4091
|
-
getCore:
|
|
4092
|
-
try {
|
|
4093
|
-
return getCore(getDefaultClient());
|
|
4094
|
-
} catch {
|
|
4095
|
-
return;
|
|
4096
|
-
}
|
|
4097
|
-
},
|
|
3938
|
+
getCore: resolveInstrumentationCore,
|
|
4098
3939
|
selectors: attachFlowSourceInstrumentation
|
|
4099
3940
|
});
|
|
4100
3941
|
|
|
@@ -4159,13 +4000,7 @@ const __broadcastFlow_impl = broadcastFlow;
|
|
|
4159
4000
|
const __broadcastFlow_wrapped = instrumentFunction({
|
|
4160
4001
|
fn: __broadcastFlow_impl,
|
|
4161
4002
|
functionName: "broadcastFlow",
|
|
4162
|
-
getCore:
|
|
4163
|
-
try {
|
|
4164
|
-
return getCore(getDefaultClient());
|
|
4165
|
-
} catch {
|
|
4166
|
-
return;
|
|
4167
|
-
}
|
|
4168
|
-
},
|
|
4003
|
+
getCore: resolveInstrumentationCore,
|
|
4169
4004
|
selectors: broadcastFlowInstrumentation
|
|
4170
4005
|
});
|
|
4171
4006
|
|
|
@@ -4218,13 +4053,7 @@ const __cancelFlow_impl = cancelFlow;
|
|
|
4218
4053
|
const __cancelFlow_wrapped = instrumentFunction({
|
|
4219
4054
|
fn: __cancelFlow_impl,
|
|
4220
4055
|
functionName: "cancelFlow",
|
|
4221
|
-
getCore:
|
|
4222
|
-
try {
|
|
4223
|
-
return getCore(getDefaultClient());
|
|
4224
|
-
} catch {
|
|
4225
|
-
return;
|
|
4226
|
-
}
|
|
4227
|
-
},
|
|
4056
|
+
getCore: resolveInstrumentationCore,
|
|
4228
4057
|
selectors: cancelFlowInstrumentation
|
|
4229
4058
|
});
|
|
4230
4059
|
|
|
@@ -4341,13 +4170,7 @@ const __prepareFlowSigning_impl = prepareFlowSigning;
|
|
|
4341
4170
|
const __prepareFlowSigning_wrapped = instrumentFunction({
|
|
4342
4171
|
fn: __prepareFlowSigning_impl,
|
|
4343
4172
|
functionName: "prepareFlowSigning",
|
|
4344
|
-
getCore:
|
|
4345
|
-
try {
|
|
4346
|
-
return getCore(getDefaultClient());
|
|
4347
|
-
} catch {
|
|
4348
|
-
return;
|
|
4349
|
-
}
|
|
4350
|
-
},
|
|
4173
|
+
getCore: resolveInstrumentationCore,
|
|
4351
4174
|
selectors: prepareFlowSigningInstrumentation
|
|
4352
4175
|
});
|
|
4353
4176
|
|
|
@@ -4406,13 +4229,7 @@ const __submitFlowTransaction_impl = submitFlowTransaction;
|
|
|
4406
4229
|
const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
4407
4230
|
fn: __submitFlowTransaction_impl,
|
|
4408
4231
|
functionName: "submitFlowTransaction",
|
|
4409
|
-
getCore:
|
|
4410
|
-
try {
|
|
4411
|
-
return getCore(getDefaultClient());
|
|
4412
|
-
} catch {
|
|
4413
|
-
return;
|
|
4414
|
-
}
|
|
4415
|
-
},
|
|
4232
|
+
getCore: resolveInstrumentationCore,
|
|
4416
4233
|
selectors: submitFlowTransactionInstrumentation
|
|
4417
4234
|
});
|
|
4418
4235
|
|
|
@@ -4754,13 +4571,7 @@ const __createCoinbaseOnrampOrder_impl = createCoinbaseOnrampOrder;
|
|
|
4754
4571
|
const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
4755
4572
|
fn: __createCoinbaseOnrampOrder_impl,
|
|
4756
4573
|
functionName: "createCoinbaseOnrampOrder",
|
|
4757
|
-
getCore:
|
|
4758
|
-
try {
|
|
4759
|
-
return getCore(getDefaultClient());
|
|
4760
|
-
} catch {
|
|
4761
|
-
return;
|
|
4762
|
-
}
|
|
4763
|
-
}
|
|
4574
|
+
getCore: resolveInstrumentationCore
|
|
4764
4575
|
});
|
|
4765
4576
|
|
|
4766
4577
|
//#endregion
|
|
@@ -4799,7 +4610,7 @@ const assertChainName = (chainName) => {
|
|
|
4799
4610
|
* ```
|
|
4800
4611
|
* @see createCoinbaseExchangeTransfer
|
|
4801
4612
|
* @see GetCoinbaseAccountsParams
|
|
4802
|
-
* @
|
|
4613
|
+
* @instrumented
|
|
4803
4614
|
*/
|
|
4804
4615
|
const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
|
|
4805
4616
|
const core = getCore(client);
|
|
@@ -4815,6 +4626,12 @@ const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
|
|
|
4815
4626
|
networkId
|
|
4816
4627
|
});
|
|
4817
4628
|
};
|
|
4629
|
+
const __getCoinbaseAccounts_impl = getCoinbaseAccounts;
|
|
4630
|
+
const __getCoinbaseAccounts_wrapped = instrumentFunction({
|
|
4631
|
+
fn: __getCoinbaseAccounts_impl,
|
|
4632
|
+
functionName: "getCoinbaseAccounts",
|
|
4633
|
+
getCore: resolveInstrumentationCore
|
|
4634
|
+
});
|
|
4818
4635
|
|
|
4819
4636
|
//#endregion
|
|
4820
4637
|
//#region src/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.ts
|
|
@@ -4824,7 +4641,7 @@ const getCoinbaseAccounts = async (params, client = getDefaultClient()) => {
|
|
|
4824
4641
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
4825
4642
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4826
4643
|
* @returns an object containing the buy URL
|
|
4827
|
-
* @
|
|
4644
|
+
* @instrumented
|
|
4828
4645
|
*/
|
|
4829
4646
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
4830
4647
|
const core = getCore(client);
|
|
@@ -4833,6 +4650,12 @@ const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
|
4833
4650
|
environmentId: core.environmentId
|
|
4834
4651
|
});
|
|
4835
4652
|
};
|
|
4653
|
+
const __getCoinbaseBuyUrl_impl = getCoinbaseBuyUrl;
|
|
4654
|
+
const __getCoinbaseBuyUrl_wrapped = instrumentFunction({
|
|
4655
|
+
fn: __getCoinbaseBuyUrl_impl,
|
|
4656
|
+
functionName: "getCoinbaseBuyUrl",
|
|
4657
|
+
getCore: resolveInstrumentationCore
|
|
4658
|
+
});
|
|
4836
4659
|
|
|
4837
4660
|
//#endregion
|
|
4838
4661
|
//#region src/modules/funding/cryptoDotCom/createCryptoDotComPayment/createCryptoDotComPayment.ts
|
|
@@ -4858,13 +4681,7 @@ const __createCryptoDotComPayment_impl = createCryptoDotComPayment;
|
|
|
4858
4681
|
const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
4859
4682
|
fn: __createCryptoDotComPayment_impl,
|
|
4860
4683
|
functionName: "createCryptoDotComPayment",
|
|
4861
|
-
getCore:
|
|
4862
|
-
try {
|
|
4863
|
-
return getCore(getDefaultClient());
|
|
4864
|
-
} catch {
|
|
4865
|
-
return;
|
|
4866
|
-
}
|
|
4867
|
-
}
|
|
4684
|
+
getCore: resolveInstrumentationCore
|
|
4868
4685
|
});
|
|
4869
4686
|
|
|
4870
4687
|
//#endregion
|
|
@@ -4897,7 +4714,7 @@ const createKrakenExchangeTransfer = async (transferParams, client = getDefaultC
|
|
|
4897
4714
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
4898
4715
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4899
4716
|
* @returns Array of Kraken accounts with balances
|
|
4900
|
-
* @
|
|
4717
|
+
* @instrumented
|
|
4901
4718
|
*/
|
|
4902
4719
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
4903
4720
|
const core = getCore(client);
|
|
@@ -4908,6 +4725,12 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
4908
4725
|
networkId: params?.networkId
|
|
4909
4726
|
});
|
|
4910
4727
|
};
|
|
4728
|
+
const __getKrakenAccounts_impl = getKrakenAccounts;
|
|
4729
|
+
const __getKrakenAccounts_wrapped = instrumentFunction({
|
|
4730
|
+
fn: __getKrakenAccounts_impl,
|
|
4731
|
+
functionName: "getKrakenAccounts",
|
|
4732
|
+
getCore: resolveInstrumentationCore
|
|
4733
|
+
});
|
|
4911
4734
|
|
|
4912
4735
|
//#endregion
|
|
4913
4736
|
//#region src/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.ts
|
|
@@ -4916,7 +4739,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
4916
4739
|
*
|
|
4917
4740
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4918
4741
|
* @returns Transfer destinations response with whitelisted addresses
|
|
4919
|
-
* @
|
|
4742
|
+
* @instrumented
|
|
4920
4743
|
*/
|
|
4921
4744
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
4922
4745
|
const core = getCore(client);
|
|
@@ -4925,6 +4748,12 @@ const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
|
4925
4748
|
exchangeKey: ExchangeKeyEnum.Kraken
|
|
4926
4749
|
});
|
|
4927
4750
|
};
|
|
4751
|
+
const __getKrakenWhitelistedAddresses_impl = getKrakenWhitelistedAddresses;
|
|
4752
|
+
const __getKrakenWhitelistedAddresses_wrapped = instrumentFunction({
|
|
4753
|
+
fn: __getKrakenWhitelistedAddresses_impl,
|
|
4754
|
+
functionName: "getKrakenWhitelistedAddresses",
|
|
4755
|
+
getCore: resolveInstrumentationCore
|
|
4756
|
+
});
|
|
4928
4757
|
|
|
4929
4758
|
//#endregion
|
|
4930
4759
|
//#region src/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.ts
|
|
@@ -4950,13 +4779,7 @@ const __getMoonPayCurrencies_impl = getMoonPayCurrencies;
|
|
|
4950
4779
|
const __getMoonPayCurrencies_wrapped = instrumentFunction({
|
|
4951
4780
|
fn: __getMoonPayCurrencies_impl,
|
|
4952
4781
|
functionName: "getMoonPayCurrencies",
|
|
4953
|
-
getCore:
|
|
4954
|
-
try {
|
|
4955
|
-
return getCore(getDefaultClient());
|
|
4956
|
-
} catch {
|
|
4957
|
-
return;
|
|
4958
|
-
}
|
|
4959
|
-
}
|
|
4782
|
+
getCore: resolveInstrumentationCore
|
|
4960
4783
|
});
|
|
4961
4784
|
|
|
4962
4785
|
//#endregion
|
|
@@ -5026,13 +4849,7 @@ const __getMoonPayUrl_impl = getMoonPayUrl;
|
|
|
5026
4849
|
const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
5027
4850
|
fn: __getMoonPayUrl_impl,
|
|
5028
4851
|
functionName: "getMoonPayUrl",
|
|
5029
|
-
getCore:
|
|
5030
|
-
try {
|
|
5031
|
-
return getCore(getDefaultClient());
|
|
5032
|
-
} catch {
|
|
5033
|
-
return;
|
|
5034
|
-
}
|
|
5035
|
-
}
|
|
4852
|
+
getCore: resolveInstrumentationCore
|
|
5036
4853
|
});
|
|
5037
4854
|
|
|
5038
4855
|
//#endregion
|
|
@@ -5076,13 +4893,7 @@ const __setInstrumentationEnabled_impl = setInstrumentationEnabled;
|
|
|
5076
4893
|
const __setInstrumentationEnabled_wrapped = instrumentFunction({
|
|
5077
4894
|
fn: __setInstrumentationEnabled_impl,
|
|
5078
4895
|
functionName: "setInstrumentationEnabled",
|
|
5079
|
-
getCore:
|
|
5080
|
-
try {
|
|
5081
|
-
return getCore(getDefaultClient());
|
|
5082
|
-
} catch {
|
|
5083
|
-
return;
|
|
5084
|
-
}
|
|
5085
|
-
}
|
|
4896
|
+
getCore: resolveInstrumentationCore
|
|
5086
4897
|
});
|
|
5087
4898
|
|
|
5088
4899
|
//#endregion
|
|
@@ -5649,13 +5460,7 @@ const __updateUser_impl = updateUser;
|
|
|
5649
5460
|
const __updateUser_wrapped = instrumentFunction({
|
|
5650
5461
|
fn: __updateUser_impl,
|
|
5651
5462
|
functionName: "updateUser",
|
|
5652
|
-
getCore:
|
|
5653
|
-
try {
|
|
5654
|
-
return getCore(getDefaultClient());
|
|
5655
|
-
} catch {
|
|
5656
|
-
return;
|
|
5657
|
-
}
|
|
5658
|
-
}
|
|
5463
|
+
getCore: resolveInstrumentationCore
|
|
5659
5464
|
});
|
|
5660
5465
|
|
|
5661
5466
|
//#endregion
|
|
@@ -5677,13 +5482,7 @@ const __acknowledgeRecoveryCodes_impl = acknowledgeRecoveryCodes;
|
|
|
5677
5482
|
const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
5678
5483
|
fn: __acknowledgeRecoveryCodes_impl,
|
|
5679
5484
|
functionName: "acknowledgeRecoveryCodes",
|
|
5680
|
-
getCore:
|
|
5681
|
-
try {
|
|
5682
|
-
return getCore(getDefaultClient());
|
|
5683
|
-
} catch {
|
|
5684
|
-
return;
|
|
5685
|
-
}
|
|
5686
|
-
}
|
|
5485
|
+
getCore: resolveInstrumentationCore
|
|
5687
5486
|
});
|
|
5688
5487
|
|
|
5689
5488
|
//#endregion
|
|
@@ -5878,13 +5677,7 @@ const __createNewMfaRecoveryCodes_impl = createNewMfaRecoveryCodes;
|
|
|
5878
5677
|
const __createNewMfaRecoveryCodes_wrapped = instrumentFunction({
|
|
5879
5678
|
fn: __createNewMfaRecoveryCodes_impl,
|
|
5880
5679
|
functionName: "createNewMfaRecoveryCodes",
|
|
5881
|
-
getCore:
|
|
5882
|
-
try {
|
|
5883
|
-
return getCore(getDefaultClient());
|
|
5884
|
-
} catch {
|
|
5885
|
-
return;
|
|
5886
|
-
}
|
|
5887
|
-
}
|
|
5680
|
+
getCore: resolveInstrumentationCore
|
|
5888
5681
|
});
|
|
5889
5682
|
|
|
5890
5683
|
//#endregion
|
|
@@ -5920,13 +5713,7 @@ const __deleteMfaDevice_impl = deleteMfaDevice;
|
|
|
5920
5713
|
const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
5921
5714
|
fn: __deleteMfaDevice_impl,
|
|
5922
5715
|
functionName: "deleteMfaDevice",
|
|
5923
|
-
getCore:
|
|
5924
|
-
try {
|
|
5925
|
-
return getCore(getDefaultClient());
|
|
5926
|
-
} catch {
|
|
5927
|
-
return;
|
|
5928
|
-
}
|
|
5929
|
-
}
|
|
5716
|
+
getCore: resolveInstrumentationCore
|
|
5930
5717
|
});
|
|
5931
5718
|
|
|
5932
5719
|
//#endregion
|
|
@@ -5987,13 +5774,7 @@ const __registerTotpMfaDevice_impl = registerTotpMfaDevice;
|
|
|
5987
5774
|
const __registerTotpMfaDevice_wrapped = instrumentFunction({
|
|
5988
5775
|
fn: __registerTotpMfaDevice_impl,
|
|
5989
5776
|
functionName: "registerTotpMfaDevice",
|
|
5990
|
-
getCore:
|
|
5991
|
-
try {
|
|
5992
|
-
return getCore(getDefaultClient());
|
|
5993
|
-
} catch {
|
|
5994
|
-
return;
|
|
5995
|
-
}
|
|
5996
|
-
}
|
|
5777
|
+
getCore: resolveInstrumentationCore
|
|
5997
5778
|
});
|
|
5998
5779
|
|
|
5999
5780
|
//#endregion
|
|
@@ -6022,13 +5803,7 @@ const __setDefaultMfaDevice_impl = setDefaultMfaDevice;
|
|
|
6022
5803
|
const __setDefaultMfaDevice_wrapped = instrumentFunction({
|
|
6023
5804
|
fn: __setDefaultMfaDevice_impl,
|
|
6024
5805
|
functionName: "setDefaultMfaDevice",
|
|
6025
|
-
getCore:
|
|
6026
|
-
try {
|
|
6027
|
-
return getCore(getDefaultClient());
|
|
6028
|
-
} catch {
|
|
6029
|
-
return;
|
|
6030
|
-
}
|
|
6031
|
-
}
|
|
5806
|
+
getCore: resolveInstrumentationCore
|
|
6032
5807
|
});
|
|
6033
5808
|
|
|
6034
5809
|
//#endregion
|
|
@@ -6077,13 +5852,7 @@ const __sendEmailOTP_impl = sendEmailOTP;
|
|
|
6077
5852
|
const __sendEmailOTP_wrapped = instrumentFunction({
|
|
6078
5853
|
fn: __sendEmailOTP_impl,
|
|
6079
5854
|
functionName: "sendEmailOTP",
|
|
6080
|
-
getCore:
|
|
6081
|
-
try {
|
|
6082
|
-
return getCore(getDefaultClient());
|
|
6083
|
-
} catch {
|
|
6084
|
-
return;
|
|
6085
|
-
}
|
|
6086
|
-
}
|
|
5855
|
+
getCore: resolveInstrumentationCore
|
|
6087
5856
|
});
|
|
6088
5857
|
|
|
6089
5858
|
//#endregion
|
|
@@ -7055,13 +6824,7 @@ const __sendSmsOTP_impl = sendSmsOTP;
|
|
|
7055
6824
|
const __sendSmsOTP_wrapped = instrumentFunction({
|
|
7056
6825
|
fn: __sendSmsOTP_impl,
|
|
7057
6826
|
functionName: "sendSmsOTP",
|
|
7058
|
-
getCore:
|
|
7059
|
-
try {
|
|
7060
|
-
return getCore(getDefaultClient());
|
|
7061
|
-
} catch {
|
|
7062
|
-
return;
|
|
7063
|
-
}
|
|
7064
|
-
}
|
|
6827
|
+
getCore: resolveInstrumentationCore
|
|
7065
6828
|
});
|
|
7066
6829
|
|
|
7067
6830
|
//#endregion
|
|
@@ -7153,13 +6916,7 @@ const __verifyOTP_impl = verifyOTP;
|
|
|
7153
6916
|
const __verifyOTP_wrapped = instrumentFunction({
|
|
7154
6917
|
fn: __verifyOTP_impl,
|
|
7155
6918
|
functionName: "verifyOTP",
|
|
7156
|
-
getCore:
|
|
7157
|
-
try {
|
|
7158
|
-
return getCore(getDefaultClient());
|
|
7159
|
-
} catch {
|
|
7160
|
-
return;
|
|
7161
|
-
}
|
|
7162
|
-
}
|
|
6919
|
+
getCore: resolveInstrumentationCore
|
|
7163
6920
|
});
|
|
7164
6921
|
|
|
7165
6922
|
//#endregion
|
|
@@ -7297,13 +7054,7 @@ const __deleteUser_impl = deleteUser;
|
|
|
7297
7054
|
const __deleteUser_wrapped = instrumentFunction({
|
|
7298
7055
|
fn: __deleteUser_impl,
|
|
7299
7056
|
functionName: "deleteUser",
|
|
7300
|
-
getCore:
|
|
7301
|
-
try {
|
|
7302
|
-
return getCore(getDefaultClient());
|
|
7303
|
-
} catch {
|
|
7304
|
-
return;
|
|
7305
|
-
}
|
|
7306
|
-
}
|
|
7057
|
+
getCore: resolveInstrumentationCore
|
|
7307
7058
|
});
|
|
7308
7059
|
|
|
7309
7060
|
//#endregion
|
|
@@ -7446,13 +7197,7 @@ const __getGoogleDriveBackupReadiness_impl = getGoogleDriveBackupReadiness;
|
|
|
7446
7197
|
const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
7447
7198
|
fn: __getGoogleDriveBackupReadiness_impl,
|
|
7448
7199
|
functionName: "getGoogleDriveBackupReadiness",
|
|
7449
|
-
getCore:
|
|
7450
|
-
try {
|
|
7451
|
-
return getCore(getDefaultClient());
|
|
7452
|
-
} catch {
|
|
7453
|
-
return;
|
|
7454
|
-
}
|
|
7455
|
-
}
|
|
7200
|
+
getCore: resolveInstrumentationCore
|
|
7456
7201
|
});
|
|
7457
7202
|
|
|
7458
7203
|
//#endregion
|
|
@@ -7704,6 +7449,43 @@ const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
7704
7449
|
return Array.from(chains);
|
|
7705
7450
|
};
|
|
7706
7451
|
|
|
7452
|
+
//#endregion
|
|
7453
|
+
//#region src/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.ts
|
|
7454
|
+
const PLAY_STORE_URL_TEMPLATE = "https://play.google.com/store/apps/details?id=";
|
|
7455
|
+
const APP_STORE_URL_TEMPLATE = "https://apps.apple.com/app/";
|
|
7456
|
+
const CHROME_WEB_STORE_URL_TEMPLATE = "https://chrome.google.com/webstore/detail/";
|
|
7457
|
+
const FIREFOX_ADDONS_URL_TEMPLATE = "https://addons.mozilla.org/firefox/addon/";
|
|
7458
|
+
const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/detail/";
|
|
7459
|
+
/**
|
|
7460
|
+
* Builds the install/download URL bag for a wallet book entry. Returns the
|
|
7461
|
+
* concrete URLs assembled from each store's ID field — Play Store, App
|
|
7462
|
+
* Store, Chrome Web Store, Firefox Add-ons, Edge Add-ons — plus the wallet's
|
|
7463
|
+
* own `desktop.universal` / `desktop.native` URLs when set.
|
|
7464
|
+
*
|
|
7465
|
+
* Fields the wallet book does not carry are left undefined; callers should
|
|
7466
|
+
* skip emitting an installation option for a wallet whose URL bag is empty.
|
|
7467
|
+
*
|
|
7468
|
+
* @param params.wallet - The wallet book entry.
|
|
7469
|
+
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
7470
|
+
* @notInstrumented
|
|
7471
|
+
*/
|
|
7472
|
+
const buildInstallationUrls = ({ wallet }) => {
|
|
7473
|
+
const androidId = wallet.mobile?.androidId;
|
|
7474
|
+
const iosId = wallet.mobile?.iosId;
|
|
7475
|
+
const chromeId = wallet.desktop?.chromeId;
|
|
7476
|
+
const firefoxId = wallet.desktop?.firefoxId;
|
|
7477
|
+
const edgeId = wallet.desktop?.edgeId;
|
|
7478
|
+
const native = wallet.desktop?.universal ?? wallet.desktop?.native;
|
|
7479
|
+
return {
|
|
7480
|
+
android: androidId ? `${PLAY_STORE_URL_TEMPLATE}${androidId}` : void 0,
|
|
7481
|
+
chrome: chromeId ? `${CHROME_WEB_STORE_URL_TEMPLATE}${chromeId}` : void 0,
|
|
7482
|
+
edge: edgeId ? `${EDGE_ADDONS_URL_TEMPLATE}${edgeId}` : void 0,
|
|
7483
|
+
firefox: firefoxId ? `${FIREFOX_ADDONS_URL_TEMPLATE}${firefoxId}` : void 0,
|
|
7484
|
+
ios: iosId ? `${APP_STORE_URL_TEMPLATE}${iosId}` : void 0,
|
|
7485
|
+
native: native || void 0
|
|
7486
|
+
};
|
|
7487
|
+
};
|
|
7488
|
+
|
|
7707
7489
|
//#endregion
|
|
7708
7490
|
//#region src/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.ts
|
|
7709
7491
|
/**
|
|
@@ -7723,21 +7505,99 @@ const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
7723
7505
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
7724
7506
|
|
|
7725
7507
|
//#endregion
|
|
7726
|
-
//#region src/modules/walletOptionsCatalogue/
|
|
7508
|
+
//#region src/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.ts
|
|
7727
7509
|
/**
|
|
7728
|
-
*
|
|
7729
|
-
*
|
|
7730
|
-
*
|
|
7731
|
-
* `?? undefined` collapses the schema's `string | null` typing down to
|
|
7732
|
-
* the `string | undefined` return contract.
|
|
7733
|
-
*
|
|
7734
|
-
* @param params.wallet - The wallet book wallet entry.
|
|
7735
|
-
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
7736
|
-
* @notInstrumented
|
|
7510
|
+
* `buildInstallationUrls` always returns an object, but it can be fully
|
|
7511
|
+
* `undefined`-valued when the wallet book entry has no installable surface.
|
|
7512
|
+
* Skip those wallets — emitting an empty URL bag helps nobody.
|
|
7737
7513
|
*/
|
|
7738
|
-
const
|
|
7739
|
-
|
|
7740
|
-
|
|
7514
|
+
const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
7515
|
+
/**
|
|
7516
|
+
* Collects install / download URLs for every wallet book entry that has
|
|
7517
|
+
* at least one installable surface, keyed by the wallet option key the
|
|
7518
|
+
* wallet groups under. The catalogue assembly step merges this map into
|
|
7519
|
+
* the per-key wallet option shell so `WalletOption.installationUrls` is
|
|
7520
|
+
* populated alongside (or instead of) `connectionOptions`.
|
|
7521
|
+
*
|
|
7522
|
+
* First-seen URLs win when multiple wallet book entries resolve to the
|
|
7523
|
+
* same wallet option key — wallet book authors put the most accurate
|
|
7524
|
+
* install links on the canonical entry, so the first-seen one is the
|
|
7525
|
+
* right pick.
|
|
7526
|
+
*
|
|
7527
|
+
* Reuses the generic `shouldFilterWallet` rules so embedded wallets do
|
|
7528
|
+
* not appear here either — they're not user-installable products.
|
|
7529
|
+
*
|
|
7530
|
+
* Wallets that advertise no chain this client has an extension for are
|
|
7531
|
+
* skipped: installing them would not make them connectable.
|
|
7532
|
+
*
|
|
7533
|
+
* @param params.enabledChains - Chains the client has an extension for.
|
|
7534
|
+
* @param params.walletBook - The fetched wallet book.
|
|
7535
|
+
* @returns A map from wallet option key to its install URL bag.
|
|
7536
|
+
* @notInstrumented
|
|
7537
|
+
*/
|
|
7538
|
+
const buildInstallationUrlsByWalletOptionKey = ({ enabledChains, walletBook }) => {
|
|
7539
|
+
const map = /* @__PURE__ */ new Map();
|
|
7540
|
+
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
7541
|
+
if (shouldFilterWallet({
|
|
7542
|
+
wallet,
|
|
7543
|
+
walletKey
|
|
7544
|
+
})) continue;
|
|
7545
|
+
if (!getChainsFromWalletSchema({
|
|
7546
|
+
wallet,
|
|
7547
|
+
walletKey
|
|
7548
|
+
}).some((chain) => enabledChains.has(chain))) continue;
|
|
7549
|
+
const urls = buildInstallationUrls({ wallet });
|
|
7550
|
+
if (!hasAnyInstallationUrl({ urls })) continue;
|
|
7551
|
+
const walletOptionKey = resolveWalletBookWalletOptionKey({
|
|
7552
|
+
wallet,
|
|
7553
|
+
walletKey
|
|
7554
|
+
});
|
|
7555
|
+
if (!map.has(walletOptionKey)) map.set(walletOptionKey, urls);
|
|
7556
|
+
}
|
|
7557
|
+
return map;
|
|
7558
|
+
};
|
|
7559
|
+
|
|
7560
|
+
//#endregion
|
|
7561
|
+
//#region src/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.ts
|
|
7562
|
+
/**
|
|
7563
|
+
* Returns the chains that have a URI connection starter registered for a
|
|
7564
|
+
* given URI protocol. An empty set means no chain extension can mint a
|
|
7565
|
+
* pairing URI for that protocol, so surfaces driven by it are not
|
|
7566
|
+
* reachable on this client.
|
|
7567
|
+
*
|
|
7568
|
+
* @example
|
|
7569
|
+
* ```ts
|
|
7570
|
+
* const chains = getUriConnectionStarterChains({ type: 'walletConnect' }, client);
|
|
7571
|
+
* ```
|
|
7572
|
+
*
|
|
7573
|
+
* @param params.type - The URI protocol to look up starters for.
|
|
7574
|
+
* @param client - The Dynamic client instance.
|
|
7575
|
+
* @returns The chains with a registered starter for the given protocol.
|
|
7576
|
+
* @see getUriConnectionStarterRegistry
|
|
7577
|
+
* @see UriConnectionType
|
|
7578
|
+
* @notInstrumented
|
|
7579
|
+
*/
|
|
7580
|
+
const getUriConnectionStarterChains = ({ type }, client) => {
|
|
7581
|
+
const starters = getUriConnectionStarterRegistry(client).getAll();
|
|
7582
|
+
return new Set(starters.filter((starter) => starter.type === type).map((starter) => starter.chain));
|
|
7583
|
+
};
|
|
7584
|
+
|
|
7585
|
+
//#endregion
|
|
7586
|
+
//#region src/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.ts
|
|
7587
|
+
/**
|
|
7588
|
+
* Returns the wallet's in-app browser URL template, preferring the v2
|
|
7589
|
+
* field. `inAppBrowser` is deprecated but some wallet book entries
|
|
7590
|
+
* still carry only the v1 value, so it acts as a fallback. Trailing
|
|
7591
|
+
* `?? undefined` collapses the schema's `string | null` typing down to
|
|
7592
|
+
* the `string | undefined` return contract.
|
|
7593
|
+
*
|
|
7594
|
+
* @param params.wallet - The wallet book wallet entry.
|
|
7595
|
+
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
7596
|
+
* @notInstrumented
|
|
7597
|
+
*/
|
|
7598
|
+
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
7599
|
+
|
|
7600
|
+
//#endregion
|
|
7741
7601
|
//#region src/modules/walletOptionsCatalogue/buildInAppBrowserOptions/buildInAppBrowserOptions.ts
|
|
7742
7602
|
/**
|
|
7743
7603
|
* Builds the `inAppBrowser` catalogue options from the wallet book. A wallet
|
|
@@ -7788,96 +7648,6 @@ const buildInAppBrowserOptions = ({ enabledChains, walletBook }) => {
|
|
|
7788
7648
|
return result;
|
|
7789
7649
|
};
|
|
7790
7650
|
|
|
7791
|
-
//#endregion
|
|
7792
|
-
//#region src/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.ts
|
|
7793
|
-
const PLAY_STORE_URL_TEMPLATE = "https://play.google.com/store/apps/details?id=";
|
|
7794
|
-
const APP_STORE_URL_TEMPLATE = "https://apps.apple.com/app/";
|
|
7795
|
-
const CHROME_WEB_STORE_URL_TEMPLATE = "https://chrome.google.com/webstore/detail/";
|
|
7796
|
-
const FIREFOX_ADDONS_URL_TEMPLATE = "https://addons.mozilla.org/firefox/addon/";
|
|
7797
|
-
const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/detail/";
|
|
7798
|
-
/**
|
|
7799
|
-
* Builds the install/download URL bag for a wallet book entry. Returns the
|
|
7800
|
-
* concrete URLs assembled from each store's ID field — Play Store, App
|
|
7801
|
-
* Store, Chrome Web Store, Firefox Add-ons, Edge Add-ons — plus the wallet's
|
|
7802
|
-
* own `desktop.universal` / `desktop.native` URLs when set.
|
|
7803
|
-
*
|
|
7804
|
-
* Fields the wallet book does not carry are left undefined; callers should
|
|
7805
|
-
* skip emitting an installation option for a wallet whose URL bag is empty.
|
|
7806
|
-
*
|
|
7807
|
-
* @param params.wallet - The wallet book entry.
|
|
7808
|
-
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
7809
|
-
* @notInstrumented
|
|
7810
|
-
*/
|
|
7811
|
-
const buildInstallationUrls = ({ wallet }) => {
|
|
7812
|
-
const androidId = wallet.mobile?.androidId;
|
|
7813
|
-
const iosId = wallet.mobile?.iosId;
|
|
7814
|
-
const chromeId = wallet.desktop?.chromeId;
|
|
7815
|
-
const firefoxId = wallet.desktop?.firefoxId;
|
|
7816
|
-
const edgeId = wallet.desktop?.edgeId;
|
|
7817
|
-
const native = wallet.desktop?.universal ?? wallet.desktop?.native;
|
|
7818
|
-
return {
|
|
7819
|
-
android: androidId ? `${PLAY_STORE_URL_TEMPLATE}${androidId}` : void 0,
|
|
7820
|
-
chrome: chromeId ? `${CHROME_WEB_STORE_URL_TEMPLATE}${chromeId}` : void 0,
|
|
7821
|
-
edge: edgeId ? `${EDGE_ADDONS_URL_TEMPLATE}${edgeId}` : void 0,
|
|
7822
|
-
firefox: firefoxId ? `${FIREFOX_ADDONS_URL_TEMPLATE}${firefoxId}` : void 0,
|
|
7823
|
-
ios: iosId ? `${APP_STORE_URL_TEMPLATE}${iosId}` : void 0,
|
|
7824
|
-
native: native || void 0
|
|
7825
|
-
};
|
|
7826
|
-
};
|
|
7827
|
-
|
|
7828
|
-
//#endregion
|
|
7829
|
-
//#region src/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.ts
|
|
7830
|
-
/**
|
|
7831
|
-
* `buildInstallationUrls` always returns an object, but it can be fully
|
|
7832
|
-
* `undefined`-valued when the wallet book entry has no installable surface.
|
|
7833
|
-
* Skip those wallets — emitting an empty URL bag helps nobody.
|
|
7834
|
-
*/
|
|
7835
|
-
const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
7836
|
-
/**
|
|
7837
|
-
* Collects install / download URLs for every wallet book entry that has
|
|
7838
|
-
* at least one installable surface, keyed by the wallet option key the
|
|
7839
|
-
* wallet groups under. The catalogue assembly step merges this map into
|
|
7840
|
-
* the per-key wallet option shell so `WalletOption.installationUrls` is
|
|
7841
|
-
* populated alongside (or instead of) `connectionOptions`.
|
|
7842
|
-
*
|
|
7843
|
-
* First-seen URLs win when multiple wallet book entries resolve to the
|
|
7844
|
-
* same wallet option key — wallet book authors put the most accurate
|
|
7845
|
-
* install links on the canonical entry, so the first-seen one is the
|
|
7846
|
-
* right pick.
|
|
7847
|
-
*
|
|
7848
|
-
* Reuses the generic `shouldFilterWallet` rules so embedded wallets do
|
|
7849
|
-
* not appear here either — they're not user-installable products.
|
|
7850
|
-
*
|
|
7851
|
-
* Wallets that advertise no chain this client has an extension for are
|
|
7852
|
-
* skipped: installing them would not make them connectable.
|
|
7853
|
-
*
|
|
7854
|
-
* @param params.enabledChains - Chains the client has an extension for.
|
|
7855
|
-
* @param params.walletBook - The fetched wallet book.
|
|
7856
|
-
* @returns A map from wallet option key to its install URL bag.
|
|
7857
|
-
* @notInstrumented
|
|
7858
|
-
*/
|
|
7859
|
-
const buildInstallationUrlsByWalletOptionKey = ({ enabledChains, walletBook }) => {
|
|
7860
|
-
const map = /* @__PURE__ */ new Map();
|
|
7861
|
-
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
7862
|
-
if (shouldFilterWallet({
|
|
7863
|
-
wallet,
|
|
7864
|
-
walletKey
|
|
7865
|
-
})) continue;
|
|
7866
|
-
if (!getChainsFromWalletSchema({
|
|
7867
|
-
wallet,
|
|
7868
|
-
walletKey
|
|
7869
|
-
}).some((chain) => enabledChains.has(chain))) continue;
|
|
7870
|
-
const urls = buildInstallationUrls({ wallet });
|
|
7871
|
-
if (!hasAnyInstallationUrl({ urls })) continue;
|
|
7872
|
-
const walletOptionKey = resolveWalletBookWalletOptionKey({
|
|
7873
|
-
wallet,
|
|
7874
|
-
walletKey
|
|
7875
|
-
});
|
|
7876
|
-
if (!map.has(walletOptionKey)) map.set(walletOptionKey, urls);
|
|
7877
|
-
}
|
|
7878
|
-
return map;
|
|
7879
|
-
};
|
|
7880
|
-
|
|
7881
7651
|
//#endregion
|
|
7882
7652
|
//#region src/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.ts
|
|
7883
7653
|
/**
|
|
@@ -7961,13 +7731,6 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
7961
7731
|
//#endregion
|
|
7962
7732
|
//#region src/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.ts
|
|
7963
7733
|
/**
|
|
7964
|
-
* Chains Dynamic ships a WalletConnect extension for. Anything else a
|
|
7965
|
-
* wallet book entry advertises (Cosmos, BTC, …) gets filtered out — the
|
|
7966
|
-
* catalogue should not surface a chain the SDK has no `connectWithWalletConnect<Chain>`
|
|
7967
|
-
* primitive for.
|
|
7968
|
-
*/
|
|
7969
|
-
const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
7970
|
-
/**
|
|
7971
7734
|
* Builds the `walletConnect`-discriminator catalogue options from a fetched
|
|
7972
7735
|
* wallet book. Applies the WalletConnect-specific eligibility filter
|
|
7973
7736
|
* (`shouldFilterWalletForWalletConnect`) so embedded wallets and entries
|
|
@@ -7981,11 +7744,15 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
7981
7744
|
* discriminator via `excludedConnectionOptionTypes` doesn't accidentally
|
|
7982
7745
|
* gate the other.
|
|
7983
7746
|
*
|
|
7747
|
+
* Chains a wallet book entry advertises without a registered WalletConnect
|
|
7748
|
+
* starter are filtered out.
|
|
7749
|
+
*
|
|
7984
7750
|
* @param params.walletBook - The fetched wallet book.
|
|
7751
|
+
* @param params.walletConnectChains - Chains with a registered `walletConnect` URI connection starter.
|
|
7985
7752
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
7986
7753
|
* @notInstrumented
|
|
7987
7754
|
*/
|
|
7988
|
-
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
7755
|
+
const buildWalletConnectOptions = ({ walletBook, walletConnectChains }) => {
|
|
7989
7756
|
const result = [];
|
|
7990
7757
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
7991
7758
|
if (shouldFilterWalletForWalletConnect({
|
|
@@ -8001,7 +7768,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
8001
7768
|
const chains = getChainsFromWalletSchema({
|
|
8002
7769
|
wallet,
|
|
8003
7770
|
walletKey
|
|
8004
|
-
}).filter((chain) =>
|
|
7771
|
+
}).filter((chain) => walletConnectChains.has(chain));
|
|
8005
7772
|
for (const chain of chains) result.push({
|
|
8006
7773
|
option: {
|
|
8007
7774
|
chain,
|
|
@@ -8017,6 +7784,108 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
8017
7784
|
return result;
|
|
8018
7785
|
};
|
|
8019
7786
|
|
|
7787
|
+
//#endregion
|
|
7788
|
+
//#region src/modules/walletOptionsCatalogue/filterConnectionOptionsByEnabledChains/filterConnectionOptionsByEnabledChains.ts
|
|
7789
|
+
/**
|
|
7790
|
+
* Drops options whose chain has no extension on this client. The wallet
|
|
7791
|
+
* book advertises every chain a wallet supports, so options derived from
|
|
7792
|
+
* it have to be narrowed to the chains the client can actually connect
|
|
7793
|
+
* on — otherwise the catalogue surfaces a connection the customer has no
|
|
7794
|
+
* primitive to drive.
|
|
7795
|
+
*
|
|
7796
|
+
* @param params.enabledChains - Chains the client has an extension for.
|
|
7797
|
+
* @param params.options - The tagged options to narrow.
|
|
7798
|
+
* @returns The options on enabled chains, in input order.
|
|
7799
|
+
* @example
|
|
7800
|
+
* ```typescript
|
|
7801
|
+
* filterConnectionOptionsByEnabledChains({
|
|
7802
|
+
* enabledChains: new Set(['EVM']),
|
|
7803
|
+
* options: [evmOption, solOption],
|
|
7804
|
+
* }); // [evmOption]
|
|
7805
|
+
* ```
|
|
7806
|
+
* @see {@link getEnabledChains} for how the enabled chains are derived.
|
|
7807
|
+
* @see {@link getWalletOptionsCatalogue} for the catalogue that applies this filter.
|
|
7808
|
+
* @notInstrumented
|
|
7809
|
+
*/
|
|
7810
|
+
const filterConnectionOptionsByEnabledChains = ({ enabledChains, options }) => options.filter(({ option }) => enabledChains.has(option.chain));
|
|
7811
|
+
|
|
7812
|
+
//#endregion
|
|
7813
|
+
//#region src/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.ts
|
|
7814
|
+
/**
|
|
7815
|
+
* Builds every wallet-book-sourced connection option — WalletConnect,
|
|
7816
|
+
* MetaMask SDK URI and in-app browser — narrowed to the chains this client
|
|
7817
|
+
* has an extension for.
|
|
7818
|
+
*
|
|
7819
|
+
* Each URI-deeplink discriminator has its own builder with its own
|
|
7820
|
+
* eligibility filter (WalletConnect requires `sign_v2`; MetaMask SDK URI
|
|
7821
|
+
* does not), so excluding one discriminator never gates the other.
|
|
7822
|
+
*
|
|
7823
|
+
* WalletConnect options are emitted only on the chains with a registered
|
|
7824
|
+
* `walletConnect` URI connection starter.
|
|
7825
|
+
*
|
|
7826
|
+
* @example
|
|
7827
|
+
* ```ts
|
|
7828
|
+
* const options = buildWalletBookConnectionOptions(
|
|
7829
|
+
* { enabledChains, excludedConnectionOptionTypes: new Set(), walletBook },
|
|
7830
|
+
* client
|
|
7831
|
+
* );
|
|
7832
|
+
* ```
|
|
7833
|
+
*
|
|
7834
|
+
* @param params.enabledChains - Chains the client has an extension for.
|
|
7835
|
+
* @param params.excludedConnectionOptionTypes - Connection types to drop.
|
|
7836
|
+
* @param params.walletBook - The fetched wallet book.
|
|
7837
|
+
* @param client - The Dynamic client instance.
|
|
7838
|
+
* @returns Tagged wallet-book options paired with their wallet option keys.
|
|
7839
|
+
* @see getWalletOptionsCatalogue
|
|
7840
|
+
* @see filterConnectionOptionsByEnabledChains
|
|
7841
|
+
* @notInstrumented
|
|
7842
|
+
*/
|
|
7843
|
+
const buildWalletBookConnectionOptions = ({ enabledChains, excludedConnectionOptionTypes, walletBook }, client) => {
|
|
7844
|
+
const options = [];
|
|
7845
|
+
const walletConnectChains = getUriConnectionStarterChains({ type: "walletConnect" }, client);
|
|
7846
|
+
const hasWalletConnectStarter = walletConnectChains.size > 0;
|
|
7847
|
+
if (!excludedConnectionOptionTypes.has("walletConnect") && hasWalletConnectStarter) options.push(...buildWalletConnectOptions({
|
|
7848
|
+
walletBook,
|
|
7849
|
+
walletConnectChains
|
|
7850
|
+
}));
|
|
7851
|
+
if (!excludedConnectionOptionTypes.has("metamaskSdkUri")) options.push(...buildMetaMaskSdkUriOptions({ walletBook }));
|
|
7852
|
+
if (!excludedConnectionOptionTypes.has("inAppBrowser")) options.push(...buildInAppBrowserOptions({
|
|
7853
|
+
enabledChains,
|
|
7854
|
+
walletBook
|
|
7855
|
+
}));
|
|
7856
|
+
return filterConnectionOptionsByEnabledChains({
|
|
7857
|
+
enabledChains,
|
|
7858
|
+
options
|
|
7859
|
+
});
|
|
7860
|
+
};
|
|
7861
|
+
|
|
7862
|
+
//#endregion
|
|
7863
|
+
//#region src/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.ts
|
|
7864
|
+
/**
|
|
7865
|
+
* Derives the chains a wallet option can be connected on from its connection
|
|
7866
|
+
* options, deduped and sorted alphabetically so the order is stable
|
|
7867
|
+
* regardless of how the connection options rank.
|
|
7868
|
+
*
|
|
7869
|
+
* Install-only wallet options have no connection options, so they support no
|
|
7870
|
+
* chain until the wallet is installed.
|
|
7871
|
+
*
|
|
7872
|
+
* @example
|
|
7873
|
+
* ```ts
|
|
7874
|
+
* const supportedChains = deriveSupportedChains({ connectionOptions });
|
|
7875
|
+
* ```
|
|
7876
|
+
*
|
|
7877
|
+
* @param params.connectionOptions - The wallet option's connection options.
|
|
7878
|
+
* @returns The chains supported by the wallet option.
|
|
7879
|
+
* @see buildWalletOption
|
|
7880
|
+
* @see WalletOption
|
|
7881
|
+
* @notInstrumented
|
|
7882
|
+
*/
|
|
7883
|
+
const deriveSupportedChains = ({ connectionOptions }) => {
|
|
7884
|
+
const chains = /* @__PURE__ */ new Set();
|
|
7885
|
+
for (const connectionOption of connectionOptions) chains.add(connectionOption.chain);
|
|
7886
|
+
return Array.from(chains).sort((a, b) => a.localeCompare(b));
|
|
7887
|
+
};
|
|
7888
|
+
|
|
8020
7889
|
//#endregion
|
|
8021
7890
|
//#region src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts
|
|
8022
7891
|
/**
|
|
@@ -8065,7 +7934,8 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
8065
7934
|
installationUrls,
|
|
8066
7935
|
key: walletOptionKey,
|
|
8067
7936
|
name: displayOverride?.name ?? group?.name ?? walletEntry?.name ?? walletOptionKey,
|
|
8068
|
-
primaryColor: group?.brand?.primaryColor ?? walletEntry?.brand?.primaryColor
|
|
7937
|
+
primaryColor: group?.brand?.primaryColor ?? walletEntry?.brand?.primaryColor,
|
|
7938
|
+
supportedChains: deriveSupportedChains({ connectionOptions })
|
|
8069
7939
|
};
|
|
8070
7940
|
};
|
|
8071
7941
|
|
|
@@ -8342,31 +8212,6 @@ const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
|
8342
8212
|
*/
|
|
8343
8213
|
const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
8344
8214
|
|
|
8345
|
-
//#endregion
|
|
8346
|
-
//#region src/modules/walletOptionsCatalogue/filterConnectionOptionsByEnabledChains/filterConnectionOptionsByEnabledChains.ts
|
|
8347
|
-
/**
|
|
8348
|
-
* Drops options whose chain has no extension on this client. The wallet
|
|
8349
|
-
* book advertises every chain a wallet supports, so options derived from
|
|
8350
|
-
* it have to be narrowed to the chains the client can actually connect
|
|
8351
|
-
* on — otherwise the catalogue surfaces a connection the customer has no
|
|
8352
|
-
* primitive to drive.
|
|
8353
|
-
*
|
|
8354
|
-
* @param params.enabledChains - Chains the client has an extension for.
|
|
8355
|
-
* @param params.options - The tagged options to narrow.
|
|
8356
|
-
* @returns The options on enabled chains, in input order.
|
|
8357
|
-
* @example
|
|
8358
|
-
* ```typescript
|
|
8359
|
-
* filterConnectionOptionsByEnabledChains({
|
|
8360
|
-
* enabledChains: new Set(['EVM']),
|
|
8361
|
-
* options: [evmOption, solOption],
|
|
8362
|
-
* }); // [evmOption]
|
|
8363
|
-
* ```
|
|
8364
|
-
* @see {@link getEnabledChains} for how the enabled chains are derived.
|
|
8365
|
-
* @see {@link getWalletOptionsCatalogue} for the catalogue that applies this filter.
|
|
8366
|
-
* @notInstrumented
|
|
8367
|
-
*/
|
|
8368
|
-
const filterConnectionOptionsByEnabledChains = ({ enabledChains, options }) => options.filter(({ option }) => enabledChains.has(option.chain));
|
|
8369
|
-
|
|
8370
8215
|
//#endregion
|
|
8371
8216
|
//#region src/modules/walletOptionsCatalogue/groupOptionsByWalletOption/groupOptionsByWalletOption.ts
|
|
8372
8217
|
/**
|
|
@@ -8530,19 +8375,26 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
8530
8375
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
8531
8376
|
|
|
8532
8377
|
//#endregion
|
|
8533
|
-
//#region src/modules/walletOptionsCatalogue/
|
|
8378
|
+
//#region src/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.ts
|
|
8534
8379
|
/**
|
|
8535
|
-
*
|
|
8536
|
-
*
|
|
8537
|
-
* Wallet Standard announcement, window injection, or an SDK-backed
|
|
8538
|
-
*
|
|
8539
|
-
* pre-sorted, so a registered provider always sits at index 0 when present.
|
|
8380
|
+
* Returns true when the wallet option has any `withWalletProvider` connection
|
|
8381
|
+
* option, meaning the wallet is available in the page through a browser
|
|
8382
|
+
* extension, Wallet Standard announcement, window injection, or an SDK-backed
|
|
8383
|
+
* provider registered by a chain extension.
|
|
8540
8384
|
*
|
|
8385
|
+
* @description Detects whether a wallet option is available through a provider
|
|
8386
|
+
* registered in the page.
|
|
8541
8387
|
* @param params.walletOption - The wallet option to inspect.
|
|
8542
|
-
* @returns True when
|
|
8388
|
+
* @returns True when the wallet is available in the page.
|
|
8389
|
+
* @example
|
|
8390
|
+
* ```ts
|
|
8391
|
+
* const isInstalled = isWalletExtensionInstalled({ walletOption });
|
|
8392
|
+
* ```
|
|
8393
|
+
* @see getWalletOptionsCatalogue
|
|
8394
|
+
* @see WalletOption
|
|
8543
8395
|
* @notInstrumented
|
|
8544
8396
|
*/
|
|
8545
|
-
const
|
|
8397
|
+
const isWalletExtensionInstalled = ({ walletOption }) => walletOption.connectionOptions.some(({ type }) => type === "withWalletProvider");
|
|
8546
8398
|
|
|
8547
8399
|
//#endregion
|
|
8548
8400
|
//#region src/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.ts
|
|
@@ -8555,7 +8407,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
8555
8407
|
* - `'relevance'` (default): bucket wallet options into three tiers, in
|
|
8556
8408
|
* this order:
|
|
8557
8409
|
* 1. **Installed provider** — user already has the wallet available
|
|
8558
|
-
* (`withWalletProvider`
|
|
8410
|
+
* (any `withWalletProvider` connection option).
|
|
8559
8411
|
* 2. **Connectable** — has at least one connection (URI deeplink
|
|
8560
8412
|
* or `inAppBrowser`) but no installed provider.
|
|
8561
8413
|
* 3. **Install-only** — no connection at all; only `installationUrls`.
|
|
@@ -8577,7 +8429,7 @@ const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
|
8577
8429
|
const installed = [];
|
|
8578
8430
|
const connectable = [];
|
|
8579
8431
|
const installOnly = [];
|
|
8580
|
-
for (const walletOption of walletOptions) if (
|
|
8432
|
+
for (const walletOption of walletOptions) if (isWalletExtensionInstalled({ walletOption })) installed.push(walletOption);
|
|
8581
8433
|
else if (hasAnyConnectionOption({ walletOption })) connectable.push(walletOption);
|
|
8582
8434
|
else installOnly.push(walletOption);
|
|
8583
8435
|
installed.sort((a, b) => compareByRelevance({
|
|
@@ -8615,6 +8467,10 @@ const EMPTY_WALLET_BOOK = {
|
|
|
8615
8467
|
* client has an extension for — a wallet is only surfaced on chains the
|
|
8616
8468
|
* customer can actually connect on.
|
|
8617
8469
|
*
|
|
8470
|
+
* WalletConnect surfaces require a registered `walletConnect` URI
|
|
8471
|
+
* connection starter, so they only appear once a chain extension that can
|
|
8472
|
+
* mint a WalletConnect URI is added to the client.
|
|
8473
|
+
*
|
|
8618
8474
|
* Pass `excludedConnectionOptionTypes` to drop specific connection types
|
|
8619
8475
|
* from the catalogue (e.g. `['inAppBrowser']` on desktop). Wallets whose
|
|
8620
8476
|
* only connection was an excluded type fall through to the install-only
|
|
@@ -8639,19 +8495,11 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
8639
8495
|
walletBook
|
|
8640
8496
|
}, client));
|
|
8641
8497
|
}
|
|
8642
|
-
if (includeMobileOptions) {
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
enabledChains,
|
|
8648
|
-
walletBook
|
|
8649
|
-
}));
|
|
8650
|
-
allConnectionOptions.push(...filterConnectionOptionsByEnabledChains({
|
|
8651
|
-
enabledChains,
|
|
8652
|
-
options: walletBookOptions
|
|
8653
|
-
}));
|
|
8654
|
-
}
|
|
8498
|
+
if (includeMobileOptions) allConnectionOptions.push(...buildWalletBookConnectionOptions({
|
|
8499
|
+
enabledChains,
|
|
8500
|
+
excludedConnectionOptionTypes,
|
|
8501
|
+
walletBook
|
|
8502
|
+
}, client));
|
|
8655
8503
|
const installationUrlsByKey = includeMobileOptions ? buildInstallationUrlsByWalletOptionKey({
|
|
8656
8504
|
enabledChains,
|
|
8657
8505
|
walletBook
|
|
@@ -8730,13 +8578,7 @@ const __confirmTransaction_impl = confirmTransaction;
|
|
|
8730
8578
|
const __confirmTransaction_wrapped = instrumentFunction({
|
|
8731
8579
|
fn: __confirmTransaction_impl,
|
|
8732
8580
|
functionName: "confirmTransaction",
|
|
8733
|
-
getCore:
|
|
8734
|
-
try {
|
|
8735
|
-
return getCore(getDefaultClient());
|
|
8736
|
-
} catch {
|
|
8737
|
-
return;
|
|
8738
|
-
}
|
|
8739
|
-
}
|
|
8581
|
+
getCore: resolveInstrumentationCore
|
|
8740
8582
|
});
|
|
8741
8583
|
|
|
8742
8584
|
//#endregion
|
|
@@ -8830,13 +8672,7 @@ const __connectWithWalletProvider_impl = connectWithWalletProvider;
|
|
|
8830
8672
|
const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
8831
8673
|
fn: __connectWithWalletProvider_impl,
|
|
8832
8674
|
functionName: "connectWithWalletProvider",
|
|
8833
|
-
getCore:
|
|
8834
|
-
try {
|
|
8835
|
-
return getCore(getDefaultClient());
|
|
8836
|
-
} catch {
|
|
8837
|
-
return;
|
|
8838
|
-
}
|
|
8839
|
-
}
|
|
8675
|
+
getCore: resolveInstrumentationCore
|
|
8840
8676
|
});
|
|
8841
8677
|
|
|
8842
8678
|
//#endregion
|
|
@@ -8965,13 +8801,7 @@ const __proveWalletAccountOwnership_impl = proveWalletAccountOwnership;
|
|
|
8965
8801
|
const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
8966
8802
|
fn: __proveWalletAccountOwnership_impl,
|
|
8967
8803
|
functionName: "proveWalletAccountOwnership",
|
|
8968
|
-
getCore:
|
|
8969
|
-
try {
|
|
8970
|
-
return getCore(getDefaultClient());
|
|
8971
|
-
} catch {
|
|
8972
|
-
return;
|
|
8973
|
-
}
|
|
8974
|
-
}
|
|
8804
|
+
getCore: resolveInstrumentationCore
|
|
8975
8805
|
});
|
|
8976
8806
|
|
|
8977
8807
|
//#endregion
|
|
@@ -9081,13 +8911,7 @@ const __verifyWalletAccount_impl = verifyWalletAccount;
|
|
|
9081
8911
|
const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
9082
8912
|
fn: __verifyWalletAccount_impl,
|
|
9083
8913
|
functionName: "verifyWalletAccount",
|
|
9084
|
-
getCore:
|
|
9085
|
-
try {
|
|
9086
|
-
return getCore(getDefaultClient());
|
|
9087
|
-
} catch {
|
|
9088
|
-
return;
|
|
9089
|
-
}
|
|
9090
|
-
}
|
|
8914
|
+
getCore: resolveInstrumentationCore
|
|
9091
8915
|
});
|
|
9092
8916
|
|
|
9093
8917
|
//#endregion
|
|
@@ -9152,13 +8976,7 @@ const __connectAndVerifyWithWalletProvider_impl = connectAndVerifyWithWalletProv
|
|
|
9152
8976
|
const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
9153
8977
|
fn: __connectAndVerifyWithWalletProvider_impl,
|
|
9154
8978
|
functionName: "connectAndVerifyWithWalletProvider",
|
|
9155
|
-
getCore:
|
|
9156
|
-
try {
|
|
9157
|
-
return getCore(getDefaultClient());
|
|
9158
|
-
} catch {
|
|
9159
|
-
return;
|
|
9160
|
-
}
|
|
9161
|
-
}
|
|
8979
|
+
getCore: resolveInstrumentationCore
|
|
9162
8980
|
});
|
|
9163
8981
|
|
|
9164
8982
|
//#endregion
|
|
@@ -9427,13 +9245,7 @@ const __redirectToInAppBrowser_impl = redirectToInAppBrowser;
|
|
|
9427
9245
|
const __redirectToInAppBrowser_wrapped = instrumentFunction({
|
|
9428
9246
|
fn: __redirectToInAppBrowser_impl,
|
|
9429
9247
|
functionName: "redirectToInAppBrowser",
|
|
9430
|
-
getCore:
|
|
9431
|
-
try {
|
|
9432
|
-
return getCore(getDefaultClient());
|
|
9433
|
-
} catch {
|
|
9434
|
-
return;
|
|
9435
|
-
}
|
|
9436
|
-
}
|
|
9248
|
+
getCore: resolveInstrumentationCore
|
|
9437
9249
|
});
|
|
9438
9250
|
|
|
9439
9251
|
//#endregion
|
|
@@ -9603,13 +9415,7 @@ const __connectWalletOption_impl = connectWalletOption;
|
|
|
9603
9415
|
const __connectWalletOption_wrapped = instrumentFunction({
|
|
9604
9416
|
fn: __connectWalletOption_impl,
|
|
9605
9417
|
functionName: "connectWalletOption",
|
|
9606
|
-
getCore:
|
|
9607
|
-
try {
|
|
9608
|
-
return getCore(getDefaultClient());
|
|
9609
|
-
} catch {
|
|
9610
|
-
return;
|
|
9611
|
-
}
|
|
9612
|
-
}
|
|
9418
|
+
getCore: resolveInstrumentationCore
|
|
9613
9419
|
});
|
|
9614
9420
|
|
|
9615
9421
|
//#endregion
|
|
@@ -9831,13 +9637,7 @@ const __addNetwork_impl = addNetwork;
|
|
|
9831
9637
|
const __addNetwork_wrapped = instrumentFunction({
|
|
9832
9638
|
fn: __addNetwork_impl,
|
|
9833
9639
|
functionName: "addNetwork",
|
|
9834
|
-
getCore:
|
|
9835
|
-
try {
|
|
9836
|
-
return getCore(getDefaultClient());
|
|
9837
|
-
} catch {
|
|
9838
|
-
return;
|
|
9839
|
-
}
|
|
9840
|
-
}
|
|
9640
|
+
getCore: resolveInstrumentationCore
|
|
9841
9641
|
});
|
|
9842
9642
|
|
|
9843
9643
|
//#endregion
|
|
@@ -10039,13 +9839,7 @@ const __switchActiveNetwork_impl = switchActiveNetwork;
|
|
|
10039
9839
|
const __switchActiveNetwork_wrapped = instrumentFunction({
|
|
10040
9840
|
fn: __switchActiveNetwork_impl,
|
|
10041
9841
|
functionName: "switchActiveNetwork",
|
|
10042
|
-
getCore:
|
|
10043
|
-
try {
|
|
10044
|
-
return getCore(getDefaultClient());
|
|
10045
|
-
} catch {
|
|
10046
|
-
return;
|
|
10047
|
-
}
|
|
10048
|
-
}
|
|
9842
|
+
getCore: resolveInstrumentationCore
|
|
10049
9843
|
});
|
|
10050
9844
|
|
|
10051
9845
|
//#endregion
|
|
@@ -10138,13 +9932,7 @@ const __setSelectedWalletAccount_impl = setSelectedWalletAccount;
|
|
|
10138
9932
|
const __setSelectedWalletAccount_wrapped = instrumentFunction({
|
|
10139
9933
|
fn: __setSelectedWalletAccount_impl,
|
|
10140
9934
|
functionName: "setSelectedWalletAccount",
|
|
10141
|
-
getCore:
|
|
10142
|
-
try {
|
|
10143
|
-
return getCore(getDefaultClient());
|
|
10144
|
-
} catch {
|
|
10145
|
-
return;
|
|
10146
|
-
}
|
|
10147
|
-
}
|
|
9935
|
+
getCore: resolveInstrumentationCore
|
|
10148
9936
|
});
|
|
10149
9937
|
|
|
10150
9938
|
//#endregion
|
|
@@ -10200,13 +9988,7 @@ const __selectPrimaryWalletAccount_impl = selectPrimaryWalletAccount;
|
|
|
10200
9988
|
const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
10201
9989
|
fn: __selectPrimaryWalletAccount_impl,
|
|
10202
9990
|
functionName: "selectPrimaryWalletAccount",
|
|
10203
|
-
getCore:
|
|
10204
|
-
try {
|
|
10205
|
-
return getCore(getDefaultClient());
|
|
10206
|
-
} catch {
|
|
10207
|
-
return;
|
|
10208
|
-
}
|
|
10209
|
-
}
|
|
9991
|
+
getCore: resolveInstrumentationCore
|
|
10210
9992
|
});
|
|
10211
9993
|
|
|
10212
9994
|
//#endregion
|
|
@@ -10279,13 +10061,7 @@ const __removeWalletAccount_impl = removeWalletAccount;
|
|
|
10279
10061
|
const __removeWalletAccount_wrapped = instrumentFunction({
|
|
10280
10062
|
fn: __removeWalletAccount_impl,
|
|
10281
10063
|
functionName: "removeWalletAccount",
|
|
10282
|
-
getCore:
|
|
10283
|
-
try {
|
|
10284
|
-
return getCore(getDefaultClient());
|
|
10285
|
-
} catch {
|
|
10286
|
-
return;
|
|
10287
|
-
}
|
|
10288
|
-
}
|
|
10064
|
+
getCore: resolveInstrumentationCore
|
|
10289
10065
|
});
|
|
10290
10066
|
|
|
10291
10067
|
//#endregion
|
|
@@ -10326,13 +10102,7 @@ const __signMessage_impl = signMessage;
|
|
|
10326
10102
|
const __signMessage_wrapped = instrumentFunction({
|
|
10327
10103
|
fn: __signMessage_impl,
|
|
10328
10104
|
functionName: "signMessage",
|
|
10329
|
-
getCore:
|
|
10330
|
-
try {
|
|
10331
|
-
return getCore(getDefaultClient());
|
|
10332
|
-
} catch {
|
|
10333
|
-
return;
|
|
10334
|
-
}
|
|
10335
|
-
}
|
|
10105
|
+
getCore: resolveInstrumentationCore
|
|
10336
10106
|
});
|
|
10337
10107
|
|
|
10338
10108
|
//#endregion
|
|
@@ -10378,13 +10148,7 @@ const __transferAmount_impl = transferAmount;
|
|
|
10378
10148
|
const __transferAmount_wrapped = instrumentFunction({
|
|
10379
10149
|
fn: __transferAmount_impl,
|
|
10380
10150
|
functionName: "transferAmount",
|
|
10381
|
-
getCore:
|
|
10382
|
-
try {
|
|
10383
|
-
return getCore(getDefaultClient());
|
|
10384
|
-
} catch {
|
|
10385
|
-
return;
|
|
10386
|
-
}
|
|
10387
|
-
}
|
|
10151
|
+
getCore: resolveInstrumentationCore
|
|
10388
10152
|
});
|
|
10389
10153
|
|
|
10390
10154
|
//#endregion
|
|
@@ -10422,13 +10186,7 @@ const __transferWalletAccount_impl = transferWalletAccount;
|
|
|
10422
10186
|
const __transferWalletAccount_wrapped = instrumentFunction({
|
|
10423
10187
|
fn: __transferWalletAccount_impl,
|
|
10424
10188
|
functionName: "transferWalletAccount",
|
|
10425
|
-
getCore:
|
|
10426
|
-
try {
|
|
10427
|
-
return getCore(getDefaultClient());
|
|
10428
|
-
} catch {
|
|
10429
|
-
return;
|
|
10430
|
-
}
|
|
10431
|
-
}
|
|
10189
|
+
getCore: resolveInstrumentationCore
|
|
10432
10190
|
});
|
|
10433
10191
|
|
|
10434
10192
|
//#endregion
|
|
@@ -10571,13 +10329,7 @@ const __claimYieldRewards_impl = claimYieldRewards;
|
|
|
10571
10329
|
const __claimYieldRewards_wrapped = instrumentFunction({
|
|
10572
10330
|
fn: __claimYieldRewards_impl,
|
|
10573
10331
|
functionName: "claimYieldRewards",
|
|
10574
|
-
getCore:
|
|
10575
|
-
try {
|
|
10576
|
-
return getCore(getDefaultClient());
|
|
10577
|
-
} catch {
|
|
10578
|
-
return;
|
|
10579
|
-
}
|
|
10580
|
-
}
|
|
10332
|
+
getCore: resolveInstrumentationCore
|
|
10581
10333
|
});
|
|
10582
10334
|
|
|
10583
10335
|
//#endregion
|
|
@@ -10629,13 +10381,7 @@ const __depositToYieldVault_impl = depositToYieldVault;
|
|
|
10629
10381
|
const __depositToYieldVault_wrapped = instrumentFunction({
|
|
10630
10382
|
fn: __depositToYieldVault_impl,
|
|
10631
10383
|
functionName: "depositToYieldVault",
|
|
10632
|
-
getCore:
|
|
10633
|
-
try {
|
|
10634
|
-
return getCore(getDefaultClient());
|
|
10635
|
-
} catch {
|
|
10636
|
-
return;
|
|
10637
|
-
}
|
|
10638
|
-
}
|
|
10384
|
+
getCore: resolveInstrumentationCore
|
|
10639
10385
|
});
|
|
10640
10386
|
|
|
10641
10387
|
//#endregion
|
|
@@ -10801,13 +10547,7 @@ const __withdrawFromYieldVault_impl = withdrawFromYieldVault;
|
|
|
10801
10547
|
const __withdrawFromYieldVault_wrapped = instrumentFunction({
|
|
10802
10548
|
fn: __withdrawFromYieldVault_impl,
|
|
10803
10549
|
functionName: "withdrawFromYieldVault",
|
|
10804
|
-
getCore:
|
|
10805
|
-
try {
|
|
10806
|
-
return getCore(getDefaultClient());
|
|
10807
|
-
} catch {
|
|
10808
|
-
return;
|
|
10809
|
-
}
|
|
10810
|
-
}
|
|
10550
|
+
getCore: resolveInstrumentationCore
|
|
10811
10551
|
});
|
|
10812
10552
|
|
|
10813
10553
|
//#endregion
|
|
@@ -10891,5 +10631,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
10891
10631
|
assertPackageVersion(name, version);
|
|
10892
10632
|
|
|
10893
10633
|
//#endregion
|
|
10894
|
-
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 };
|
|
10634
|
+
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 };
|
|
10895
10635
|
//# sourceMappingURL=index.esm.js.map
|