@dynamic-labs-sdk/client 1.12.2 → 1.13.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/{InvalidParamError-B0nAZ6Ei.esm.js → InvalidParamError-BeCPhfVz.esm.js} +47 -47
- package/dist/InvalidParamError-BeCPhfVz.esm.js.map +1 -0
- package/dist/{InvalidParamError-DDdAeFXE.cjs → InvalidParamError-C7c-OLz1.cjs} +48 -48
- package/dist/InvalidParamError-C7c-OLz1.cjs.map +1 -0
- package/dist/{InvalidParamError-DbUJgYDE.native.esm.js → InvalidParamError-CGiSxym5.native.esm.js} +36 -36
- package/dist/InvalidParamError-CGiSxym5.native.esm.js.map +1 -0
- package/dist/client/core/createCore/createCore.d.ts +1 -1
- package/dist/client/core/createCore/getInitialState.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts.map +1 -1
- package/dist/client/defaultClient/defaultClient.d.ts +2 -2
- package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +23 -23
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +23 -23
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +23 -23
- package/dist/core.native.esm.js.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js → getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js} +50 -50
- package/dist/getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DaMxnWPo.esm.js → getNetworkProviderFromNetworkId-CP9gl1B1.esm.js} +44 -44
- package/dist/getNetworkProviderFromNetworkId-CP9gl1B1.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-1j3BPA22.cjs → getNetworkProviderFromNetworkId-D8cpx0xz.cjs} +45 -45
- package/dist/getNetworkProviderFromNetworkId-D8cpx0xz.cjs.map +1 -0
- package/dist/{getSignedSessionId-BU81jCyQ.cjs → getSignedSessionId-BeK0vWep.cjs} +7 -7
- package/dist/getSignedSessionId-BeK0vWep.cjs.map +1 -0
- package/dist/{getSignedSessionId-BRklPjP0.esm.js → getSignedSessionId-Bq7xBsA3.esm.js} +7 -7
- package/dist/getSignedSessionId-Bq7xBsA3.esm.js.map +1 -0
- package/dist/{getSignedSessionId-DPj38qtY.native.esm.js → getSignedSessionId-D9w3Wbhk.native.esm.js} +7 -7
- package/dist/getSignedSessionId-D9w3Wbhk.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js → getWaasWalletProviderFromWalletAccount-BKHO68FO.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-BKHO68FO.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js → getWaasWalletProviderFromWalletAccount-BzpLoZTm.native.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-BzpLoZTm.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs → getWaasWalletProviderFromWalletAccount-CfqTF_82.cjs} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-CfqTF_82.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-C-HHI7L8.esm.js → getWalletProviderByKey-BMzoL_69.esm.js} +15 -15
- package/dist/getWalletProviderByKey-BMzoL_69.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-z1nf15R8.cjs → getWalletProviderByKey-DCKYAida.cjs} +16 -16
- package/dist/getWalletProviderByKey-DCKYAida.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-BKRul8sp.native.esm.js → getWalletProviderByKey-DDDxBsdv.native.esm.js} +26 -26
- package/dist/getWalletProviderByKey-DDDxBsdv.native.esm.js.map +1 -0
- package/dist/index.cjs +186 -186
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +186 -186
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +184 -184
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js → isDynamicWaasEnabled-BMQq5uNX.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js.map → isDynamicWaasEnabled-BMQq5uNX.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs → isDynamicWaasEnabled-BtbzDbdz.cjs} +4 -4
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs.map → isDynamicWaasEnabled-BtbzDbdz.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js → isDynamicWaasEnabled-ChdeBFbN.native.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js.map → isDynamicWaasEnabled-ChdeBFbN.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-YGaK8XRO.cjs → isMfaRequiredForAction-CgWBU6kM.cjs} +11 -11
- package/dist/isMfaRequiredForAction-CgWBU6kM.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-BAqo9eBq.esm.js → isMfaRequiredForAction-Diwsf9GB.esm.js} +11 -11
- package/dist/isMfaRequiredForAction-Diwsf9GB.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js → isMfaRequiredForAction-dAtK8Pl6.native.esm.js} +4 -4
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js.map → isMfaRequiredForAction-dAtK8Pl6.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-BT_SR4m_.esm.js → isUserOnboardingComplete-D4Y3sdr3.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-D4Y3sdr3.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-CVHzzTtG.native.esm.js → isUserOnboardingComplete-DO2_gSAp.native.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-DO2_gSAp.native.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-Bo9grSze.cjs → isUserOnboardingComplete-OP4uyUlE.cjs} +8 -8
- package/dist/isUserOnboardingComplete-OP4uyUlE.cjs.map +1 -0
- package/dist/modules/apiClient/createApiClient.d.ts +1 -1
- package/dist/modules/apiClient/utils/clientErrorMapper/clientErrorMapper.d.ts +1 -1
- package/dist/modules/apiClient/utils/convertToApiErrorMiddleware/convertToApiErrorMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts.map +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts.map +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts.map +1 -1
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +1 -1
- package/dist/modules/auth/extractSessionId/extractSessionId.d.ts +1 -1
- package/dist/modules/auth/getElevatedAccessToken/getElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/initializeAuth/initializeAuth.d.ts +1 -1
- package/dist/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.d.ts +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +1 -1
- package/dist/modules/auth/logout/logout.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/upsertElevatedAccessToken/upsertElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/balances/getBalances/getBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +1 -1
- package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +2 -2
- package/dist/modules/captcha/consumeCaptchaToken/consumeCaptchaToken.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
- package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts.map +1 -1
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutTransactionChannelSchema/createCheckoutTransactionChannelSchema.d.ts +1 -1
- package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +1 -1
- package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +4 -4
- package/dist/modules/crossTabEventSync/setupCrossTabEventSync/setupCrossTabEventSync.d.ts +1 -1
- package/dist/modules/deviceRegistration/detectDeviceRegistrationRedirect/detectDeviceRegistrationRedirect.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceRegistrationTokenFromUrl/getDeviceRegistrationTokenFromUrl.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -1
- package/dist/modules/extension/hasExtension/hasExtension.d.ts +1 -1
- package/dist/modules/extension/registerExtension/registerExtension.d.ts +1 -1
- package/dist/modules/flow/getFlow/getFlow.d.ts +1 -1
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +1 -1
- package/dist/modules/flow/utils/clearFlowSessionToken/clearFlowSessionToken.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts.map +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
- package/dist/modules/funding/coinbase/getMissingVerificationForCoinbaseOnrampOrder/getMissingVerificationForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts.map +1 -1
- package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +2 -2
- package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts.map +1 -1
- package/dist/modules/keychainMigration/migrateSessionKeyToKeychain/migrateSessionKeyToKeychain.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/collectInstalledGroupIds/collectInstalledGroupIds.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/excludeInstalledFromCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getSpriteUrl/getSpriteUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts +2 -2
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWalletForWalletConnect/shouldFilterWalletForWalletConnect.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalogWalletByWalletProviderKey/getWalletConnectCatalogWalletByWalletProviderKey.d.ts +1 -1
- package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts +1 -1
- package/dist/modules/legacyWalletBook/matchWalletProvidersToCatalogGroup/matchWalletProvidersToCatalogGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/shouldFilterWallet/shouldFilterWallet.d.ts +2 -2
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +1 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +1 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -1
- package/dist/modules/projectSettings/isCookieEnabled/isCookieEnabled.d.ts +1 -1
- package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts.map +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts.map +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts.map +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts.map +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts.map +1 -1
- package/dist/modules/swap/getSwapQuote/getSwapQuote.d.ts +1 -1
- package/dist/modules/swap/getSwapStatus/getSwapStatus.d.ts +1 -1
- package/dist/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.d.ts +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +1 -1
- package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createNativeWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/createWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.d.ts +2 -2
- package/dist/modules/waas/delegateWaasKeyShares/delegateWaasKeyShares.d.ts +1 -1
- package/dist/modules/waas/exportWaasClientKeyshares/exportWaasClientKeyshares.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKey/exportWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts.map +1 -1
- package/dist/modules/waas/getChainsMissingWaasWalletAccounts/getChainsMissingWaasWalletAccounts.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/waas/getWalletRecoveryState/getWalletRecoveryState.d.ts +1 -1
- package/dist/modules/waas/hasDelegatedAccess/hasDelegatedAccess.d.ts +1 -1
- package/dist/modules/waas/importWaasPrivateKey/importWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +1 -1
- package/dist/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.d.ts +1 -1
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletAccount/isWaasWalletAccount.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts.map +1 -1
- package/dist/modules/waas/isWalletCreationRequirement/isWalletCreationRequirement.d.ts +1 -1
- package/dist/modules/waas/normalizeWalletRequirements/normalizeWalletRequirements.d.ts +1 -1
- package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +1 -1
- package/dist/modules/waas/refreshWaasWalletAccountShares/refreshWaasWalletAccountShares.d.ts +1 -1
- package/dist/modules/waas/revokeWaasDelegation/revokeWaasDelegation.d.ts +1 -1
- package/dist/modules/waas/setWaasWalletAccountPassword/setWaasWalletAccountPassword.d.ts +1 -1
- package/dist/modules/waas/shouldAutoCreateWalletForChain/shouldAutoCreateWalletForChain.d.ts +1 -1
- package/dist/modules/waas/unlockWallet/unlockWallet.d.ts +1 -1
- package/dist/modules/waas/updateWaasPassword/updateWaasPassword.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/buildInAppBrowserOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/classifyWithWalletProviderSource/classifyWithWalletProviderSource.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/compareByRelevance/compareByRelevance.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findByNameMatch/findByNameMatch.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findWalletOptionKeyForProviderKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/resolveWalletOptionKey/resolveWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getPriorityIndex/getPriorityIndex.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/groupOptionsByWalletOption/groupOptionsByWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasAnyConnectionOption/hasAnyConnectionOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/normalizeWalletDisplayName/normalizeWalletDisplayName.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
- package/dist/modules/wallets/assertWalletAccountSigningAvailability/assertWalletAccountSigningAvailability.d.ts +1 -1
- package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/emitWalletAccountsChangedEvent/emitWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviders/getWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/canConnectWithHardwareWallet/canConnectWithHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/formatSignatureForHardwareWallet/formatSignatureForHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/isHardwareWalletAccount/isHardwareWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts +1 -1
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +1 -1
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkData/getActiveNetworkData.d.ts +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkId/getActiveNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.d.ts +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviders/getNetworkProviders.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworksData/getNetworksData.d.ts +1 -1
- package/dist/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.d.ts +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +1 -1
- package/dist/modules/wallets/networks/isProgrammaticNetworkSwitchAvailable/isProgrammaticNetworkSwitchAvailable.d.ts +1 -1
- package/dist/modules/wallets/networks/lastKnownNetworkRegistry/createLastKnownNetworkRegistry/createLastKnownNetworkRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/removeUnverifiedWalletAccount/removeUnverifiedWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/setUnverifiedWalletAccounts/setUnverifiedWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts.map +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatSignInMessage/formatSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeWalletNameWithChain/normalizeWalletNameWithChain.d.ts +1 -1
- package/dist/modules/wallets/utils/stripChainSuffix/stripChainSuffix.d.ts +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +2 -2
- package/dist/modules/wallets/walletProvider/events/offWalletProviderEvent/offWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/extractChainFromNormalizedName/extractChainFromNormalizedName.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/createWalletProviderRegistry/createWalletProviderRegistry.d.ts +1 -1
- package/dist/{refreshAuth-CfpOd4qg.esm.js → refreshAuth-BTPctQtq.esm.js} +3 -3
- package/dist/{refreshAuth-CfpOd4qg.esm.js.map → refreshAuth-BTPctQtq.esm.js.map} +1 -1
- package/dist/{refreshAuth-C0kN3RBN.cjs → refreshAuth-ByIVzawo.cjs} +3 -3
- package/dist/{refreshAuth-C0kN3RBN.cjs.map → refreshAuth-ByIVzawo.cjs.map} +1 -1
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js → refreshAuth-C3issn5b.native.esm.js} +3 -3
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js.map → refreshAuth-C3issn5b.native.esm.js.map} +1 -1
- package/dist/services/asyncTrack/createAsyncTrack.d.ts +1 -1
- package/dist/services/crossTabBroadcast/createCrossTabBroadcast/createCrossTabBroadcast.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts.map +1 -1
- package/dist/services/fetch/createWebFetch.d.ts +1 -1
- package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/withDatabase/withDatabase.d.ts +1 -1
- package/dist/services/logger/createLogger/createLogger.d.ts +2 -2
- package/dist/services/nativeManifest/getReactNativeManifest/getReactNativeManifest.d.ts +1 -1
- package/dist/services/navigate/createNavigationHandler/createNavigationHandler.d.ts +1 -1
- package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +1 -1
- package/dist/services/passkey/createPasskeyService/createPasskeyService.d.ts +1 -1
- package/dist/services/realtime/createRealtimeChannelSchema/createRealtimeChannelSchema.d.ts +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServices/createRuntimeServices.d.ts +1 -1
- package/dist/services/storage/createLocalStorageAdapter/createLocalStorageAdapter.d.ts +1 -1
- package/dist/services/storage/createStorage/createStorage.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/isValidDateISOString/isValidDateISOString.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts +2 -2
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts.map +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +1 -1
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts +1 -1
- package/dist/utils/base64urlFromBytes/base64urlFromBytes.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts.map +1 -1
- package/dist/utils/bufferToHex/bufferToHex.d.ts +1 -1
- package/dist/utils/bytesFromBase64url/bytesFromBase64url.d.ts +1 -1
- package/dist/utils/compressRawPublicKey/compressRawPublicKey.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts.map +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts.map +1 -1
- package/dist/utils/derToP1363/derToP1363.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts.map +1 -1
- package/dist/utils/encodeBase64Url/encodeBase64Url.d.ts +1 -1
- package/dist/utils/filterDuplicates/filterDuplicates.d.ts +1 -1
- package/dist/utils/getAppMetadata/getAppMetadata.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts.map +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts.map +1 -1
- package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts +1 -1
- package/dist/utils/getKeychainIndexedDBName/getKeychainIndexedDBName.d.ts +1 -1
- package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts +1 -1
- package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +1 -1
- package/dist/utils/getNonce/getNonce.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts.map +1 -1
- package/dist/utils/getOperatingSystem/getOperatingSystem.d.ts +1 -1
- package/dist/utils/getPlatform/getPlatform.d.ts +1 -1
- package/dist/utils/getUserAgent/getUserAgent.d.ts +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts +1 -1
- package/dist/utils/isError/isError.d.ts +1 -1
- package/dist/utils/isErrorWithCode/isErrorWithCode.d.ts +1 -1
- package/dist/utils/isMobile/isMobile.d.ts +16 -16
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/isServerSideRendering/isServerSideRendering.d.ts +1 -1
- package/dist/utils/observable/createObservableState/createObservableState.d.ts +1 -1
- package/dist/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts.map +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts.map +1 -1
- package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts.map +1 -1
- package/dist/utils/randomString/randomString.d.ts +1 -1
- package/dist/utils/randomString/randomString.d.ts.map +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts.map +1 -1
- package/dist/utils/setCookie/setCookie.d.ts +1 -1
- package/dist/waas.cjs +27 -27
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +26 -26
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +26 -26
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +15 -11
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +15 -11
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +18 -14
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/InvalidParamError-B0nAZ6Ei.esm.js.map +0 -1
- package/dist/InvalidParamError-DDdAeFXE.cjs.map +0 -1
- package/dist/InvalidParamError-DbUJgYDE.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-1j3BPA22.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DaMxnWPo.esm.js.map +0 -1
- package/dist/getSignedSessionId-BRklPjP0.esm.js.map +0 -1
- package/dist/getSignedSessionId-BU81jCyQ.cjs.map +0 -1
- package/dist/getSignedSessionId-DPj38qtY.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs.map +0 -1
- package/dist/getWalletProviderByKey-BKRul8sp.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-C-HHI7L8.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-z1nf15R8.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-BAqo9eBq.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-YGaK8XRO.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-BT_SR4m_.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-Bo9grSze.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-CVHzzTtG.native.esm.js.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as getOperatingSystem, A as fetchAndStoreNonces, B as LinkCredentialError, C as splitWalletProviderKey, D as onEvent, E as offEvent, G as assertDefined, H as APIError, I as getNonce, J as instrumentFunction, K as ValueMustBeDefinedError, L as SandboxMaximumThresholdReachedError, M as UnauthorizedError, O as onceEvent, Q as getPlatform, R as MfaRateLimitedError, S as normalizeAddress, T as emitEvent, V as InvalidExternalAuthError, W as isCookieEnabled, X as DEFAULT_PII_FIELDS, Y as scrubParameters, Z as getUserAgent, at as getDefaultClient, b as CHAINS_INFO_MAP, c as SDK_API_CORE_VERSION, ct as BaseError, d as WalletProviderPriority, dt as version, et as extractSessionId, f as getWalletProviderRegistry, h as getWalletAccounts, it as NONCE_POOL_SIZE, j as createApiClient, lt as getCore, m as NoWalletProviderFoundError, o as isUserMissingMfaAuth, ot as setDefaultClient, q as __getElevatedAccessToken_wrapped, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as randomString, u as getWalletProviderFromWalletAccount, ut as name, x as formatWalletAccountId, y as getChainFromVerifiedCredentialChain, z as MfaInvalidOtpError } from "./InvalidParamError-
|
|
2
|
-
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
4
|
-
import { a as parseElevatedAccessToken, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent } from "./getWalletProviderByKey-
|
|
5
|
-
import { t as __refreshAuth_wrapped } from "./refreshAuth-
|
|
6
|
-
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-
|
|
7
|
-
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-
|
|
1
|
+
import { $ as getOperatingSystem, A as fetchAndStoreNonces, B as LinkCredentialError, C as splitWalletProviderKey, D as onEvent, E as offEvent, G as assertDefined, H as APIError, I as getNonce, J as instrumentFunction, K as ValueMustBeDefinedError, L as SandboxMaximumThresholdReachedError, M as UnauthorizedError, O as onceEvent, Q as getPlatform, R as MfaRateLimitedError, S as normalizeAddress, T as emitEvent, V as InvalidExternalAuthError, W as isCookieEnabled, X as DEFAULT_PII_FIELDS, Y as scrubParameters, Z as getUserAgent, at as getDefaultClient, b as CHAINS_INFO_MAP, c as SDK_API_CORE_VERSION, ct as BaseError, d as WalletProviderPriority, dt as version, et as extractSessionId, f as getWalletProviderRegistry, h as getWalletAccounts, it as NONCE_POOL_SIZE, j as createApiClient, lt as getCore, m as NoWalletProviderFoundError, o as isUserMissingMfaAuth, ot as setDefaultClient, q as __getElevatedAccessToken_wrapped, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as randomString, u as getWalletProviderFromWalletAccount, ut as name, x as formatWalletAccountId, y as getChainFromVerifiedCredentialChain, z as MfaInvalidOtpError } from "./InvalidParamError-BeCPhfVz.esm.js";
|
|
2
|
+
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-CP9gl1B1.esm.js";
|
|
3
|
+
import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-Diwsf9GB.esm.js";
|
|
4
|
+
import { a as parseElevatedAccessToken, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent } from "./getWalletProviderByKey-BMzoL_69.esm.js";
|
|
5
|
+
import { t as __refreshAuth_wrapped } from "./refreshAuth-BTPctQtq.esm.js";
|
|
6
|
+
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-BMQq5uNX.esm.js";
|
|
7
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-D4Y3sdr3.esm.js";
|
|
8
8
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
9
9
|
import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
10
10
|
import * as z from "zod/mini";
|
|
@@ -30,7 +30,7 @@ const stateChangeEvents = {
|
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
|
|
33
|
-
/** @
|
|
33
|
+
/** @notInstrumented */
|
|
34
34
|
const prefetchNoncesIfNeeded = async (client) => {
|
|
35
35
|
if (getCore(client).state.get().prefetchedNonces.length >= NONCE_POOL_SIZE) return;
|
|
36
36
|
await fetchAndStoreNonces(client);
|
|
@@ -42,7 +42,7 @@ const prefetchNoncesIfNeeded = async (client) => {
|
|
|
42
42
|
* Creates a new runtime services instance that manages service registration and retrieval.
|
|
43
43
|
*
|
|
44
44
|
* @returns A RuntimeServices object with methods to get, register, and unregister services
|
|
45
|
-
* @
|
|
45
|
+
* @notInstrumented
|
|
46
46
|
*/
|
|
47
47
|
const createRuntimeServices = () => {
|
|
48
48
|
const registry = /* @__PURE__ */ new Map();
|
|
@@ -57,7 +57,7 @@ const createRuntimeServices = () => {
|
|
|
57
57
|
//#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
|
|
58
58
|
/**
|
|
59
59
|
* A replacement for setTimeout that supports delays longer than 2147483647ms (~24.8 days).
|
|
60
|
-
* @
|
|
60
|
+
* @notInstrumented
|
|
61
61
|
*/
|
|
62
62
|
const setLongTimeout = ({ callback, delay }) => {
|
|
63
63
|
const MAX_DELAY = 2147483647;
|
|
@@ -80,7 +80,7 @@ const setLongTimeout = ({ callback, delay }) => {
|
|
|
80
80
|
//#region src/modules/auth/initializeAuth/initializeAuth.ts
|
|
81
81
|
/**
|
|
82
82
|
* Sets up a timeout to log out the user when their token expires.
|
|
83
|
-
* @
|
|
83
|
+
* @notInstrumented
|
|
84
84
|
*/
|
|
85
85
|
const initializeAuth = (client) => {
|
|
86
86
|
const core = getCore(client);
|
|
@@ -122,7 +122,7 @@ const initializeAuth = (client) => {
|
|
|
122
122
|
* - Emits corresponding "*InAnotherTab" events on core.eventEmitter
|
|
123
123
|
*
|
|
124
124
|
* @param client - The Dynamic client instance
|
|
125
|
-
* @
|
|
125
|
+
* @notInstrumented
|
|
126
126
|
*/
|
|
127
127
|
const setupCrossTabEventSync = (client) => {
|
|
128
128
|
const core = getCore(client);
|
|
@@ -214,7 +214,7 @@ var KeyMigrationError = class extends BaseError {
|
|
|
214
214
|
*
|
|
215
215
|
* Idempotent: skips if the keychain already has a `session` key.
|
|
216
216
|
* Throws on failure — callers should handle errors (e.g. .catch(() => logout(client))).
|
|
217
|
-
* @
|
|
217
|
+
* @notInstrumented
|
|
218
218
|
*/
|
|
219
219
|
const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage }) => {
|
|
220
220
|
if (isServerSideRendering()) return;
|
|
@@ -259,7 +259,7 @@ const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage })
|
|
|
259
259
|
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/modules/state/raiseStateEvents/raiseStateEvents.ts
|
|
262
|
-
/** @
|
|
262
|
+
/** @notInstrumented */
|
|
263
263
|
const raiseStateEvents = (client) => {
|
|
264
264
|
getCore(client).state.subscribe((value, previous) => {
|
|
265
265
|
Object.entries(stateChangeEvents).forEach(([key, event]) => {
|
|
@@ -274,7 +274,7 @@ const raiseStateEvents = (client) => {
|
|
|
274
274
|
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts
|
|
277
|
-
/** @
|
|
277
|
+
/** @notInstrumented */
|
|
278
278
|
const hydrateStateWithStorage = async (client) => {
|
|
279
279
|
const core = getCore(client);
|
|
280
280
|
const previousState = core.state.get();
|
|
@@ -312,7 +312,7 @@ const hydrateStateWithStorage = async (client) => {
|
|
|
312
312
|
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts
|
|
315
|
-
/** @
|
|
315
|
+
/** @notInstrumented */
|
|
316
316
|
const syncStateWithStorage = (client) => {
|
|
317
317
|
const core = getCore(client);
|
|
318
318
|
core.state.subscribe((state) => {
|
|
@@ -345,7 +345,7 @@ const syncStateWithStorage = (client) => {
|
|
|
345
345
|
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/modules/storageSync/initializeStorageSync.ts
|
|
348
|
-
/** @
|
|
348
|
+
/** @notInstrumented */
|
|
349
349
|
const initializeStorageSync = async (client) => {
|
|
350
350
|
await hydrateStateWithStorage(client);
|
|
351
351
|
syncStateWithStorage(client);
|
|
@@ -536,7 +536,7 @@ const __initializeClient_wrapped = instrumentFunction({
|
|
|
536
536
|
//#region src/services/asyncTrack/createAsyncTrack.ts
|
|
537
537
|
/**
|
|
538
538
|
* Creates a tracker that associates names with promises and raises as promises resolve.
|
|
539
|
-
* @
|
|
539
|
+
* @notInstrumented
|
|
540
540
|
*/
|
|
541
541
|
const createAsyncTrack = () => {
|
|
542
542
|
/**
|
|
@@ -592,7 +592,7 @@ const createAsyncTrack = () => {
|
|
|
592
592
|
|
|
593
593
|
//#endregion
|
|
594
594
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
595
|
-
/** @
|
|
595
|
+
/** @notInstrumented */
|
|
596
596
|
const createEventEmitter = () => new EventEmitter();
|
|
597
597
|
|
|
598
598
|
//#endregion
|
|
@@ -613,7 +613,7 @@ var UnavailableInServerSideError = class extends BaseError {
|
|
|
613
613
|
//#region src/services/fetch/createWebFetch.ts
|
|
614
614
|
/**
|
|
615
615
|
* Creates a fetch instance that uses the native window.fetch API.
|
|
616
|
-
* @
|
|
616
|
+
* @notInstrumented
|
|
617
617
|
*/
|
|
618
618
|
const createWebFetch = () => {
|
|
619
619
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebFetch"));
|
|
@@ -629,7 +629,7 @@ const createWebFetch = () => {
|
|
|
629
629
|
* Bridges the logger and instrumentation subsystems without coupling them
|
|
630
630
|
* at construction time — either can exist without the other.
|
|
631
631
|
* Only error-level log entries are forwarded.
|
|
632
|
-
* @
|
|
632
|
+
* @notInstrumented
|
|
633
633
|
*/
|
|
634
634
|
const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumentation, logger, sdkSessionId, sdkVersion, state }) => {
|
|
635
635
|
logger.on("log", (level, message, ...args) => {
|
|
@@ -674,7 +674,7 @@ const buildPiiFields = (customFields = []) => {
|
|
|
674
674
|
*
|
|
675
675
|
* Custom piiFields are merged with and deduplicated against the defaults so
|
|
676
676
|
* callers only need to list additional fields, not replicate the baseline.
|
|
677
|
-
* @
|
|
677
|
+
* @notInstrumented
|
|
678
678
|
*/
|
|
679
679
|
const createInstrumentation = ({ config: inputConfig } = {}) => {
|
|
680
680
|
let transport;
|
|
@@ -716,7 +716,7 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
|
|
|
716
716
|
*
|
|
717
717
|
* Works in both browser and SSR environments — fetch is injected and
|
|
718
718
|
* queueMicrotask is available in Node.js >= 11.
|
|
719
|
-
* @
|
|
719
|
+
* @notInstrumented
|
|
720
720
|
*/
|
|
721
721
|
const createDynamicTransport = (params) => {
|
|
722
722
|
const queue = [];
|
|
@@ -745,7 +745,7 @@ const createDynamicTransport = (params) => {
|
|
|
745
745
|
//#region src/services/navigate/createNavigationHandler/createNavigationHandler.ts
|
|
746
746
|
/**
|
|
747
747
|
* Creates a navigation handler that uses the native window.location API.
|
|
748
|
-
* @
|
|
748
|
+
* @notInstrumented
|
|
749
749
|
*/
|
|
750
750
|
const createNavigationHandler = () => {
|
|
751
751
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createNavigationHandler"));
|
|
@@ -768,7 +768,7 @@ const createNavigationHandler = () => {
|
|
|
768
768
|
* the browser focuses the lingering about:blank after the redirect tab closes.
|
|
769
769
|
* `window.location.assign` reuses the current tab, avoiding the extra tab
|
|
770
770
|
* entirely.
|
|
771
|
-
* @
|
|
771
|
+
* @notInstrumented
|
|
772
772
|
*/
|
|
773
773
|
const createWebDeeplinkOpener = () => {
|
|
774
774
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebDeeplinkOpener"));
|
|
@@ -782,7 +782,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
782
782
|
/**
|
|
783
783
|
* Because this is the web implementation of the passkey service, we need to
|
|
784
784
|
* import the browser's WebAuthn API directly.
|
|
785
|
-
* @
|
|
785
|
+
* @notInstrumented
|
|
786
786
|
*/
|
|
787
787
|
/**
|
|
788
788
|
* Create a passkey service that uses the browser's WebAuthn API.
|
|
@@ -790,7 +790,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
790
790
|
* Metadata is accepted for parity with the native implementation (which uses
|
|
791
791
|
* `universalLink` to validate the associated domain) but is unused on web —
|
|
792
792
|
* the browser derives the relying party from `window.location.origin`.
|
|
793
|
-
* @
|
|
793
|
+
* @notInstrumented
|
|
794
794
|
*/
|
|
795
795
|
const createPasskeyService = (_params) => ({
|
|
796
796
|
authenticate: (options) => startAuthentication(options),
|
|
@@ -800,7 +800,7 @@ const createPasskeyService = (_params) => ({
|
|
|
800
800
|
|
|
801
801
|
//#endregion
|
|
802
802
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
803
|
-
/** @
|
|
803
|
+
/** @notInstrumented */
|
|
804
804
|
const createDebouncedMutex = () => {
|
|
805
805
|
const mutexState = /* @__PURE__ */ new Map();
|
|
806
806
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -885,7 +885,7 @@ var InvalidStorageValue = class extends BaseError {
|
|
|
885
885
|
* // Unsubscribe when done
|
|
886
886
|
* unsubscribe();
|
|
887
887
|
* ```
|
|
888
|
-
* @
|
|
888
|
+
* @notInstrumented
|
|
889
889
|
*/
|
|
890
890
|
const createObservableState = (getInitialState$1) => {
|
|
891
891
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -929,7 +929,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
929
929
|
//#region src/client/core/createCore/getInitialState.ts
|
|
930
930
|
/**
|
|
931
931
|
* The initial values for the state of the client.
|
|
932
|
-
* @
|
|
932
|
+
* @notInstrumented
|
|
933
933
|
*/
|
|
934
934
|
const getInitialState = () => ({
|
|
935
935
|
captchaToken: null,
|
|
@@ -954,7 +954,7 @@ const getInitialState = () => ({
|
|
|
954
954
|
//#region src/client/core/createCore/createCore.ts
|
|
955
955
|
/**
|
|
956
956
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
957
|
-
* @
|
|
957
|
+
* @notInstrumented
|
|
958
958
|
*/
|
|
959
959
|
const createCore = (config) => {
|
|
960
960
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1655,7 +1655,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1655
1655
|
*
|
|
1656
1656
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1657
1657
|
* @returns A promise that resolves when the logout process is complete.
|
|
1658
|
-
* @
|
|
1658
|
+
* @notInstrumented
|
|
1659
1659
|
*/
|
|
1660
1660
|
const logout = async (client = getDefaultClient()) => {
|
|
1661
1661
|
/**
|
|
@@ -1710,7 +1710,7 @@ const __deletePasskey_wrapped = instrumentFunction({
|
|
|
1710
1710
|
*
|
|
1711
1711
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1712
1712
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1713
|
-
* @
|
|
1713
|
+
* @notInstrumented
|
|
1714
1714
|
*/
|
|
1715
1715
|
const getPasskeys = async (client = getDefaultClient()) => {
|
|
1716
1716
|
const core = getCore(client);
|
|
@@ -1719,7 +1719,7 @@ const getPasskeys = async (client = getDefaultClient()) => {
|
|
|
1719
1719
|
|
|
1720
1720
|
//#endregion
|
|
1721
1721
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1722
|
-
/** @
|
|
1722
|
+
/** @notInstrumented */
|
|
1723
1723
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1724
1724
|
const core = getCore(client);
|
|
1725
1725
|
return await createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1727,7 +1727,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1727
1727
|
|
|
1728
1728
|
//#endregion
|
|
1729
1729
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1730
|
-
/** @
|
|
1730
|
+
/** @notInstrumented */
|
|
1731
1731
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1732
1732
|
const core = getCore(client);
|
|
1733
1733
|
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1786,7 +1786,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1786
1786
|
|
|
1787
1787
|
//#endregion
|
|
1788
1788
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1789
|
-
/** @
|
|
1789
|
+
/** @notInstrumented */
|
|
1790
1790
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1791
1791
|
const core = getCore(client);
|
|
1792
1792
|
return await createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1797,7 +1797,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1797
1797
|
|
|
1798
1798
|
//#endregion
|
|
1799
1799
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1800
|
-
/** @
|
|
1800
|
+
/** @notInstrumented */
|
|
1801
1801
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1802
1802
|
const core = getCore(client);
|
|
1803
1803
|
return await createApiClient({}, client).signinWithPasskey({
|
|
@@ -1857,7 +1857,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1857
1857
|
*
|
|
1858
1858
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1859
1859
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1860
|
-
* @
|
|
1860
|
+
* @notInstrumented
|
|
1861
1861
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1862
1862
|
*/
|
|
1863
1863
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
@@ -1876,7 +1876,7 @@ const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
|
1876
1876
|
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts
|
|
1879
|
-
/** @
|
|
1879
|
+
/** @notInstrumented */
|
|
1880
1880
|
const removeDynamicOauthParamsFromUrl = (url) => {
|
|
1881
1881
|
const urlObject = new URL(url);
|
|
1882
1882
|
urlObject.searchParams.delete("dynamicOauthState");
|
|
@@ -1898,7 +1898,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
1898
1898
|
|
|
1899
1899
|
//#endregion
|
|
1900
1900
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
1901
|
-
/** @
|
|
1901
|
+
/** @notInstrumented */
|
|
1902
1902
|
const digestSHA256 = (str) => {
|
|
1903
1903
|
const data = new TextEncoder().encode(str);
|
|
1904
1904
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -1911,7 +1911,7 @@ const digestSHA256 = (str) => {
|
|
|
1911
1911
|
*
|
|
1912
1912
|
* @param str - The string to encode as an ArrayBuffer.
|
|
1913
1913
|
* @returns The base64url encoded string.
|
|
1914
|
-
* @
|
|
1914
|
+
* @notInstrumented
|
|
1915
1915
|
*/
|
|
1916
1916
|
const encodeBase64Url = (str) => {
|
|
1917
1917
|
const numberArray = [];
|
|
@@ -1923,7 +1923,7 @@ const encodeBase64Url = (str) => {
|
|
|
1923
1923
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
1924
1924
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
1925
1925
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
1926
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
1926
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
1927
1927
|
*/
|
|
1928
1928
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
1929
1929
|
assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -1951,7 +1951,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
1951
1951
|
|
|
1952
1952
|
//#endregion
|
|
1953
1953
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
1954
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
1954
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
1955
1955
|
*/
|
|
1956
1956
|
const getOAuthBaseUrl = (provider) => {
|
|
1957
1957
|
assertDefined(provider.provider, "Provider type not found");
|
|
@@ -1972,7 +1972,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
1972
1972
|
//#endregion
|
|
1973
1973
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
1974
1974
|
const providersRequiringPkce = ["twitter", "github"];
|
|
1975
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
1975
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
1976
1976
|
*/
|
|
1977
1977
|
const buildOAuthUrl = async (core, provider) => {
|
|
1978
1978
|
const { projectSettings } = core.state.get();
|
|
@@ -2100,7 +2100,7 @@ const __authenticateWithSocial_wrapped = instrumentFunction({
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2102
2102
|
const core = getCore(client);
|
|
2103
|
-
const apiClient = createApiClient({}, client);
|
|
2103
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2104
2104
|
await core.initTrack.waitForAll();
|
|
2105
2105
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2106
2106
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2218,7 +2218,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
|
2218
2218
|
* @param params.url - The URL to check for OAuth redirect parameters.
|
|
2219
2219
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2220
2220
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
2221
|
-
* @
|
|
2221
|
+
* @notInstrumented
|
|
2222
2222
|
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
2223
2223
|
*/
|
|
2224
2224
|
const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
|
|
@@ -2236,7 +2236,7 @@ const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) =>
|
|
|
2236
2236
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2237
2237
|
* removed in a future major version.
|
|
2238
2238
|
*
|
|
2239
|
-
* @
|
|
2239
|
+
* @notInstrumented
|
|
2240
2240
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2241
2241
|
*/
|
|
2242
2242
|
const detectOAuthRedirect = (params, client = getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2277,7 +2277,7 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
|
2277
2277
|
* The primary wallet account is the one that was last selected by the user.
|
|
2278
2278
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2279
2279
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2280
|
-
* @
|
|
2280
|
+
* @notInstrumented
|
|
2281
2281
|
*/
|
|
2282
2282
|
const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
2283
2283
|
const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2350,7 +2350,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2350
2350
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2351
2351
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2352
2352
|
* @returns A promise that resolves to an array of token balances.
|
|
2353
|
-
* @
|
|
2353
|
+
* @notInstrumented
|
|
2354
2354
|
*/
|
|
2355
2355
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = getDefaultClient()) => {
|
|
2356
2356
|
const core = getCore(client);
|
|
@@ -2381,7 +2381,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2381
2381
|
* longer confusable with the native-only `getBalance` or the
|
|
2382
2382
|
* multi-chain `getMultichainTokenBalances`.
|
|
2383
2383
|
*
|
|
2384
|
-
* @
|
|
2384
|
+
* @notInstrumented
|
|
2385
2385
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2386
2386
|
*/
|
|
2387
2387
|
const getBalances = (params, client = getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2400,7 +2400,7 @@ const getBalances = (params, client = getDefaultClient()) => getTokenBalances(pa
|
|
|
2400
2400
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2401
2401
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2402
2402
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2403
|
-
* @
|
|
2403
|
+
* @notInstrumented
|
|
2404
2404
|
*/
|
|
2405
2405
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaultClient()) => {
|
|
2406
2406
|
const core = getCore(client);
|
|
@@ -2417,14 +2417,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2417
2417
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2418
2418
|
* token balances (not native-only) across multiple chains.
|
|
2419
2419
|
*
|
|
2420
|
-
* @
|
|
2420
|
+
* @notInstrumented
|
|
2421
2421
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2422
2422
|
*/
|
|
2423
2423
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2424
2424
|
|
|
2425
2425
|
//#endregion
|
|
2426
2426
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2427
|
-
/** @
|
|
2427
|
+
/** @notInstrumented */
|
|
2428
2428
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2429
2429
|
return createStorageKeySchema({
|
|
2430
2430
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2434,7 +2434,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2434
2434
|
|
|
2435
2435
|
//#endregion
|
|
2436
2436
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2437
|
-
/** @
|
|
2437
|
+
/** @notInstrumented */
|
|
2438
2438
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2439
2439
|
const core = getCore(client);
|
|
2440
2440
|
const apiClient = createApiClient({}, client);
|
|
@@ -2463,7 +2463,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2463
2463
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2464
2464
|
* defense-in-depth.
|
|
2465
2465
|
*
|
|
2466
|
-
* @
|
|
2466
|
+
* @notInstrumented
|
|
2467
2467
|
*/
|
|
2468
2468
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2469
2469
|
await getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2478,7 +2478,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2478
2478
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2479
2479
|
* requests that are guaranteed to fail.
|
|
2480
2480
|
*
|
|
2481
|
-
* @
|
|
2481
|
+
* @notInstrumented
|
|
2482
2482
|
*/
|
|
2483
2483
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2484
2484
|
try {
|
|
@@ -2626,7 +2626,7 @@ const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2626
2626
|
|
|
2627
2627
|
//#endregion
|
|
2628
2628
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2629
|
-
/** @
|
|
2629
|
+
/** @notInstrumented */
|
|
2630
2630
|
const getCheckouts = async (client) => {
|
|
2631
2631
|
const projectSettings = client.projectSettings;
|
|
2632
2632
|
assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2692,7 +2692,7 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2692
2692
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2693
2693
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2694
2694
|
* @returns The checkout transaction
|
|
2695
|
-
* @
|
|
2695
|
+
* @notInstrumented
|
|
2696
2696
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2697
2697
|
*/
|
|
2698
2698
|
const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
|
|
@@ -2713,7 +2713,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
|
|
|
2713
2713
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2714
2714
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2715
2715
|
* @returns The updated checkout transaction with quote data
|
|
2716
|
-
* @
|
|
2716
|
+
* @notInstrumented
|
|
2717
2717
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2718
2718
|
*/
|
|
2719
2719
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
|
|
@@ -2818,7 +2818,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2818
2818
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2819
2819
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2820
2820
|
*
|
|
2821
|
-
* @
|
|
2821
|
+
* @notInstrumented
|
|
2822
2822
|
*/
|
|
2823
2823
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2824
2824
|
const { logger } = getCore(client);
|
|
@@ -2948,7 +2948,7 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2948
2948
|
*
|
|
2949
2949
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
2950
2950
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2951
|
-
* @
|
|
2951
|
+
* @notInstrumented
|
|
2952
2952
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2953
2953
|
*/
|
|
2954
2954
|
const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
@@ -2971,7 +2971,7 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
|
2971
2971
|
* @param params - The from token details and the checkout's settlement config.
|
|
2972
2972
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2973
2973
|
* @returns Whether a token conversion is required
|
|
2974
|
-
* @
|
|
2974
|
+
* @notInstrumented
|
|
2975
2975
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2976
2976
|
*/
|
|
2977
2977
|
const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
|
|
@@ -3016,7 +3016,7 @@ const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
|
3016
3016
|
*
|
|
3017
3017
|
* @returns The device token as a string if valid.
|
|
3018
3018
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3019
|
-
* @
|
|
3019
|
+
* @notInstrumented
|
|
3020
3020
|
*/
|
|
3021
3021
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3022
3022
|
let urlObject;
|
|
@@ -3039,7 +3039,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3039
3039
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3040
3040
|
*
|
|
3041
3041
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3042
|
-
* @
|
|
3042
|
+
* @notInstrumented
|
|
3043
3043
|
*/
|
|
3044
3044
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3045
3045
|
try {
|
|
@@ -3052,7 +3052,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3052
3052
|
|
|
3053
3053
|
//#endregion
|
|
3054
3054
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3055
|
-
/** @
|
|
3055
|
+
/** @notInstrumented */
|
|
3056
3056
|
const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
3057
3057
|
const core = getCore(client);
|
|
3058
3058
|
const apiClient = createApiClient({}, client);
|
|
@@ -3115,7 +3115,7 @@ const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
|
3115
3115
|
|
|
3116
3116
|
//#endregion
|
|
3117
3117
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3118
|
-
/** @
|
|
3118
|
+
/** @notInstrumented */
|
|
3119
3119
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3120
3120
|
return createStorageKeySchema({
|
|
3121
3121
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3139,7 +3139,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3139
3139
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3140
3140
|
* defense-in-depth.
|
|
3141
3141
|
*
|
|
3142
|
-
* @
|
|
3142
|
+
* @notInstrumented
|
|
3143
3143
|
*/
|
|
3144
3144
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3145
3145
|
await getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3154,7 +3154,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3154
3154
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3155
3155
|
* requests that are guaranteed to fail.
|
|
3156
3156
|
*
|
|
3157
|
-
* @
|
|
3157
|
+
* @notInstrumented
|
|
3158
3158
|
*/
|
|
3159
3159
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3160
3160
|
try {
|
|
@@ -3220,7 +3220,7 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3220
3220
|
|
|
3221
3221
|
//#endregion
|
|
3222
3222
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3223
|
-
/** @
|
|
3223
|
+
/** @notInstrumented */
|
|
3224
3224
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3225
3225
|
const core = getCore(client);
|
|
3226
3226
|
const apiClient = createApiClient({}, client);
|
|
@@ -3316,7 +3316,7 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3316
3316
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3317
3317
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3318
3318
|
* @returns The flow
|
|
3319
|
-
* @
|
|
3319
|
+
* @notInstrumented
|
|
3320
3320
|
*/
|
|
3321
3321
|
const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
3322
3322
|
const core = getCore(client);
|
|
@@ -3334,7 +3334,7 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
|
3334
3334
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3335
3335
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3336
3336
|
* @returns The updated flow with quote data
|
|
3337
|
-
* @
|
|
3337
|
+
* @notInstrumented
|
|
3338
3338
|
*/
|
|
3339
3339
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
|
|
3340
3340
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3449,7 +3449,7 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3449
3449
|
* @returns A function to remove the listener.
|
|
3450
3450
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3451
3451
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3452
|
-
* @
|
|
3452
|
+
* @notInstrumented
|
|
3453
3453
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3454
3454
|
*/
|
|
3455
3455
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultClient()) => {
|
|
@@ -3491,7 +3491,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultCl
|
|
|
3491
3491
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3492
3492
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3493
3493
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3494
|
-
* @
|
|
3494
|
+
* @notInstrumented
|
|
3495
3495
|
*/
|
|
3496
3496
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = getDefaultClient()) => {
|
|
3497
3497
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3529,7 +3529,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3529
3529
|
|
|
3530
3530
|
//#endregion
|
|
3531
3531
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3532
|
-
/** @
|
|
3532
|
+
/** @notInstrumented */
|
|
3533
3533
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3534
3534
|
const { user } = client;
|
|
3535
3535
|
assertDefined(user, "User is not authenticated");
|
|
@@ -3604,7 +3604,7 @@ const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
|
3604
3604
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3605
3605
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3606
3606
|
* @returns an object containing the buy URL
|
|
3607
|
-
* @
|
|
3607
|
+
* @notInstrumented
|
|
3608
3608
|
*/
|
|
3609
3609
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
3610
3610
|
const core = getCore(client);
|
|
@@ -3655,7 +3655,7 @@ const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
|
3655
3655
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3656
3656
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3657
3657
|
* @returns The created transfer
|
|
3658
|
-
* @
|
|
3658
|
+
* @notInstrumented
|
|
3659
3659
|
*/
|
|
3660
3660
|
const createKrakenExchangeTransfer = async (transferParams, client = getDefaultClient()) => {
|
|
3661
3661
|
const core = getCore(client);
|
|
@@ -3689,7 +3689,7 @@ const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
|
3689
3689
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3690
3690
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3691
3691
|
* @returns Array of Kraken accounts with balances
|
|
3692
|
-
* @
|
|
3692
|
+
* @notInstrumented
|
|
3693
3693
|
*/
|
|
3694
3694
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
3695
3695
|
const core = getCore(client);
|
|
@@ -3708,7 +3708,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
3708
3708
|
*
|
|
3709
3709
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3710
3710
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3711
|
-
* @
|
|
3711
|
+
* @notInstrumented
|
|
3712
3712
|
*/
|
|
3713
3713
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
3714
3714
|
const core = getCore(client);
|
|
@@ -3834,7 +3834,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3834
3834
|
* and are ready for use.
|
|
3835
3835
|
*
|
|
3836
3836
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3837
|
-
* @
|
|
3837
|
+
* @notInstrumented
|
|
3838
3838
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3839
3839
|
*/
|
|
3840
3840
|
const waitForClientInitialized = async (client = getDefaultClient()) => {
|
|
@@ -3885,7 +3885,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3885
3885
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3886
3886
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3887
3887
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3888
|
-
* @
|
|
3888
|
+
* @notInstrumented
|
|
3889
3889
|
*/
|
|
3890
3890
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3891
3891
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -3912,7 +3912,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
3912
3912
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
3913
3913
|
* the match once.
|
|
3914
3914
|
*
|
|
3915
|
-
* @
|
|
3915
|
+
* @notInstrumented
|
|
3916
3916
|
*/
|
|
3917
3917
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
3918
3918
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -3955,7 +3955,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
3955
3955
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
3956
3956
|
* @param params.walletProviders - Currently available wallet providers.
|
|
3957
3957
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
3958
|
-
* @
|
|
3958
|
+
* @notInstrumented
|
|
3959
3959
|
*/
|
|
3960
3960
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
3961
3961
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -3983,7 +3983,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
3983
3983
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
3984
3984
|
/**
|
|
3985
3985
|
* Default CDN URL for the wallet book.
|
|
3986
|
-
* @
|
|
3986
|
+
* @notInstrumented
|
|
3987
3987
|
*/
|
|
3988
3988
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
3989
3989
|
/**
|
|
@@ -3995,7 +3995,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
3995
3995
|
* 4. Default CDN URL
|
|
3996
3996
|
*
|
|
3997
3997
|
* @returns The wallet book CDN URL to use.
|
|
3998
|
-
* @
|
|
3998
|
+
* @notInstrumented
|
|
3999
3999
|
*/
|
|
4000
4000
|
const getWalletBookCdnUrl = () => {
|
|
4001
4001
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4009,7 +4009,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4009
4009
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4010
4010
|
/**
|
|
4011
4011
|
* The timeout for each fetch attempt in milliseconds.
|
|
4012
|
-
* @
|
|
4012
|
+
* @notInstrumented
|
|
4013
4013
|
*/
|
|
4014
4014
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4015
4015
|
/**
|
|
@@ -4017,7 +4017,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4017
4017
|
*
|
|
4018
4018
|
* @param client - The Dynamic client instance.
|
|
4019
4019
|
* @returns A promise that resolves to the wallet book data.
|
|
4020
|
-
* @
|
|
4020
|
+
* @notInstrumented
|
|
4021
4021
|
*/
|
|
4022
4022
|
const fetchWithTimeout = async (client) => {
|
|
4023
4023
|
const controller = new AbortController();
|
|
@@ -4049,7 +4049,7 @@ const walletBookCacheStorageKeySchema = createStorageKeySchema({
|
|
|
4049
4049
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4050
4050
|
/**
|
|
4051
4051
|
* The maximum number of retry attempts.
|
|
4052
|
-
* @
|
|
4052
|
+
* @notInstrumented
|
|
4053
4053
|
*/
|
|
4054
4054
|
const MAX_RETRIES = 3;
|
|
4055
4055
|
/**
|
|
@@ -4066,7 +4066,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4066
4066
|
* @param client - The Dynamic client instance.
|
|
4067
4067
|
* @returns A promise that resolves to the wallet book data.
|
|
4068
4068
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4069
|
-
* @
|
|
4069
|
+
* @notInstrumented
|
|
4070
4070
|
*/
|
|
4071
4071
|
const fetchLegacyWalletBook = async (client) => {
|
|
4072
4072
|
const core = getCore(client);
|
|
@@ -4099,7 +4099,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4099
4099
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4100
4100
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4101
4101
|
* different SDK entry points.
|
|
4102
|
-
* @
|
|
4102
|
+
* @notInstrumented
|
|
4103
4103
|
*/
|
|
4104
4104
|
const EMBEDDED_WALLET_KEYS = [
|
|
4105
4105
|
"magicemailotp",
|
|
@@ -4128,7 +4128,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4128
4128
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4129
4129
|
*
|
|
4130
4130
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4131
|
-
* @
|
|
4131
|
+
* @notInstrumented
|
|
4132
4132
|
*/
|
|
4133
4133
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4134
4134
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4148,7 +4148,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4148
4148
|
*
|
|
4149
4149
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4150
4150
|
* catalog, false otherwise.
|
|
4151
|
-
* @
|
|
4151
|
+
* @notInstrumented
|
|
4152
4152
|
*/
|
|
4153
4153
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4154
4154
|
if (shouldFilterWallet({
|
|
@@ -4165,7 +4165,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4165
4165
|
*
|
|
4166
4166
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4167
4167
|
* @returns The full URL to the sprite icon
|
|
4168
|
-
* @
|
|
4168
|
+
* @notInstrumented
|
|
4169
4169
|
*/
|
|
4170
4170
|
const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4171
4171
|
|
|
@@ -4173,7 +4173,7 @@ const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}
|
|
|
4173
4173
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4174
4174
|
/**
|
|
4175
4175
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4176
|
-
* @
|
|
4176
|
+
* @notInstrumented
|
|
4177
4177
|
*/
|
|
4178
4178
|
const transformGroup = ({ group }) => {
|
|
4179
4179
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4200,7 +4200,7 @@ const transformGroup = ({ group }) => {
|
|
|
4200
4200
|
*
|
|
4201
4201
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4202
4202
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4203
|
-
* @
|
|
4203
|
+
* @notInstrumented
|
|
4204
4204
|
*/
|
|
4205
4205
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4206
4206
|
const normalised = identifier.toLowerCase();
|
|
@@ -4218,7 +4218,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4218
4218
|
*
|
|
4219
4219
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4220
4220
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4221
|
-
* @
|
|
4221
|
+
* @notInstrumented
|
|
4222
4222
|
*/
|
|
4223
4223
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4224
4224
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4251,7 +4251,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4251
4251
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4252
4252
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4253
4253
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4254
|
-
* @
|
|
4254
|
+
* @notInstrumented
|
|
4255
4255
|
*/
|
|
4256
4256
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4257
4257
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4279,7 +4279,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4279
4279
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4280
4280
|
/**
|
|
4281
4281
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4282
|
-
* @
|
|
4282
|
+
* @notInstrumented
|
|
4283
4283
|
*/
|
|
4284
4284
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4285
4285
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4310,7 +4310,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4310
4310
|
/**
|
|
4311
4311
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4312
4312
|
* Filters out embedded wallets and injected-only wallets.
|
|
4313
|
-
* @
|
|
4313
|
+
* @notInstrumented
|
|
4314
4314
|
*/
|
|
4315
4315
|
const transformWalletBook = ({ walletBook }) => {
|
|
4316
4316
|
const groups = {};
|
|
@@ -4343,7 +4343,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4343
4343
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4344
4344
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4345
4345
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4346
|
-
* @
|
|
4346
|
+
* @notInstrumented
|
|
4347
4347
|
*/
|
|
4348
4348
|
const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
4349
4349
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4357,7 +4357,7 @@ const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
|
4357
4357
|
*
|
|
4358
4358
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4359
4359
|
* @returns The chain if found, undefined otherwise.
|
|
4360
|
-
* @
|
|
4360
|
+
* @notInstrumented
|
|
4361
4361
|
*/
|
|
4362
4362
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4363
4363
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4377,7 +4377,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4377
4377
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4378
4378
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4379
4379
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4380
|
-
* @
|
|
4380
|
+
* @notInstrumented
|
|
4381
4381
|
*/
|
|
4382
4382
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
4383
4383
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProviderKey);
|
|
@@ -4483,7 +4483,7 @@ const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4483
4483
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4484
4484
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4485
4485
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4486
|
-
* @
|
|
4486
|
+
* @notInstrumented
|
|
4487
4487
|
*/
|
|
4488
4488
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4489
4489
|
const core = getCore(client);
|
|
@@ -4514,7 +4514,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4514
4514
|
|
|
4515
4515
|
//#endregion
|
|
4516
4516
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4517
|
-
/** @
|
|
4517
|
+
/** @notInstrumented */
|
|
4518
4518
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4519
4519
|
const core = getCore(client);
|
|
4520
4520
|
return await createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4525,7 +4525,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4525
4525
|
|
|
4526
4526
|
//#endregion
|
|
4527
4527
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4528
|
-
/** @
|
|
4528
|
+
/** @notInstrumented */
|
|
4529
4529
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4530
4530
|
const core = getCore(client);
|
|
4531
4531
|
return await createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4556,7 +4556,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4556
4556
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4557
4557
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4558
4558
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4559
|
-
* @
|
|
4559
|
+
* @notInstrumented
|
|
4560
4560
|
*/
|
|
4561
4561
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = getDefaultClient()) => {
|
|
4562
4562
|
const core = getCore(client);
|
|
@@ -4606,7 +4606,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4606
4606
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4607
4607
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4608
4608
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4609
|
-
* @
|
|
4609
|
+
* @notInstrumented
|
|
4610
4610
|
*/
|
|
4611
4611
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4612
4612
|
const core = getCore(client);
|
|
@@ -4725,7 +4725,7 @@ const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
|
4725
4725
|
*
|
|
4726
4726
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4727
4727
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4728
|
-
* @
|
|
4728
|
+
* @notInstrumented
|
|
4729
4729
|
*/
|
|
4730
4730
|
const getMfaDevices = async (client = getDefaultClient()) => {
|
|
4731
4731
|
const core = getCore(client);
|
|
@@ -4745,7 +4745,7 @@ const getMfaDevices = async (client = getDefaultClient()) => {
|
|
|
4745
4745
|
*
|
|
4746
4746
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4747
4747
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4748
|
-
* @
|
|
4748
|
+
* @notInstrumented
|
|
4749
4749
|
*/
|
|
4750
4750
|
const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4751
4751
|
const core = getCore(client);
|
|
@@ -5830,7 +5830,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5830
5830
|
|
|
5831
5831
|
//#endregion
|
|
5832
5832
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5833
|
-
/** @
|
|
5833
|
+
/** @notInstrumented */
|
|
5834
5834
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5835
5835
|
const core = getCore(client);
|
|
5836
5836
|
const apiClient = createApiClient({}, client);
|
|
@@ -5850,7 +5850,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5850
5850
|
|
|
5851
5851
|
//#endregion
|
|
5852
5852
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5853
|
-
/** @
|
|
5853
|
+
/** @notInstrumented */
|
|
5854
5854
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5855
5855
|
const core = getCore(client);
|
|
5856
5856
|
const apiClient = createApiClient({}, client);
|
|
@@ -5921,7 +5921,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
5921
5921
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
5922
5922
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5923
5923
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
5924
|
-
* @
|
|
5924
|
+
* @notInstrumented
|
|
5925
5925
|
*/
|
|
5926
5926
|
const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
5927
5927
|
const core = getCore(client);
|
|
@@ -5956,7 +5956,7 @@ const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
|
5956
5956
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
5957
5957
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5958
5958
|
* @returns The swap status.
|
|
5959
|
-
* @
|
|
5959
|
+
* @notInstrumented
|
|
5960
5960
|
*/
|
|
5961
5961
|
const getSwapStatus = async (params, client = getDefaultClient()) => {
|
|
5962
5962
|
const core = getCore(client);
|
|
@@ -6052,7 +6052,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6052
6052
|
*
|
|
6053
6053
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6054
6054
|
* @returns The subset of required scopes that are still missing.
|
|
6055
|
-
* @
|
|
6055
|
+
* @notInstrumented
|
|
6056
6056
|
*/
|
|
6057
6057
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6058
6058
|
|
|
@@ -6070,7 +6070,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6070
6070
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6071
6071
|
* @param client - The Dynamic client instance.
|
|
6072
6072
|
* @returns The OAuth access token and granted scopes.
|
|
6073
|
-
* @
|
|
6073
|
+
* @notInstrumented
|
|
6074
6074
|
*/
|
|
6075
6075
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6076
6076
|
const core = getCore(client);
|
|
@@ -6095,7 +6095,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6095
6095
|
* `client.user?.verifiedCredentials`.
|
|
6096
6096
|
* @returns The credential id of the linked Google oauth account, or
|
|
6097
6097
|
* `undefined`.
|
|
6098
|
-
* @
|
|
6098
|
+
* @notInstrumented
|
|
6099
6099
|
*/
|
|
6100
6100
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6101
6101
|
|
|
@@ -6179,7 +6179,7 @@ const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
|
6179
6179
|
*
|
|
6180
6180
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6181
6181
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6182
|
-
* @
|
|
6182
|
+
* @notInstrumented
|
|
6183
6183
|
*/
|
|
6184
6184
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6185
6185
|
|
|
@@ -6196,7 +6196,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6196
6196
|
* @param err - The unknown value to check.
|
|
6197
6197
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6198
6198
|
* Drive access was denied.
|
|
6199
|
-
* @
|
|
6199
|
+
* @notInstrumented
|
|
6200
6200
|
*/
|
|
6201
6201
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6202
6202
|
|
|
@@ -6204,57 +6204,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6204
6204
|
//#region src/utils/isMobile/isMobile.ts
|
|
6205
6205
|
/**
|
|
6206
6206
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6207
|
-
* @
|
|
6207
|
+
* @notInstrumented
|
|
6208
6208
|
*/
|
|
6209
6209
|
const userAgentRegex1 = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ios|ipad|playbook|silk/i;
|
|
6210
6210
|
const userAgentRegex2 = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
6211
|
-
/** @
|
|
6211
|
+
/** @notInstrumented */
|
|
6212
6212
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6213
6213
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6214
6214
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6215
6215
|
};
|
|
6216
|
-
/** @
|
|
6216
|
+
/** @notInstrumented */
|
|
6217
6217
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6218
6218
|
/**
|
|
6219
6219
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6220
6220
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6221
6221
|
* to mock it
|
|
6222
|
-
* @
|
|
6222
|
+
* @notInstrumented
|
|
6223
6223
|
*/
|
|
6224
6224
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6225
6225
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6226
6226
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6227
6227
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6228
6228
|
};
|
|
6229
|
-
/** @
|
|
6229
|
+
/** @notInstrumented */
|
|
6230
6230
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6231
6231
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6232
6232
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6233
6233
|
};
|
|
6234
|
-
/** @
|
|
6234
|
+
/** @notInstrumented */
|
|
6235
6235
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6236
|
-
/** @
|
|
6236
|
+
/** @notInstrumented */
|
|
6237
6237
|
const isSafariBrowser = () => {
|
|
6238
6238
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6239
6239
|
const { userAgent } = navigator;
|
|
6240
6240
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6241
6241
|
};
|
|
6242
|
-
/** @
|
|
6242
|
+
/** @notInstrumented */
|
|
6243
6243
|
const isEdgeBrowser = () => {
|
|
6244
6244
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6245
6245
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6246
6246
|
};
|
|
6247
|
-
/** @
|
|
6247
|
+
/** @notInstrumented */
|
|
6248
6248
|
const isOperaBrowser = () => {
|
|
6249
6249
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6250
6250
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6251
6251
|
};
|
|
6252
|
-
/** @
|
|
6252
|
+
/** @notInstrumented */
|
|
6253
6253
|
const isFirefoxBrowser = () => {
|
|
6254
6254
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6255
6255
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6256
6256
|
};
|
|
6257
|
-
/** @
|
|
6257
|
+
/** @notInstrumented */
|
|
6258
6258
|
const isChromeBrowser = () => {
|
|
6259
6259
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6260
6260
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6288,7 +6288,7 @@ const isChromeBrowser = () => {
|
|
|
6288
6288
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6289
6289
|
* record (from `getWalletOptionsCatalogue`).
|
|
6290
6290
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6291
|
-
* @
|
|
6291
|
+
* @notInstrumented
|
|
6292
6292
|
*/
|
|
6293
6293
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6294
6294
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6314,7 +6314,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6314
6314
|
* @param params.wallet - The wallet entry.
|
|
6315
6315
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6316
6316
|
* @returns The wallet option key.
|
|
6317
|
-
* @
|
|
6317
|
+
* @notInstrumented
|
|
6318
6318
|
*/
|
|
6319
6319
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6320
6320
|
|
|
@@ -6329,7 +6329,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6329
6329
|
*
|
|
6330
6330
|
* @param params.wallet - The wallet book wallet entry.
|
|
6331
6331
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6332
|
-
* @
|
|
6332
|
+
* @notInstrumented
|
|
6333
6333
|
*/
|
|
6334
6334
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6335
6335
|
|
|
@@ -6347,7 +6347,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6347
6347
|
*
|
|
6348
6348
|
* @param params.walletBook - The fetched wallet book.
|
|
6349
6349
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6350
|
-
* @
|
|
6350
|
+
* @notInstrumented
|
|
6351
6351
|
*/
|
|
6352
6352
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6353
6353
|
const result = [];
|
|
@@ -6394,7 +6394,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6394
6394
|
*
|
|
6395
6395
|
* @param params.wallet - The wallet book entry.
|
|
6396
6396
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6397
|
-
* @
|
|
6397
|
+
* @notInstrumented
|
|
6398
6398
|
*/
|
|
6399
6399
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6400
6400
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6438,7 +6438,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6438
6438
|
*
|
|
6439
6439
|
* @param params.walletBook - The fetched wallet book.
|
|
6440
6440
|
* @returns A map from wallet option key to its install URL bag.
|
|
6441
|
-
* @
|
|
6441
|
+
* @notInstrumented
|
|
6442
6442
|
*/
|
|
6443
6443
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6444
6444
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6469,7 +6469,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6469
6469
|
*
|
|
6470
6470
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6471
6471
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6472
|
-
* @
|
|
6472
|
+
* @notInstrumented
|
|
6473
6473
|
*/
|
|
6474
6474
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6475
6475
|
|
|
@@ -6508,7 +6508,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6508
6508
|
*
|
|
6509
6509
|
* @param params.walletBook - The fetched wallet book.
|
|
6510
6510
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6511
|
-
* @
|
|
6511
|
+
* @notInstrumented
|
|
6512
6512
|
*/
|
|
6513
6513
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6514
6514
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6555,7 +6555,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6555
6555
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6556
6556
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6557
6557
|
* @returns Ordered, deduped array of Chains.
|
|
6558
|
-
* @
|
|
6558
|
+
* @notInstrumented
|
|
6559
6559
|
*/
|
|
6560
6560
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6561
6561
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6606,7 +6606,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6606
6606
|
*
|
|
6607
6607
|
* @param params.walletBook - The fetched wallet book.
|
|
6608
6608
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6609
|
-
* @
|
|
6609
|
+
* @notInstrumented
|
|
6610
6610
|
*/
|
|
6611
6611
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6612
6612
|
const result = [];
|
|
@@ -6673,7 +6673,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6673
6673
|
* @param params.walletBook - The fetched wallet book.
|
|
6674
6674
|
* @param params.walletOptionKey - The wallet option key.
|
|
6675
6675
|
* @returns The constructed wallet option.
|
|
6676
|
-
* @
|
|
6676
|
+
* @notInstrumented
|
|
6677
6677
|
*/
|
|
6678
6678
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6679
6679
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6711,7 +6711,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6711
6711
|
*
|
|
6712
6712
|
* @param params.walletProvider - The wallet provider to test.
|
|
6713
6713
|
* @returns True when the provider exposes a `connect` method.
|
|
6714
|
-
* @
|
|
6714
|
+
* @notInstrumented
|
|
6715
6715
|
*/
|
|
6716
6716
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6717
6717
|
|
|
@@ -6738,7 +6738,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6738
6738
|
* @param params.entry - The registry entry to classify.
|
|
6739
6739
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6740
6740
|
* surface a `withWalletProvider` option.
|
|
6741
|
-
* @
|
|
6741
|
+
* @notInstrumented
|
|
6742
6742
|
*/
|
|
6743
6743
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6744
6744
|
const { priority } = entry;
|
|
@@ -6759,7 +6759,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6759
6759
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6760
6760
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6761
6761
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6762
|
-
* @
|
|
6762
|
+
* @notInstrumented
|
|
6763
6763
|
*/
|
|
6764
6764
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6765
6765
|
const suffix = chain.toLowerCase();
|
|
@@ -6788,7 +6788,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6788
6788
|
*
|
|
6789
6789
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6790
6790
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6791
|
-
* @
|
|
6791
|
+
* @notInstrumented
|
|
6792
6792
|
*/
|
|
6793
6793
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6794
6794
|
|
|
@@ -6806,7 +6806,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6806
6806
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6807
6807
|
* @param params.walletBook - The fetched wallet book.
|
|
6808
6808
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6809
|
-
* @
|
|
6809
|
+
* @notInstrumented
|
|
6810
6810
|
*/
|
|
6811
6811
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6812
6812
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6824,7 +6824,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6824
6824
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6825
6825
|
* @param params.wallet - The wallet book wallet entry.
|
|
6826
6826
|
* @returns The resolved wallet option key.
|
|
6827
|
-
* @
|
|
6827
|
+
* @notInstrumented
|
|
6828
6828
|
*/
|
|
6829
6829
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6830
6830
|
|
|
@@ -6861,7 +6861,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6861
6861
|
* @param params.walletBook - The fetched wallet book.
|
|
6862
6862
|
* @param params.walletProvider - The registered wallet provider.
|
|
6863
6863
|
* @returns The wallet option key for this provider.
|
|
6864
|
-
* @
|
|
6864
|
+
* @notInstrumented
|
|
6865
6865
|
*/
|
|
6866
6866
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6867
6867
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProvider.key);
|
|
@@ -6909,7 +6909,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
6909
6909
|
* @param params.walletBook - The fetched wallet book.
|
|
6910
6910
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
6911
6911
|
* @returns An array of tagged options, in input order.
|
|
6912
|
-
* @
|
|
6912
|
+
* @notInstrumented
|
|
6913
6913
|
*/
|
|
6914
6914
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
6915
6915
|
const result = [];
|
|
@@ -6981,7 +6981,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
6981
6981
|
* @param params.options - The tagged options to group.
|
|
6982
6982
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
6983
6983
|
* iterable in first-seen order.
|
|
6984
|
-
* @
|
|
6984
|
+
* @notInstrumented
|
|
6985
6985
|
*/
|
|
6986
6986
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
6987
6987
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7021,7 +7021,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7021
7021
|
*
|
|
7022
7022
|
* @param params.option - The connection option to inspect.
|
|
7023
7023
|
* @returns The numeric priority — lower is better.
|
|
7024
|
-
* @
|
|
7024
|
+
* @notInstrumented
|
|
7025
7025
|
*/
|
|
7026
7026
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7027
7027
|
|
|
@@ -7038,7 +7038,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7038
7038
|
*
|
|
7039
7039
|
* @param params.options - The options to sort.
|
|
7040
7040
|
* @returns A new array in priority order.
|
|
7041
|
-
* @
|
|
7041
|
+
* @notInstrumented
|
|
7042
7042
|
*/
|
|
7043
7043
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7044
7044
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7086,7 +7086,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7086
7086
|
*
|
|
7087
7087
|
* @param params.walletOption - The wallet option to inspect.
|
|
7088
7088
|
* @returns Numeric priority index — lower is better.
|
|
7089
|
-
* @
|
|
7089
|
+
* @notInstrumented
|
|
7090
7090
|
*/
|
|
7091
7091
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7092
7092
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7103,7 +7103,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7103
7103
|
* @param params.a - First wallet option.
|
|
7104
7104
|
* @param params.b - Second wallet option.
|
|
7105
7105
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7106
|
-
* @
|
|
7106
|
+
* @notInstrumented
|
|
7107
7107
|
*/
|
|
7108
7108
|
const compareByRelevance = ({ a, b }) => {
|
|
7109
7109
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7123,7 +7123,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7123
7123
|
*
|
|
7124
7124
|
* @param params.walletOption - The wallet option to inspect.
|
|
7125
7125
|
* @returns True when `connectionOptions` is non-empty.
|
|
7126
|
-
* @
|
|
7126
|
+
* @notInstrumented
|
|
7127
7127
|
*/
|
|
7128
7128
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7129
7129
|
|
|
@@ -7138,7 +7138,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7138
7138
|
*
|
|
7139
7139
|
* @param params.walletOption - The wallet option to inspect.
|
|
7140
7140
|
* @returns True when an installed provider is available.
|
|
7141
|
-
* @
|
|
7141
|
+
* @notInstrumented
|
|
7142
7142
|
*/
|
|
7143
7143
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7144
7144
|
|
|
@@ -7168,7 +7168,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7168
7168
|
* @param params.walletOptions - The wallet options to sort.
|
|
7169
7169
|
* @param params.ordering - The requested ordering.
|
|
7170
7170
|
* @returns A new array in the requested order.
|
|
7171
|
-
* @
|
|
7171
|
+
* @notInstrumented
|
|
7172
7172
|
*/
|
|
7173
7173
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7174
7174
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7217,7 +7217,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7217
7217
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7218
7218
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7219
7219
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7220
|
-
* @
|
|
7220
|
+
* @notInstrumented
|
|
7221
7221
|
*/
|
|
7222
7222
|
const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient()) => {
|
|
7223
7223
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7274,7 +7274,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
7274
7274
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7275
7275
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7276
7276
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7277
|
-
* @
|
|
7277
|
+
* @notInstrumented
|
|
7278
7278
|
*/
|
|
7279
7279
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7280
7280
|
const { addresses } = await getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7323,7 +7323,7 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
7323
7323
|
|
|
7324
7324
|
//#endregion
|
|
7325
7325
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7326
|
-
/** @
|
|
7326
|
+
/** @notInstrumented */
|
|
7327
7327
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7328
7328
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7329
7329
|
};
|
|
@@ -7398,13 +7398,13 @@ const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7398
7398
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7399
7399
|
* @param params.signature - The raw signature string to wrap.
|
|
7400
7400
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7401
|
-
* @
|
|
7401
|
+
* @notInstrumented
|
|
7402
7402
|
*/
|
|
7403
7403
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7404
7404
|
|
|
7405
7405
|
//#endregion
|
|
7406
7406
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7407
|
-
/** @
|
|
7407
|
+
/** @notInstrumented */
|
|
7408
7408
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7409
7409
|
if ([
|
|
7410
7410
|
"BTC",
|
|
@@ -7418,7 +7418,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7418
7418
|
|
|
7419
7419
|
//#endregion
|
|
7420
7420
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7421
|
-
/** @
|
|
7421
|
+
/** @notInstrumented */
|
|
7422
7422
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7423
7423
|
const core = getCore(client);
|
|
7424
7424
|
const { appUniversalLink } = getAppMetadata(client);
|
|
@@ -7495,7 +7495,7 @@ const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
|
7495
7495
|
|
|
7496
7496
|
//#endregion
|
|
7497
7497
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7498
|
-
/** @
|
|
7498
|
+
/** @notInstrumented */
|
|
7499
7499
|
const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
7500
7500
|
address: left,
|
|
7501
7501
|
chain
|
|
@@ -7506,7 +7506,7 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
7506
7506
|
|
|
7507
7507
|
//#endregion
|
|
7508
7508
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7509
|
-
/** @
|
|
7509
|
+
/** @notInstrumented */
|
|
7510
7510
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7511
7511
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7512
7512
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7592,7 +7592,7 @@ const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
|
7592
7592
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7593
7593
|
/**
|
|
7594
7594
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7595
|
-
* @
|
|
7595
|
+
* @notInstrumented
|
|
7596
7596
|
*/
|
|
7597
7597
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === WalletProviderEnum.DeepLink;
|
|
7598
7598
|
|
|
@@ -7659,7 +7659,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7659
7659
|
*
|
|
7660
7660
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7661
7661
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7662
|
-
* @
|
|
7662
|
+
* @notInstrumented
|
|
7663
7663
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7664
7664
|
*/
|
|
7665
7665
|
const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
@@ -7683,7 +7683,7 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
|
7683
7683
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7684
7684
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7685
7685
|
* @returns An array of connected wallet addresses.
|
|
7686
|
-
* @
|
|
7686
|
+
* @notInstrumented
|
|
7687
7687
|
*/
|
|
7688
7688
|
const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7689
7689
|
return getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7691,7 +7691,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient(
|
|
|
7691
7691
|
|
|
7692
7692
|
//#endregion
|
|
7693
7693
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7694
|
-
/** @
|
|
7694
|
+
/** @notInstrumented */
|
|
7695
7695
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient()) => {
|
|
7696
7696
|
const smartWalletVerifiedCredential = getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7697
7697
|
assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7700,7 +7700,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7700
7700
|
|
|
7701
7701
|
//#endregion
|
|
7702
7702
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7703
|
-
/** @
|
|
7703
|
+
/** @notInstrumented */
|
|
7704
7704
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7705
7705
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7706
7706
|
};
|
|
@@ -7713,7 +7713,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7713
7713
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7714
7714
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7715
7715
|
* @returns The data for the wallet provider.
|
|
7716
|
-
* @
|
|
7716
|
+
* @notInstrumented
|
|
7717
7717
|
*/
|
|
7718
7718
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7719
7719
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7735,7 +7735,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultCl
|
|
|
7735
7735
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7736
7736
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7737
7737
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7738
|
-
* @
|
|
7738
|
+
* @notInstrumented
|
|
7739
7739
|
*/
|
|
7740
7740
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
|
|
7741
7741
|
return getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7748,7 +7748,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7748
7748
|
*
|
|
7749
7749
|
* @param params.walletAccount - The wallet account to check.
|
|
7750
7750
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7751
|
-
* @
|
|
7751
|
+
* @notInstrumented
|
|
7752
7752
|
*/
|
|
7753
7753
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7754
7754
|
|
|
@@ -7764,7 +7764,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7764
7764
|
*
|
|
7765
7765
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7766
7766
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7767
|
-
* @
|
|
7767
|
+
* @notInstrumented
|
|
7768
7768
|
*/
|
|
7769
7769
|
const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
|
|
7770
7770
|
|
|
@@ -7775,7 +7775,7 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
|
|
|
7775
7775
|
*
|
|
7776
7776
|
* @param walletAccount - The wallet account to check.
|
|
7777
7777
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7778
|
-
* @
|
|
7778
|
+
* @notInstrumented
|
|
7779
7779
|
*/
|
|
7780
7780
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7781
7781
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7830,7 +7830,7 @@ const __addNetwork_wrapped = instrumentFunction({
|
|
|
7830
7830
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7831
7831
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7832
7832
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7833
|
-
* @
|
|
7833
|
+
* @notInstrumented
|
|
7834
7834
|
*/
|
|
7835
7835
|
const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7836
7836
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7846,7 +7846,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient
|
|
|
7846
7846
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7847
7847
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7848
7848
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7849
|
-
* @
|
|
7849
|
+
* @notInstrumented
|
|
7850
7850
|
*/
|
|
7851
7851
|
const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7852
7852
|
return getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7867,7 +7867,7 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
|
7867
7867
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7868
7868
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7869
7869
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7870
|
-
* @
|
|
7870
|
+
* @notInstrumented
|
|
7871
7871
|
*/
|
|
7872
7872
|
const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7873
7873
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7886,7 +7886,7 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
|
|
|
7886
7886
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7887
7887
|
* `getMultichainTokenBalances`).
|
|
7888
7888
|
*
|
|
7889
|
-
* @
|
|
7889
|
+
* @notInstrumented
|
|
7890
7890
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7891
7891
|
*/
|
|
7892
7892
|
const getBalance = (params, client = getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7904,7 +7904,7 @@ const getBalance = (params, client = getDefaultClient()) => getNativeBalance(par
|
|
|
7904
7904
|
* @param params.networkId - The specific network ID within the chain.
|
|
7905
7905
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7906
7906
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7907
|
-
* @
|
|
7907
|
+
* @notInstrumented
|
|
7908
7908
|
*/
|
|
7909
7909
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = getDefaultClient()) => {
|
|
7910
7910
|
const networkProvider = getNetworkProviderFromNetworkId({
|
|
@@ -7931,7 +7931,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
7931
7931
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
7932
7932
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7933
7933
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
7934
|
-
* @
|
|
7934
|
+
* @notInstrumented
|
|
7935
7935
|
*/
|
|
7936
7936
|
const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
7937
7937
|
const core = getCore(client);
|
|
@@ -7957,7 +7957,7 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
7957
7957
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
7958
7958
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7959
7959
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
7960
|
-
* @
|
|
7960
|
+
* @notInstrumented
|
|
7961
7961
|
*/
|
|
7962
7962
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7963
7963
|
return getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8039,7 +8039,7 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
8039
8039
|
*
|
|
8040
8040
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8041
8041
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8042
|
-
* @
|
|
8042
|
+
* @notInstrumented
|
|
8043
8043
|
*/
|
|
8044
8044
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8045
8045
|
try {
|
|
@@ -8214,7 +8214,7 @@ const __transferWalletAccount_wrapped = instrumentFunction({
|
|
|
8214
8214
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8215
8215
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8216
8216
|
* @returns The matching wallet account, or undefined if not found.
|
|
8217
|
-
* @
|
|
8217
|
+
* @notInstrumented
|
|
8218
8218
|
*/
|
|
8219
8219
|
const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
|
|
8220
8220
|
return getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8231,7 +8231,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClie
|
|
|
8231
8231
|
* @param params.event - The event name to remove the listener from.
|
|
8232
8232
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8233
8233
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8234
|
-
* @
|
|
8234
|
+
* @notInstrumented
|
|
8235
8235
|
*/
|
|
8236
8236
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
8237
8237
|
const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8249,7 +8249,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8249
8249
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8250
8250
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8251
8251
|
* @returns A function that can be called to remove the listener.
|
|
8252
|
-
* @
|
|
8252
|
+
* @notInstrumented
|
|
8253
8253
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8254
8254
|
*/
|
|
8255
8255
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
@@ -8283,7 +8283,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8283
8283
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8284
8284
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8285
8285
|
* ```
|
|
8286
|
-
* @
|
|
8286
|
+
* @notInstrumented
|
|
8287
8287
|
*/
|
|
8288
8288
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8289
8289
|
const url = new URL(deeplinkUrl);
|
|
@@ -8354,7 +8354,7 @@ const osMatchers = [
|
|
|
8354
8354
|
pattern: /CrOS/
|
|
8355
8355
|
}
|
|
8356
8356
|
];
|
|
8357
|
-
/** @
|
|
8357
|
+
/** @notInstrumented */
|
|
8358
8358
|
const parseUserAgent = ({ userAgent }) => {
|
|
8359
8359
|
if (!userAgent?.trim()) return null;
|
|
8360
8360
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|