@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.native.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as getCore, A as LinkCredentialError, B as DEFAULT_PII_FIELDS, D as SandboxMaximumThresholdReachedError, E as getNonce, F as assertDefined, G as randomString, H as getPlatform, I as ValueMustBeDefinedError, J as NONCE_POOL_SIZE, L as __getElevatedAccessToken_wrapped, M as APIError, O as MfaRateLimitedError, P as isCookieEnabled, Q as BaseError, R as instrumentFunction, S as UnauthorizedError, U as getOperatingSystem, V as getUserAgent, W as extractSessionId, X as setDefaultClient, Y as getDefaultClient, _ as offEvent, b as fetchAndStoreNonces, c as SDK_API_CORE_VERSION, d as getWalletProviderRegistry, et as name, g as emitEvent, h as CHAINS_INFO_MAP, j as InvalidExternalAuthError, k as MfaInvalidOtpError, l as getWalletProviderFromWalletAccount, m as getChainFromVerifiedCredentialChain, o as isUserMissingMfaAuth, p as NoWalletProviderFoundError, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as version, u as WalletProviderPriority, v as onEvent, x as createApiClient, y as onceEvent, z as scrubParameters } from "./InvalidParamError-
|
|
2
|
-
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, 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 fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { _ as normalizeAddress, a as parseElevatedAccessToken, g as formatWalletAccountId, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, p as getWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent, v as splitWalletProviderKey } from "./getWalletProviderByKey-
|
|
4
|
-
import { t as __refreshAuth_wrapped } from "./refreshAuth-
|
|
5
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
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 getCore, A as LinkCredentialError, B as DEFAULT_PII_FIELDS, D as SandboxMaximumThresholdReachedError, E as getNonce, F as assertDefined, G as randomString, H as getPlatform, I as ValueMustBeDefinedError, J as NONCE_POOL_SIZE, L as __getElevatedAccessToken_wrapped, M as APIError, O as MfaRateLimitedError, P as isCookieEnabled, Q as BaseError, R as instrumentFunction, S as UnauthorizedError, U as getOperatingSystem, V as getUserAgent, W as extractSessionId, X as setDefaultClient, Y as getDefaultClient, _ as offEvent, b as fetchAndStoreNonces, c as SDK_API_CORE_VERSION, d as getWalletProviderRegistry, et as name, g as emitEvent, h as CHAINS_INFO_MAP, j as InvalidExternalAuthError, k as MfaInvalidOtpError, l as getWalletProviderFromWalletAccount, m as getChainFromVerifiedCredentialChain, o as isUserMissingMfaAuth, p as NoWalletProviderFoundError, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as version, u as WalletProviderPriority, v as onEvent, x as createApiClient, y as onceEvent, z as scrubParameters } from "./InvalidParamError-CGiSxym5.native.esm.js";
|
|
2
|
+
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, 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 fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js";
|
|
3
|
+
import { _ as normalizeAddress, a as parseElevatedAccessToken, g as formatWalletAccountId, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, p as getWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent, v as splitWalletProviderKey } from "./getWalletProviderByKey-DDDxBsdv.native.esm.js";
|
|
4
|
+
import { t as __refreshAuth_wrapped } from "./refreshAuth-C3issn5b.native.esm.js";
|
|
5
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-dAtK8Pl6.native.esm.js";
|
|
6
|
+
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-ChdeBFbN.native.esm.js";
|
|
7
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DO2_gSAp.native.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"));
|
|
@@ -856,7 +856,7 @@ const mapFromGetResult = (result) => ({
|
|
|
856
856
|
* Native passkeys require an associated domain that matches `metadata.universalLink`;
|
|
857
857
|
* `authenticate` and `register` assert it is defined so the developer gets a
|
|
858
858
|
* clear error instead of an opaque platform failure.
|
|
859
|
-
* @
|
|
859
|
+
* @notInstrumented
|
|
860
860
|
*/
|
|
861
861
|
const createPasskeyService = (_params) => ({
|
|
862
862
|
authenticate: async (options) => {
|
|
@@ -874,7 +874,7 @@ const createPasskeyService = (_params) => ({
|
|
|
874
874
|
|
|
875
875
|
//#endregion
|
|
876
876
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
877
|
-
/** @
|
|
877
|
+
/** @notInstrumented */
|
|
878
878
|
const createDebouncedMutex = () => {
|
|
879
879
|
const mutexState = /* @__PURE__ */ new Map();
|
|
880
880
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -959,7 +959,7 @@ var InvalidStorageValue = class extends BaseError {
|
|
|
959
959
|
* // Unsubscribe when done
|
|
960
960
|
* unsubscribe();
|
|
961
961
|
* ```
|
|
962
|
-
* @
|
|
962
|
+
* @notInstrumented
|
|
963
963
|
*/
|
|
964
964
|
const createObservableState = (getInitialState$1) => {
|
|
965
965
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -1003,7 +1003,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
1003
1003
|
//#region src/client/core/createCore/getInitialState.ts
|
|
1004
1004
|
/**
|
|
1005
1005
|
* The initial values for the state of the client.
|
|
1006
|
-
* @
|
|
1006
|
+
* @notInstrumented
|
|
1007
1007
|
*/
|
|
1008
1008
|
const getInitialState = () => ({
|
|
1009
1009
|
captchaToken: null,
|
|
@@ -1028,7 +1028,7 @@ const getInitialState = () => ({
|
|
|
1028
1028
|
//#region src/client/core/createCore/createCore.ts
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
1031
|
-
* @
|
|
1031
|
+
* @notInstrumented
|
|
1032
1032
|
*/
|
|
1033
1033
|
const createCore = (config) => {
|
|
1034
1034
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1729,7 +1729,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1729
1729
|
*
|
|
1730
1730
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1731
1731
|
* @returns A promise that resolves when the logout process is complete.
|
|
1732
|
-
* @
|
|
1732
|
+
* @notInstrumented
|
|
1733
1733
|
*/
|
|
1734
1734
|
const logout = async (client = getDefaultClient()) => {
|
|
1735
1735
|
/**
|
|
@@ -1784,7 +1784,7 @@ const __deletePasskey_wrapped = instrumentFunction({
|
|
|
1784
1784
|
*
|
|
1785
1785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1786
1786
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1787
|
-
* @
|
|
1787
|
+
* @notInstrumented
|
|
1788
1788
|
*/
|
|
1789
1789
|
const getPasskeys = async (client = getDefaultClient()) => {
|
|
1790
1790
|
const core = getCore(client);
|
|
@@ -1793,7 +1793,7 @@ const getPasskeys = async (client = getDefaultClient()) => {
|
|
|
1793
1793
|
|
|
1794
1794
|
//#endregion
|
|
1795
1795
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1796
|
-
/** @
|
|
1796
|
+
/** @notInstrumented */
|
|
1797
1797
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1798
1798
|
const core = getCore(client);
|
|
1799
1799
|
return await createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1801,7 +1801,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1801
1801
|
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1804
|
-
/** @
|
|
1804
|
+
/** @notInstrumented */
|
|
1805
1805
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1806
1806
|
const core = getCore(client);
|
|
1807
1807
|
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1860,7 +1860,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1860
1860
|
|
|
1861
1861
|
//#endregion
|
|
1862
1862
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1863
|
-
/** @
|
|
1863
|
+
/** @notInstrumented */
|
|
1864
1864
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1865
1865
|
const core = getCore(client);
|
|
1866
1866
|
return await createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1871,7 +1871,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1871
1871
|
|
|
1872
1872
|
//#endregion
|
|
1873
1873
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1874
|
-
/** @
|
|
1874
|
+
/** @notInstrumented */
|
|
1875
1875
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1876
1876
|
const core = getCore(client);
|
|
1877
1877
|
return await createApiClient({}, client).signinWithPasskey({
|
|
@@ -1931,7 +1931,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1931
1931
|
*
|
|
1932
1932
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1933
1933
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1934
|
-
* @
|
|
1934
|
+
* @notInstrumented
|
|
1935
1935
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1936
1936
|
*/
|
|
1937
1937
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
@@ -2056,7 +2056,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
|
2056
2056
|
* pop-up callback inline and returns the authenticated user directly.
|
|
2057
2057
|
*
|
|
2058
2058
|
* @throws MethodNotImplementedError Always on React Native.
|
|
2059
|
-
* @
|
|
2059
|
+
* @notInstrumented
|
|
2060
2060
|
*/
|
|
2061
2061
|
const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
|
|
2062
2062
|
throw new MethodNotImplementedError("detectSocialRedirectUrl (not needed on React Native — signInWithSocialPopUp processes the callback inline)");
|
|
@@ -2068,7 +2068,7 @@ const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) =>
|
|
|
2068
2068
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2069
2069
|
* removed in a future major version.
|
|
2070
2070
|
*
|
|
2071
|
-
* @
|
|
2071
|
+
* @notInstrumented
|
|
2072
2072
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2073
2073
|
*/
|
|
2074
2074
|
const detectOAuthRedirect = (params, client = getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2108,7 +2108,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
2108
2108
|
*/
|
|
2109
2109
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2110
2110
|
const core = getCore(client);
|
|
2111
|
-
const apiClient = createApiClient({}, client);
|
|
2111
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2112
2112
|
await core.initTrack.waitForAll();
|
|
2113
2113
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2114
2114
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2159,7 +2159,7 @@ const __processSocialCallback_wrapped = instrumentFunction({
|
|
|
2159
2159
|
|
|
2160
2160
|
//#endregion
|
|
2161
2161
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
2162
|
-
/** @
|
|
2162
|
+
/** @notInstrumented */
|
|
2163
2163
|
const digestSHA256 = (str) => {
|
|
2164
2164
|
const data = new TextEncoder().encode(str);
|
|
2165
2165
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -2172,7 +2172,7 @@ const digestSHA256 = (str) => {
|
|
|
2172
2172
|
*
|
|
2173
2173
|
* @param str - The string to encode as an ArrayBuffer.
|
|
2174
2174
|
* @returns The base64url encoded string.
|
|
2175
|
-
* @
|
|
2175
|
+
* @notInstrumented
|
|
2176
2176
|
*/
|
|
2177
2177
|
const encodeBase64Url = (str) => {
|
|
2178
2178
|
const numberArray = [];
|
|
@@ -2184,7 +2184,7 @@ const encodeBase64Url = (str) => {
|
|
|
2184
2184
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
2185
2185
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
2186
2186
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
2187
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
2187
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
2188
2188
|
*/
|
|
2189
2189
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
2190
2190
|
assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -2212,7 +2212,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
2212
2212
|
|
|
2213
2213
|
//#endregion
|
|
2214
2214
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
2215
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
2215
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
2216
2216
|
*/
|
|
2217
2217
|
const getOAuthBaseUrl = (provider) => {
|
|
2218
2218
|
assertDefined(provider.provider, "Provider type not found");
|
|
@@ -2233,7 +2233,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
2233
2233
|
//#endregion
|
|
2234
2234
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
2235
2235
|
const providersRequiringPkce = ["twitter", "github"];
|
|
2236
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
2236
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
2237
2237
|
*/
|
|
2238
2238
|
const buildOAuthUrl = async (core, provider) => {
|
|
2239
2239
|
const { projectSettings } = core.state.get();
|
|
@@ -2369,7 +2369,7 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
|
2369
2369
|
* The primary wallet account is the one that was last selected by the user.
|
|
2370
2370
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2371
2371
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2372
|
-
* @
|
|
2372
|
+
* @notInstrumented
|
|
2373
2373
|
*/
|
|
2374
2374
|
const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
2375
2375
|
const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2442,7 +2442,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2442
2442
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2443
2443
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2444
2444
|
* @returns A promise that resolves to an array of token balances.
|
|
2445
|
-
* @
|
|
2445
|
+
* @notInstrumented
|
|
2446
2446
|
*/
|
|
2447
2447
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = getDefaultClient()) => {
|
|
2448
2448
|
const core = getCore(client);
|
|
@@ -2473,7 +2473,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2473
2473
|
* longer confusable with the native-only `getBalance` or the
|
|
2474
2474
|
* multi-chain `getMultichainTokenBalances`.
|
|
2475
2475
|
*
|
|
2476
|
-
* @
|
|
2476
|
+
* @notInstrumented
|
|
2477
2477
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2478
2478
|
*/
|
|
2479
2479
|
const getBalances = (params, client = getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2492,7 +2492,7 @@ const getBalances = (params, client = getDefaultClient()) => getTokenBalances(pa
|
|
|
2492
2492
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2493
2493
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2494
2494
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2495
|
-
* @
|
|
2495
|
+
* @notInstrumented
|
|
2496
2496
|
*/
|
|
2497
2497
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaultClient()) => {
|
|
2498
2498
|
const core = getCore(client);
|
|
@@ -2509,14 +2509,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2509
2509
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2510
2510
|
* token balances (not native-only) across multiple chains.
|
|
2511
2511
|
*
|
|
2512
|
-
* @
|
|
2512
|
+
* @notInstrumented
|
|
2513
2513
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2514
2514
|
*/
|
|
2515
2515
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2516
2516
|
|
|
2517
2517
|
//#endregion
|
|
2518
2518
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2519
|
-
/** @
|
|
2519
|
+
/** @notInstrumented */
|
|
2520
2520
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2521
2521
|
return createStorageKeySchema({
|
|
2522
2522
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2526,7 +2526,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2526
2526
|
|
|
2527
2527
|
//#endregion
|
|
2528
2528
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2529
|
-
/** @
|
|
2529
|
+
/** @notInstrumented */
|
|
2530
2530
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2531
2531
|
const core = getCore(client);
|
|
2532
2532
|
const apiClient = createApiClient({}, client);
|
|
@@ -2555,7 +2555,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2555
2555
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2556
2556
|
* defense-in-depth.
|
|
2557
2557
|
*
|
|
2558
|
-
* @
|
|
2558
|
+
* @notInstrumented
|
|
2559
2559
|
*/
|
|
2560
2560
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2561
2561
|
await getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2570,7 +2570,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2570
2570
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2571
2571
|
* requests that are guaranteed to fail.
|
|
2572
2572
|
*
|
|
2573
|
-
* @
|
|
2573
|
+
* @notInstrumented
|
|
2574
2574
|
*/
|
|
2575
2575
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2576
2576
|
try {
|
|
@@ -2718,7 +2718,7 @@ const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2718
2718
|
|
|
2719
2719
|
//#endregion
|
|
2720
2720
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2721
|
-
/** @
|
|
2721
|
+
/** @notInstrumented */
|
|
2722
2722
|
const getCheckouts = async (client) => {
|
|
2723
2723
|
const projectSettings = client.projectSettings;
|
|
2724
2724
|
assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2784,7 +2784,7 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2784
2784
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2785
2785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2786
2786
|
* @returns The checkout transaction
|
|
2787
|
-
* @
|
|
2787
|
+
* @notInstrumented
|
|
2788
2788
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2789
2789
|
*/
|
|
2790
2790
|
const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
|
|
@@ -2805,7 +2805,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
|
|
|
2805
2805
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2806
2806
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2807
2807
|
* @returns The updated checkout transaction with quote data
|
|
2808
|
-
* @
|
|
2808
|
+
* @notInstrumented
|
|
2809
2809
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2810
2810
|
*/
|
|
2811
2811
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
|
|
@@ -2910,7 +2910,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2910
2910
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2911
2911
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2912
2912
|
*
|
|
2913
|
-
* @
|
|
2913
|
+
* @notInstrumented
|
|
2914
2914
|
*/
|
|
2915
2915
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2916
2916
|
const { logger } = getCore(client);
|
|
@@ -3040,7 +3040,7 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
3040
3040
|
*
|
|
3041
3041
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
3042
3042
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3043
|
-
* @
|
|
3043
|
+
* @notInstrumented
|
|
3044
3044
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3045
3045
|
*/
|
|
3046
3046
|
const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
@@ -3063,7 +3063,7 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
|
3063
3063
|
* @param params - The from token details and the checkout's settlement config.
|
|
3064
3064
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3065
3065
|
* @returns Whether a token conversion is required
|
|
3066
|
-
* @
|
|
3066
|
+
* @notInstrumented
|
|
3067
3067
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3068
3068
|
*/
|
|
3069
3069
|
const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
|
|
@@ -3108,7 +3108,7 @@ const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
|
3108
3108
|
*
|
|
3109
3109
|
* @returns The device token as a string if valid.
|
|
3110
3110
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3111
|
-
* @
|
|
3111
|
+
* @notInstrumented
|
|
3112
3112
|
*/
|
|
3113
3113
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3114
3114
|
let urlObject;
|
|
@@ -3131,7 +3131,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3131
3131
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3134
|
-
* @
|
|
3134
|
+
* @notInstrumented
|
|
3135
3135
|
*/
|
|
3136
3136
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3137
3137
|
try {
|
|
@@ -3144,7 +3144,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3144
3144
|
|
|
3145
3145
|
//#endregion
|
|
3146
3146
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3147
|
-
/** @
|
|
3147
|
+
/** @notInstrumented */
|
|
3148
3148
|
const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
3149
3149
|
const core = getCore(client);
|
|
3150
3150
|
const apiClient = createApiClient({}, client);
|
|
@@ -3207,7 +3207,7 @@ const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
|
3207
3207
|
|
|
3208
3208
|
//#endregion
|
|
3209
3209
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3210
|
-
/** @
|
|
3210
|
+
/** @notInstrumented */
|
|
3211
3211
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3212
3212
|
return createStorageKeySchema({
|
|
3213
3213
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3231,7 +3231,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3231
3231
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3232
3232
|
* defense-in-depth.
|
|
3233
3233
|
*
|
|
3234
|
-
* @
|
|
3234
|
+
* @notInstrumented
|
|
3235
3235
|
*/
|
|
3236
3236
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3237
3237
|
await getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3246,7 +3246,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3246
3246
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3247
3247
|
* requests that are guaranteed to fail.
|
|
3248
3248
|
*
|
|
3249
|
-
* @
|
|
3249
|
+
* @notInstrumented
|
|
3250
3250
|
*/
|
|
3251
3251
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3252
3252
|
try {
|
|
@@ -3312,7 +3312,7 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3312
3312
|
|
|
3313
3313
|
//#endregion
|
|
3314
3314
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3315
|
-
/** @
|
|
3315
|
+
/** @notInstrumented */
|
|
3316
3316
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3317
3317
|
const core = getCore(client);
|
|
3318
3318
|
const apiClient = createApiClient({}, client);
|
|
@@ -3408,7 +3408,7 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3408
3408
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3409
3409
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3410
3410
|
* @returns The flow
|
|
3411
|
-
* @
|
|
3411
|
+
* @notInstrumented
|
|
3412
3412
|
*/
|
|
3413
3413
|
const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
3414
3414
|
const core = getCore(client);
|
|
@@ -3426,7 +3426,7 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
|
3426
3426
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3427
3427
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3428
3428
|
* @returns The updated flow with quote data
|
|
3429
|
-
* @
|
|
3429
|
+
* @notInstrumented
|
|
3430
3430
|
*/
|
|
3431
3431
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
|
|
3432
3432
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3541,7 +3541,7 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3541
3541
|
* @returns A function to remove the listener.
|
|
3542
3542
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3543
3543
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3544
|
-
* @
|
|
3544
|
+
* @notInstrumented
|
|
3545
3545
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3546
3546
|
*/
|
|
3547
3547
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultClient()) => {
|
|
@@ -3583,7 +3583,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultCl
|
|
|
3583
3583
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3584
3584
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3585
3585
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3586
|
-
* @
|
|
3586
|
+
* @notInstrumented
|
|
3587
3587
|
*/
|
|
3588
3588
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = getDefaultClient()) => {
|
|
3589
3589
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3621,7 +3621,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3621
3621
|
|
|
3622
3622
|
//#endregion
|
|
3623
3623
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3624
|
-
/** @
|
|
3624
|
+
/** @notInstrumented */
|
|
3625
3625
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3626
3626
|
const { user } = client;
|
|
3627
3627
|
assertDefined(user, "User is not authenticated");
|
|
@@ -3696,7 +3696,7 @@ const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
|
3696
3696
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3697
3697
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3698
3698
|
* @returns an object containing the buy URL
|
|
3699
|
-
* @
|
|
3699
|
+
* @notInstrumented
|
|
3700
3700
|
*/
|
|
3701
3701
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
3702
3702
|
const core = getCore(client);
|
|
@@ -3747,7 +3747,7 @@ const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
|
3747
3747
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3748
3748
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3749
3749
|
* @returns The created transfer
|
|
3750
|
-
* @
|
|
3750
|
+
* @notInstrumented
|
|
3751
3751
|
*/
|
|
3752
3752
|
const createKrakenExchangeTransfer = async (transferParams, client = getDefaultClient()) => {
|
|
3753
3753
|
const core = getCore(client);
|
|
@@ -3781,7 +3781,7 @@ const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
|
3781
3781
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3782
3782
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3783
3783
|
* @returns Array of Kraken accounts with balances
|
|
3784
|
-
* @
|
|
3784
|
+
* @notInstrumented
|
|
3785
3785
|
*/
|
|
3786
3786
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
3787
3787
|
const core = getCore(client);
|
|
@@ -3800,7 +3800,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
3800
3800
|
*
|
|
3801
3801
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3802
3802
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3803
|
-
* @
|
|
3803
|
+
* @notInstrumented
|
|
3804
3804
|
*/
|
|
3805
3805
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
3806
3806
|
const core = getCore(client);
|
|
@@ -3926,7 +3926,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3926
3926
|
* and are ready for use.
|
|
3927
3927
|
*
|
|
3928
3928
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3929
|
-
* @
|
|
3929
|
+
* @notInstrumented
|
|
3930
3930
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3931
3931
|
*/
|
|
3932
3932
|
const waitForClientInitialized = async (client = getDefaultClient()) => {
|
|
@@ -3977,7 +3977,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3977
3977
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3978
3978
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3979
3979
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3980
|
-
* @
|
|
3980
|
+
* @notInstrumented
|
|
3981
3981
|
*/
|
|
3982
3982
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3983
3983
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -4004,7 +4004,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
4004
4004
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
4005
4005
|
* the match once.
|
|
4006
4006
|
*
|
|
4007
|
-
* @
|
|
4007
|
+
* @notInstrumented
|
|
4008
4008
|
*/
|
|
4009
4009
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
4010
4010
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -4047,7 +4047,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
4047
4047
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
4048
4048
|
* @param params.walletProviders - Currently available wallet providers.
|
|
4049
4049
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
4050
|
-
* @
|
|
4050
|
+
* @notInstrumented
|
|
4051
4051
|
*/
|
|
4052
4052
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
4053
4053
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -4075,7 +4075,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
4075
4075
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
4076
4076
|
/**
|
|
4077
4077
|
* Default CDN URL for the wallet book.
|
|
4078
|
-
* @
|
|
4078
|
+
* @notInstrumented
|
|
4079
4079
|
*/
|
|
4080
4080
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
4081
4081
|
/**
|
|
@@ -4087,7 +4087,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
4087
4087
|
* 4. Default CDN URL
|
|
4088
4088
|
*
|
|
4089
4089
|
* @returns The wallet book CDN URL to use.
|
|
4090
|
-
* @
|
|
4090
|
+
* @notInstrumented
|
|
4091
4091
|
*/
|
|
4092
4092
|
const getWalletBookCdnUrl = () => {
|
|
4093
4093
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4101,7 +4101,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4101
4101
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4102
4102
|
/**
|
|
4103
4103
|
* The timeout for each fetch attempt in milliseconds.
|
|
4104
|
-
* @
|
|
4104
|
+
* @notInstrumented
|
|
4105
4105
|
*/
|
|
4106
4106
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4107
4107
|
/**
|
|
@@ -4109,7 +4109,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4109
4109
|
*
|
|
4110
4110
|
* @param client - The Dynamic client instance.
|
|
4111
4111
|
* @returns A promise that resolves to the wallet book data.
|
|
4112
|
-
* @
|
|
4112
|
+
* @notInstrumented
|
|
4113
4113
|
*/
|
|
4114
4114
|
const fetchWithTimeout = async (client) => {
|
|
4115
4115
|
const controller = new AbortController();
|
|
@@ -4141,7 +4141,7 @@ const walletBookCacheStorageKeySchema = createStorageKeySchema({
|
|
|
4141
4141
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4142
4142
|
/**
|
|
4143
4143
|
* The maximum number of retry attempts.
|
|
4144
|
-
* @
|
|
4144
|
+
* @notInstrumented
|
|
4145
4145
|
*/
|
|
4146
4146
|
const MAX_RETRIES = 3;
|
|
4147
4147
|
/**
|
|
@@ -4158,7 +4158,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4158
4158
|
* @param client - The Dynamic client instance.
|
|
4159
4159
|
* @returns A promise that resolves to the wallet book data.
|
|
4160
4160
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4161
|
-
* @
|
|
4161
|
+
* @notInstrumented
|
|
4162
4162
|
*/
|
|
4163
4163
|
const fetchLegacyWalletBook = async (client) => {
|
|
4164
4164
|
const core = getCore(client);
|
|
@@ -4191,7 +4191,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4191
4191
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4192
4192
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4193
4193
|
* different SDK entry points.
|
|
4194
|
-
* @
|
|
4194
|
+
* @notInstrumented
|
|
4195
4195
|
*/
|
|
4196
4196
|
const EMBEDDED_WALLET_KEYS = [
|
|
4197
4197
|
"magicemailotp",
|
|
@@ -4220,7 +4220,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4220
4220
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4221
4221
|
*
|
|
4222
4222
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4223
|
-
* @
|
|
4223
|
+
* @notInstrumented
|
|
4224
4224
|
*/
|
|
4225
4225
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4226
4226
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4240,7 +4240,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4240
4240
|
*
|
|
4241
4241
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4242
4242
|
* catalog, false otherwise.
|
|
4243
|
-
* @
|
|
4243
|
+
* @notInstrumented
|
|
4244
4244
|
*/
|
|
4245
4245
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4246
4246
|
if (shouldFilterWallet({
|
|
@@ -4257,7 +4257,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4257
4257
|
*
|
|
4258
4258
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4259
4259
|
* @returns The full URL to the sprite icon
|
|
4260
|
-
* @
|
|
4260
|
+
* @notInstrumented
|
|
4261
4261
|
*/
|
|
4262
4262
|
const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4263
4263
|
|
|
@@ -4265,7 +4265,7 @@ const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}
|
|
|
4265
4265
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4266
4266
|
/**
|
|
4267
4267
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4268
|
-
* @
|
|
4268
|
+
* @notInstrumented
|
|
4269
4269
|
*/
|
|
4270
4270
|
const transformGroup = ({ group }) => {
|
|
4271
4271
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4292,7 +4292,7 @@ const transformGroup = ({ group }) => {
|
|
|
4292
4292
|
*
|
|
4293
4293
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4294
4294
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4295
|
-
* @
|
|
4295
|
+
* @notInstrumented
|
|
4296
4296
|
*/
|
|
4297
4297
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4298
4298
|
const normalised = identifier.toLowerCase();
|
|
@@ -4310,7 +4310,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4310
4310
|
*
|
|
4311
4311
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4312
4312
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4313
|
-
* @
|
|
4313
|
+
* @notInstrumented
|
|
4314
4314
|
*/
|
|
4315
4315
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4316
4316
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4343,7 +4343,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4343
4343
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4344
4344
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4345
4345
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4346
|
-
* @
|
|
4346
|
+
* @notInstrumented
|
|
4347
4347
|
*/
|
|
4348
4348
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4349
4349
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4371,7 +4371,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4371
4371
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4372
4372
|
/**
|
|
4373
4373
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4374
|
-
* @
|
|
4374
|
+
* @notInstrumented
|
|
4375
4375
|
*/
|
|
4376
4376
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4377
4377
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4402,7 +4402,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4402
4402
|
/**
|
|
4403
4403
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4404
4404
|
* Filters out embedded wallets and injected-only wallets.
|
|
4405
|
-
* @
|
|
4405
|
+
* @notInstrumented
|
|
4406
4406
|
*/
|
|
4407
4407
|
const transformWalletBook = ({ walletBook }) => {
|
|
4408
4408
|
const groups = {};
|
|
@@ -4435,7 +4435,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4435
4435
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4436
4436
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4437
4437
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4438
|
-
* @
|
|
4438
|
+
* @notInstrumented
|
|
4439
4439
|
*/
|
|
4440
4440
|
const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
4441
4441
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4449,7 +4449,7 @@ const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
|
4449
4449
|
*
|
|
4450
4450
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4451
4451
|
* @returns The chain if found, undefined otherwise.
|
|
4452
|
-
* @
|
|
4452
|
+
* @notInstrumented
|
|
4453
4453
|
*/
|
|
4454
4454
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4455
4455
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4469,7 +4469,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4469
4469
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4470
4470
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4471
4471
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4472
|
-
* @
|
|
4472
|
+
* @notInstrumented
|
|
4473
4473
|
*/
|
|
4474
4474
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
4475
4475
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProviderKey);
|
|
@@ -4575,7 +4575,7 @@ const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4575
4575
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4576
4576
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4577
4577
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4578
|
-
* @
|
|
4578
|
+
* @notInstrumented
|
|
4579
4579
|
*/
|
|
4580
4580
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4581
4581
|
const core = getCore(client);
|
|
@@ -4606,7 +4606,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4606
4606
|
|
|
4607
4607
|
//#endregion
|
|
4608
4608
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4609
|
-
/** @
|
|
4609
|
+
/** @notInstrumented */
|
|
4610
4610
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4611
4611
|
const core = getCore(client);
|
|
4612
4612
|
return await createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4617,7 +4617,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4617
4617
|
|
|
4618
4618
|
//#endregion
|
|
4619
4619
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4620
|
-
/** @
|
|
4620
|
+
/** @notInstrumented */
|
|
4621
4621
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4622
4622
|
const core = getCore(client);
|
|
4623
4623
|
return await createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4648,7 +4648,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4648
4648
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4649
4649
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4650
4650
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4651
|
-
* @
|
|
4651
|
+
* @notInstrumented
|
|
4652
4652
|
*/
|
|
4653
4653
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = getDefaultClient()) => {
|
|
4654
4654
|
const core = getCore(client);
|
|
@@ -4698,7 +4698,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4698
4698
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4699
4699
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4700
4700
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4701
|
-
* @
|
|
4701
|
+
* @notInstrumented
|
|
4702
4702
|
*/
|
|
4703
4703
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4704
4704
|
const core = getCore(client);
|
|
@@ -4817,7 +4817,7 @@ const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
|
4817
4817
|
*
|
|
4818
4818
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4819
4819
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4820
|
-
* @
|
|
4820
|
+
* @notInstrumented
|
|
4821
4821
|
*/
|
|
4822
4822
|
const getMfaDevices = async (client = getDefaultClient()) => {
|
|
4823
4823
|
const core = getCore(client);
|
|
@@ -4837,7 +4837,7 @@ const getMfaDevices = async (client = getDefaultClient()) => {
|
|
|
4837
4837
|
*
|
|
4838
4838
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4839
4839
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4840
|
-
* @
|
|
4840
|
+
* @notInstrumented
|
|
4841
4841
|
*/
|
|
4842
4842
|
const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4843
4843
|
const core = getCore(client);
|
|
@@ -5922,7 +5922,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5922
5922
|
|
|
5923
5923
|
//#endregion
|
|
5924
5924
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5925
|
-
/** @
|
|
5925
|
+
/** @notInstrumented */
|
|
5926
5926
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5927
5927
|
const core = getCore(client);
|
|
5928
5928
|
const apiClient = createApiClient({}, client);
|
|
@@ -5942,7 +5942,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5942
5942
|
|
|
5943
5943
|
//#endregion
|
|
5944
5944
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5945
|
-
/** @
|
|
5945
|
+
/** @notInstrumented */
|
|
5946
5946
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5947
5947
|
const core = getCore(client);
|
|
5948
5948
|
const apiClient = createApiClient({}, client);
|
|
@@ -6013,7 +6013,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
6013
6013
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
6014
6014
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6015
6015
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
6016
|
-
* @
|
|
6016
|
+
* @notInstrumented
|
|
6017
6017
|
*/
|
|
6018
6018
|
const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
6019
6019
|
const core = getCore(client);
|
|
@@ -6048,7 +6048,7 @@ const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
|
6048
6048
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
6049
6049
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6050
6050
|
* @returns The swap status.
|
|
6051
|
-
* @
|
|
6051
|
+
* @notInstrumented
|
|
6052
6052
|
*/
|
|
6053
6053
|
const getSwapStatus = async (params, client = getDefaultClient()) => {
|
|
6054
6054
|
const core = getCore(client);
|
|
@@ -6144,7 +6144,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6144
6144
|
*
|
|
6145
6145
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6146
6146
|
* @returns The subset of required scopes that are still missing.
|
|
6147
|
-
* @
|
|
6147
|
+
* @notInstrumented
|
|
6148
6148
|
*/
|
|
6149
6149
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6150
6150
|
|
|
@@ -6162,7 +6162,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6162
6162
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6163
6163
|
* @param client - The Dynamic client instance.
|
|
6164
6164
|
* @returns The OAuth access token and granted scopes.
|
|
6165
|
-
* @
|
|
6165
|
+
* @notInstrumented
|
|
6166
6166
|
*/
|
|
6167
6167
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6168
6168
|
const core = getCore(client);
|
|
@@ -6187,7 +6187,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6187
6187
|
* `client.user?.verifiedCredentials`.
|
|
6188
6188
|
* @returns The credential id of the linked Google oauth account, or
|
|
6189
6189
|
* `undefined`.
|
|
6190
|
-
* @
|
|
6190
|
+
* @notInstrumented
|
|
6191
6191
|
*/
|
|
6192
6192
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6193
6193
|
|
|
@@ -6271,7 +6271,7 @@ const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
|
6271
6271
|
*
|
|
6272
6272
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6273
6273
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6274
|
-
* @
|
|
6274
|
+
* @notInstrumented
|
|
6275
6275
|
*/
|
|
6276
6276
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6277
6277
|
|
|
@@ -6288,7 +6288,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6288
6288
|
* @param err - The unknown value to check.
|
|
6289
6289
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6290
6290
|
* Drive access was denied.
|
|
6291
|
-
* @
|
|
6291
|
+
* @notInstrumented
|
|
6292
6292
|
*/
|
|
6293
6293
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6294
6294
|
|
|
@@ -6296,57 +6296,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6296
6296
|
//#region src/utils/isMobile/isMobile.ts
|
|
6297
6297
|
/**
|
|
6298
6298
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6299
|
-
* @
|
|
6299
|
+
* @notInstrumented
|
|
6300
6300
|
*/
|
|
6301
6301
|
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;
|
|
6302
6302
|
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;
|
|
6303
|
-
/** @
|
|
6303
|
+
/** @notInstrumented */
|
|
6304
6304
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6305
6305
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6306
6306
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6307
6307
|
};
|
|
6308
|
-
/** @
|
|
6308
|
+
/** @notInstrumented */
|
|
6309
6309
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6310
6310
|
/**
|
|
6311
6311
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6312
6312
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6313
6313
|
* to mock it
|
|
6314
|
-
* @
|
|
6314
|
+
* @notInstrumented
|
|
6315
6315
|
*/
|
|
6316
6316
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6317
6317
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6318
6318
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6319
6319
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6320
6320
|
};
|
|
6321
|
-
/** @
|
|
6321
|
+
/** @notInstrumented */
|
|
6322
6322
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6323
6323
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6324
6324
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6325
6325
|
};
|
|
6326
|
-
/** @
|
|
6326
|
+
/** @notInstrumented */
|
|
6327
6327
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6328
|
-
/** @
|
|
6328
|
+
/** @notInstrumented */
|
|
6329
6329
|
const isSafariBrowser = () => {
|
|
6330
6330
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6331
6331
|
const { userAgent } = navigator;
|
|
6332
6332
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6333
6333
|
};
|
|
6334
|
-
/** @
|
|
6334
|
+
/** @notInstrumented */
|
|
6335
6335
|
const isEdgeBrowser = () => {
|
|
6336
6336
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6337
6337
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6338
6338
|
};
|
|
6339
|
-
/** @
|
|
6339
|
+
/** @notInstrumented */
|
|
6340
6340
|
const isOperaBrowser = () => {
|
|
6341
6341
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6342
6342
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6343
6343
|
};
|
|
6344
|
-
/** @
|
|
6344
|
+
/** @notInstrumented */
|
|
6345
6345
|
const isFirefoxBrowser = () => {
|
|
6346
6346
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6347
6347
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6348
6348
|
};
|
|
6349
|
-
/** @
|
|
6349
|
+
/** @notInstrumented */
|
|
6350
6350
|
const isChromeBrowser = () => {
|
|
6351
6351
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6352
6352
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6380,7 +6380,7 @@ const isChromeBrowser = () => {
|
|
|
6380
6380
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6381
6381
|
* record (from `getWalletOptionsCatalogue`).
|
|
6382
6382
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6383
|
-
* @
|
|
6383
|
+
* @notInstrumented
|
|
6384
6384
|
*/
|
|
6385
6385
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6386
6386
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6406,7 +6406,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6406
6406
|
* @param params.wallet - The wallet entry.
|
|
6407
6407
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6408
6408
|
* @returns The wallet option key.
|
|
6409
|
-
* @
|
|
6409
|
+
* @notInstrumented
|
|
6410
6410
|
*/
|
|
6411
6411
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6412
6412
|
|
|
@@ -6421,7 +6421,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6421
6421
|
*
|
|
6422
6422
|
* @param params.wallet - The wallet book wallet entry.
|
|
6423
6423
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6424
|
-
* @
|
|
6424
|
+
* @notInstrumented
|
|
6425
6425
|
*/
|
|
6426
6426
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6427
6427
|
|
|
@@ -6439,7 +6439,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6439
6439
|
*
|
|
6440
6440
|
* @param params.walletBook - The fetched wallet book.
|
|
6441
6441
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6442
|
-
* @
|
|
6442
|
+
* @notInstrumented
|
|
6443
6443
|
*/
|
|
6444
6444
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6445
6445
|
const result = [];
|
|
@@ -6486,7 +6486,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6486
6486
|
*
|
|
6487
6487
|
* @param params.wallet - The wallet book entry.
|
|
6488
6488
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6489
|
-
* @
|
|
6489
|
+
* @notInstrumented
|
|
6490
6490
|
*/
|
|
6491
6491
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6492
6492
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6530,7 +6530,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6530
6530
|
*
|
|
6531
6531
|
* @param params.walletBook - The fetched wallet book.
|
|
6532
6532
|
* @returns A map from wallet option key to its install URL bag.
|
|
6533
|
-
* @
|
|
6533
|
+
* @notInstrumented
|
|
6534
6534
|
*/
|
|
6535
6535
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6536
6536
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6561,7 +6561,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6561
6561
|
*
|
|
6562
6562
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6563
6563
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6564
|
-
* @
|
|
6564
|
+
* @notInstrumented
|
|
6565
6565
|
*/
|
|
6566
6566
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6567
6567
|
|
|
@@ -6600,7 +6600,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6600
6600
|
*
|
|
6601
6601
|
* @param params.walletBook - The fetched wallet book.
|
|
6602
6602
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6603
|
-
* @
|
|
6603
|
+
* @notInstrumented
|
|
6604
6604
|
*/
|
|
6605
6605
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6606
6606
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6647,7 +6647,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6647
6647
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6648
6648
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6649
6649
|
* @returns Ordered, deduped array of Chains.
|
|
6650
|
-
* @
|
|
6650
|
+
* @notInstrumented
|
|
6651
6651
|
*/
|
|
6652
6652
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6653
6653
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6698,7 +6698,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6698
6698
|
*
|
|
6699
6699
|
* @param params.walletBook - The fetched wallet book.
|
|
6700
6700
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6701
|
-
* @
|
|
6701
|
+
* @notInstrumented
|
|
6702
6702
|
*/
|
|
6703
6703
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6704
6704
|
const result = [];
|
|
@@ -6765,7 +6765,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6765
6765
|
* @param params.walletBook - The fetched wallet book.
|
|
6766
6766
|
* @param params.walletOptionKey - The wallet option key.
|
|
6767
6767
|
* @returns The constructed wallet option.
|
|
6768
|
-
* @
|
|
6768
|
+
* @notInstrumented
|
|
6769
6769
|
*/
|
|
6770
6770
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6771
6771
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6803,7 +6803,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6803
6803
|
*
|
|
6804
6804
|
* @param params.walletProvider - The wallet provider to test.
|
|
6805
6805
|
* @returns True when the provider exposes a `connect` method.
|
|
6806
|
-
* @
|
|
6806
|
+
* @notInstrumented
|
|
6807
6807
|
*/
|
|
6808
6808
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6809
6809
|
|
|
@@ -6830,7 +6830,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6830
6830
|
* @param params.entry - The registry entry to classify.
|
|
6831
6831
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6832
6832
|
* surface a `withWalletProvider` option.
|
|
6833
|
-
* @
|
|
6833
|
+
* @notInstrumented
|
|
6834
6834
|
*/
|
|
6835
6835
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6836
6836
|
const { priority } = entry;
|
|
@@ -6851,7 +6851,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6851
6851
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6852
6852
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6853
6853
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6854
|
-
* @
|
|
6854
|
+
* @notInstrumented
|
|
6855
6855
|
*/
|
|
6856
6856
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6857
6857
|
const suffix = chain.toLowerCase();
|
|
@@ -6880,7 +6880,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6880
6880
|
*
|
|
6881
6881
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6882
6882
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6883
|
-
* @
|
|
6883
|
+
* @notInstrumented
|
|
6884
6884
|
*/
|
|
6885
6885
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6886
6886
|
|
|
@@ -6898,7 +6898,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6898
6898
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6899
6899
|
* @param params.walletBook - The fetched wallet book.
|
|
6900
6900
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6901
|
-
* @
|
|
6901
|
+
* @notInstrumented
|
|
6902
6902
|
*/
|
|
6903
6903
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6904
6904
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6916,7 +6916,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6916
6916
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6917
6917
|
* @param params.wallet - The wallet book wallet entry.
|
|
6918
6918
|
* @returns The resolved wallet option key.
|
|
6919
|
-
* @
|
|
6919
|
+
* @notInstrumented
|
|
6920
6920
|
*/
|
|
6921
6921
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6922
6922
|
|
|
@@ -6953,7 +6953,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6953
6953
|
* @param params.walletBook - The fetched wallet book.
|
|
6954
6954
|
* @param params.walletProvider - The registered wallet provider.
|
|
6955
6955
|
* @returns The wallet option key for this provider.
|
|
6956
|
-
* @
|
|
6956
|
+
* @notInstrumented
|
|
6957
6957
|
*/
|
|
6958
6958
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6959
6959
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProvider.key);
|
|
@@ -7001,7 +7001,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
7001
7001
|
* @param params.walletBook - The fetched wallet book.
|
|
7002
7002
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
7003
7003
|
* @returns An array of tagged options, in input order.
|
|
7004
|
-
* @
|
|
7004
|
+
* @notInstrumented
|
|
7005
7005
|
*/
|
|
7006
7006
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
7007
7007
|
const result = [];
|
|
@@ -7073,7 +7073,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
7073
7073
|
* @param params.options - The tagged options to group.
|
|
7074
7074
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
7075
7075
|
* iterable in first-seen order.
|
|
7076
|
-
* @
|
|
7076
|
+
* @notInstrumented
|
|
7077
7077
|
*/
|
|
7078
7078
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
7079
7079
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7113,7 +7113,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7113
7113
|
*
|
|
7114
7114
|
* @param params.option - The connection option to inspect.
|
|
7115
7115
|
* @returns The numeric priority — lower is better.
|
|
7116
|
-
* @
|
|
7116
|
+
* @notInstrumented
|
|
7117
7117
|
*/
|
|
7118
7118
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7119
7119
|
|
|
@@ -7130,7 +7130,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7130
7130
|
*
|
|
7131
7131
|
* @param params.options - The options to sort.
|
|
7132
7132
|
* @returns A new array in priority order.
|
|
7133
|
-
* @
|
|
7133
|
+
* @notInstrumented
|
|
7134
7134
|
*/
|
|
7135
7135
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7136
7136
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7178,7 +7178,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7178
7178
|
*
|
|
7179
7179
|
* @param params.walletOption - The wallet option to inspect.
|
|
7180
7180
|
* @returns Numeric priority index — lower is better.
|
|
7181
|
-
* @
|
|
7181
|
+
* @notInstrumented
|
|
7182
7182
|
*/
|
|
7183
7183
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7184
7184
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7195,7 +7195,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7195
7195
|
* @param params.a - First wallet option.
|
|
7196
7196
|
* @param params.b - Second wallet option.
|
|
7197
7197
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7198
|
-
* @
|
|
7198
|
+
* @notInstrumented
|
|
7199
7199
|
*/
|
|
7200
7200
|
const compareByRelevance = ({ a, b }) => {
|
|
7201
7201
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7215,7 +7215,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7215
7215
|
*
|
|
7216
7216
|
* @param params.walletOption - The wallet option to inspect.
|
|
7217
7217
|
* @returns True when `connectionOptions` is non-empty.
|
|
7218
|
-
* @
|
|
7218
|
+
* @notInstrumented
|
|
7219
7219
|
*/
|
|
7220
7220
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7221
7221
|
|
|
@@ -7230,7 +7230,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7230
7230
|
*
|
|
7231
7231
|
* @param params.walletOption - The wallet option to inspect.
|
|
7232
7232
|
* @returns True when an installed provider is available.
|
|
7233
|
-
* @
|
|
7233
|
+
* @notInstrumented
|
|
7234
7234
|
*/
|
|
7235
7235
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7236
7236
|
|
|
@@ -7260,7 +7260,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7260
7260
|
* @param params.walletOptions - The wallet options to sort.
|
|
7261
7261
|
* @param params.ordering - The requested ordering.
|
|
7262
7262
|
* @returns A new array in the requested order.
|
|
7263
|
-
* @
|
|
7263
|
+
* @notInstrumented
|
|
7264
7264
|
*/
|
|
7265
7265
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7266
7266
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7309,7 +7309,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7309
7309
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7310
7310
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7311
7311
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7312
|
-
* @
|
|
7312
|
+
* @notInstrumented
|
|
7313
7313
|
*/
|
|
7314
7314
|
const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient()) => {
|
|
7315
7315
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7366,7 +7366,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
7366
7366
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7367
7367
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7368
7368
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7369
|
-
* @
|
|
7369
|
+
* @notInstrumented
|
|
7370
7370
|
*/
|
|
7371
7371
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7372
7372
|
const { addresses } = await getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7415,7 +7415,7 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
7415
7415
|
|
|
7416
7416
|
//#endregion
|
|
7417
7417
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7418
|
-
/** @
|
|
7418
|
+
/** @notInstrumented */
|
|
7419
7419
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7420
7420
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7421
7421
|
};
|
|
@@ -7490,13 +7490,13 @@ const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7490
7490
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7491
7491
|
* @param params.signature - The raw signature string to wrap.
|
|
7492
7492
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7493
|
-
* @
|
|
7493
|
+
* @notInstrumented
|
|
7494
7494
|
*/
|
|
7495
7495
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7496
7496
|
|
|
7497
7497
|
//#endregion
|
|
7498
7498
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7499
|
-
/** @
|
|
7499
|
+
/** @notInstrumented */
|
|
7500
7500
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7501
7501
|
if ([
|
|
7502
7502
|
"BTC",
|
|
@@ -7510,7 +7510,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7510
7510
|
|
|
7511
7511
|
//#endregion
|
|
7512
7512
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7513
|
-
/** @
|
|
7513
|
+
/** @notInstrumented */
|
|
7514
7514
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7515
7515
|
const core = getCore(client);
|
|
7516
7516
|
const { appUniversalLink } = getAppMetadata(client);
|
|
@@ -7587,7 +7587,7 @@ const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
|
7587
7587
|
|
|
7588
7588
|
//#endregion
|
|
7589
7589
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7590
|
-
/** @
|
|
7590
|
+
/** @notInstrumented */
|
|
7591
7591
|
const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
7592
7592
|
address: left,
|
|
7593
7593
|
chain
|
|
@@ -7598,7 +7598,7 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
7598
7598
|
|
|
7599
7599
|
//#endregion
|
|
7600
7600
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7601
|
-
/** @
|
|
7601
|
+
/** @notInstrumented */
|
|
7602
7602
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7603
7603
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7604
7604
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7684,7 +7684,7 @@ const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
|
7684
7684
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7685
7685
|
/**
|
|
7686
7686
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7687
|
-
* @
|
|
7687
|
+
* @notInstrumented
|
|
7688
7688
|
*/
|
|
7689
7689
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === WalletProviderEnum.DeepLink;
|
|
7690
7690
|
|
|
@@ -7751,7 +7751,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7751
7751
|
*
|
|
7752
7752
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7753
7753
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7754
|
-
* @
|
|
7754
|
+
* @notInstrumented
|
|
7755
7755
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7756
7756
|
*/
|
|
7757
7757
|
const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
@@ -7775,7 +7775,7 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
|
7775
7775
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7776
7776
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7777
7777
|
* @returns An array of connected wallet addresses.
|
|
7778
|
-
* @
|
|
7778
|
+
* @notInstrumented
|
|
7779
7779
|
*/
|
|
7780
7780
|
const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7781
7781
|
return getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7783,7 +7783,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient(
|
|
|
7783
7783
|
|
|
7784
7784
|
//#endregion
|
|
7785
7785
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7786
|
-
/** @
|
|
7786
|
+
/** @notInstrumented */
|
|
7787
7787
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient()) => {
|
|
7788
7788
|
const smartWalletVerifiedCredential = getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7789
7789
|
assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7792,7 +7792,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7792
7792
|
|
|
7793
7793
|
//#endregion
|
|
7794
7794
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7795
|
-
/** @
|
|
7795
|
+
/** @notInstrumented */
|
|
7796
7796
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7797
7797
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7798
7798
|
};
|
|
@@ -7805,7 +7805,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7805
7805
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7806
7806
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7807
7807
|
* @returns The data for the wallet provider.
|
|
7808
|
-
* @
|
|
7808
|
+
* @notInstrumented
|
|
7809
7809
|
*/
|
|
7810
7810
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7811
7811
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7827,7 +7827,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultCl
|
|
|
7827
7827
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7828
7828
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7829
7829
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7830
|
-
* @
|
|
7830
|
+
* @notInstrumented
|
|
7831
7831
|
*/
|
|
7832
7832
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
|
|
7833
7833
|
return getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7840,7 +7840,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7840
7840
|
*
|
|
7841
7841
|
* @param params.walletAccount - The wallet account to check.
|
|
7842
7842
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7843
|
-
* @
|
|
7843
|
+
* @notInstrumented
|
|
7844
7844
|
*/
|
|
7845
7845
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7846
7846
|
|
|
@@ -7856,7 +7856,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7856
7856
|
*
|
|
7857
7857
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7858
7858
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7859
|
-
* @
|
|
7859
|
+
* @notInstrumented
|
|
7860
7860
|
*/
|
|
7861
7861
|
const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
|
|
7862
7862
|
|
|
@@ -7867,7 +7867,7 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
|
|
|
7867
7867
|
*
|
|
7868
7868
|
* @param walletAccount - The wallet account to check.
|
|
7869
7869
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7870
|
-
* @
|
|
7870
|
+
* @notInstrumented
|
|
7871
7871
|
*/
|
|
7872
7872
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7873
7873
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7922,7 +7922,7 @@ const __addNetwork_wrapped = instrumentFunction({
|
|
|
7922
7922
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7923
7923
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7924
7924
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7925
|
-
* @
|
|
7925
|
+
* @notInstrumented
|
|
7926
7926
|
*/
|
|
7927
7927
|
const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7928
7928
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7938,7 +7938,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient
|
|
|
7938
7938
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7939
7939
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7940
7940
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7941
|
-
* @
|
|
7941
|
+
* @notInstrumented
|
|
7942
7942
|
*/
|
|
7943
7943
|
const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7944
7944
|
return getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7959,7 +7959,7 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
|
7959
7959
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7960
7960
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7961
7961
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7962
|
-
* @
|
|
7962
|
+
* @notInstrumented
|
|
7963
7963
|
*/
|
|
7964
7964
|
const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7965
7965
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7978,7 +7978,7 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
|
|
|
7978
7978
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7979
7979
|
* `getMultichainTokenBalances`).
|
|
7980
7980
|
*
|
|
7981
|
-
* @
|
|
7981
|
+
* @notInstrumented
|
|
7982
7982
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7983
7983
|
*/
|
|
7984
7984
|
const getBalance = (params, client = getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7996,7 +7996,7 @@ const getBalance = (params, client = getDefaultClient()) => getNativeBalance(par
|
|
|
7996
7996
|
* @param params.networkId - The specific network ID within the chain.
|
|
7997
7997
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7998
7998
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7999
|
-
* @
|
|
7999
|
+
* @notInstrumented
|
|
8000
8000
|
*/
|
|
8001
8001
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = getDefaultClient()) => {
|
|
8002
8002
|
const networkProvider = getNetworkProviderFromNetworkId({
|
|
@@ -8023,7 +8023,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
8023
8023
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
8024
8024
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8025
8025
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
8026
|
-
* @
|
|
8026
|
+
* @notInstrumented
|
|
8027
8027
|
*/
|
|
8028
8028
|
const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
8029
8029
|
const core = getCore(client);
|
|
@@ -8049,7 +8049,7 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
8049
8049
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
8050
8050
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8051
8051
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
8052
|
-
* @
|
|
8052
|
+
* @notInstrumented
|
|
8053
8053
|
*/
|
|
8054
8054
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDefaultClient()) => {
|
|
8055
8055
|
return getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8131,7 +8131,7 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
8131
8131
|
*
|
|
8132
8132
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8133
8133
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8134
|
-
* @
|
|
8134
|
+
* @notInstrumented
|
|
8135
8135
|
*/
|
|
8136
8136
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8137
8137
|
try {
|
|
@@ -8306,7 +8306,7 @@ const __transferWalletAccount_wrapped = instrumentFunction({
|
|
|
8306
8306
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8307
8307
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8308
8308
|
* @returns The matching wallet account, or undefined if not found.
|
|
8309
|
-
* @
|
|
8309
|
+
* @notInstrumented
|
|
8310
8310
|
*/
|
|
8311
8311
|
const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
|
|
8312
8312
|
return getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8323,7 +8323,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClie
|
|
|
8323
8323
|
* @param params.event - The event name to remove the listener from.
|
|
8324
8324
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8325
8325
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8326
|
-
* @
|
|
8326
|
+
* @notInstrumented
|
|
8327
8327
|
*/
|
|
8328
8328
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
8329
8329
|
const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8341,7 +8341,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8341
8341
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8342
8342
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8343
8343
|
* @returns A function that can be called to remove the listener.
|
|
8344
|
-
* @
|
|
8344
|
+
* @notInstrumented
|
|
8345
8345
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8346
8346
|
*/
|
|
8347
8347
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
@@ -8375,7 +8375,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8375
8375
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8376
8376
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8377
8377
|
* ```
|
|
8378
|
-
* @
|
|
8378
|
+
* @notInstrumented
|
|
8379
8379
|
*/
|
|
8380
8380
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8381
8381
|
const url = new URL(deeplinkUrl);
|
|
@@ -8446,7 +8446,7 @@ const osMatchers = [
|
|
|
8446
8446
|
pattern: /CrOS/
|
|
8447
8447
|
}
|
|
8448
8448
|
];
|
|
8449
|
-
/** @
|
|
8449
|
+
/** @notInstrumented */
|
|
8450
8450
|
const parseUserAgent = ({ userAgent }) => {
|
|
8451
8451
|
if (!userAgent?.trim()) return null;
|
|
8452
8452
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|