@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.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-
|
|
2
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
3
|
-
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-
|
|
4
|
-
const require_getWalletProviderByKey = require('./getWalletProviderByKey-
|
|
5
|
-
const require_refreshAuth = require('./refreshAuth-
|
|
6
|
-
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-
|
|
7
|
-
const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-
|
|
1
|
+
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-CgWBU6kM.cjs');
|
|
2
|
+
const require_InvalidParamError = require('./InvalidParamError-C7c-OLz1.cjs');
|
|
3
|
+
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-D8cpx0xz.cjs');
|
|
4
|
+
const require_getWalletProviderByKey = require('./getWalletProviderByKey-DCKYAida.cjs');
|
|
5
|
+
const require_refreshAuth = require('./refreshAuth-ByIVzawo.cjs');
|
|
6
|
+
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-BtbzDbdz.cjs');
|
|
7
|
+
const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-OP4uyUlE.cjs');
|
|
8
8
|
let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
|
|
9
9
|
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
|
|
10
10
|
let zod_mini = require("zod/mini");
|
|
@@ -32,7 +32,7 @@ const stateChangeEvents = {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
|
|
35
|
-
/** @
|
|
35
|
+
/** @notInstrumented */
|
|
36
36
|
const prefetchNoncesIfNeeded = async (client) => {
|
|
37
37
|
if (require_InvalidParamError.getCore(client).state.get().prefetchedNonces.length >= require_InvalidParamError.NONCE_POOL_SIZE) return;
|
|
38
38
|
await require_InvalidParamError.fetchAndStoreNonces(client);
|
|
@@ -44,7 +44,7 @@ const prefetchNoncesIfNeeded = async (client) => {
|
|
|
44
44
|
* Creates a new runtime services instance that manages service registration and retrieval.
|
|
45
45
|
*
|
|
46
46
|
* @returns A RuntimeServices object with methods to get, register, and unregister services
|
|
47
|
-
* @
|
|
47
|
+
* @notInstrumented
|
|
48
48
|
*/
|
|
49
49
|
const createRuntimeServices = () => {
|
|
50
50
|
const registry = /* @__PURE__ */ new Map();
|
|
@@ -59,7 +59,7 @@ const createRuntimeServices = () => {
|
|
|
59
59
|
//#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
|
|
60
60
|
/**
|
|
61
61
|
* A replacement for setTimeout that supports delays longer than 2147483647ms (~24.8 days).
|
|
62
|
-
* @
|
|
62
|
+
* @notInstrumented
|
|
63
63
|
*/
|
|
64
64
|
const setLongTimeout = ({ callback, delay }) => {
|
|
65
65
|
const MAX_DELAY = 2147483647;
|
|
@@ -82,7 +82,7 @@ const setLongTimeout = ({ callback, delay }) => {
|
|
|
82
82
|
//#region src/modules/auth/initializeAuth/initializeAuth.ts
|
|
83
83
|
/**
|
|
84
84
|
* Sets up a timeout to log out the user when their token expires.
|
|
85
|
-
* @
|
|
85
|
+
* @notInstrumented
|
|
86
86
|
*/
|
|
87
87
|
const initializeAuth = (client) => {
|
|
88
88
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -124,7 +124,7 @@ const initializeAuth = (client) => {
|
|
|
124
124
|
* - Emits corresponding "*InAnotherTab" events on core.eventEmitter
|
|
125
125
|
*
|
|
126
126
|
* @param client - The Dynamic client instance
|
|
127
|
-
* @
|
|
127
|
+
* @notInstrumented
|
|
128
128
|
*/
|
|
129
129
|
const setupCrossTabEventSync = (client) => {
|
|
130
130
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -216,7 +216,7 @@ var KeyMigrationError = class extends require_InvalidParamError.BaseError {
|
|
|
216
216
|
*
|
|
217
217
|
* Idempotent: skips if the keychain already has a `session` key.
|
|
218
218
|
* Throws on failure — callers should handle errors (e.g. .catch(() => logout(client))).
|
|
219
|
-
* @
|
|
219
|
+
* @notInstrumented
|
|
220
220
|
*/
|
|
221
221
|
const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage }) => {
|
|
222
222
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return;
|
|
@@ -261,7 +261,7 @@ const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage })
|
|
|
261
261
|
|
|
262
262
|
//#endregion
|
|
263
263
|
//#region src/modules/state/raiseStateEvents/raiseStateEvents.ts
|
|
264
|
-
/** @
|
|
264
|
+
/** @notInstrumented */
|
|
265
265
|
const raiseStateEvents = (client) => {
|
|
266
266
|
require_InvalidParamError.getCore(client).state.subscribe((value, previous) => {
|
|
267
267
|
Object.entries(stateChangeEvents).forEach(([key, event]) => {
|
|
@@ -276,7 +276,7 @@ const raiseStateEvents = (client) => {
|
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts
|
|
279
|
-
/** @
|
|
279
|
+
/** @notInstrumented */
|
|
280
280
|
const hydrateStateWithStorage = async (client) => {
|
|
281
281
|
const core = require_InvalidParamError.getCore(client);
|
|
282
282
|
const previousState = core.state.get();
|
|
@@ -314,7 +314,7 @@ const hydrateStateWithStorage = async (client) => {
|
|
|
314
314
|
|
|
315
315
|
//#endregion
|
|
316
316
|
//#region src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts
|
|
317
|
-
/** @
|
|
317
|
+
/** @notInstrumented */
|
|
318
318
|
const syncStateWithStorage = (client) => {
|
|
319
319
|
const core = require_InvalidParamError.getCore(client);
|
|
320
320
|
core.state.subscribe((state) => {
|
|
@@ -347,7 +347,7 @@ const syncStateWithStorage = (client) => {
|
|
|
347
347
|
|
|
348
348
|
//#endregion
|
|
349
349
|
//#region src/modules/storageSync/initializeStorageSync.ts
|
|
350
|
-
/** @
|
|
350
|
+
/** @notInstrumented */
|
|
351
351
|
const initializeStorageSync = async (client) => {
|
|
352
352
|
await hydrateStateWithStorage(client);
|
|
353
353
|
syncStateWithStorage(client);
|
|
@@ -538,7 +538,7 @@ const __initializeClient_wrapped = require_InvalidParamError.instrumentFunction(
|
|
|
538
538
|
//#region src/services/asyncTrack/createAsyncTrack.ts
|
|
539
539
|
/**
|
|
540
540
|
* Creates a tracker that associates names with promises and raises as promises resolve.
|
|
541
|
-
* @
|
|
541
|
+
* @notInstrumented
|
|
542
542
|
*/
|
|
543
543
|
const createAsyncTrack = () => {
|
|
544
544
|
/**
|
|
@@ -594,7 +594,7 @@ const createAsyncTrack = () => {
|
|
|
594
594
|
|
|
595
595
|
//#endregion
|
|
596
596
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
597
|
-
/** @
|
|
597
|
+
/** @notInstrumented */
|
|
598
598
|
const createEventEmitter = () => new eventemitter3.default();
|
|
599
599
|
|
|
600
600
|
//#endregion
|
|
@@ -615,7 +615,7 @@ var UnavailableInServerSideError = class extends require_InvalidParamError.BaseE
|
|
|
615
615
|
//#region src/services/fetch/createWebFetch.ts
|
|
616
616
|
/**
|
|
617
617
|
* Creates a fetch instance that uses the native window.fetch API.
|
|
618
|
-
* @
|
|
618
|
+
* @notInstrumented
|
|
619
619
|
*/
|
|
620
620
|
const createWebFetch = () => {
|
|
621
621
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebFetch"));
|
|
@@ -631,7 +631,7 @@ const createWebFetch = () => {
|
|
|
631
631
|
* Bridges the logger and instrumentation subsystems without coupling them
|
|
632
632
|
* at construction time — either can exist without the other.
|
|
633
633
|
* Only error-level log entries are forwarded.
|
|
634
|
-
* @
|
|
634
|
+
* @notInstrumented
|
|
635
635
|
*/
|
|
636
636
|
const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumentation, logger, sdkSessionId, sdkVersion, state }) => {
|
|
637
637
|
logger.on("log", (level, message, ...args) => {
|
|
@@ -676,7 +676,7 @@ const buildPiiFields = (customFields = []) => {
|
|
|
676
676
|
*
|
|
677
677
|
* Custom piiFields are merged with and deduplicated against the defaults so
|
|
678
678
|
* callers only need to list additional fields, not replicate the baseline.
|
|
679
|
-
* @
|
|
679
|
+
* @notInstrumented
|
|
680
680
|
*/
|
|
681
681
|
const createInstrumentation = ({ config: inputConfig } = {}) => {
|
|
682
682
|
let transport;
|
|
@@ -718,7 +718,7 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
|
|
|
718
718
|
*
|
|
719
719
|
* Works in both browser and SSR environments — fetch is injected and
|
|
720
720
|
* queueMicrotask is available in Node.js >= 11.
|
|
721
|
-
* @
|
|
721
|
+
* @notInstrumented
|
|
722
722
|
*/
|
|
723
723
|
const createDynamicTransport = (params) => {
|
|
724
724
|
const queue = [];
|
|
@@ -747,7 +747,7 @@ const createDynamicTransport = (params) => {
|
|
|
747
747
|
//#region src/services/navigate/createNavigationHandler/createNavigationHandler.ts
|
|
748
748
|
/**
|
|
749
749
|
* Creates a navigation handler that uses the native window.location API.
|
|
750
|
-
* @
|
|
750
|
+
* @notInstrumented
|
|
751
751
|
*/
|
|
752
752
|
const createNavigationHandler = () => {
|
|
753
753
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createNavigationHandler"));
|
|
@@ -770,7 +770,7 @@ const createNavigationHandler = () => {
|
|
|
770
770
|
* the browser focuses the lingering about:blank after the redirect tab closes.
|
|
771
771
|
* `window.location.assign` reuses the current tab, avoiding the extra tab
|
|
772
772
|
* entirely.
|
|
773
|
-
* @
|
|
773
|
+
* @notInstrumented
|
|
774
774
|
*/
|
|
775
775
|
const createWebDeeplinkOpener = () => {
|
|
776
776
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebDeeplinkOpener"));
|
|
@@ -784,7 +784,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
784
784
|
/**
|
|
785
785
|
* Because this is the web implementation of the passkey service, we need to
|
|
786
786
|
* import the browser's WebAuthn API directly.
|
|
787
|
-
* @
|
|
787
|
+
* @notInstrumented
|
|
788
788
|
*/
|
|
789
789
|
/**
|
|
790
790
|
* Create a passkey service that uses the browser's WebAuthn API.
|
|
@@ -792,7 +792,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
792
792
|
* Metadata is accepted for parity with the native implementation (which uses
|
|
793
793
|
* `universalLink` to validate the associated domain) but is unused on web —
|
|
794
794
|
* the browser derives the relying party from `window.location.origin`.
|
|
795
|
-
* @
|
|
795
|
+
* @notInstrumented
|
|
796
796
|
*/
|
|
797
797
|
const createPasskeyService = (_params) => ({
|
|
798
798
|
authenticate: (options) => (0, _simplewebauthn_browser.startAuthentication)(options),
|
|
@@ -802,7 +802,7 @@ const createPasskeyService = (_params) => ({
|
|
|
802
802
|
|
|
803
803
|
//#endregion
|
|
804
804
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
805
|
-
/** @
|
|
805
|
+
/** @notInstrumented */
|
|
806
806
|
const createDebouncedMutex = () => {
|
|
807
807
|
const mutexState = /* @__PURE__ */ new Map();
|
|
808
808
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -887,7 +887,7 @@ var InvalidStorageValue = class extends require_InvalidParamError.BaseError {
|
|
|
887
887
|
* // Unsubscribe when done
|
|
888
888
|
* unsubscribe();
|
|
889
889
|
* ```
|
|
890
|
-
* @
|
|
890
|
+
* @notInstrumented
|
|
891
891
|
*/
|
|
892
892
|
const createObservableState = (getInitialState$1) => {
|
|
893
893
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -931,7 +931,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
931
931
|
//#region src/client/core/createCore/getInitialState.ts
|
|
932
932
|
/**
|
|
933
933
|
* The initial values for the state of the client.
|
|
934
|
-
* @
|
|
934
|
+
* @notInstrumented
|
|
935
935
|
*/
|
|
936
936
|
const getInitialState = () => ({
|
|
937
937
|
captchaToken: null,
|
|
@@ -956,7 +956,7 @@ const getInitialState = () => ({
|
|
|
956
956
|
//#region src/client/core/createCore/createCore.ts
|
|
957
957
|
/**
|
|
958
958
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
959
|
-
* @
|
|
959
|
+
* @notInstrumented
|
|
960
960
|
*/
|
|
961
961
|
const createCore = (config) => {
|
|
962
962
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1657,7 +1657,7 @@ const __signInWithExternalJwt_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
1657
1657
|
*
|
|
1658
1658
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1659
1659
|
* @returns A promise that resolves when the logout process is complete.
|
|
1660
|
-
* @
|
|
1660
|
+
* @notInstrumented
|
|
1661
1661
|
*/
|
|
1662
1662
|
const logout = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
1663
1663
|
/**
|
|
@@ -1712,7 +1712,7 @@ const __deletePasskey_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
1712
1712
|
*
|
|
1713
1713
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1714
1714
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1715
|
-
* @
|
|
1715
|
+
* @notInstrumented
|
|
1716
1716
|
*/
|
|
1717
1717
|
const getPasskeys = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
1718
1718
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -1721,7 +1721,7 @@ const getPasskeys = async (client = require_InvalidParamError.getDefaultClient()
|
|
|
1721
1721
|
|
|
1722
1722
|
//#endregion
|
|
1723
1723
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1724
|
-
/** @
|
|
1724
|
+
/** @notInstrumented */
|
|
1725
1725
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1726
1726
|
const core = require_InvalidParamError.getCore(client);
|
|
1727
1727
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1729,7 +1729,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1729
1729
|
|
|
1730
1730
|
//#endregion
|
|
1731
1731
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1732
|
-
/** @
|
|
1732
|
+
/** @notInstrumented */
|
|
1733
1733
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1734
1734
|
const core = require_InvalidParamError.getCore(client);
|
|
1735
1735
|
return await require_InvalidParamError.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1788,7 +1788,7 @@ const __registerPasskey_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
1788
1788
|
|
|
1789
1789
|
//#endregion
|
|
1790
1790
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1791
|
-
/** @
|
|
1791
|
+
/** @notInstrumented */
|
|
1792
1792
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1793
1793
|
const core = require_InvalidParamError.getCore(client);
|
|
1794
1794
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1799,7 +1799,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1799
1799
|
|
|
1800
1800
|
//#endregion
|
|
1801
1801
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1802
|
-
/** @
|
|
1802
|
+
/** @notInstrumented */
|
|
1803
1803
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1804
1804
|
const core = require_InvalidParamError.getCore(client);
|
|
1805
1805
|
return await require_InvalidParamError.createApiClient({}, client).signinWithPasskey({
|
|
@@ -1859,7 +1859,7 @@ const __signInWithPasskey_wrapped = require_InvalidParamError.instrumentFunction
|
|
|
1859
1859
|
*
|
|
1860
1860
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1861
1861
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1862
|
-
* @
|
|
1862
|
+
* @notInstrumented
|
|
1863
1863
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1864
1864
|
*/
|
|
1865
1865
|
const getUserSocialAccounts = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -1878,7 +1878,7 @@ const getUserSocialAccounts = (client = require_InvalidParamError.getDefaultClie
|
|
|
1878
1878
|
|
|
1879
1879
|
//#endregion
|
|
1880
1880
|
//#region src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts
|
|
1881
|
-
/** @
|
|
1881
|
+
/** @notInstrumented */
|
|
1882
1882
|
const removeDynamicOauthParamsFromUrl = (url) => {
|
|
1883
1883
|
const urlObject = new URL(url);
|
|
1884
1884
|
urlObject.searchParams.delete("dynamicOauthState");
|
|
@@ -1900,7 +1900,7 @@ const redirectStateStorageKeySchema = require_isMfaRequiredForAction.createStora
|
|
|
1900
1900
|
|
|
1901
1901
|
//#endregion
|
|
1902
1902
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
1903
|
-
/** @
|
|
1903
|
+
/** @notInstrumented */
|
|
1904
1904
|
const digestSHA256 = (str) => {
|
|
1905
1905
|
const data = new TextEncoder().encode(str);
|
|
1906
1906
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -1913,7 +1913,7 @@ const digestSHA256 = (str) => {
|
|
|
1913
1913
|
*
|
|
1914
1914
|
* @param str - The string to encode as an ArrayBuffer.
|
|
1915
1915
|
* @returns The base64url encoded string.
|
|
1916
|
-
* @
|
|
1916
|
+
* @notInstrumented
|
|
1917
1917
|
*/
|
|
1918
1918
|
const encodeBase64Url = (str) => {
|
|
1919
1919
|
const numberArray = [];
|
|
@@ -1925,7 +1925,7 @@ const encodeBase64Url = (str) => {
|
|
|
1925
1925
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
1926
1926
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
1927
1927
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
1928
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
1928
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
1929
1929
|
*/
|
|
1930
1930
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
1931
1931
|
require_InvalidParamError.assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -1953,7 +1953,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
1953
1953
|
|
|
1954
1954
|
//#endregion
|
|
1955
1955
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
1956
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
1956
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
1957
1957
|
*/
|
|
1958
1958
|
const getOAuthBaseUrl = (provider) => {
|
|
1959
1959
|
require_InvalidParamError.assertDefined(provider.provider, "Provider type not found");
|
|
@@ -1974,7 +1974,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
1974
1974
|
//#endregion
|
|
1975
1975
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
1976
1976
|
const providersRequiringPkce = ["twitter", "github"];
|
|
1977
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
1977
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
1978
1978
|
*/
|
|
1979
1979
|
const buildOAuthUrl = async (core, provider) => {
|
|
1980
1980
|
const { projectSettings } = core.state.get();
|
|
@@ -2102,7 +2102,7 @@ const __authenticateWithSocial_wrapped = require_InvalidParamError.instrumentFun
|
|
|
2102
2102
|
*/
|
|
2103
2103
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2104
2104
|
const core = require_InvalidParamError.getCore(client);
|
|
2105
|
-
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
2105
|
+
const apiClient = require_InvalidParamError.createApiClient(client.user ? { elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink } : {}, client);
|
|
2106
2106
|
await core.initTrack.waitForAll();
|
|
2107
2107
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2108
2108
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2220,7 +2220,7 @@ const __completeSocialAuthentication_wrapped = require_InvalidParamError.instrum
|
|
|
2220
2220
|
* @param params.url - The URL to check for OAuth redirect parameters.
|
|
2221
2221
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2222
2222
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
2223
|
-
* @
|
|
2223
|
+
* @notInstrumented
|
|
2224
2224
|
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
2225
2225
|
*/
|
|
2226
2226
|
const detectSocialRedirectUrl = async ({ url }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2238,7 +2238,7 @@ const detectSocialRedirectUrl = async ({ url }, client = require_InvalidParamErr
|
|
|
2238
2238
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2239
2239
|
* removed in a future major version.
|
|
2240
2240
|
*
|
|
2241
|
-
* @
|
|
2241
|
+
* @notInstrumented
|
|
2242
2242
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2243
2243
|
*/
|
|
2244
2244
|
const detectOAuthRedirect = (params, client = require_InvalidParamError.getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2279,7 +2279,7 @@ const __signInWithSocialPopUp_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
2279
2279
|
* The primary wallet account is the one that was last selected by the user.
|
|
2280
2280
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2281
2281
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2282
|
-
* @
|
|
2282
|
+
* @notInstrumented
|
|
2283
2283
|
*/
|
|
2284
2284
|
const getPrimaryWalletAccount = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
2285
2285
|
const sortedLastSelectedWalletAccounts = require_InvalidParamError.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2352,7 +2352,7 @@ const __unlinkSocialAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
2352
2352
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2353
2353
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2354
2354
|
* @returns A promise that resolves to an array of token balances.
|
|
2355
|
-
* @
|
|
2355
|
+
* @notInstrumented
|
|
2356
2356
|
*/
|
|
2357
2357
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2358
2358
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2383,7 +2383,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2383
2383
|
* longer confusable with the native-only `getBalance` or the
|
|
2384
2384
|
* multi-chain `getMultichainTokenBalances`.
|
|
2385
2385
|
*
|
|
2386
|
-
* @
|
|
2386
|
+
* @notInstrumented
|
|
2387
2387
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2388
2388
|
*/
|
|
2389
2389
|
const getBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2402,7 +2402,7 @@ const getBalances = (params, client = require_InvalidParamError.getDefaultClient
|
|
|
2402
2402
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2403
2403
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2404
2404
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2405
|
-
* @
|
|
2405
|
+
* @notInstrumented
|
|
2406
2406
|
*/
|
|
2407
2407
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2408
2408
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2419,14 +2419,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_I
|
|
|
2419
2419
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2420
2420
|
* token balances (not native-only) across multiple chains.
|
|
2421
2421
|
*
|
|
2422
|
-
* @
|
|
2422
|
+
* @notInstrumented
|
|
2423
2423
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2424
2424
|
*/
|
|
2425
2425
|
const getMultichainBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2426
2426
|
|
|
2427
2427
|
//#endregion
|
|
2428
2428
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2429
|
-
/** @
|
|
2429
|
+
/** @notInstrumented */
|
|
2430
2430
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2431
2431
|
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
2432
2432
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2436,7 +2436,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2436
2436
|
|
|
2437
2437
|
//#endregion
|
|
2438
2438
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2439
|
-
/** @
|
|
2439
|
+
/** @notInstrumented */
|
|
2440
2440
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2441
2441
|
const core = require_InvalidParamError.getCore(client);
|
|
2442
2442
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -2465,7 +2465,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2465
2465
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2466
2466
|
* defense-in-depth.
|
|
2467
2467
|
*
|
|
2468
|
-
* @
|
|
2468
|
+
* @notInstrumented
|
|
2469
2469
|
*/
|
|
2470
2470
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2471
2471
|
await require_InvalidParamError.getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2480,7 +2480,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2480
2480
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2481
2481
|
* requests that are guaranteed to fail.
|
|
2482
2482
|
*
|
|
2483
|
-
* @
|
|
2483
|
+
* @notInstrumented
|
|
2484
2484
|
*/
|
|
2485
2485
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2486
2486
|
try {
|
|
@@ -2628,7 +2628,7 @@ const __cancelCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2628
2628
|
|
|
2629
2629
|
//#endregion
|
|
2630
2630
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2631
|
-
/** @
|
|
2631
|
+
/** @notInstrumented */
|
|
2632
2632
|
const getCheckouts = async (client) => {
|
|
2633
2633
|
const projectSettings = client.projectSettings;
|
|
2634
2634
|
require_InvalidParamError.assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2694,7 +2694,7 @@ const __createCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2694
2694
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2695
2695
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2696
2696
|
* @returns The checkout transaction
|
|
2697
|
-
* @
|
|
2697
|
+
* @notInstrumented
|
|
2698
2698
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2699
2699
|
*/
|
|
2700
2700
|
const getCheckoutTransaction = async ({ transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2715,7 +2715,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = require_Invali
|
|
|
2715
2715
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2716
2716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2717
2717
|
* @returns The updated checkout transaction with quote data
|
|
2718
|
-
* @
|
|
2718
|
+
* @notInstrumented
|
|
2719
2719
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2720
2720
|
*/
|
|
2721
2721
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2820,7 +2820,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2820
2820
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2821
2821
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2822
2822
|
*
|
|
2823
|
-
* @
|
|
2823
|
+
* @notInstrumented
|
|
2824
2824
|
*/
|
|
2825
2825
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2826
2826
|
const { logger } = require_InvalidParamError.getCore(client);
|
|
@@ -2950,7 +2950,7 @@ const __submitCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2950
2950
|
*
|
|
2951
2951
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
2952
2952
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2953
|
-
* @
|
|
2953
|
+
* @notInstrumented
|
|
2954
2954
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2955
2955
|
*/
|
|
2956
2956
|
const trackCheckoutTransaction = (_params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2973,7 +2973,7 @@ const trackCheckoutTransaction = (_params, client = require_InvalidParamError.ge
|
|
|
2973
2973
|
* @param params - The from token details and the checkout's settlement config.
|
|
2974
2974
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2975
2975
|
* @returns Whether a token conversion is required
|
|
2976
|
-
* @
|
|
2976
|
+
* @notInstrumented
|
|
2977
2977
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2978
2978
|
*/
|
|
2979
2979
|
const requiresConversion = async ({ transaction }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3018,7 +3018,7 @@ const __completeDeviceRegistration_wrapped = require_InvalidParamError.instrumen
|
|
|
3018
3018
|
*
|
|
3019
3019
|
* @returns The device token as a string if valid.
|
|
3020
3020
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3021
|
-
* @
|
|
3021
|
+
* @notInstrumented
|
|
3022
3022
|
*/
|
|
3023
3023
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3024
3024
|
let urlObject;
|
|
@@ -3041,7 +3041,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3041
3041
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3042
3042
|
*
|
|
3043
3043
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3044
|
-
* @
|
|
3044
|
+
* @notInstrumented
|
|
3045
3045
|
*/
|
|
3046
3046
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3047
3047
|
try {
|
|
@@ -3054,7 +3054,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3054
3054
|
|
|
3055
3055
|
//#endregion
|
|
3056
3056
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3057
|
-
/** @
|
|
3057
|
+
/** @notInstrumented */
|
|
3058
3058
|
const getRegisteredDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3059
3059
|
const core = require_InvalidParamError.getCore(client);
|
|
3060
3060
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -3117,7 +3117,7 @@ const __revokeRegisteredDevice_wrapped = require_InvalidParamError.instrumentFun
|
|
|
3117
3117
|
|
|
3118
3118
|
//#endregion
|
|
3119
3119
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3120
|
-
/** @
|
|
3120
|
+
/** @notInstrumented */
|
|
3121
3121
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3122
3122
|
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
3123
3123
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3141,7 +3141,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3141
3141
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3142
3142
|
* defense-in-depth.
|
|
3143
3143
|
*
|
|
3144
|
-
* @
|
|
3144
|
+
* @notInstrumented
|
|
3145
3145
|
*/
|
|
3146
3146
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3147
3147
|
await require_InvalidParamError.getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3156,7 +3156,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3156
3156
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3157
3157
|
* requests that are guaranteed to fail.
|
|
3158
3158
|
*
|
|
3159
|
-
* @
|
|
3159
|
+
* @notInstrumented
|
|
3160
3160
|
*/
|
|
3161
3161
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3162
3162
|
try {
|
|
@@ -3222,7 +3222,7 @@ const __attachFlowSource_wrapped = require_InvalidParamError.instrumentFunction(
|
|
|
3222
3222
|
|
|
3223
3223
|
//#endregion
|
|
3224
3224
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3225
|
-
/** @
|
|
3225
|
+
/** @notInstrumented */
|
|
3226
3226
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3227
3227
|
const core = require_InvalidParamError.getCore(client);
|
|
3228
3228
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -3318,7 +3318,7 @@ const __cancelFlow_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3318
3318
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3319
3319
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3320
3320
|
* @returns The flow
|
|
3321
|
-
* @
|
|
3321
|
+
* @notInstrumented
|
|
3322
3322
|
*/
|
|
3323
3323
|
const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3324
3324
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3336,7 +3336,7 @@ const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefault
|
|
|
3336
3336
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3337
3337
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3338
3338
|
* @returns The updated flow with quote data
|
|
3339
|
-
* @
|
|
3339
|
+
* @notInstrumented
|
|
3340
3340
|
*/
|
|
3341
3341
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3342
3342
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3451,7 +3451,7 @@ const __submitFlowTransaction_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
3451
3451
|
* @returns A function to remove the listener.
|
|
3452
3452
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3453
3453
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3454
|
-
* @
|
|
3454
|
+
* @notInstrumented
|
|
3455
3455
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3456
3456
|
*/
|
|
3457
3457
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3493,7 +3493,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_Inva
|
|
|
3493
3493
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3494
3494
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3495
3495
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3496
|
-
* @
|
|
3496
|
+
* @notInstrumented
|
|
3497
3497
|
*/
|
|
3498
3498
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3499
3499
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new require_InvalidParamError.InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3531,7 +3531,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3531
3531
|
|
|
3532
3532
|
//#endregion
|
|
3533
3533
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3534
|
-
/** @
|
|
3534
|
+
/** @notInstrumented */
|
|
3535
3535
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3536
3536
|
const { user } = client;
|
|
3537
3537
|
require_InvalidParamError.assertDefined(user, "User is not authenticated");
|
|
@@ -3606,7 +3606,7 @@ const __createCoinbaseOnrampOrder_wrapped = require_InvalidParamError.instrument
|
|
|
3606
3606
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3607
3607
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3608
3608
|
* @returns an object containing the buy URL
|
|
3609
|
-
* @
|
|
3609
|
+
* @notInstrumented
|
|
3610
3610
|
*/
|
|
3611
3611
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3612
3612
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3657,7 +3657,7 @@ const __createCryptoDotComPayment_wrapped = require_InvalidParamError.instrument
|
|
|
3657
3657
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3658
3658
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3659
3659
|
* @returns The created transfer
|
|
3660
|
-
* @
|
|
3660
|
+
* @notInstrumented
|
|
3661
3661
|
*/
|
|
3662
3662
|
const createKrakenExchangeTransfer = async (transferParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3663
3663
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3691,7 +3691,7 @@ const __createKrakenExchangeTransfer_wrapped = require_InvalidParamError.instrum
|
|
|
3691
3691
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3692
3692
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3693
3693
|
* @returns Array of Kraken accounts with balances
|
|
3694
|
-
* @
|
|
3694
|
+
* @notInstrumented
|
|
3695
3695
|
*/
|
|
3696
3696
|
const getKrakenAccounts = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3697
3697
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3710,7 +3710,7 @@ const getKrakenAccounts = async (params, client = require_InvalidParamError.getD
|
|
|
3710
3710
|
*
|
|
3711
3711
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3712
3712
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3713
|
-
* @
|
|
3713
|
+
* @notInstrumented
|
|
3714
3714
|
*/
|
|
3715
3715
|
const getKrakenWhitelistedAddresses = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3716
3716
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3836,7 +3836,7 @@ const __getMoonPayUrl_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3836
3836
|
* and are ready for use.
|
|
3837
3837
|
*
|
|
3838
3838
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3839
|
-
* @
|
|
3839
|
+
* @notInstrumented
|
|
3840
3840
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3841
3841
|
*/
|
|
3842
3842
|
const waitForClientInitialized = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3887,7 +3887,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3887
3887
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3888
3888
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3889
3889
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3890
|
-
* @
|
|
3890
|
+
* @notInstrumented
|
|
3891
3891
|
*/
|
|
3892
3892
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3893
3893
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -3914,7 +3914,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
3914
3914
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
3915
3915
|
* the match once.
|
|
3916
3916
|
*
|
|
3917
|
-
* @
|
|
3917
|
+
* @notInstrumented
|
|
3918
3918
|
*/
|
|
3919
3919
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
3920
3920
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -3957,7 +3957,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
3957
3957
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
3958
3958
|
* @param params.walletProviders - Currently available wallet providers.
|
|
3959
3959
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
3960
|
-
* @
|
|
3960
|
+
* @notInstrumented
|
|
3961
3961
|
*/
|
|
3962
3962
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
3963
3963
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -3985,7 +3985,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
3985
3985
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
3986
3986
|
/**
|
|
3987
3987
|
* Default CDN URL for the wallet book.
|
|
3988
|
-
* @
|
|
3988
|
+
* @notInstrumented
|
|
3989
3989
|
*/
|
|
3990
3990
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
3991
3991
|
/**
|
|
@@ -3997,7 +3997,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
3997
3997
|
* 4. Default CDN URL
|
|
3998
3998
|
*
|
|
3999
3999
|
* @returns The wallet book CDN URL to use.
|
|
4000
|
-
* @
|
|
4000
|
+
* @notInstrumented
|
|
4001
4001
|
*/
|
|
4002
4002
|
const getWalletBookCdnUrl = () => {
|
|
4003
4003
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4011,7 +4011,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4011
4011
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4012
4012
|
/**
|
|
4013
4013
|
* The timeout for each fetch attempt in milliseconds.
|
|
4014
|
-
* @
|
|
4014
|
+
* @notInstrumented
|
|
4015
4015
|
*/
|
|
4016
4016
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4017
4017
|
/**
|
|
@@ -4019,7 +4019,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4019
4019
|
*
|
|
4020
4020
|
* @param client - The Dynamic client instance.
|
|
4021
4021
|
* @returns A promise that resolves to the wallet book data.
|
|
4022
|
-
* @
|
|
4022
|
+
* @notInstrumented
|
|
4023
4023
|
*/
|
|
4024
4024
|
const fetchWithTimeout = async (client) => {
|
|
4025
4025
|
const controller = new AbortController();
|
|
@@ -4051,7 +4051,7 @@ const walletBookCacheStorageKeySchema = require_isMfaRequiredForAction.createSto
|
|
|
4051
4051
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4052
4052
|
/**
|
|
4053
4053
|
* The maximum number of retry attempts.
|
|
4054
|
-
* @
|
|
4054
|
+
* @notInstrumented
|
|
4055
4055
|
*/
|
|
4056
4056
|
const MAX_RETRIES = 3;
|
|
4057
4057
|
/**
|
|
@@ -4068,7 +4068,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4068
4068
|
* @param client - The Dynamic client instance.
|
|
4069
4069
|
* @returns A promise that resolves to the wallet book data.
|
|
4070
4070
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4071
|
-
* @
|
|
4071
|
+
* @notInstrumented
|
|
4072
4072
|
*/
|
|
4073
4073
|
const fetchLegacyWalletBook = async (client) => {
|
|
4074
4074
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4101,7 +4101,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4101
4101
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4102
4102
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4103
4103
|
* different SDK entry points.
|
|
4104
|
-
* @
|
|
4104
|
+
* @notInstrumented
|
|
4105
4105
|
*/
|
|
4106
4106
|
const EMBEDDED_WALLET_KEYS = [
|
|
4107
4107
|
"magicemailotp",
|
|
@@ -4130,7 +4130,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4130
4130
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4131
4131
|
*
|
|
4132
4132
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4133
|
-
* @
|
|
4133
|
+
* @notInstrumented
|
|
4134
4134
|
*/
|
|
4135
4135
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4136
4136
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4150,7 +4150,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4150
4150
|
*
|
|
4151
4151
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4152
4152
|
* catalog, false otherwise.
|
|
4153
|
-
* @
|
|
4153
|
+
* @notInstrumented
|
|
4154
4154
|
*/
|
|
4155
4155
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4156
4156
|
if (shouldFilterWallet({
|
|
@@ -4167,7 +4167,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4167
4167
|
*
|
|
4168
4168
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4169
4169
|
* @returns The full URL to the sprite icon
|
|
4170
|
-
* @
|
|
4170
|
+
* @notInstrumented
|
|
4171
4171
|
*/
|
|
4172
4172
|
const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4173
4173
|
|
|
@@ -4175,7 +4175,7 @@ const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICON
|
|
|
4175
4175
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4176
4176
|
/**
|
|
4177
4177
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4178
|
-
* @
|
|
4178
|
+
* @notInstrumented
|
|
4179
4179
|
*/
|
|
4180
4180
|
const transformGroup = ({ group }) => {
|
|
4181
4181
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4202,7 +4202,7 @@ const transformGroup = ({ group }) => {
|
|
|
4202
4202
|
*
|
|
4203
4203
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4204
4204
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4205
|
-
* @
|
|
4205
|
+
* @notInstrumented
|
|
4206
4206
|
*/
|
|
4207
4207
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4208
4208
|
const normalised = identifier.toLowerCase();
|
|
@@ -4220,7 +4220,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4220
4220
|
*
|
|
4221
4221
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4222
4222
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4223
|
-
* @
|
|
4223
|
+
* @notInstrumented
|
|
4224
4224
|
*/
|
|
4225
4225
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4226
4226
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4253,7 +4253,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4253
4253
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4254
4254
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4255
4255
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4256
|
-
* @
|
|
4256
|
+
* @notInstrumented
|
|
4257
4257
|
*/
|
|
4258
4258
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4259
4259
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4281,7 +4281,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4281
4281
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4282
4282
|
/**
|
|
4283
4283
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4284
|
-
* @
|
|
4284
|
+
* @notInstrumented
|
|
4285
4285
|
*/
|
|
4286
4286
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4287
4287
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4312,7 +4312,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4312
4312
|
/**
|
|
4313
4313
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4314
4314
|
* Filters out embedded wallets and injected-only wallets.
|
|
4315
|
-
* @
|
|
4315
|
+
* @notInstrumented
|
|
4316
4316
|
*/
|
|
4317
4317
|
const transformWalletBook = ({ walletBook }) => {
|
|
4318
4318
|
const groups = {};
|
|
@@ -4345,7 +4345,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4345
4345
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4346
4346
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4347
4347
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4348
|
-
* @
|
|
4348
|
+
* @notInstrumented
|
|
4349
4349
|
*/
|
|
4350
4350
|
const getWalletConnectCatalog = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4351
4351
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4359,7 +4359,7 @@ const getWalletConnectCatalog = async (client = require_InvalidParamError.getDef
|
|
|
4359
4359
|
*
|
|
4360
4360
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4361
4361
|
* @returns The chain if found, undefined otherwise.
|
|
4362
|
-
* @
|
|
4362
|
+
* @notInstrumented
|
|
4363
4363
|
*/
|
|
4364
4364
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4365
4365
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4379,7 +4379,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4379
4379
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4380
4380
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4381
4381
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4382
|
-
* @
|
|
4382
|
+
* @notInstrumented
|
|
4383
4383
|
*/
|
|
4384
4384
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4385
4385
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProviderKey);
|
|
@@ -4485,7 +4485,7 @@ const __acknowledgeRecoveryCodes_wrapped = require_InvalidParamError.instrumentF
|
|
|
4485
4485
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4486
4486
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4487
4487
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4488
|
-
* @
|
|
4488
|
+
* @notInstrumented
|
|
4489
4489
|
*/
|
|
4490
4490
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4491
4491
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4516,7 +4516,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4516
4516
|
|
|
4517
4517
|
//#endregion
|
|
4518
4518
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4519
|
-
/** @
|
|
4519
|
+
/** @notInstrumented */
|
|
4520
4520
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4521
4521
|
const core = require_InvalidParamError.getCore(client);
|
|
4522
4522
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4527,7 +4527,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4527
4527
|
|
|
4528
4528
|
//#endregion
|
|
4529
4529
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4530
|
-
/** @
|
|
4530
|
+
/** @notInstrumented */
|
|
4531
4531
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4532
4532
|
const core = require_InvalidParamError.getCore(client);
|
|
4533
4533
|
return await require_InvalidParamError.createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4558,7 +4558,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4558
4558
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4559
4559
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4560
4560
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4561
|
-
* @
|
|
4561
|
+
* @notInstrumented
|
|
4562
4562
|
*/
|
|
4563
4563
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4564
4564
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4608,7 +4608,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4608
4608
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4609
4609
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4610
4610
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4611
|
-
* @
|
|
4611
|
+
* @notInstrumented
|
|
4612
4612
|
*/
|
|
4613
4613
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4614
4614
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4727,7 +4727,7 @@ const __deleteMfaDevice_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
4727
4727
|
*
|
|
4728
4728
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4729
4729
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4730
|
-
* @
|
|
4730
|
+
* @notInstrumented
|
|
4731
4731
|
*/
|
|
4732
4732
|
const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4733
4733
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4747,7 +4747,7 @@ const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient
|
|
|
4747
4747
|
*
|
|
4748
4748
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4749
4749
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4750
|
-
* @
|
|
4750
|
+
* @notInstrumented
|
|
4751
4751
|
*/
|
|
4752
4752
|
const getMfaRecoveryCodes = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4753
4753
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -5832,7 +5832,7 @@ const __sendSmsOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5832
5832
|
|
|
5833
5833
|
//#endregion
|
|
5834
5834
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5835
|
-
/** @
|
|
5835
|
+
/** @notInstrumented */
|
|
5836
5836
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5837
5837
|
const core = require_InvalidParamError.getCore(client);
|
|
5838
5838
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5852,7 +5852,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5852
5852
|
|
|
5853
5853
|
//#endregion
|
|
5854
5854
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5855
|
-
/** @
|
|
5855
|
+
/** @notInstrumented */
|
|
5856
5856
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5857
5857
|
const core = require_InvalidParamError.getCore(client);
|
|
5858
5858
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5923,7 +5923,7 @@ const __verifyOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5923
5923
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
5924
5924
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5925
5925
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
5926
|
-
* @
|
|
5926
|
+
* @notInstrumented
|
|
5927
5927
|
*/
|
|
5928
5928
|
const getSwapQuote = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5929
5929
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -5958,7 +5958,7 @@ const getSwapQuote = async (params, client = require_InvalidParamError.getDefaul
|
|
|
5958
5958
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
5959
5959
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5960
5960
|
* @returns The swap status.
|
|
5961
|
-
* @
|
|
5961
|
+
* @notInstrumented
|
|
5962
5962
|
*/
|
|
5963
5963
|
const getSwapStatus = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5964
5964
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6054,7 +6054,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6054
6054
|
*
|
|
6055
6055
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6056
6056
|
* @returns The subset of required scopes that are still missing.
|
|
6057
|
-
* @
|
|
6057
|
+
* @notInstrumented
|
|
6058
6058
|
*/
|
|
6059
6059
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6060
6060
|
|
|
@@ -6072,7 +6072,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6072
6072
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6073
6073
|
* @param client - The Dynamic client instance.
|
|
6074
6074
|
* @returns The OAuth access token and granted scopes.
|
|
6075
|
-
* @
|
|
6075
|
+
* @notInstrumented
|
|
6076
6076
|
*/
|
|
6077
6077
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6078
6078
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6097,7 +6097,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6097
6097
|
* `client.user?.verifiedCredentials`.
|
|
6098
6098
|
* @returns The credential id of the linked Google oauth account, or
|
|
6099
6099
|
* `undefined`.
|
|
6100
|
-
* @
|
|
6100
|
+
* @notInstrumented
|
|
6101
6101
|
*/
|
|
6102
6102
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === _dynamic_labs_sdk_api_core.ProviderEnum.Google)?.id;
|
|
6103
6103
|
|
|
@@ -6181,7 +6181,7 @@ const __getGoogleDriveBackupReadiness_wrapped = require_InvalidParamError.instru
|
|
|
6181
6181
|
*
|
|
6182
6182
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6183
6183
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6184
|
-
* @
|
|
6184
|
+
* @notInstrumented
|
|
6185
6185
|
*/
|
|
6186
6186
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6187
6187
|
|
|
@@ -6198,7 +6198,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6198
6198
|
* @param err - The unknown value to check.
|
|
6199
6199
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6200
6200
|
* Drive access was denied.
|
|
6201
|
-
* @
|
|
6201
|
+
* @notInstrumented
|
|
6202
6202
|
*/
|
|
6203
6203
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6204
6204
|
|
|
@@ -6206,57 +6206,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6206
6206
|
//#region src/utils/isMobile/isMobile.ts
|
|
6207
6207
|
/**
|
|
6208
6208
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6209
|
-
* @
|
|
6209
|
+
* @notInstrumented
|
|
6210
6210
|
*/
|
|
6211
6211
|
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;
|
|
6212
6212
|
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;
|
|
6213
|
-
/** @
|
|
6213
|
+
/** @notInstrumented */
|
|
6214
6214
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6215
6215
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6216
6216
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6217
6217
|
};
|
|
6218
|
-
/** @
|
|
6218
|
+
/** @notInstrumented */
|
|
6219
6219
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6220
6220
|
/**
|
|
6221
6221
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6222
6222
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6223
6223
|
* to mock it
|
|
6224
|
-
* @
|
|
6224
|
+
* @notInstrumented
|
|
6225
6225
|
*/
|
|
6226
6226
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6227
6227
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6228
6228
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6229
6229
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6230
6230
|
};
|
|
6231
|
-
/** @
|
|
6231
|
+
/** @notInstrumented */
|
|
6232
6232
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6233
6233
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6234
6234
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6235
6235
|
};
|
|
6236
|
-
/** @
|
|
6236
|
+
/** @notInstrumented */
|
|
6237
6237
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6238
|
-
/** @
|
|
6238
|
+
/** @notInstrumented */
|
|
6239
6239
|
const isSafariBrowser = () => {
|
|
6240
6240
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6241
6241
|
const { userAgent } = navigator;
|
|
6242
6242
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6243
6243
|
};
|
|
6244
|
-
/** @
|
|
6244
|
+
/** @notInstrumented */
|
|
6245
6245
|
const isEdgeBrowser = () => {
|
|
6246
6246
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6247
6247
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6248
6248
|
};
|
|
6249
|
-
/** @
|
|
6249
|
+
/** @notInstrumented */
|
|
6250
6250
|
const isOperaBrowser = () => {
|
|
6251
6251
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6252
6252
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6253
6253
|
};
|
|
6254
|
-
/** @
|
|
6254
|
+
/** @notInstrumented */
|
|
6255
6255
|
const isFirefoxBrowser = () => {
|
|
6256
6256
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6257
6257
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6258
6258
|
};
|
|
6259
|
-
/** @
|
|
6259
|
+
/** @notInstrumented */
|
|
6260
6260
|
const isChromeBrowser = () => {
|
|
6261
6261
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6262
6262
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6290,7 +6290,7 @@ const isChromeBrowser = () => {
|
|
|
6290
6290
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6291
6291
|
* record (from `getWalletOptionsCatalogue`).
|
|
6292
6292
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6293
|
-
* @
|
|
6293
|
+
* @notInstrumented
|
|
6294
6294
|
*/
|
|
6295
6295
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6296
6296
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6316,7 +6316,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6316
6316
|
* @param params.wallet - The wallet entry.
|
|
6317
6317
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6318
6318
|
* @returns The wallet option key.
|
|
6319
|
-
* @
|
|
6319
|
+
* @notInstrumented
|
|
6320
6320
|
*/
|
|
6321
6321
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6322
6322
|
|
|
@@ -6331,7 +6331,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6331
6331
|
*
|
|
6332
6332
|
* @param params.wallet - The wallet book wallet entry.
|
|
6333
6333
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6334
|
-
* @
|
|
6334
|
+
* @notInstrumented
|
|
6335
6335
|
*/
|
|
6336
6336
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6337
6337
|
|
|
@@ -6349,7 +6349,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6349
6349
|
*
|
|
6350
6350
|
* @param params.walletBook - The fetched wallet book.
|
|
6351
6351
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6352
|
-
* @
|
|
6352
|
+
* @notInstrumented
|
|
6353
6353
|
*/
|
|
6354
6354
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6355
6355
|
const result = [];
|
|
@@ -6396,7 +6396,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6396
6396
|
*
|
|
6397
6397
|
* @param params.wallet - The wallet book entry.
|
|
6398
6398
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6399
|
-
* @
|
|
6399
|
+
* @notInstrumented
|
|
6400
6400
|
*/
|
|
6401
6401
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6402
6402
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6440,7 +6440,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6440
6440
|
*
|
|
6441
6441
|
* @param params.walletBook - The fetched wallet book.
|
|
6442
6442
|
* @returns A map from wallet option key to its install URL bag.
|
|
6443
|
-
* @
|
|
6443
|
+
* @notInstrumented
|
|
6444
6444
|
*/
|
|
6445
6445
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6446
6446
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6471,7 +6471,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6471
6471
|
*
|
|
6472
6472
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6473
6473
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6474
|
-
* @
|
|
6474
|
+
* @notInstrumented
|
|
6475
6475
|
*/
|
|
6476
6476
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6477
6477
|
|
|
@@ -6510,7 +6510,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6510
6510
|
*
|
|
6511
6511
|
* @param params.walletBook - The fetched wallet book.
|
|
6512
6512
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6513
|
-
* @
|
|
6513
|
+
* @notInstrumented
|
|
6514
6514
|
*/
|
|
6515
6515
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6516
6516
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6557,7 +6557,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6557
6557
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6558
6558
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6559
6559
|
* @returns Ordered, deduped array of Chains.
|
|
6560
|
-
* @
|
|
6560
|
+
* @notInstrumented
|
|
6561
6561
|
*/
|
|
6562
6562
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6563
6563
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6608,7 +6608,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6608
6608
|
*
|
|
6609
6609
|
* @param params.walletBook - The fetched wallet book.
|
|
6610
6610
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6611
|
-
* @
|
|
6611
|
+
* @notInstrumented
|
|
6612
6612
|
*/
|
|
6613
6613
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6614
6614
|
const result = [];
|
|
@@ -6675,7 +6675,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6675
6675
|
* @param params.walletBook - The fetched wallet book.
|
|
6676
6676
|
* @param params.walletOptionKey - The wallet option key.
|
|
6677
6677
|
* @returns The constructed wallet option.
|
|
6678
|
-
* @
|
|
6678
|
+
* @notInstrumented
|
|
6679
6679
|
*/
|
|
6680
6680
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6681
6681
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6713,7 +6713,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6713
6713
|
*
|
|
6714
6714
|
* @param params.walletProvider - The wallet provider to test.
|
|
6715
6715
|
* @returns True when the provider exposes a `connect` method.
|
|
6716
|
-
* @
|
|
6716
|
+
* @notInstrumented
|
|
6717
6717
|
*/
|
|
6718
6718
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6719
6719
|
|
|
@@ -6740,7 +6740,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6740
6740
|
* @param params.entry - The registry entry to classify.
|
|
6741
6741
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6742
6742
|
* surface a `withWalletProvider` option.
|
|
6743
|
-
* @
|
|
6743
|
+
* @notInstrumented
|
|
6744
6744
|
*/
|
|
6745
6745
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6746
6746
|
const { priority } = entry;
|
|
@@ -6761,7 +6761,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6761
6761
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6762
6762
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6763
6763
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6764
|
-
* @
|
|
6764
|
+
* @notInstrumented
|
|
6765
6765
|
*/
|
|
6766
6766
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6767
6767
|
const suffix = chain.toLowerCase();
|
|
@@ -6790,7 +6790,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6790
6790
|
*
|
|
6791
6791
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6792
6792
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6793
|
-
* @
|
|
6793
|
+
* @notInstrumented
|
|
6794
6794
|
*/
|
|
6795
6795
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6796
6796
|
|
|
@@ -6808,7 +6808,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6808
6808
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6809
6809
|
* @param params.walletBook - The fetched wallet book.
|
|
6810
6810
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6811
|
-
* @
|
|
6811
|
+
* @notInstrumented
|
|
6812
6812
|
*/
|
|
6813
6813
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6814
6814
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6826,7 +6826,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6826
6826
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6827
6827
|
* @param params.wallet - The wallet book wallet entry.
|
|
6828
6828
|
* @returns The resolved wallet option key.
|
|
6829
|
-
* @
|
|
6829
|
+
* @notInstrumented
|
|
6830
6830
|
*/
|
|
6831
6831
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6832
6832
|
|
|
@@ -6863,7 +6863,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6863
6863
|
* @param params.walletBook - The fetched wallet book.
|
|
6864
6864
|
* @param params.walletProvider - The registered wallet provider.
|
|
6865
6865
|
* @returns The wallet option key for this provider.
|
|
6866
|
-
* @
|
|
6866
|
+
* @notInstrumented
|
|
6867
6867
|
*/
|
|
6868
6868
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6869
6869
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProvider.key);
|
|
@@ -6911,7 +6911,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
6911
6911
|
* @param params.walletBook - The fetched wallet book.
|
|
6912
6912
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
6913
6913
|
* @returns An array of tagged options, in input order.
|
|
6914
|
-
* @
|
|
6914
|
+
* @notInstrumented
|
|
6915
6915
|
*/
|
|
6916
6916
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
6917
6917
|
const result = [];
|
|
@@ -6983,7 +6983,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
6983
6983
|
* @param params.options - The tagged options to group.
|
|
6984
6984
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
6985
6985
|
* iterable in first-seen order.
|
|
6986
|
-
* @
|
|
6986
|
+
* @notInstrumented
|
|
6987
6987
|
*/
|
|
6988
6988
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
6989
6989
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7023,7 +7023,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7023
7023
|
*
|
|
7024
7024
|
* @param params.option - The connection option to inspect.
|
|
7025
7025
|
* @returns The numeric priority — lower is better.
|
|
7026
|
-
* @
|
|
7026
|
+
* @notInstrumented
|
|
7027
7027
|
*/
|
|
7028
7028
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7029
7029
|
|
|
@@ -7040,7 +7040,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7040
7040
|
*
|
|
7041
7041
|
* @param params.options - The options to sort.
|
|
7042
7042
|
* @returns A new array in priority order.
|
|
7043
|
-
* @
|
|
7043
|
+
* @notInstrumented
|
|
7044
7044
|
*/
|
|
7045
7045
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7046
7046
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7088,7 +7088,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7088
7088
|
*
|
|
7089
7089
|
* @param params.walletOption - The wallet option to inspect.
|
|
7090
7090
|
* @returns Numeric priority index — lower is better.
|
|
7091
|
-
* @
|
|
7091
|
+
* @notInstrumented
|
|
7092
7092
|
*/
|
|
7093
7093
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7094
7094
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7105,7 +7105,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7105
7105
|
* @param params.a - First wallet option.
|
|
7106
7106
|
* @param params.b - Second wallet option.
|
|
7107
7107
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7108
|
-
* @
|
|
7108
|
+
* @notInstrumented
|
|
7109
7109
|
*/
|
|
7110
7110
|
const compareByRelevance = ({ a, b }) => {
|
|
7111
7111
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7125,7 +7125,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7125
7125
|
*
|
|
7126
7126
|
* @param params.walletOption - The wallet option to inspect.
|
|
7127
7127
|
* @returns True when `connectionOptions` is non-empty.
|
|
7128
|
-
* @
|
|
7128
|
+
* @notInstrumented
|
|
7129
7129
|
*/
|
|
7130
7130
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7131
7131
|
|
|
@@ -7140,7 +7140,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7140
7140
|
*
|
|
7141
7141
|
* @param params.walletOption - The wallet option to inspect.
|
|
7142
7142
|
* @returns True when an installed provider is available.
|
|
7143
|
-
* @
|
|
7143
|
+
* @notInstrumented
|
|
7144
7144
|
*/
|
|
7145
7145
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7146
7146
|
|
|
@@ -7170,7 +7170,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7170
7170
|
* @param params.walletOptions - The wallet options to sort.
|
|
7171
7171
|
* @param params.ordering - The requested ordering.
|
|
7172
7172
|
* @returns A new array in the requested order.
|
|
7173
|
-
* @
|
|
7173
|
+
* @notInstrumented
|
|
7174
7174
|
*/
|
|
7175
7175
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7176
7176
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7219,7 +7219,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7219
7219
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7220
7220
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7221
7221
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7222
|
-
* @
|
|
7222
|
+
* @notInstrumented
|
|
7223
7223
|
*/
|
|
7224
7224
|
const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7225
7225
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7276,7 +7276,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidPa
|
|
|
7276
7276
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7277
7277
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7278
7278
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7279
|
-
* @
|
|
7279
|
+
* @notInstrumented
|
|
7280
7280
|
*/
|
|
7281
7281
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7282
7282
|
const { addresses } = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7325,7 +7325,7 @@ const __confirmTransaction_wrapped = require_InvalidParamError.instrumentFunctio
|
|
|
7325
7325
|
|
|
7326
7326
|
//#endregion
|
|
7327
7327
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7328
|
-
/** @
|
|
7328
|
+
/** @notInstrumented */
|
|
7329
7329
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7330
7330
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7331
7331
|
};
|
|
@@ -7400,13 +7400,13 @@ const __connectWithWalletProvider_wrapped = require_InvalidParamError.instrument
|
|
|
7400
7400
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7401
7401
|
* @param params.signature - The raw signature string to wrap.
|
|
7402
7402
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7403
|
-
* @
|
|
7403
|
+
* @notInstrumented
|
|
7404
7404
|
*/
|
|
7405
7405
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7406
7406
|
|
|
7407
7407
|
//#endregion
|
|
7408
7408
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7409
|
-
/** @
|
|
7409
|
+
/** @notInstrumented */
|
|
7410
7410
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7411
7411
|
if ([
|
|
7412
7412
|
"BTC",
|
|
@@ -7420,7 +7420,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7420
7420
|
|
|
7421
7421
|
//#endregion
|
|
7422
7422
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7423
|
-
/** @
|
|
7423
|
+
/** @notInstrumented */
|
|
7424
7424
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7425
7425
|
const core = require_InvalidParamError.getCore(client);
|
|
7426
7426
|
const { appUniversalLink } = require_getNetworkProviderFromNetworkId.getAppMetadata(client);
|
|
@@ -7497,7 +7497,7 @@ const __proveWalletAccountOwnership_wrapped = require_InvalidParamError.instrume
|
|
|
7497
7497
|
|
|
7498
7498
|
//#endregion
|
|
7499
7499
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7500
|
-
/** @
|
|
7500
|
+
/** @notInstrumented */
|
|
7501
7501
|
const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.normalizeAddress({
|
|
7502
7502
|
address: left,
|
|
7503
7503
|
chain
|
|
@@ -7508,7 +7508,7 @@ const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.norm
|
|
|
7508
7508
|
|
|
7509
7509
|
//#endregion
|
|
7510
7510
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7511
|
-
/** @
|
|
7511
|
+
/** @notInstrumented */
|
|
7512
7512
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7513
7513
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7514
7514
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7594,7 +7594,7 @@ const __verifyWalletAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
7594
7594
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7595
7595
|
/**
|
|
7596
7596
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7597
|
-
* @
|
|
7597
|
+
* @notInstrumented
|
|
7598
7598
|
*/
|
|
7599
7599
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === _dynamic_labs_sdk_api_core.WalletProviderEnum.DeepLink;
|
|
7600
7600
|
|
|
@@ -7661,7 +7661,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = require_InvalidParamError.i
|
|
|
7661
7661
|
*
|
|
7662
7662
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7663
7663
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7664
|
-
* @
|
|
7664
|
+
* @notInstrumented
|
|
7665
7665
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7666
7666
|
*/
|
|
7667
7667
|
const getAvailableWalletProvidersData = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -7685,7 +7685,7 @@ const getAvailableWalletProvidersData = (client = require_InvalidParamError.getD
|
|
|
7685
7685
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7686
7686
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7687
7687
|
* @returns An array of connected wallet addresses.
|
|
7688
|
-
* @
|
|
7688
|
+
* @notInstrumented
|
|
7689
7689
|
*/
|
|
7690
7690
|
const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7691
7691
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7693,7 +7693,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidPa
|
|
|
7693
7693
|
|
|
7694
7694
|
//#endregion
|
|
7695
7695
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7696
|
-
/** @
|
|
7696
|
+
/** @notInstrumented */
|
|
7697
7697
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7698
7698
|
const smartWalletVerifiedCredential = require_getWalletProviderByKey.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7699
7699
|
require_InvalidParamError.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7702,7 +7702,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7702
7702
|
|
|
7703
7703
|
//#endregion
|
|
7704
7704
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7705
|
-
/** @
|
|
7705
|
+
/** @notInstrumented */
|
|
7706
7706
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7707
7707
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7708
7708
|
};
|
|
@@ -7715,7 +7715,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7715
7715
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7716
7716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7717
7717
|
* @returns The data for the wallet provider.
|
|
7718
|
-
* @
|
|
7718
|
+
* @notInstrumented
|
|
7719
7719
|
*/
|
|
7720
7720
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7721
7721
|
const { chain, groupKey, key, metadata, walletProviderType } = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7737,7 +7737,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_Inva
|
|
|
7737
7737
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7738
7738
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7739
7739
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7740
|
-
* @
|
|
7740
|
+
* @notInstrumented
|
|
7741
7741
|
*/
|
|
7742
7742
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7743
7743
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7750,7 +7750,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7750
7750
|
*
|
|
7751
7751
|
* @param params.walletAccount - The wallet account to check.
|
|
7752
7752
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7753
|
-
* @
|
|
7753
|
+
* @notInstrumented
|
|
7754
7754
|
*/
|
|
7755
7755
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7756
7756
|
|
|
@@ -7766,7 +7766,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7766
7766
|
*
|
|
7767
7767
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7768
7768
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7769
|
-
* @
|
|
7769
|
+
* @notInstrumented
|
|
7770
7770
|
*/
|
|
7771
7771
|
const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_InvalidParamError.getWalletAccounts(client).length > 0;
|
|
7772
7772
|
|
|
@@ -7777,7 +7777,7 @@ const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefau
|
|
|
7777
7777
|
*
|
|
7778
7778
|
* @param walletAccount - The wallet account to check.
|
|
7779
7779
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7780
|
-
* @
|
|
7780
|
+
* @notInstrumented
|
|
7781
7781
|
*/
|
|
7782
7782
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7783
7783
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7832,7 +7832,7 @@ const __addNetwork_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
7832
7832
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7833
7833
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7834
7834
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7835
|
-
* @
|
|
7835
|
+
* @notInstrumented
|
|
7836
7836
|
*/
|
|
7837
7837
|
const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7838
7838
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7848,7 +7848,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidP
|
|
|
7848
7848
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7849
7849
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7850
7850
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7851
|
-
* @
|
|
7851
|
+
* @notInstrumented
|
|
7852
7852
|
*/
|
|
7853
7853
|
const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7854
7854
|
return require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7869,7 +7869,7 @@ const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamErro
|
|
|
7869
7869
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7870
7870
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7871
7871
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7872
|
-
* @
|
|
7872
|
+
* @notInstrumented
|
|
7873
7873
|
*/
|
|
7874
7874
|
const getNativeBalance = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7875
7875
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7888,7 +7888,7 @@ const getNativeBalance = async ({ walletAccount }, client = require_InvalidParam
|
|
|
7888
7888
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7889
7889
|
* `getMultichainTokenBalances`).
|
|
7890
7890
|
*
|
|
7891
|
-
* @
|
|
7891
|
+
* @notInstrumented
|
|
7892
7892
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7893
7893
|
*/
|
|
7894
7894
|
const getBalance = (params, client = require_InvalidParamError.getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7906,7 +7906,7 @@ const getBalance = (params, client = require_InvalidParamError.getDefaultClient(
|
|
|
7906
7906
|
* @param params.networkId - The specific network ID within the chain.
|
|
7907
7907
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7908
7908
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7909
|
-
* @
|
|
7909
|
+
* @notInstrumented
|
|
7910
7910
|
*/
|
|
7911
7911
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7912
7912
|
const networkProvider = require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
|
|
@@ -7933,7 +7933,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = requ
|
|
|
7933
7933
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
7934
7934
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7935
7935
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
7936
|
-
* @
|
|
7936
|
+
* @notInstrumented
|
|
7937
7937
|
*/
|
|
7938
7938
|
const getTransactionHistory = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7939
7939
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -7959,7 +7959,7 @@ const getTransactionHistory = async (params, client = require_InvalidParamError.
|
|
|
7959
7959
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
7960
7960
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7961
7961
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
7962
|
-
* @
|
|
7962
|
+
* @notInstrumented
|
|
7963
7963
|
*/
|
|
7964
7964
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7965
7965
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8041,7 +8041,7 @@ const __selectPrimaryWalletAccount_wrapped = require_InvalidParamError.instrumen
|
|
|
8041
8041
|
*
|
|
8042
8042
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8043
8043
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8044
|
-
* @
|
|
8044
|
+
* @notInstrumented
|
|
8045
8045
|
*/
|
|
8046
8046
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8047
8047
|
try {
|
|
@@ -8216,7 +8216,7 @@ const __transferWalletAccount_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
8216
8216
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8217
8217
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8218
8218
|
* @returns The matching wallet account, or undefined if not found.
|
|
8219
|
-
* @
|
|
8219
|
+
* @notInstrumented
|
|
8220
8220
|
*/
|
|
8221
8221
|
const getWalletAccountFromAddress = ({ address, chain }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8222
8222
|
return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8233,7 +8233,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = require_Invali
|
|
|
8233
8233
|
* @param params.event - The event name to remove the listener from.
|
|
8234
8234
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8235
8235
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8236
|
-
* @
|
|
8236
|
+
* @notInstrumented
|
|
8237
8237
|
*/
|
|
8238
8238
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8239
8239
|
const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8251,7 +8251,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8251
8251
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8252
8252
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8253
8253
|
* @returns A function that can be called to remove the listener.
|
|
8254
|
-
* @
|
|
8254
|
+
* @notInstrumented
|
|
8255
8255
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8256
8256
|
*/
|
|
8257
8257
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -8285,7 +8285,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8285
8285
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8286
8286
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8287
8287
|
* ```
|
|
8288
|
-
* @
|
|
8288
|
+
* @notInstrumented
|
|
8289
8289
|
*/
|
|
8290
8290
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8291
8291
|
const url = new URL(deeplinkUrl);
|
|
@@ -8356,7 +8356,7 @@ const osMatchers = [
|
|
|
8356
8356
|
pattern: /CrOS/
|
|
8357
8357
|
}
|
|
8358
8358
|
];
|
|
8359
|
-
/** @
|
|
8359
|
+
/** @notInstrumented */
|
|
8360
8360
|
const parseUserAgent = ({ userAgent }) => {
|
|
8361
8361
|
if (!userAgent?.trim()) return null;
|
|
8362
8362
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|