@dynamic-labs-sdk/react-hooks 1.6.0 → 1.8.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/exports/index.d.ts +35 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/hooks/useAcknowledgeRecoveryCodes/index.d.ts +2 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/index.d.ts.map +1 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts +24 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts.map +1 -0
- package/dist/hooks/useActiveNetworkData/index.d.ts +2 -0
- package/dist/hooks/useActiveNetworkData/index.d.ts.map +1 -0
- package/dist/hooks/useActiveNetworkData/useActiveNetworkData.d.ts +24 -0
- package/dist/hooks/useActiveNetworkData/useActiveNetworkData.d.ts.map +1 -0
- package/dist/hooks/useAddNetwork/index.d.ts +2 -0
- package/dist/hooks/useAddNetwork/index.d.ts.map +1 -0
- package/dist/hooks/useAddNetwork/useAddNetwork.d.ts +31 -0
- package/dist/hooks/useAddNetwork/useAddNetwork.d.ts.map +1 -0
- package/dist/hooks/useBalanceForAddress/index.d.ts +2 -0
- package/dist/hooks/useBalanceForAddress/index.d.ts.map +1 -0
- package/dist/hooks/useBalanceForAddress/useBalanceForAddress.d.ts +24 -0
- package/dist/hooks/useBalanceForAddress/useBalanceForAddress.d.ts.map +1 -0
- package/dist/hooks/useCheckStepUpAuth/index.d.ts +3 -0
- package/dist/hooks/useCheckStepUpAuth/index.d.ts.map +1 -0
- package/dist/hooks/useCheckStepUpAuth/useCheckStepUpAuth.d.ts +30 -0
- package/dist/hooks/useCheckStepUpAuth/useCheckStepUpAuth.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseBuyUrl/index.d.ts +2 -0
- package/dist/hooks/useCoinbaseBuyUrl/index.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.d.ts +22 -0
- package/dist/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseOnrampOrderEventListener/index.d.ts +3 -0
- package/dist/hooks/useCoinbaseOnrampOrderEventListener/index.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts +26 -0
- package/dist/hooks/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts.map +1 -0
- package/dist/hooks/useCompleteDeviceRegistration/index.d.ts +2 -0
- package/dist/hooks/useCompleteDeviceRegistration/index.d.ts.map +1 -0
- package/dist/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts +26 -0
- package/dist/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts.map +1 -0
- package/dist/hooks/useCompleteSocialRedirect/index.d.ts +2 -0
- package/dist/hooks/useCompleteSocialRedirect/index.d.ts.map +1 -0
- package/dist/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts +24 -0
- package/dist/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts.map +1 -0
- package/dist/hooks/useConfirmTransaction/index.d.ts +2 -0
- package/dist/hooks/useConfirmTransaction/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmTransaction/useConfirmTransaction.d.ts +23 -0
- package/dist/hooks/useConfirmTransaction/useConfirmTransaction.d.ts.map +1 -0
- package/dist/hooks/useConnectAndVerifyWithWalletProvider/index.d.ts +3 -0
- package/dist/hooks/useConnectAndVerifyWithWalletProvider/index.d.ts.map +1 -0
- package/dist/hooks/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.d.ts +40 -0
- package/dist/hooks/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.d.ts.map +1 -0
- package/dist/hooks/useConnectWithWalletProvider/index.d.ts +3 -0
- package/dist/hooks/useConnectWithWalletProvider/index.d.ts.map +1 -0
- package/dist/hooks/useConnectWithWalletProvider/useConnectWithWalletProvider.d.ts +38 -0
- package/dist/hooks/useConnectWithWalletProvider/useConnectWithWalletProvider.d.ts.map +1 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/index.d.ts +2 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/index.d.ts.map +1 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts +23 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts.map +1 -0
- package/dist/hooks/useCreateCryptoDotComPayment/index.d.ts +2 -0
- package/dist/hooks/useCreateCryptoDotComPayment/index.d.ts.map +1 -0
- package/dist/hooks/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts +24 -0
- package/dist/hooks/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts.map +1 -0
- package/dist/hooks/useExecuteSwapTransaction/index.d.ts +2 -0
- package/dist/hooks/useExecuteSwapTransaction/index.d.ts.map +1 -0
- package/dist/hooks/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts +25 -0
- package/dist/hooks/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts.map +1 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/index.d.ts +2 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/index.d.ts.map +1 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/useGoogleDriveBackupReadiness.d.ts +21 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/useGoogleDriveBackupReadiness.d.ts.map +1 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/index.d.ts +2 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/index.d.ts.map +1 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/useKrakenWhitelistedAddresses.d.ts +21 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/useKrakenWhitelistedAddresses.d.ts.map +1 -0
- package/dist/hooks/useMoonPayCurrencies/index.d.ts +2 -0
- package/dist/hooks/useMoonPayCurrencies/index.d.ts.map +1 -0
- package/dist/hooks/useMoonPayCurrencies/useMoonPayCurrencies.d.ts +22 -0
- package/dist/hooks/useMoonPayCurrencies/useMoonPayCurrencies.d.ts.map +1 -0
- package/dist/hooks/useMoonPayUrl/index.d.ts +2 -0
- package/dist/hooks/useMoonPayUrl/index.d.ts.map +1 -0
- package/dist/hooks/useMoonPayUrl/useMoonPayUrl.d.ts +22 -0
- package/dist/hooks/useMoonPayUrl/useMoonPayUrl.d.ts.map +1 -0
- package/dist/hooks/useOnceEvent/index.d.ts +2 -0
- package/dist/hooks/useOnceEvent/index.d.ts.map +1 -0
- package/dist/hooks/useOnceEvent/useOnceEvent.d.ts +18 -0
- package/dist/hooks/useOnceEvent/useOnceEvent.d.ts.map +1 -0
- package/dist/hooks/useProveWalletAccountOwnership/index.d.ts +2 -0
- package/dist/hooks/useProveWalletAccountOwnership/index.d.ts.map +1 -0
- package/dist/hooks/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts +29 -0
- package/dist/hooks/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts.map +1 -0
- package/dist/hooks/useRefreshAuth/index.d.ts +2 -0
- package/dist/hooks/useRefreshAuth/index.d.ts.map +1 -0
- package/dist/hooks/useRefreshAuth/useRefreshAuth.d.ts +24 -0
- package/dist/hooks/useRefreshAuth/useRefreshAuth.d.ts.map +1 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/index.d.ts +2 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/index.d.ts.map +1 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts +26 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts.map +1 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/index.d.ts +2 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/index.d.ts.map +1 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts +25 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts.map +1 -0
- package/dist/hooks/useSignInWithExternalJwt/index.d.ts +2 -0
- package/dist/hooks/useSignInWithExternalJwt/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts +26 -0
- package/dist/hooks/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialPopUp/index.d.ts +2 -0
- package/dist/hooks/useSignInWithSocialPopUp/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts +24 -0
- package/dist/hooks/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialRedirect/index.d.ts +2 -0
- package/dist/hooks/useSignInWithSocialRedirect/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts +23 -0
- package/dist/hooks/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts.map +1 -0
- package/dist/hooks/useSwapQuote/index.d.ts +2 -0
- package/dist/hooks/useSwapQuote/index.d.ts.map +1 -0
- package/dist/hooks/useSwapQuote/useSwapQuote.d.ts +22 -0
- package/dist/hooks/useSwapQuote/useSwapQuote.d.ts.map +1 -0
- package/dist/hooks/useSwapStatus/index.d.ts +2 -0
- package/dist/hooks/useSwapStatus/index.d.ts.map +1 -0
- package/dist/hooks/useSwapStatus/useSwapStatus.d.ts +22 -0
- package/dist/hooks/useSwapStatus/useSwapStatus.d.ts.map +1 -0
- package/dist/hooks/useTransferAmount/index.d.ts +2 -0
- package/dist/hooks/useTransferAmount/index.d.ts.map +1 -0
- package/dist/hooks/useTransferAmount/useTransferAmount.d.ts +25 -0
- package/dist/hooks/useTransferAmount/useTransferAmount.d.ts.map +1 -0
- package/dist/hooks/useTransferWalletAccount/index.d.ts +2 -0
- package/dist/hooks/useTransferWalletAccount/index.d.ts.map +1 -0
- package/dist/hooks/useTransferWalletAccount/useTransferWalletAccount.d.ts +26 -0
- package/dist/hooks/useTransferWalletAccount/useTransferWalletAccount.d.ts.map +1 -0
- package/dist/hooks/useWalletConnectCatalog/index.d.ts +3 -0
- package/dist/hooks/useWalletConnectCatalog/index.d.ts.map +1 -0
- package/dist/hooks/useWalletConnectCatalog/useWalletConnectCatalog.d.ts +24 -0
- package/dist/hooks/useWalletConnectCatalog/useWalletConnectCatalog.d.ts.map +1 -0
- package/dist/hooks/useWalletOptionsCatalogue/index.d.ts +2 -0
- package/dist/hooks/useWalletOptionsCatalogue/index.d.ts.map +1 -0
- package/dist/hooks/useWalletOptionsCatalogue/useWalletOptionsCatalogue.d.ts +22 -0
- package/dist/hooks/useWalletOptionsCatalogue/useWalletOptionsCatalogue.d.ts.map +1 -0
- package/dist/hooks/useWalletProviderEvent/index.d.ts +2 -0
- package/dist/hooks/useWalletProviderEvent/index.d.ts.map +1 -0
- package/dist/hooks/useWalletProviderEvent/useWalletProviderEvent.d.ts +19 -0
- package/dist/hooks/useWalletProviderEvent/useWalletProviderEvent.d.ts.map +1 -0
- package/dist/index.cjs +709 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +677 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
package/dist/exports/index.d.ts
CHANGED
|
@@ -1,39 +1,70 @@
|
|
|
1
|
+
export { useAcknowledgeRecoveryCodes, type UseAcknowledgeRecoveryCodesParams, } from '../hooks/useAcknowledgeRecoveryCodes';
|
|
2
|
+
export { useActiveNetworkData, type UseActiveNetworkDataParams, } from '../hooks/useActiveNetworkData';
|
|
3
|
+
export { useAddNetwork, type UseAddNetworkParams, } from '../hooks/useAddNetwork';
|
|
1
4
|
export { useAuthenticateMfaRecoveryCode, type UseAuthenticateMfaRecoveryCodeParams, } from '../hooks/useAuthenticateMfaRecoveryCode';
|
|
2
5
|
export { useAuthenticatePasskeyMfa, type UseAuthenticatePasskeyMfaParams, } from '../hooks/useAuthenticatePasskeyMfa';
|
|
3
6
|
export { useAuthenticateTotpMfaDevice, type UseAuthenticateTotpMfaDeviceParams, } from '../hooks/useAuthenticateTotpMfaDevice';
|
|
4
7
|
export { useAvailableWalletProvidersData } from '../hooks/useAvailableWalletProvidersData';
|
|
8
|
+
export { useBalanceForAddress, type UseBalanceForAddressParams, } from '../hooks/useBalanceForAddress';
|
|
9
|
+
export { useCheckStepUpAuth, type UseCheckStepUpAuthParams, } from '../hooks/useCheckStepUpAuth';
|
|
10
|
+
export { useCoinbaseBuyUrl, type UseCoinbaseBuyUrlParams, } from '../hooks/useCoinbaseBuyUrl';
|
|
11
|
+
export { useCoinbaseOnrampOrderEventListener, type UseCoinbaseOnrampOrderEventListenerParams, } from '../hooks/useCoinbaseOnrampOrderEventListener';
|
|
12
|
+
export { useCompleteDeviceRegistration, type UseCompleteDeviceRegistrationParams, } from '../hooks/useCompleteDeviceRegistration';
|
|
13
|
+
export { useCompleteSocialRedirect, type UseCompleteSocialRedirectParams, } from '../hooks/useCompleteSocialRedirect';
|
|
14
|
+
export { useConfirmTransaction, type UseConfirmTransactionParams, } from '../hooks/useConfirmTransaction';
|
|
15
|
+
export { useConnectAndVerifyWithWalletProvider, type UseConnectAndVerifyWithWalletProviderParams, } from '../hooks/useConnectAndVerifyWithWalletProvider';
|
|
16
|
+
export { useConnectWithWalletProvider, type UseConnectWithWalletProviderParams, } from '../hooks/useConnectWithWalletProvider';
|
|
5
17
|
export { useConsumeMfaToken, type UseConsumeMfaTokenParams, } from '../hooks/useConsumeMfaToken';
|
|
18
|
+
export { useCreateCoinbaseOnrampOrder, type UseCreateCoinbaseOnrampOrderParams, } from '../hooks/useCreateCoinbaseOnrampOrder';
|
|
19
|
+
export { useCreateCryptoDotComPayment, type UseCreateCryptoDotComPaymentParams, } from '../hooks/useCreateCryptoDotComPayment';
|
|
6
20
|
export { useCreateNewMfaRecoveryCodes, type UseCreateNewMfaRecoveryCodesParams, } from '../hooks/useCreateNewMfaRecoveryCodes';
|
|
7
21
|
export { useDeleteMfaDevice, type UseDeleteMfaDeviceParams, } from '../hooks/useDeleteMfaDevice';
|
|
8
22
|
export { useDeletePasskey, type UseDeletePasskeyParams, } from '../hooks/useDeletePasskey';
|
|
9
23
|
export { useDeleteUser, type UseDeleteUserParams, } from '../hooks/useDeleteUser';
|
|
10
24
|
export { useEvent } from '../hooks/useEvent';
|
|
25
|
+
export { useExecuteSwapTransaction, type UseExecuteSwapTransactionParams, } from '../hooks/useExecuteSwapTransaction';
|
|
26
|
+
export { useGoogleDriveBackupReadiness, type UseGoogleDriveBackupReadinessParams, } from '../hooks/useGoogleDriveBackupReadiness';
|
|
11
27
|
export { useInitStatus } from '../hooks/useInitStatus';
|
|
12
28
|
export { useIsCaptchaRequired } from '../hooks/useIsCaptchaRequired';
|
|
13
29
|
export { useIsUserMissingMfaAuth } from '../hooks/useIsUserMissingMfaAuth';
|
|
14
30
|
export { useIsUserOnboardingComplete } from '../hooks/useIsUserOnboardingComplete';
|
|
31
|
+
export { useKrakenWhitelistedAddresses, type UseKrakenWhitelistedAddressesParams, } from '../hooks/useKrakenWhitelistedAddresses';
|
|
15
32
|
export { useLogout } from '../hooks/useLogout';
|
|
16
|
-
export { useMfaDevices, type UseMfaDevicesParams } from '../hooks/useMfaDevices';
|
|
33
|
+
export { useMfaDevices, type UseMfaDevicesParams, } from '../hooks/useMfaDevices';
|
|
17
34
|
export { useMfaMethods, type UseMfaMethodsParams, } from '../hooks/useMfaMethods';
|
|
18
35
|
export { useMfaRecoveryCodes, type UseMfaRecoveryCodesParams, } from '../hooks/useMfaRecoveryCodes';
|
|
36
|
+
export { useMoonPayCurrencies, type UseMoonPayCurrenciesParams, } from '../hooks/useMoonPayCurrencies';
|
|
37
|
+
export { useMoonPayUrl, type UseMoonPayUrlParams, } from '../hooks/useMoonPayUrl';
|
|
19
38
|
export { useMultichainTokenBalances, type UseMultichainTokenBalancesParams, } from '../hooks/useMultichainTokenBalances';
|
|
20
39
|
export { useNativeBalance } from '../hooks/useNativeBalance';
|
|
21
40
|
export { useNetworksData } from '../hooks/useNetworksData';
|
|
41
|
+
export { useOnceEvent } from '../hooks/useOnceEvent';
|
|
22
42
|
export { usePasskeys, type UsePasskeysParams } from '../hooks/usePasskeys';
|
|
43
|
+
export { useProveWalletAccountOwnership, type UseProveWalletAccountOwnershipParams, } from '../hooks/useProveWalletAccountOwnership';
|
|
44
|
+
export { useRefreshAuth, type UseRefreshAuthParams, } from '../hooks/useRefreshAuth';
|
|
23
45
|
export { useRegisteredDevices, type UseRegisteredDevicesParams, } from '../hooks/useRegisteredDevices';
|
|
24
46
|
export { useRegisterPasskey, type UseRegisterPasskeyParams, } from '../hooks/useRegisterPasskey';
|
|
25
47
|
export { useRegisterTotpMfaDevice, type UseRegisterTotpMfaDeviceParams, } from '../hooks/useRegisterTotpMfaDevice';
|
|
26
48
|
export { useRemoveWalletAccount, type UseRemoveWalletAccountParams, } from '../hooks/useRemoveWalletAccount';
|
|
49
|
+
export { useRequestExternalAuthElevatedToken, type UseRequestExternalAuthElevatedTokenParams, } from '../hooks/useRequestExternalAuthElevatedToken';
|
|
50
|
+
export { useRevokeAllRegisteredDevices, type UseRevokeAllRegisteredDevicesParams, } from '../hooks/useRevokeAllRegisteredDevices';
|
|
27
51
|
export { useRevokeRegisteredDevice, type UseRevokeRegisteredDeviceParams, } from '../hooks/useRevokeRegisteredDevice';
|
|
28
52
|
export { useSendEmailOtp, type UseSendEmailOtpParams, } from '../hooks/useSendEmailOtp';
|
|
29
53
|
export { useSendSmsOtp, type UseSendSmsOtpParams, } from '../hooks/useSendSmsOtp';
|
|
30
54
|
export { useSessionExpiresAt } from '../hooks/useSessionExpiresAt';
|
|
31
55
|
export { useSetDefaultMfaDevice, type UseSetDefaultMfaDeviceParams, } from '../hooks/useSetDefaultMfaDevice';
|
|
56
|
+
export { useSignInWithExternalJwt, type UseSignInWithExternalJwtParams, } from '../hooks/useSignInWithExternalJwt';
|
|
32
57
|
export { useSignInWithPasskey, type UseSignInWithPasskeyParams, } from '../hooks/useSignInWithPasskey';
|
|
58
|
+
export { useSignInWithSocialPopUp, type UseSignInWithSocialPopUpParams, } from '../hooks/useSignInWithSocialPopUp';
|
|
59
|
+
export { useSignInWithSocialRedirect, type UseSignInWithSocialRedirectParams, } from '../hooks/useSignInWithSocialRedirect';
|
|
33
60
|
export { useSignMessage, type UseSignMessageParams, } from '../hooks/useSignMessage';
|
|
61
|
+
export { useSwapQuote, type UseSwapQuoteParams } from '../hooks/useSwapQuote';
|
|
62
|
+
export { useSwapStatus, type UseSwapStatusParams, } from '../hooks/useSwapStatus';
|
|
34
63
|
export { useSwitchActiveNetwork, type UseSwitchActiveNetworkParams, } from '../hooks/useSwitchActiveNetwork';
|
|
35
64
|
export { useTokenBalances, type UseTokenBalancesParams, } from '../hooks/useTokenBalances';
|
|
36
65
|
export { useTransactionHistory, type UseTransactionHistoryParams, } from '../hooks/useTransactionHistory';
|
|
66
|
+
export { useTransferAmount, type UseTransferAmountParams, } from '../hooks/useTransferAmount';
|
|
67
|
+
export { useTransferWalletAccount, type UseTransferWalletAccountParams, } from '../hooks/useTransferWalletAccount';
|
|
37
68
|
export { useUnlinkSocialAccount, type UseUnlinkSocialAccountParams, } from '../hooks/useUnlinkSocialAccount';
|
|
38
69
|
export { useUpdateUser, type UseUpdateUserParams, } from '../hooks/useUpdateUser';
|
|
39
70
|
export { useUser } from '../hooks/useUser';
|
|
@@ -41,5 +72,8 @@ export { useUserSocialAccounts } from '../hooks/useUserSocialAccounts';
|
|
|
41
72
|
export { useVerifyOtp, type UseVerifyOtpParams } from '../hooks/useVerifyOtp';
|
|
42
73
|
export { useVerifyWalletAccount, type UseVerifyWalletAccountParams, } from '../hooks/useVerifyWalletAccount';
|
|
43
74
|
export { useWalletAccounts } from '../hooks/useWalletAccounts';
|
|
75
|
+
export { useWalletConnectCatalog, type UseWalletConnectCatalogParams, } from '../hooks/useWalletConnectCatalog';
|
|
76
|
+
export { useWalletOptionsCatalogue, type UseWalletOptionsCatalogueParams, } from '../hooks/useWalletOptionsCatalogue';
|
|
77
|
+
export { useWalletProviderEvent } from '../hooks/useWalletProviderEvent';
|
|
44
78
|
export { DynamicProvider, useDynamicClient } from '../modules/DynamicContext';
|
|
45
79
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,8BAA8B,EAC9B,KAAK,oCAAoC,GAC1C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AA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,EACb,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,KAAK,4BAA4B,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcknowledgeRecoveryCodes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { acknowledgeRecoveryCodes } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AcknowledgeRecoveryCodesResult = Awaited<ReturnType<typeof acknowledgeRecoveryCodes>>;
|
|
4
|
+
export type UseAcknowledgeRecoveryCodesParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
7
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
8
|
+
*/
|
|
9
|
+
mutateParams?: UseBaseMutationParams<AcknowledgeRecoveryCodesResult, void>['mutateParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Marks the current user's MFA recovery codes as acknowledged. Takes no arguments — call `mutate()` after the user confirms they have stored the codes shown by {@link useMfaRecoveryCodes}.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { mutate: acknowledge, isPending } = useAcknowledgeRecoveryCodes();
|
|
17
|
+
* <button onClick={() => acknowledge()} disabled={isPending}>
|
|
18
|
+
* I've saved my recovery codes
|
|
19
|
+
* </button>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useAcknowledgeRecoveryCodes: ({ mutateParams, }?: UseAcknowledgeRecoveryCodesParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification | undefined, Error, void>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useAcknowledgeRecoveryCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAcknowledgeRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,8BAA8B,GAAG,OAAO,CAC3C,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAC5C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,8BAA8B,EAC9B,IAAI,CACL,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,uBAErC,iCAAiC,mIAIhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActiveNetworkData/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getActiveNetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetActiveNetworkDataResult = Awaited<ReturnType<typeof getActiveNetworkData>>;
|
|
4
|
+
type GetActiveNetworkDataArgs = Parameters<typeof getActiveNetworkData>[0];
|
|
5
|
+
export type UseActiveNetworkDataParams = GetActiveNetworkDataArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetActiveNetworkDataResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getActiveNetworkData` from `@dynamic-labs-sdk/client`. Returns the network the given wallet account is currently on.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: network, isLoading } = useActiveNetworkData({ walletAccount });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useActiveNetworkData: ({ queryParams, ...args }: UseActiveNetworkDataParams) => import("@tanstack/react-query").UseQueryResult<{
|
|
21
|
+
networkData: import("@dynamic-labs-sdk/client").NetworkData | undefined;
|
|
22
|
+
}, Error>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useActiveNetworkData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActiveNetworkData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActiveNetworkData/useActiveNetworkData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,0BAA0B,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AACF,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,0BAA0B,CAAC,CAAC,aAAa,CAAC,CAAC;CAC7E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,6BAG9B,0BAA0B;wBAJ5B,0BAED;SAOI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAddNetwork/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { addNetwork } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AddNetworkVariables = Parameters<typeof addNetwork>[0];
|
|
4
|
+
type AddNetworkResult = Awaited<ReturnType<typeof addNetwork>>;
|
|
5
|
+
export type UseAddNetworkParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<AddNetworkResult, AddNetworkVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `addNetwork` from `@dynamic-labs-sdk/client`. Call `mutate({ networkData, walletAccount })` to register a custom network on the given wallet account.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: addNetwork, isPending } = useAddNetwork();
|
|
18
|
+
* <button
|
|
19
|
+
* onClick={() => addNetwork({ networkData, walletAccount })}
|
|
20
|
+
* disabled={isPending}
|
|
21
|
+
* >
|
|
22
|
+
* Add network
|
|
23
|
+
* </button>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const useAddNetwork: ({ mutateParams }?: UseAddNetworkParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
27
|
+
networkData: import("@dynamic-labs-sdk/client").NetworkData;
|
|
28
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
29
|
+
}>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=useAddNetwork.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddNetwork.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAddNetwork/useAddNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5D,KAAK,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gBAAgB,EAChB,mBAAmB,CACpB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,sBAAsB,mBAAmB;;;EAI/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalanceForAddress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getBalanceForAddress } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetBalanceForAddressResult = Awaited<ReturnType<typeof getBalanceForAddress>>;
|
|
4
|
+
type GetBalanceForAddressArgs = Parameters<typeof getBalanceForAddress>[0];
|
|
5
|
+
export type UseBalanceForAddressParams = GetBalanceForAddressArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetBalanceForAddressResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getBalanceForAddress` from `@dynamic-labs-sdk/client`. Returns the native-token balance for an arbitrary address on the given chain/network.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useBalanceForAddress({ address, chain, networkId });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useBalanceForAddress: ({ queryParams, ...args }: UseBalanceForAddressParams) => import("@tanstack/react-query").UseQueryResult<{
|
|
21
|
+
balance: string | null;
|
|
22
|
+
}, Error>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useBalanceForAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBalanceForAddress.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalanceForAddress/useBalanceForAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,0BAA0B,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AACF,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,0BAA0B,CAAC,CAAC,aAAa,CAAC,CAAC;CAC7E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,6BAG9B,0BAA0B;;SAKzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCheckStepUpAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { checkStepUpAuth } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type CheckStepUpAuthResult = Awaited<ReturnType<typeof checkStepUpAuth>>;
|
|
4
|
+
type CheckStepUpAuthArgs = Parameters<typeof checkStepUpAuth>[0];
|
|
5
|
+
export type UseCheckStepUpAuthParams = CheckStepUpAuthArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<CheckStepUpAuthResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Checks whether step-up authentication is required for a given scope and
|
|
14
|
+
* returns the credentials available to satisfy it.
|
|
15
|
+
*
|
|
16
|
+
* Wraps `checkStepUpAuth` from `@dynamic-labs-sdk/client`. Use the returned
|
|
17
|
+
* `isRequired` to decide whether to show a step-up UI before a sensitive
|
|
18
|
+
* action (e.g. exporting a wallet).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* const { data } = useCheckStepUpAuth({ scope: TokenScope.Walletexport });
|
|
23
|
+
* if (data?.isRequired) {
|
|
24
|
+
* // render step-up UI using data.credentials
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const useCheckStepUpAuth: ({ queryParams, ...args }: UseCheckStepUpAuthParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").StepUpCheckResponse, Error>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useCheckStepUpAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCheckStepUpAuth.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCheckStepUpAuth/useCheckStepUpAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;AACzE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,GAAG;IAC3D;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC,aAAa,CAAC,CAAC;CACxE,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,6BAG5B,wBAAwB,oHAKvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseBuyUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getCoinbaseBuyUrl } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetCoinbaseBuyUrlResult = Awaited<ReturnType<typeof getCoinbaseBuyUrl>>;
|
|
4
|
+
type GetCoinbaseBuyUrlArgs = Parameters<typeof getCoinbaseBuyUrl>[0];
|
|
5
|
+
export type UseCoinbaseBuyUrlParams = GetCoinbaseBuyUrlArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetCoinbaseBuyUrlResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getCoinbaseBuyUrl` from `@dynamic-labs-sdk/client`. Returns a Coinbase onramp buy URL for the given parameters.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: buyUrl, isLoading } = useCoinbaseBuyUrl(buyUrlParams);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCoinbaseBuyUrl: ({ queryParams, ...args }: UseCoinbaseBuyUrlParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").CoinbaseOnrampGetBuyUrlResponse, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useCoinbaseBuyUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoinbaseBuyUrl.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAC7E,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,GAAG;IAC5D;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,aAAa,CAAC,CAAC;CAC1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6BAG3B,uBAAuB,gIAKtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseOnrampOrderEventListener/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,YAAY,EAAE,yCAAyC,EAAE,MAAM,uCAAuC,CAAC"}
|
package/dist/hooks/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { addCoinbaseOnrampOrderEventListener } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type AddCoinbaseOnrampOrderEventListenerParams = Parameters<typeof addCoinbaseOnrampOrderEventListener>[0];
|
|
3
|
+
type CoinbaseOnrampOrderListener = AddCoinbaseOnrampOrderEventListenerParams['listener'];
|
|
4
|
+
export type UseCoinbaseOnrampOrderEventListenerParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Called for each Coinbase onramp order event received via `postMessage`.
|
|
7
|
+
*/
|
|
8
|
+
listener: CoinbaseOnrampOrderListener;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Subscribes to Coinbase onramp order events for the duration of the component.
|
|
12
|
+
*
|
|
13
|
+
* Wraps `addCoinbaseOnrampOrderEventListener` from `@dynamic-labs-sdk/client`.
|
|
14
|
+
* Uses a ref to always call the latest listener without re-subscribing, and
|
|
15
|
+
* removes the listener on unmount.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* useCoinbaseOnrampOrderEventListener({
|
|
20
|
+
* listener: ({ eventName, data }) => console.log(eventName, data),
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const useCoinbaseOnrampOrderEventListener: ({ listener, }: UseCoinbaseOnrampOrderEventListenerParams) => void;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useCoinbaseOnrampOrderEventListener.d.ts.map
|
package/dist/hooks/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoinbaseOnrampOrderEventListener.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AAK/E,KAAK,yCAAyC,GAAG,UAAU,CACzD,OAAO,mCAAmC,CAC3C,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,2BAA2B,GAC9B,yCAAyC,CAAC,UAAU,CAAC,CAAC;AAExD,MAAM,MAAM,yCAAyC,GAAG;IACtD;;OAEG;IACH,QAAQ,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mCAAmC,kBAE7C,yCAAyC,SAkB3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteDeviceRegistration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,KAAK,mCAAmC,GACzC,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { completeDeviceRegistration } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CompleteDeviceRegistrationVariables = Parameters<typeof completeDeviceRegistration>[0];
|
|
4
|
+
type CompleteDeviceRegistrationResult = Awaited<ReturnType<typeof completeDeviceRegistration>>;
|
|
5
|
+
export type UseCompleteDeviceRegistrationParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CompleteDeviceRegistrationResult, CompleteDeviceRegistrationVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `completeDeviceRegistration` from `@dynamic-labs-sdk/client`. Call `mutate({ deviceToken })` with the device token parsed from the redirect URL; the resolved `data` is a `VerifyResponse`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: completeRegistration, isPending } =
|
|
18
|
+
* useCompleteDeviceRegistration();
|
|
19
|
+
* completeRegistration({ deviceToken });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCompleteDeviceRegistration: ({ mutateParams, }?: UseCompleteDeviceRegistrationParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, {
|
|
23
|
+
deviceToken: string;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useCompleteDeviceRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompleteDeviceRegistration.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,mCAAmC,GAAG,UAAU,CACnD,OAAO,0BAA0B,CAClC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,gCAAgC,GAAG,OAAO,CAC7C,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAC9C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gCAAgC,EAChC,mCAAmC,CACpC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,uBAEvC,mCAAmC;;EAQlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteSocialRedirect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { completeSocialRedirect } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CompleteSocialRedirectVariables = Parameters<typeof completeSocialRedirect>[0];
|
|
4
|
+
type CompleteSocialRedirectResult = Awaited<ReturnType<typeof completeSocialRedirect>>;
|
|
5
|
+
export type UseCompleteSocialRedirectParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CompleteSocialRedirectResult, CompleteSocialRedirectVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `completeSocialRedirect` from `@dynamic-labs-sdk/client`. Call `mutate(params)` with the OAuth callback URL once the provider has redirected back to finish the sign-in; the resolved `data` is the signed-in `User` (or `null`).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: completeSocialRedirect, data: user } =
|
|
18
|
+
* useCompleteSocialRedirect();
|
|
19
|
+
* completeSocialRedirect({ url: new URL(window.location.href) });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCompleteSocialRedirect: ({ mutateParams, }?: UseCompleteSocialRedirectParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").SdkUser | null, Error, import("../../../../client/src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types").CompleteSocialRedirectParams>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useCompleteSocialRedirect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompleteSocialRedirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,+PAQ9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { confirmTransaction } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ConfirmTransactionVariables = Parameters<typeof confirmTransaction>[0];
|
|
4
|
+
type ConfirmTransactionResult = Awaited<ReturnType<typeof confirmTransaction>>;
|
|
5
|
+
export type UseConfirmTransactionParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<ConfirmTransactionResult, ConfirmTransactionVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `confirmTransaction` from `@dynamic-labs-sdk/client`. Call `mutate({ walletAccount, transactionHash })` to await confirmation of a submitted transaction; the resolved `data` is `void`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: confirmTransaction, isPending } = useConfirmTransaction();
|
|
18
|
+
* confirmTransaction({ walletAccount, transactionHash });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useConfirmTransaction: ({ mutateParams, }?: UseConfirmTransactionParams) => import("@tanstack/react-query").UseMutationResult<void, Error, import("@dynamic-labs-sdk/client").ConfirmTransactionParams>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useConfirmTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmTransaction.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmTransaction/useConfirmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,2BAA2B,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5E,KAAK,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,wBAAwB,EACxB,2BAA2B,CAC5B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,uBAE/B,2BAA2B,gIAK1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectAndVerifyWithWalletProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,YAAY,EAAE,2CAA2C,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/hooks/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { connectAndVerifyWithWalletProvider } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ConnectAndVerifyWithWalletProviderVariables = Parameters<typeof connectAndVerifyWithWalletProvider>[0];
|
|
4
|
+
type ConnectAndVerifyWithWalletProviderResult = Awaited<ReturnType<typeof connectAndVerifyWithWalletProvider>>;
|
|
5
|
+
export type UseConnectAndVerifyWithWalletProviderParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<ConnectAndVerifyWithWalletProviderResult, ConnectAndVerifyWithWalletProviderVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Connects to a wallet provider and verifies ownership in a single step.
|
|
14
|
+
*
|
|
15
|
+
* Wraps `connectAndVerifyWithWalletProvider` from `@dynamic-labs-sdk/client`.
|
|
16
|
+
* Call `mutate({ walletProviderKey })` to connect and prompt the user to sign
|
|
17
|
+
* a verification message, adding the verified account to their profile.
|
|
18
|
+
*
|
|
19
|
+
* Throws `DeeplinkConnectAndVerifyUnsupportedError` on mobile with deeplink
|
|
20
|
+
* wallet providers — there, use `useConnectWithWalletProvider` followed by
|
|
21
|
+
* `useVerifyWalletAccount` from a fresh user gesture instead.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* const { mutate: connectAndVerify, isPending } =
|
|
26
|
+
* useConnectAndVerifyWithWalletProvider();
|
|
27
|
+
* <button
|
|
28
|
+
* onClick={() => connectAndVerify({ walletProviderKey: 'metamaskevm' })}
|
|
29
|
+
* disabled={isPending}
|
|
30
|
+
* >
|
|
31
|
+
* Connect & verify
|
|
32
|
+
* </button>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const useConnectAndVerifyWithWalletProvider: ({ mutateParams, }?: UseConnectAndVerifyWithWalletProviderParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client/core").BaseWalletAccount<import("@dynamic-labs-sdk/client").Chain>, Error, {
|
|
36
|
+
hardwareWalletVendor?: import("@dynamic-labs-sdk/client").HardwareWalletVendor;
|
|
37
|
+
walletProviderKey: string;
|
|
38
|
+
}>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=useConnectAndVerifyWithWalletProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,2CAA2C,GAAG,UAAU,CAC3D,OAAO,kCAAkC,CAC1C,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,wCAAwC,GAAG,OAAO,CACrD,UAAU,CAAC,OAAO,kCAAkC,CAAC,CACtD,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,wCAAwC,EACxC,2CAA2C,CAC5C,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qCAAqC,uBAE/C,2CAA2C;;;EAQ1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectWithWalletProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,YAAY,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { connectWithWalletProvider } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ConnectWithWalletProviderVariables = Parameters<typeof connectWithWalletProvider>[0];
|
|
4
|
+
type ConnectWithWalletProviderResult = Awaited<ReturnType<typeof connectWithWalletProvider>>;
|
|
5
|
+
export type UseConnectWithWalletProviderParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<ConnectWithWalletProviderResult, ConnectWithWalletProviderVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Connects to a wallet provider and returns the connected wallet account.
|
|
14
|
+
*
|
|
15
|
+
* Wraps `connectWithWalletProvider` from `@dynamic-labs-sdk/client`. Call
|
|
16
|
+
* `mutate({ walletProviderKey })` to trigger the connection — the wallet
|
|
17
|
+
* provider will prompt the user via its native UI. The connected account is
|
|
18
|
+
* not verified; pair with `useVerifyWalletAccount`, or use
|
|
19
|
+
* `useConnectAndVerifyWithWalletProvider` to do both in one step.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const { mutate: connect, data, isPending } = useConnectWithWalletProvider();
|
|
24
|
+
* <button
|
|
25
|
+
* onClick={() => connect({ walletProviderKey: 'metamaskevm' })}
|
|
26
|
+
* disabled={isPending}
|
|
27
|
+
* >
|
|
28
|
+
* Connect
|
|
29
|
+
* </button>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const useConnectWithWalletProvider: ({ mutateParams, }?: UseConnectWithWalletProviderParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client/core").BaseWalletAccount<import("@dynamic-labs-sdk/client").Chain>, Error, {
|
|
33
|
+
addToDynamicWalletAccounts?: boolean;
|
|
34
|
+
hardwareWalletVendor?: import("@dynamic-labs-sdk/client").HardwareWalletVendor;
|
|
35
|
+
walletProviderKey: string;
|
|
36
|
+
}>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=useConnectWithWalletProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectWithWalletProvider/useConnectWithWalletProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,kCAAkC,GAAG,UAAU,CAClD,OAAO,yBAAyB,CACjC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,+BAA+B,GAAG,OAAO,CAC5C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAC7C,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,+BAA+B,EAC/B,kCAAkC,CACnC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,4BAA4B,uBAEtC,kCAAkC;;;;EAQjC,CAAC"}
|