@dynamic-labs-sdk/client 1.18.0 → 1.19.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/client/createDynamicClient/createDynamicClient.d.ts +11 -1
- package/dist/client/createDynamicClient/createDynamicClient.d.ts.map +1 -1
- package/dist/client/defaultClient/defaultClient.d.ts +12 -1
- package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/APIError/APIError.d.ts +11 -1
- package/dist/errors/APIError/APIError.d.ts.map +1 -1
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts +21 -0
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts.map +1 -1
- package/dist/errors/MergeAccountsConfirmationError.d.ts +49 -0
- package/dist/errors/MergeAccountsConfirmationError.d.ts.map +1 -0
- package/dist/errors/WalletScreeningBlockedError.d.ts +13 -0
- package/dist/errors/WalletScreeningBlockedError.d.ts.map +1 -1
- package/dist/exports/index.d.ts +15 -5
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +2 -0
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CMIgKqEH.cjs → getNetworkProviderFromNetworkId-BJX2AMGR.cjs} +74 -4
- package/dist/getNetworkProviderFromNetworkId-BJX2AMGR.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js → getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js} +90 -9
- package/dist/getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CEs4SGW4.esm.js → getNetworkProviderFromNetworkId-D3uwhdMN.esm.js} +72 -8
- package/dist/getNetworkProviderFromNetworkId-D3uwhdMN.esm.js.map +1 -0
- package/dist/{getSignedSessionId-De_N_Ofg.cjs → getSignedSessionId-BIZJGg61.cjs} +3 -3
- package/dist/{getSignedSessionId-De_N_Ofg.cjs.map → getSignedSessionId-BIZJGg61.cjs.map} +1 -1
- package/dist/{getSignedSessionId-CUqILBh8.esm.js → getSignedSessionId-CnSAMO3P.esm.js} +3 -3
- package/dist/{getSignedSessionId-CUqILBh8.esm.js.map → getSignedSessionId-CnSAMO3P.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-Hp1nSbaW.native.esm.js → getSignedSessionId-DXDi7NkE.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-Hp1nSbaW.native.esm.js.map → getSignedSessionId-DXDi7NkE.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-D3e0XMjs.cjs → getWalletProviderByKey-C6aS7KgD.cjs} +2 -2
- package/dist/{getWalletProviderByKey-D3e0XMjs.cjs.map → getWalletProviderByKey-C6aS7KgD.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-CKORCA8l.esm.js → getWalletProviderByKey-Cr8m-Nax.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-CKORCA8l.esm.js.map → getWalletProviderByKey-Cr8m-Nax.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-D5M801xH.native.esm.js → getWalletProviderByKey-DVk2t98D.native.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-D5M801xH.native.esm.js.map → getWalletProviderByKey-DVk2t98D.native.esm.js.map} +1 -1
- package/dist/index.cjs +732 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +729 -53
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +656 -52
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-BQuXZne_.cjs → isDynamicWaasEnabled-BawttOeb.cjs} +20 -6
- package/dist/isDynamicWaasEnabled-BawttOeb.cjs.map +1 -0
- package/dist/{isDynamicWaasEnabled-BlVIlXMZ.esm.js → isDynamicWaasEnabled-DDrg89y1.esm.js} +19 -5
- package/dist/isDynamicWaasEnabled-DDrg89y1.esm.js.map +1 -0
- package/dist/{isDynamicWaasEnabled-BaY09iv6.native.esm.js → isDynamicWaasEnabled-Dj_sLoBO.native.esm.js} +19 -5
- package/dist/isDynamicWaasEnabled-Dj_sLoBO.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-Dghiguch.cjs → isMfaRequiredForAction-BuvyBN_r.cjs} +19 -2
- package/dist/isMfaRequiredForAction-BuvyBN_r.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-r9aDdmK5.esm.js → isMfaRequiredForAction-DTp4CZBt.esm.js} +19 -2
- package/dist/isMfaRequiredForAction-DTp4CZBt.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-CwOGwiDz.native.esm.js → isMfaRequiredForAction-EY-OQORc.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CwOGwiDz.native.esm.js.map → isMfaRequiredForAction-EY-OQORc.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-j4b_q9Pf.cjs → isUserOnboardingComplete-CkyzRYrg.cjs} +11 -4
- package/dist/{isUserOnboardingComplete-j4b_q9Pf.cjs.map → isUserOnboardingComplete-CkyzRYrg.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-C-ioFLRR.native.esm.js → isUserOnboardingComplete-D3HrBYje.native.esm.js} +10 -3
- package/dist/{isUserOnboardingComplete-C-ioFLRR.native.esm.js.map → isUserOnboardingComplete-D3HrBYje.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-BMNAbXk1.esm.js → isUserOnboardingComplete-Dy2Ygp0u.esm.js} +10 -3
- package/dist/{isUserOnboardingComplete-BMNAbXk1.esm.js.map → isUserOnboardingComplete-Dy2Ygp0u.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-D8Y5h0hz.native.esm.js → migrateFromFireblocks-B5qWGLCM.native.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-D8Y5h0hz.native.esm.js.map → migrateFromFireblocks-B5qWGLCM.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-D9pJIgt5.cjs → migrateFromFireblocks-Dp-QA9hi.cjs} +3 -3
- package/dist/{migrateFromFireblocks-D9pJIgt5.cjs.map → migrateFromFireblocks-Dp-QA9hi.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-D--uqWp5.esm.js → migrateFromFireblocks-MAatsk_w.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-D--uqWp5.esm.js.map → migrateFromFireblocks-MAatsk_w.esm.js.map} +1 -1
- package/dist/modules/apiClient/constants.d.ts +8 -0
- package/dist/modules/apiClient/constants.d.ts.map +1 -1
- package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +11 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +9 -0
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
- package/dist/modules/auth/logout/logout.d.ts +13 -0
- package/dist/modules/auth/logout/logout.d.ts.map +1 -1
- package/dist/modules/auth/mergeUserAccounts/index.d.ts +3 -0
- package/dist/modules/auth/mergeUserAccounts/index.d.ts.map +1 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +62 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts +78 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts.map +1 -0
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +7 -0
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +9 -0
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +8 -0
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts +34 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map +1 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts +2 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts.map +1 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts +11 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +0 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +12 -0
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts +10 -0
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
- package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts +37 -0
- package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts.map +1 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts +41 -5
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts.map +1 -1
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts +22 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts.map +1 -0
- package/dist/modules/captcha/getCaptchaSettings/index.d.ts +1 -1
- package/dist/modules/captcha/getCaptchaSettings/index.d.ts.map +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +34 -0
- package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts +35 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts.map +1 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts +2 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts.map +1 -0
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +8 -1
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
- package/dist/modules/flow/cancelFlow/cancelFlow.d.ts +10 -3
- package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -1
- package/dist/modules/flow/getFlow/getFlow.d.ts +11 -3
- package/dist/modules/flow/getFlow/getFlow.d.ts.map +1 -1
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +16 -3
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts.map +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts +16 -0
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +12 -2
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +14 -0
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +12 -0
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +33 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +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/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +8 -0
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
- package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts +28 -0
- package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts.map +1 -0
- package/dist/modules/user/checkUserScopes/index.d.ts +2 -0
- package/dist/modules/user/checkUserScopes/index.d.ts.map +1 -0
- package/dist/modules/user/deleteUser/deleteUser.d.ts +8 -0
- package/dist/modules/user/deleteUser/deleteUser.d.ts.map +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +8 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts +17 -3
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
- package/dist/modules/user/refreshUser/refreshUser.d.ts +16 -3
- package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
- package/dist/modules/user/user.types.d.ts +9 -1
- package/dist/modules/user/user.types.d.ts.map +1 -1
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts +30 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts +23 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +11 -1
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
- package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +11 -3
- package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +16 -3
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +9 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +11 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +9 -0
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -1
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +10 -2
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +8 -0
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +8 -0
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -1
- package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts +11 -1
- package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts.map +1 -1
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts +10 -0
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts +9 -1
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +24 -0
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts +30 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts +2 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +28 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts +2 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts +34 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/signMessage/signMessage.d.ts +12 -1
- package/dist/modules/wallets/signMessage/signMessage.d.ts.map +1 -1
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts +13 -2
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts +10 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +11 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +1 -0
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +12 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js → updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js} +93 -17
- package/dist/updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-BQes11vz.esm.js → updateAuthFromVerifyResponse-_oYRLK_w.esm.js} +93 -17
- package/dist/updateAuthFromVerifyResponse-_oYRLK_w.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-Deg9em9o.cjs → updateAuthFromVerifyResponse-pgYXvDvj.cjs} +93 -17
- package/dist/updateAuthFromVerifyResponse-pgYXvDvj.cjs.map +1 -0
- package/dist/waas.cjs +72 -5
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +70 -5
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +70 -5
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +6 -6
- package/dist/waasCore.esm.js +6 -6
- package/dist/waasCore.native.esm.js +6 -6
- package/package.json +3 -3
- package/dist/getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CEs4SGW4.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CMIgKqEH.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-BQuXZne_.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-BaY09iv6.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-BlVIlXMZ.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-Dghiguch.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-r9aDdmK5.esm.js.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +0 -10
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/index.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +0 -12
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +0 -1
- package/dist/updateAuthFromVerifyResponse-BQes11vz.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-Deg9em9o.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js.map +0 -1
- /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/getPrimaryWalletAccount/index.d.ts +0 -0
- /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/selectPrimaryWalletAccount/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,SAAS,iFAMjB,eAAe,wDAEjB,OAAO,CAAC,cAAc,CAwBxB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
2
|
import type { VerifyOTPParams } from '../verifyOTP';
|
|
3
3
|
/** @notInstrumented */
|
|
4
|
-
export declare const verifyOTPForUserSignIn: ({ otpVerification, verificationToken }: VerifyOTPParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
4
|
+
export declare const verifyOTPForUserSignIn: ({ allowNewMFALinking, otpVerification, verificationToken }: VerifyOTPParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
5
5
|
//# sourceMappingURL=verifyOTPForUserSignIn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyOTPForUserSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"verifyOTPForUserSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,+DAC2B,eAAe,UACnE,aAAa,iEAsBtB,CAAC"}
|
|
@@ -9,8 +9,16 @@ export declare const PROJECT_SETTINGS_EXPIRATION_TIME: number;
|
|
|
9
9
|
* from Dynamic's servers, including authentication options, enabled chains,
|
|
10
10
|
* and security configurations. The settings are cached for performance.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const settings = await fetchProjectSettings();
|
|
15
|
+
* console.log('Enabled chains:', settings.chains);
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
12
18
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
19
|
* @returns A promise that resolves to the updated project settings.
|
|
20
|
+
* @see createDynamicClient
|
|
21
|
+
* @see initializeClient
|
|
14
22
|
* @notInstrumented
|
|
15
23
|
* @noHook Internal settings fetch that is not part of the public hook surface.
|
|
16
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,6HA4ChC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { User } from '../user.types';
|
|
2
|
+
type CheckUserScopesParams = {
|
|
3
|
+
scopes: string[];
|
|
4
|
+
user: User;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Checks whether the given user has all the specified scopes.
|
|
8
|
+
*
|
|
9
|
+
* The user's `scope` field is a whitespace-separated string of granted
|
|
10
|
+
* permissions (per RFC 8693 §4.2). This helper splits it and verifies that
|
|
11
|
+
* every entry in `scopes` is present.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const user = getDefaultClient().user;
|
|
15
|
+
* if (user && checkUserScopes({ user, scopes: ['wallets:read'] })) {
|
|
16
|
+
* showWalletBalances();
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* @param params.user - The authenticated user to check.
|
|
20
|
+
* @param params.scopes - The scope strings the user must have.
|
|
21
|
+
* @returns `true` if the user has every scope in `scopes`, `false` otherwise.
|
|
22
|
+
* @see User
|
|
23
|
+
* @see updateUser
|
|
24
|
+
* @notInstrumented
|
|
25
|
+
*/
|
|
26
|
+
export declare const checkUserScopes: ({ scopes, user, }: CheckUserScopesParams) => boolean;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=checkUserScopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkUserScopes.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/checkUserScopes/checkUserScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,sBAGzB,qBAAqB,KAAG,OAI1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/checkUserScopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -4,8 +4,16 @@
|
|
|
4
4
|
* This function performs a hard delete of the user account. Upon successful deletion,
|
|
5
5
|
* the user will be automatically logged out and all authentication data will be cleared.
|
|
6
6
|
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // Permanently delete the user's account
|
|
10
|
+
* await deleteUser();
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
7
13
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8
14
|
* @returns A promise that resolves when the user account is successfully deleted.
|
|
15
|
+
* @see logout
|
|
16
|
+
* @see refreshUser
|
|
9
17
|
* @instrumented
|
|
10
18
|
*/
|
|
11
19
|
export declare const deleteUser: (client?: import("../../../exports").DynamicClient) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/deleteUser/deleteUser.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/deleteUser/deleteUser.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,yDAEpB,OAAO,CAAC,IAAI,CASd,CAAC"}
|
|
@@ -12,9 +12,16 @@
|
|
|
12
12
|
* is one such feature — its backend calls reject a pre-`user:basic` token — but
|
|
13
13
|
* this predicate is general and not specific to embedded wallets.
|
|
14
14
|
*
|
|
15
|
+
* @deprecated Use {@link checkUserScopes} instead. This function conflates
|
|
16
|
+
* Dynamic-controlled requirements (MFA, device registration, required fields)
|
|
17
|
+
* with the concept of "onboarding complete", which is app-specific. Replace
|
|
18
|
+
* with `checkUserScopes({ user, scopes: ['user:basic'] })` to check whether
|
|
19
|
+
* Dynamic's requirements are satisfied, and compose your own logic on top for
|
|
20
|
+
* any app-specific onboarding steps.
|
|
21
|
+
*
|
|
15
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
23
|
* @returns True if onboarding is complete (no pending requirements), false if there are pending requirements.
|
|
17
|
-
|
|
24
|
+
* @notInstrumented
|
|
18
25
|
* @hook Exposed as a hook so consumers reactively know when onboarding is complete, updated when the user changes.
|
|
19
26
|
*/
|
|
20
27
|
export declare const isUserOnboardingComplete: (client?: import("../../../exports").DynamicClient) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isUserOnboardingComplete.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"isUserOnboardingComplete.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,wBAAwB,gEAiBpC,CAAC"}
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
/**
|
|
3
|
-
* Refreshes the current
|
|
3
|
+
* Refreshes the current session's authentication from the server.
|
|
4
4
|
*
|
|
5
|
-
* This
|
|
6
|
-
*
|
|
5
|
+
* This rotates the auth token via a full verify call and updates both the
|
|
6
|
+
* token and the user state from the response, returning the raw
|
|
7
|
+
* `VerifyResponse` (which includes the new token). Reach for this when you
|
|
8
|
+
* need a fresh JWT — e.g. before a call that requires a non-expired token.
|
|
9
|
+
*
|
|
10
|
+
* Prefer `refreshUser` when you only need the latest user profile and do not
|
|
11
|
+
* care about rotating the token: it hits the authenticated-user endpoint,
|
|
12
|
+
* touches only the user state, and returns the `SdkUser` directly.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await refreshAuth();
|
|
17
|
+
* console.log('Token refreshed:', response.token);
|
|
18
|
+
* ```
|
|
7
19
|
*
|
|
8
20
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
21
|
* @returns A promise that resolves to the verify response.
|
|
22
|
+
* @see logout
|
|
23
|
+
* @see refreshUser
|
|
10
24
|
* @instrumented
|
|
11
25
|
*/
|
|
12
26
|
export declare const refreshAuth: (client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE
|
|
1
|
+
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import type { SdkUser } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
/**
|
|
3
|
-
* Refreshes the current user's
|
|
3
|
+
* Refreshes the current user's profile from the server.
|
|
4
4
|
*
|
|
5
|
-
* This
|
|
6
|
-
*
|
|
5
|
+
* This fetches the latest authenticated user from the backend and updates only
|
|
6
|
+
* the local user state, returning the `SdkUser`. It does not touch the auth
|
|
7
|
+
* token — use it when you just need up-to-date user data.
|
|
8
|
+
*
|
|
9
|
+
* Prefer `refreshAuth` when you need to rotate the auth token as well: it runs
|
|
10
|
+
* a full verify, updates both token and user state, and returns the raw
|
|
11
|
+
* `VerifyResponse` (including the new token).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const user = await refreshUser();
|
|
16
|
+
* console.log('Updated user:', user.email);
|
|
17
|
+
* ```
|
|
7
18
|
*
|
|
8
19
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
20
|
* @returns A promise that resolves to the authenticated user.
|
|
21
|
+
* @see refreshAuth
|
|
22
|
+
* @see deleteUser
|
|
10
23
|
* @instrumented
|
|
11
24
|
* @noHook Low-level refresh primitive that is not exposed as a React hook.
|
|
12
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D
|
|
1
|
+
{"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { SdkUser, UserFields } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
/**
|
|
3
|
-
* A user that is authenticated with the Dynamic SDK.
|
|
3
|
+
* A user that is authenticated with the Dynamic SDK. Carries profile fields,
|
|
4
|
+
* verified credentials, and the granted `scope` string used for authorization.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* const user: User | undefined = getDefaultClient().user;
|
|
8
|
+
* if (user) console.log(user.email, user.scope);
|
|
9
|
+
*
|
|
10
|
+
* @see checkUserScopes
|
|
11
|
+
* @see updateUser
|
|
4
12
|
*/
|
|
5
13
|
export type User = SdkUser;
|
|
6
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/modules/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEtE
|
|
1
|
+
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/modules/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,UAAU,EACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,UAAU,GACV,UAAU,GACV,aAAa,GACb,YAAY,GACZ,MAAM,GACN,SAAS,GACT,UAAU,GACV,UAAU,GACV,8BAA8B,GAC9B,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,CACf,CAAC"}
|
package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../wallets/walletAccount';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the current session's wallet accounts that are legacy Dynamic
|
|
4
|
+
* embedded wallets requiring an upgrade to Dynamic WaaS.
|
|
5
|
+
*
|
|
6
|
+
* These are earlier-generation Dynamic embedded wallets that predate Dynamic
|
|
7
|
+
* WaaS (the current TSS-MPC embedded wallet) and can be migrated to it. Use
|
|
8
|
+
* this when you need the accounts themselves — for example to show how many
|
|
9
|
+
* wallets can be upgraded and let the user act on them. It never returns
|
|
10
|
+
* already-upgraded Dynamic WaaS accounts. For a simple boolean "does this user
|
|
11
|
+
* have anything to upgrade?" check, use `hasEmbeddedWalletsRequiringUpgrade`
|
|
12
|
+
* instead.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const walletsRequiringUpgrade = getEmbeddedWalletsRequiringUpgrade();
|
|
17
|
+
* if (walletsRequiringUpgrade.length > 0) {
|
|
18
|
+
* showUpgradePrompt(
|
|
19
|
+
* `You have ${walletsRequiringUpgrade.length} wallet(s) that can be upgraded. Upgrade now?`
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
24
|
+
* @returns The wallet accounts requiring an upgrade to Dynamic WaaS (empty when none).
|
|
25
|
+
* @see hasEmbeddedWalletsRequiringUpgrade
|
|
26
|
+
* @see isWaasWalletAccount
|
|
27
|
+
* @notInstrumented
|
|
28
|
+
*/
|
|
29
|
+
export declare const getEmbeddedWalletsRequiringUpgrade: (client?: import("../../../exports").DynamicClient) => WalletAccount[];
|
|
30
|
+
//# sourceMappingURL=getEmbeddedWalletsRequiringUpgrade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEmbeddedWalletsRequiringUpgrade.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAYjE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,kCAAkC,yDAE5C,aAAa,EAGb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
|
package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the current session has any legacy Dynamic embedded wallet
|
|
3
|
+
* that requires an upgrade to Dynamic WaaS.
|
|
4
|
+
*
|
|
5
|
+
* This is a boolean convenience over {@link getEmbeddedWalletsRequiringUpgrade}
|
|
6
|
+
* for the common case where you only need to decide whether to trigger the
|
|
7
|
+
* upgrade flow (e.g. show a prompt or redirect to a migration app) rather than
|
|
8
|
+
* act on the specific accounts.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* if (hasEmbeddedWalletsRequiringUpgrade()) {
|
|
13
|
+
* showUpgradeToWaasBanner();
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
17
|
+
* @returns True when at least one wallet account requires an upgrade to Dynamic WaaS, false otherwise.
|
|
18
|
+
* @see getEmbeddedWalletsRequiringUpgrade
|
|
19
|
+
* @see isWaasWalletAccount
|
|
20
|
+
* @notInstrumented
|
|
21
|
+
*/
|
|
22
|
+
export declare const hasEmbeddedWalletsRequiringUpgrade: (client?: import("../../../exports").DynamicClient) => boolean;
|
|
23
|
+
//# sourceMappingURL=hasEmbeddedWalletsRequiringUpgrade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasEmbeddedWalletsRequiringUpgrade.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kCAAkC,yDAE5C,OAAgE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -20,11 +20,21 @@ type ConnectAndVerifyWithWalletProviderParams = {
|
|
|
20
20
|
* `verifyWalletAccount` separately from a new user gesture (e.g. a "Verify
|
|
21
21
|
* Ownership" button).
|
|
22
22
|
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const walletAccount = await connectAndVerifyWithWalletProvider({
|
|
26
|
+
* walletProviderKey: 'metamaskevm',
|
|
27
|
+
* });
|
|
28
|
+
* console.log('Verified address:', walletAccount.address);
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
23
31
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to connect to.
|
|
24
32
|
* @param [params.hardwareWalletVendor] - The hardware wallet vendor, if connecting via a hardware wallet (e.g. 'ledger').
|
|
25
33
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
26
34
|
* @returns A promise that resolves to the connected and verified wallet account.
|
|
27
|
-
|
|
35
|
+
* @see connectWithWalletProvider
|
|
36
|
+
* @see verifyWalletAccount
|
|
37
|
+
* @instrumented
|
|
28
38
|
*/
|
|
29
39
|
export declare const connectAndVerifyWithWalletProvider: ({ walletProviderKey, hardwareWalletVendor }: ConnectAndVerifyWithWalletProviderParams, client?: import("../../../exports").DynamicClient) => Promise<import("../walletAccount").BaseWalletAccount<import("../../chain").Chain>>;
|
|
30
40
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAInF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAInF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,kCAAkC,gDACA,wCAAwC,0IAuBtF,CAAC"}
|
|
@@ -10,8 +10,14 @@ type ConnectWithWalletProviderParams = {
|
|
|
10
10
|
*
|
|
11
11
|
* Note: This function will not verify the wallet account, use the verifyWalletAccount function to do that
|
|
12
12
|
* or connectAndVerifyWithWalletProvider to do that in a single step.
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const walletAccount = await connectWithWalletProvider({
|
|
17
|
+
* walletProviderKey: 'metamaskevm',
|
|
18
|
+
* });
|
|
19
|
+
* console.log(walletAccount.address);
|
|
20
|
+
* ```
|
|
15
21
|
*
|
|
16
22
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to connect to (e.g. 'metamaskevm', 'phantomsol').
|
|
17
23
|
* @param [params.addToDynamicWalletAccounts] - Whether to add the connected wallet account to the user's wallet accounts. Defaults to true.
|
|
@@ -19,7 +25,9 @@ type ConnectWithWalletProviderParams = {
|
|
|
19
25
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
20
26
|
* @returns A promise that resolves to the connected wallet account.
|
|
21
27
|
* @throws NoAddressFoundError If the request to connect was successful but no address is connected to your app.
|
|
22
|
-
*
|
|
28
|
+
* @see verifyWalletAccount
|
|
29
|
+
* @see connectAndVerifyWithWalletProvider
|
|
30
|
+
* @instrumented
|
|
23
31
|
*/
|
|
24
32
|
export declare const connectWithWalletProvider: ({ walletProviderKey, addToDynamicWalletAccounts, hardwareWalletVendor, }: ConnectWithWalletProviderParams, client?: import("../../../exports").DynamicClient) => Promise<WalletAccount>;
|
|
25
33
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,yBAAyB,6EAKjC,+BAA+B,wDAEjC,OAAO,CAAC,aAAa,CAqDvB,CAAC"}
|
|
@@ -4,11 +4,24 @@ type DisconnectWalletAccountParams = {
|
|
|
4
4
|
walletAccount: WalletAccount;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Disconnects the specified wallet account from its wallet provider.
|
|
8
8
|
*
|
|
9
|
-
* The wallet account is not removed from the user's profile or from
|
|
9
|
+
* The wallet account is not removed from the user's profile or from Dynamic's state,
|
|
10
10
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
11
|
-
|
|
11
|
+
* Use `removeWalletAccount` to fully remove a wallet from the user's session.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const wallets = getWalletAccounts();
|
|
16
|
+
* await disconnectWalletAccount({ walletAccount: wallets[0] }, client);
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param params.walletAccount - The wallet account to disconnect.
|
|
20
|
+
* @param client - The Dynamic client instance.
|
|
21
|
+
* @returns A promise that resolves when the wallet is disconnected from the provider.
|
|
22
|
+
* @see removeWalletAccount
|
|
23
|
+
* @see connectWithWalletProvider
|
|
24
|
+
* @notInstrumented
|
|
12
25
|
*/
|
|
13
26
|
export declare const disconnectWalletAccount: ({ walletAccount }: DisconnectWalletAccountParams, client: DynamicClient) => Promise<void>;
|
|
14
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disconnectWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"disconnectWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,sBACf,6BAA6B,UACxC,aAAa,KACpB,OAAO,CAAC,IAAI,CAiBd,CAAC"}
|
|
@@ -7,10 +7,18 @@ type GetConnectedAddressesParams = {
|
|
|
7
7
|
* This function returns the list of wallet addresses that are currently
|
|
8
8
|
* connected and available through the specified wallet provider.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const addresses = getConnectedAddresses({ walletProviderKey: 'metamaskevm' });
|
|
13
|
+
* console.log('Connected:', addresses);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
10
16
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
11
17
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
18
|
* @returns An array of connected wallet addresses.
|
|
13
|
-
|
|
19
|
+
* @see connectWithWalletProvider
|
|
20
|
+
* @see getWalletAccounts
|
|
21
|
+
* @notInstrumented
|
|
14
22
|
*/
|
|
15
23
|
export declare const getConnectedAddresses: ({ walletProviderKey }: GetConnectedAddressesParams, client?: import("../../../exports").DynamicClient) => Promise<{
|
|
16
24
|
addresses: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConnectedAddresses.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getConnectedAddresses/getConnectedAddresses.ts"],"names":[],"mappings":"AAGA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"getConnectedAddresses.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getConnectedAddresses/getConnectedAddresses.ts"],"names":[],"mappings":"AAGA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,0BACT,2BAA2B;;EAMnD,CAAC"}
|
|
@@ -7,9 +7,19 @@ import type { WalletAccount } from '../walletAccount';
|
|
|
7
7
|
* You can differentiate between verified and unverified wallet accounts by
|
|
8
8
|
* checking the `verifiedCredentialId` property.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const wallets = getWalletAccounts();
|
|
13
|
+
* const verified = wallets.filter((walletAccount) =>
|
|
14
|
+
* isWalletAccountVerified({ walletAccount }),
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
10
18
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
11
19
|
* @returns An array of wallet accounts associated with the session.
|
|
12
|
-
|
|
20
|
+
* @see isWalletAccountVerified
|
|
21
|
+
* @see verifyWalletAccount
|
|
22
|
+
* @notInstrumented
|
|
13
23
|
* @hook Exposed as a hook so consumers get the reactive list of wallet accounts.
|
|
14
24
|
*/
|
|
15
25
|
export declare const getWalletAccounts: (client?: import("../../../exports").DynamicClient) => WalletAccount[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD
|
|
1
|
+
{"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,yDAE3B,aAAa,EAKf,CAAC"}
|
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
* else your app considers "signed in" (e.g. `client.user`, completed onboarding,
|
|
7
7
|
* a required embedded wallet, …).
|
|
8
8
|
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* if (isAnyWalletAccountConnected()) {
|
|
12
|
+
* console.log('At least one wallet is connected');
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
9
16
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
10
17
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
18
|
+
* @see getWalletAccounts
|
|
19
|
+
* @see isWalletAccountVerified
|
|
11
20
|
* @notInstrumented
|
|
12
21
|
*/
|
|
13
22
|
export declare const isAnyWalletAccountConnected: (client?: import("../../../exports").DynamicClient) => boolean;
|
package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,yDAErC,OAA+C,CAAC"}
|
|
@@ -5,9 +5,17 @@ type isWalletAccountVerifiedParams = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Checks if a wallet account has been verified by a user.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const wallets = getWalletAccounts();
|
|
11
|
+
* const verified = wallets.filter(w => isWalletAccountVerified({ walletAccount: w }));
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param params.walletAccount - The wallet account to check.
|
|
9
15
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
10
|
-
|
|
16
|
+
* @see verifyWalletAccount
|
|
17
|
+
* @see getWalletAccounts
|
|
18
|
+
* @notInstrumented
|
|
11
19
|
*/
|
|
12
20
|
export declare const isWalletAccountVerified: ({ walletAccount, }: isWalletAccountVerifiedParams) => boolean;
|
|
13
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isWalletAccountVerified.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"isWalletAccountVerified.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,uBAEjC,6BAA6B,YAE/B,CAAC"}
|
|
@@ -6,6 +6,14 @@ type GetBalanceParams = Parameters<typeof getNativeBalance>[0];
|
|
|
6
6
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7
7
|
* `getMultichainTokenBalances`).
|
|
8
8
|
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Prefer getNativeBalance instead
|
|
12
|
+
* const balance = await getNativeBalance({ walletAccount });
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @see getNativeBalance
|
|
16
|
+
* @see getMultichainBalances
|
|
9
17
|
* @notInstrumented
|
|
10
18
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
11
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;GAgBG;AAGH,eAAO,MAAM,UAAU,WACb,gBAAgB,2DAEvB,UAAU,CAAC,OAAO,gBAAgB,CAAqC,CAAC"}
|
|
@@ -12,9 +12,17 @@ type GetNativeBalanceParams = {
|
|
|
12
12
|
* {@link getTokenBalances}; for a multi-chain portfolio snapshot, use
|
|
13
13
|
* {@link getMultichainTokenBalances}.
|
|
14
14
|
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const { balance } = await getNativeBalance({ walletAccount: wallets[0] });
|
|
18
|
+
* console.log('Native balance:', balance);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
15
21
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
16
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
17
23
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
24
|
+
* @see getMultichainTokenBalances
|
|
25
|
+
* @see switchActiveNetwork
|
|
18
26
|
* @notInstrumented
|
|
19
27
|
*/
|
|
20
28
|
export declare const getNativeBalance: ({ walletAccount }: GetNativeBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gBAAgB,sBACR,sBAAsB,2DAExC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
|
|
@@ -9,12 +9,22 @@ type SwitchActiveNetworkParams = {
|
|
|
9
9
|
* This function programmatically changes the network
|
|
10
10
|
* that the wallet is currently connected to.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await switchActiveNetwork({
|
|
15
|
+
* walletAccount: wallets[0],
|
|
16
|
+
* networkId: '137', // Polygon
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
12
20
|
* @param params.networkId - The identifier of the network to switch to. Should match the networkId of the network data.
|
|
13
21
|
* @param params.walletAccount - The wallet account to switch networks for.
|
|
14
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
23
|
* @returns A promise that resolves when the network switch is complete.
|
|
16
24
|
* @throws NetworkSwitchingUnavailableError If the wallet provider doesn't support network switching.
|
|
17
|
-
|
|
25
|
+
* @see getNativeBalance
|
|
26
|
+
* @see isProgrammaticNetworkSwitchAvailable
|
|
27
|
+
* @instrumented
|
|
18
28
|
*/
|
|
19
29
|
export declare const switchActiveNetwork: ({ networkId, walletAccount }: SwitchActiveNetworkParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
|
|
20
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"switchActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,iCACA,yBAAyB,wEAmBxD,CAAC"}
|
|
@@ -8,9 +8,19 @@ type ProveWalletAccountOwnershipParams = {
|
|
|
8
8
|
* This function generates a sign-in message and requires the user to sign it
|
|
9
9
|
* with their wallet's private key, proving they control the wallet address.
|
|
10
10
|
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const { messageToSign, signature } = await proveWalletAccountOwnership({
|
|
14
|
+
* walletAccount: wallets[0],
|
|
15
|
+
* });
|
|
16
|
+
* // Send signature to your backend for verification
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
11
19
|
* @param params.walletAccount - The wallet account to prove ownership of.
|
|
12
20
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
21
|
* @returns A promise that resolves to an object containing the message and signature.
|
|
22
|
+
* @see signMessage
|
|
23
|
+
* @see verifyWalletAccount
|
|
14
24
|
* @instrumented
|
|
15
25
|
*/
|
|
16
26
|
export declare const proveWalletAccountOwnership: ({ walletAccount }: ProveWalletAccountOwnershipParams, client?: import("../../../exports").DynamicClient) => Promise<{
|