@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
package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proveWalletAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iCAAiC,GAAG;IACvC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"proveWalletAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iCAAiC,GAAG;IACvC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,sBACnB,iCAAiC,wDAEnD,OAAO,CAAC;IACT,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAqBA,CAAC"}
|
|
@@ -9,10 +9,18 @@ type RemoveWalletAccountParams = {
|
|
|
9
9
|
* updating local state and server records (if there is an authenticated user).
|
|
10
10
|
* For verified wallets, it will unlink them from the user's account.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const wallets = getWalletAccounts();
|
|
15
|
+
* await removeWalletAccount({ walletAccount: wallets[0] });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
12
18
|
* @param params.walletAccount - The wallet account to remove.
|
|
13
19
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
14
20
|
* @returns A promise that resolves when the wallet account is successfully removed.
|
|
15
|
-
|
|
21
|
+
* @see getWalletAccounts
|
|
22
|
+
* @see disconnectWalletAccount
|
|
23
|
+
* @instrumented
|
|
16
24
|
*/
|
|
17
25
|
export declare const removeWalletAccount: ({ walletAccount }: RemoveWalletAccountParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
|
|
18
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mBAAmB,sBACX,yBAAyB,wDAE3C,OAAO,CAAC,IAAI,CAuBd,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../walletAccount';
|
|
2
|
+
/**
|
|
3
|
+
* Get the primary wallet account.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Renamed to `getSelectedWalletAccount`. The "primary wallet" naming was
|
|
6
|
+
* misleading — the SDK does not use or care about which wallet is selected; it
|
|
7
|
+
* only lets you *read* the user's most recently selected wallet. Migrate to
|
|
8
|
+
* `getSelectedWalletAccount`, and own your own wallet-selection state in your
|
|
9
|
+
* application rather than relying on the SDK's selected wallet.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const primary = getPrimaryWalletAccount();
|
|
14
|
+
* if (primary) {
|
|
15
|
+
* console.log('Primary wallet:', primary.address);
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
20
|
+
* @returns The primary wallet account, or null if no wallet has been selected.
|
|
21
|
+
* @notInstrumented
|
|
22
|
+
*/
|
|
23
|
+
export declare const getPrimaryWalletAccount: (client?: import("../../../../exports").DynamicClient) => WalletAccount | null;
|
|
24
|
+
//# sourceMappingURL=getPrimaryWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,4DAEjC,aAAa,GAAG,IAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../walletAccount';
|
|
2
|
+
/**
|
|
3
|
+
* Get the wallet account currently selected for the user.
|
|
4
|
+
*
|
|
5
|
+
* The SDK itself does not use or care about which wallet is "selected" — it has
|
|
6
|
+
* no bearing on authentication, signing, or any other SDK behaviour. This is
|
|
7
|
+
* purely a convenience for *reading* which wallet the user most recently
|
|
8
|
+
* selected (derived from the backend `lastSelectedAt` timestamp, across both
|
|
9
|
+
* unverified and verified wallet accounts). Applications that need a notion of
|
|
10
|
+
* an active/current wallet should own that selection state themselves.
|
|
11
|
+
*
|
|
12
|
+
* The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
|
|
13
|
+
* mirrors the selected EVM wallet into wagmi's connector state.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const selected = getSelectedWalletAccount();
|
|
18
|
+
* if (selected) {
|
|
19
|
+
* console.log('Selected wallet:', selected.address);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
24
|
+
* @returns The selected wallet account, or null if no wallet has been selected.
|
|
25
|
+
* @see setSelectedWalletAccount
|
|
26
|
+
* @see getWalletAccounts
|
|
27
|
+
* @notInstrumented
|
|
28
|
+
*/
|
|
29
|
+
export declare const getSelectedWalletAccount: (client?: import("../../../../exports").DynamicClient) => WalletAccount | null;
|
|
30
|
+
//# sourceMappingURL=getSelectedWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSelectedWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,4DAElC,aAAa,GAAG,IAmBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../walletAccount';
|
|
2
|
+
type SelectPrimaryWalletAccountParams = {
|
|
3
|
+
walletAccount: WalletAccount;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Make the wallet account provided as the primary wallet account.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated Renamed to `setSelectedWalletAccount`. The "primary wallet" naming was
|
|
9
|
+
* misleading — the SDK does not use or care about which wallet is selected;
|
|
10
|
+
* this only records the selection so it can later be read back. Migrate to
|
|
11
|
+
* `setSelectedWalletAccount`, and own your own wallet-selection state in your
|
|
12
|
+
* application rather than relying on the SDK's selected wallet.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const wallets = getWalletAccounts();
|
|
17
|
+
* await selectPrimaryWalletAccount({ walletAccount: wallets[1] });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param params.walletAccount - The wallet account to set as primary.
|
|
21
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
22
|
+
* @returns A promise that resolves when the selection is persisted.
|
|
23
|
+
* @instrumented
|
|
24
|
+
* @noHook The selected-wallet concept is not exposed as a hook.
|
|
25
|
+
*/
|
|
26
|
+
export declare const selectPrimaryWalletAccount: ({ walletAccount }: SelectPrimaryWalletAccountParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=selectPrimaryWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,0BAA0B,sBAClB,gCAAgC,2DAElD,OAAO,CAAC,IAAI,CAAwD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../walletAccount';
|
|
2
|
+
type SetSelectedWalletAccountParams = {
|
|
3
|
+
walletAccount: WalletAccount;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Set the wallet account that is currently selected for the user.
|
|
7
|
+
*
|
|
8
|
+
* The SDK itself does not use or care about which wallet is "selected" — this
|
|
9
|
+
* only records the selection (updating the backend `lastSelectedAt` and, for
|
|
10
|
+
* verified wallets, persisting it server-side) so it can later be read back via
|
|
11
|
+
* `getSelectedWalletAccount`. It has no bearing on authentication or signing.
|
|
12
|
+
* Applications that need a notion of an active/current wallet should own that
|
|
13
|
+
* selection state themselves.
|
|
14
|
+
*
|
|
15
|
+
* The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
|
|
16
|
+
* relies on the selected EVM wallet.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const wallets = getWalletAccounts();
|
|
21
|
+
* await setSelectedWalletAccount({ walletAccount: wallets[1] });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param params.walletAccount - The wallet account to mark as selected.
|
|
25
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
26
|
+
* @returns A promise that resolves when the selection is persisted.
|
|
27
|
+
* @see getSelectedWalletAccount
|
|
28
|
+
* @see getWalletAccounts
|
|
29
|
+
* @instrumented
|
|
30
|
+
* @noHook The selected-wallet concept is not exposed as a hook.
|
|
31
|
+
*/
|
|
32
|
+
export declare const setSelectedWalletAccount: ({ walletAccount }: SetSelectedWalletAccountParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=setSelectedWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setSelectedWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,8BAA8B,GAAG;IACpC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,sBAChB,8BAA8B,2DAEhD,OAAO,CAAC,IAAI,CAiCd,CAAC"}
|
|
@@ -9,11 +9,22 @@ type SignMessageParams = {
|
|
|
9
9
|
* This function uses the wallet's private key to cryptographically sign
|
|
10
10
|
* the provided message.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const wallets = getWalletAccounts();
|
|
15
|
+
* const { signature } = await signMessage({
|
|
16
|
+
* walletAccount: wallets[0],
|
|
17
|
+
* message: 'Hello Dynamic!',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
12
21
|
* @param params.walletAccount - The wallet account to use for signing.
|
|
13
22
|
* @param params.message - The message to sign.
|
|
14
23
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
24
|
* @returns A promise that resolves to an object containing the signature.
|
|
16
|
-
|
|
25
|
+
* @see getWalletAccounts
|
|
26
|
+
* @see connectWithWalletProvider
|
|
27
|
+
* @instrumented
|
|
17
28
|
*/
|
|
18
29
|
export declare const signMessage: ({ walletAccount, message }: SignMessageParams, client?: import("../../../exports").DynamicClient) => Promise<{
|
|
19
30
|
signature: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/signMessage/signMessage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/signMessage/signMessage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,WAAW,+BACM,iBAAiB,wDAE5C,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAgB/B,CAAC"}
|
|
@@ -5,14 +5,25 @@ import type { TransferAmountParams } from '../walletProvider/walletProvider.type
|
|
|
5
5
|
* Supports native token transfers and, where supported by the chain,
|
|
6
6
|
* fungible/token transfers via the optional `token` parameter.
|
|
7
7
|
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const { transactionHash } = await transferAmount({
|
|
11
|
+
* walletAccount: wallets[0],
|
|
12
|
+
* amount: '0.1',
|
|
13
|
+
* recipient: '0x1234...abcd',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
8
17
|
* @param params.walletAccount - The wallet account to transfer from.
|
|
9
18
|
* @param params.amount - The amount to transfer as a decimal string (e.g. "1.5").
|
|
10
19
|
* @param params.recipient - The recipient address.
|
|
11
|
-
* @param params.token - Optional token info for non-native transfers.
|
|
20
|
+
* @param [params.token] - Optional token info for non-native transfers.
|
|
12
21
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
22
|
* @returns A promise that resolves to an object containing the transaction hash.
|
|
14
23
|
* @throws If the wallet provider does not support the transfer amount method.
|
|
15
|
-
|
|
24
|
+
* @see getWalletAccounts
|
|
25
|
+
* @see signMessage
|
|
26
|
+
* @instrumented
|
|
16
27
|
*/
|
|
17
28
|
export declare const transferAmount: ({ walletAccount, amount, recipient, token }: TransferAmountParams, client?: import("../../../exports").DynamicClient) => Promise<{
|
|
18
29
|
transactionHash: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferAmount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferAmount/transferAmount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF
|
|
1
|
+
{"version":3,"file":"transferAmount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferAmount/transferAmount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,gDACoB,oBAAoB,wDAEhE,OAAO,CAAC;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAkBrC,CAAC"}
|
|
@@ -7,10 +7,19 @@ type TransferWalletAccountParams = {
|
|
|
7
7
|
* This function requires the user to sign a message to prove wallet ownership,
|
|
8
8
|
* then transfers the wallet account to the current user's account.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const walletAccount = await transferWalletAccount({
|
|
13
|
+
* walletProviderKey: 'metamaskevm',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
10
17
|
* @param params.walletProviderKey - The key of the wallet provider of the wallet account to transfer.
|
|
11
18
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
19
|
* @returns A promise that resolves to the transferred wallet account.
|
|
13
|
-
|
|
20
|
+
* @see connectWithWalletProvider
|
|
21
|
+
* @see verifyWalletAccount
|
|
22
|
+
* @instrumented
|
|
14
23
|
*/
|
|
15
24
|
export declare const transferWalletAccount: ({ walletProviderKey }: TransferWalletAccountParams, client?: import("../../../exports").DynamicClient) => Promise<import("../walletAccount").BaseWalletAccount<import("../../chain").Chain>>;
|
|
16
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferWalletAccount/transferWalletAccount.ts"],"names":[],"mappings":"AAIA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"transferWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferWalletAccount/transferWalletAccount.ts"],"names":[],"mappings":"AAIA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,qBAAqB,0BACT,2BAA2B,0IAenD,CAAC"}
|
package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts
CHANGED
|
@@ -9,11 +9,21 @@ type GetWalletAccountFromAddressParams = {
|
|
|
9
9
|
* This function searches through the current session's wallet accounts
|
|
10
10
|
* to find one matching the specified address and chain.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const account = getWalletAccountFromAddress({
|
|
15
|
+
* address: '0x1234...abcd',
|
|
16
|
+
* chain: 'EVM',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
12
20
|
* @param params.address - The wallet address to search for.
|
|
13
21
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
14
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
23
|
* @returns The matching wallet account, or undefined if not found.
|
|
16
|
-
|
|
24
|
+
* @see getWalletAccounts
|
|
25
|
+
* @see isWalletAccountVerified
|
|
26
|
+
* @notInstrumented
|
|
17
27
|
*/
|
|
18
28
|
export declare const getWalletAccountFromAddress: ({ address, chain }: GetWalletAccountFromAddressParams, client?: import("../../../../exports").DynamicClient) => import("../../walletAccount").BaseWalletAccount<Chain> | undefined;
|
|
19
29
|
export {};
|
package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletAccountFromAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,KAAK,iCAAiC,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"getWalletAccountFromAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,KAAK,iCAAiC,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,2BAA2B,uBAClB,iCAAiC,6HAStD,CAAC"}
|
package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ type VerifyMessageSignatureOwnershipParams = {
|
|
|
19
19
|
* depending on whether the user is signing in, linking or transferring a wallet.
|
|
20
20
|
*
|
|
21
21
|
* Does NOT call updateAuthFromVerifyResponse, it should be called from the return of this function.
|
|
22
|
+
* @throws MergeAccountsConfirmationError If the credential belongs to another user and the backend is offering to merge the accounts.
|
|
22
23
|
* @throws WalletAlreadyLinkedToAnotherUserError If the wallet is already linked to another user.
|
|
23
24
|
* @throws WalletScreeningBlockedError If the wallet was blocked by the project's compliance screening.
|
|
24
25
|
* @notInstrumented
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyMessageSignatureOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"verifyMessageSignatureOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,UAAU,EACV,cAAc,EAEd,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAKlF,KAAK,qCAAqC,GAAG;IAC3C,kBAAkB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC7C,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,2JAYvC,qCAAqC,UAChC,aAAa,KACpB,OAAO,CAAC,cAAc,CAoFxB,CAAC"}
|
|
@@ -10,12 +10,23 @@ type VerifyWalletAccountParams = {
|
|
|
10
10
|
* This function requires the user to sign a message to prove wallet ownership,
|
|
11
11
|
* then sets the wallet account as verified.
|
|
12
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const walletAccount = await connectWithWalletProvider({
|
|
16
|
+
* walletProviderKey: 'metamaskevm',
|
|
17
|
+
* });
|
|
18
|
+
* const verified = await verifyWalletAccount({ walletAccount });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
13
21
|
* @param params.walletAccount - The wallet account to verify ownership of.
|
|
22
|
+
* @param [params.requestedScopes] - Optional token scopes to request during verification.
|
|
14
23
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
24
|
* @returns A promise that resolves to the verified wallet account.
|
|
16
25
|
* @throws WalletAccountAlreadyVerifiedError If the wallet is already verified.
|
|
17
26
|
* @throws WalletAlreadyLinkedToAnotherUserError If the wallet is linked to another user.
|
|
18
|
-
|
|
27
|
+
* @see connectWithWalletProvider
|
|
28
|
+
* @see connectAndVerifyWithWalletProvider
|
|
29
|
+
* @instrumented
|
|
19
30
|
*/
|
|
20
31
|
export declare const verifyWalletAccount: ({ walletAccount, requestedScopes }: VerifyWalletAccountParams, client?: import("../../../exports").DynamicClient) => Promise<WalletAccount>;
|
|
21
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/verifyWalletAccount/verifyWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAI7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"verifyWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/verifyWalletAccount/verifyWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAI7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,mBAAmB,uCACM,yBAAyB,wDAE5D,OAAO,CAAC,aAAa,CASvB,CAAC"}
|