@dynamic-labs-sdk/react-hooks 1.7.0 → 1.8.1
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 +14 -0
- package/dist/exports/index.d.ts.map +1 -1
- 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/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/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/useKrakenAccounts/index.d.ts +2 -0
- package/dist/hooks/useKrakenAccounts/index.d.ts.map +1 -0
- package/dist/hooks/useKrakenAccounts/useKrakenAccounts.d.ts +22 -0
- package/dist/hooks/useKrakenAccounts/useKrakenAccounts.d.ts.map +1 -0
- package/dist/hooks/useKrakenExchangeTransfer/index.d.ts +2 -0
- package/dist/hooks/useKrakenExchangeTransfer/index.d.ts.map +1 -0
- package/dist/hooks/useKrakenExchangeTransfer/useKrakenExchangeTransfer.d.ts +23 -0
- package/dist/hooks/useKrakenExchangeTransfer/useKrakenExchangeTransfer.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/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/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 +316 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +304 -3
- 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
|
@@ -6,10 +6,14 @@ export { useAuthenticatePasskeyMfa, type UseAuthenticatePasskeyMfaParams, } from
|
|
|
6
6
|
export { useAuthenticateTotpMfaDevice, type UseAuthenticateTotpMfaDeviceParams, } from '../hooks/useAuthenticateTotpMfaDevice';
|
|
7
7
|
export { useAvailableWalletProvidersData } from '../hooks/useAvailableWalletProvidersData';
|
|
8
8
|
export { useBalanceForAddress, type UseBalanceForAddressParams, } from '../hooks/useBalanceForAddress';
|
|
9
|
+
export { useCheckStepUpAuth, type UseCheckStepUpAuthParams, } from '../hooks/useCheckStepUpAuth';
|
|
9
10
|
export { useCoinbaseBuyUrl, type UseCoinbaseBuyUrlParams, } from '../hooks/useCoinbaseBuyUrl';
|
|
11
|
+
export { useCoinbaseOnrampOrderEventListener, type UseCoinbaseOnrampOrderEventListenerParams, } from '../hooks/useCoinbaseOnrampOrderEventListener';
|
|
10
12
|
export { useCompleteDeviceRegistration, type UseCompleteDeviceRegistrationParams, } from '../hooks/useCompleteDeviceRegistration';
|
|
11
13
|
export { useCompleteSocialRedirect, type UseCompleteSocialRedirectParams, } from '../hooks/useCompleteSocialRedirect';
|
|
12
14
|
export { useConfirmTransaction, type UseConfirmTransactionParams, } from '../hooks/useConfirmTransaction';
|
|
15
|
+
export { useConnectAndVerifyWithWalletProvider, type UseConnectAndVerifyWithWalletProviderParams, } from '../hooks/useConnectAndVerifyWithWalletProvider';
|
|
16
|
+
export { useConnectWithWalletProvider, type UseConnectWithWalletProviderParams, } from '../hooks/useConnectWithWalletProvider';
|
|
13
17
|
export { useConsumeMfaToken, type UseConsumeMfaTokenParams, } from '../hooks/useConsumeMfaToken';
|
|
14
18
|
export { useCreateCoinbaseOnrampOrder, type UseCreateCoinbaseOnrampOrderParams, } from '../hooks/useCreateCoinbaseOnrampOrder';
|
|
15
19
|
export { useCreateCryptoDotComPayment, type UseCreateCryptoDotComPaymentParams, } from '../hooks/useCreateCryptoDotComPayment';
|
|
@@ -24,14 +28,19 @@ export { useInitStatus } from '../hooks/useInitStatus';
|
|
|
24
28
|
export { useIsCaptchaRequired } from '../hooks/useIsCaptchaRequired';
|
|
25
29
|
export { useIsUserMissingMfaAuth } from '../hooks/useIsUserMissingMfaAuth';
|
|
26
30
|
export { useIsUserOnboardingComplete } from '../hooks/useIsUserOnboardingComplete';
|
|
31
|
+
export { useKrakenAccounts, type UseKrakenAccountsParams, } from '../hooks/useKrakenAccounts';
|
|
32
|
+
export { useKrakenExchangeTransfer, type UseKrakenExchangeTransferParams, } from '../hooks/useKrakenExchangeTransfer';
|
|
27
33
|
export { useKrakenWhitelistedAddresses, type UseKrakenWhitelistedAddressesParams, } from '../hooks/useKrakenWhitelistedAddresses';
|
|
28
34
|
export { useLogout } from '../hooks/useLogout';
|
|
29
35
|
export { useMfaDevices, type UseMfaDevicesParams, } from '../hooks/useMfaDevices';
|
|
30
36
|
export { useMfaMethods, type UseMfaMethodsParams, } from '../hooks/useMfaMethods';
|
|
31
37
|
export { useMfaRecoveryCodes, type UseMfaRecoveryCodesParams, } from '../hooks/useMfaRecoveryCodes';
|
|
38
|
+
export { useMoonPayCurrencies, type UseMoonPayCurrenciesParams, } from '../hooks/useMoonPayCurrencies';
|
|
39
|
+
export { useMoonPayUrl, type UseMoonPayUrlParams, } from '../hooks/useMoonPayUrl';
|
|
32
40
|
export { useMultichainTokenBalances, type UseMultichainTokenBalancesParams, } from '../hooks/useMultichainTokenBalances';
|
|
33
41
|
export { useNativeBalance } from '../hooks/useNativeBalance';
|
|
34
42
|
export { useNetworksData } from '../hooks/useNetworksData';
|
|
43
|
+
export { useOnceEvent } from '../hooks/useOnceEvent';
|
|
35
44
|
export { usePasskeys, type UsePasskeysParams } from '../hooks/usePasskeys';
|
|
36
45
|
export { useProveWalletAccountOwnership, type UseProveWalletAccountOwnershipParams, } from '../hooks/useProveWalletAccountOwnership';
|
|
37
46
|
export { useRefreshAuth, type UseRefreshAuthParams, } from '../hooks/useRefreshAuth';
|
|
@@ -51,6 +60,8 @@ export { useSignInWithPasskey, type UseSignInWithPasskeyParams, } from '../hooks
|
|
|
51
60
|
export { useSignInWithSocialPopUp, type UseSignInWithSocialPopUpParams, } from '../hooks/useSignInWithSocialPopUp';
|
|
52
61
|
export { useSignInWithSocialRedirect, type UseSignInWithSocialRedirectParams, } from '../hooks/useSignInWithSocialRedirect';
|
|
53
62
|
export { useSignMessage, type UseSignMessageParams, } from '../hooks/useSignMessage';
|
|
63
|
+
export { useSwapQuote, type UseSwapQuoteParams } from '../hooks/useSwapQuote';
|
|
64
|
+
export { useSwapStatus, type UseSwapStatusParams, } from '../hooks/useSwapStatus';
|
|
54
65
|
export { useSwitchActiveNetwork, type UseSwitchActiveNetworkParams, } from '../hooks/useSwitchActiveNetwork';
|
|
55
66
|
export { useTokenBalances, type UseTokenBalancesParams, } from '../hooks/useTokenBalances';
|
|
56
67
|
export { useTransactionHistory, type UseTransactionHistoryParams, } from '../hooks/useTransactionHistory';
|
|
@@ -63,5 +74,8 @@ export { useUserSocialAccounts } from '../hooks/useUserSocialAccounts';
|
|
|
63
74
|
export { useVerifyOtp, type UseVerifyOtpParams } from '../hooks/useVerifyOtp';
|
|
64
75
|
export { useVerifyWalletAccount, type UseVerifyWalletAccountParams, } from '../hooks/useVerifyWalletAccount';
|
|
65
76
|
export { useWalletAccounts } from '../hooks/useWalletAccounts';
|
|
77
|
+
export { useWalletConnectCatalog, type UseWalletConnectCatalogParams, } from '../hooks/useWalletConnectCatalog';
|
|
78
|
+
export { useWalletOptionsCatalogue, type UseWalletOptionsCatalogueParams, } from '../hooks/useWalletOptionsCatalogue';
|
|
79
|
+
export { useWalletProviderEvent } from '../hooks/useWalletProviderEvent';
|
|
66
80
|
export { DynamicProvider, useDynamicClient } from '../modules/DynamicContext';
|
|
67
81
|
//# 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,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC;AAChC,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,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,6BAA6B,EAC7B,K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,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,sBAAsB,EACtB,KAAK,4BAA4B,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,aAAa,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/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/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/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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKrakenAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getKrakenAccounts } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetKrakenAccountsResult = Awaited<ReturnType<typeof getKrakenAccounts>>;
|
|
4
|
+
type GetKrakenAccountsArgs = NonNullable<Parameters<typeof getKrakenAccounts>[0]>;
|
|
5
|
+
export type UseKrakenAccountsParams = GetKrakenAccountsArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetKrakenAccountsResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getKrakenAccounts` from `@dynamic-labs-sdk/client`. Returns the authenticated user's Kraken accounts (with balances), optionally filtered by chain/network.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: accounts, isLoading } = useKrakenAccounts();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useKrakenAccounts: ({ queryParams, ...args }?: UseKrakenAccountsParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").Account[], Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useKrakenAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKrakenAccounts.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKrakenAccounts/useKrakenAccounts.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,WAAW,CACtC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CACxC,CAAC;AAEF,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,8BAG3B,uBAAuB,0GAKtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKrakenExchangeTransfer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createKrakenExchangeTransfer } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CreateKrakenExchangeTransferVariables = Parameters<typeof createKrakenExchangeTransfer>[0];
|
|
4
|
+
type CreateKrakenExchangeTransferResult = Awaited<ReturnType<typeof createKrakenExchangeTransfer>>;
|
|
5
|
+
export type UseKrakenExchangeTransferParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CreateKrakenExchangeTransferResult, CreateKrakenExchangeTransferVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `createKrakenExchangeTransfer` from `@dynamic-labs-sdk/client`. Call `mutate({ accountId, ... })` to send crypto from a Kraken account (see `useKrakenAccounts`) to a whitelisted address (see `useKrakenWhitelistedAddresses`); the resolved `data` is the created transfer.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: transfer, data } = useKrakenExchangeTransfer();
|
|
18
|
+
* transfer({ accountId, asset, amount, address });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useKrakenExchangeTransfer: ({ mutateParams, }?: UseKrakenExchangeTransferParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").ExchangeTransferResponse, Error, import("@dynamic-labs-sdk/client").KrakenTransferRequest>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useKrakenExchangeTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKrakenExchangeTransfer.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKrakenExchangeTransfer/useKrakenExchangeTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,qCAAqC,GAAG,UAAU,CACrD,OAAO,4BAA4B,CACpC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,kCAAkC,GAAG,OAAO,CAC/C,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAChD,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,kCAAkC,EAClC,qCAAqC,CACtC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,sLAQ9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMoonPayCurrencies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getMoonPayCurrencies } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetMoonPayCurrenciesResult = Awaited<ReturnType<typeof getMoonPayCurrencies>>;
|
|
4
|
+
type GetMoonPayCurrenciesArgs = Parameters<typeof getMoonPayCurrencies>[0];
|
|
5
|
+
export type UseMoonPayCurrenciesParams = GetMoonPayCurrenciesArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetMoonPayCurrenciesResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getMoonPayCurrencies` from `@dynamic-labs-sdk/client`. Returns the list of currencies MoonPay supports for the given parameters.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: currencies, isLoading } = useMoonPayCurrencies(params);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useMoonPayCurrencies: ({ queryParams, ...args }: UseMoonPayCurrenciesParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-sdk/client").MoonPayCurrency[], Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useMoonPayCurrencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMoonPayCurrencies.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMoonPayCurrencies/useMoonPayCurrencies.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,gHAKzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMoonPayUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getMoonPayUrl } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetMoonPayUrlResult = Awaited<ReturnType<typeof getMoonPayUrl>>;
|
|
4
|
+
type GetMoonPayUrlArgs = Parameters<typeof getMoonPayUrl>[0];
|
|
5
|
+
export type UseMoonPayUrlParams = GetMoonPayUrlArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetMoonPayUrlResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getMoonPayUrl` from `@dynamic-labs-sdk/client`. Returns a MoonPay widget URL for the given parameters.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: moonPayUrl, isLoading } = useMoonPayUrl(params);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useMoonPayUrl: ({ queryParams, ...args }: UseMoonPayUrlParams) => import("@tanstack/react-query").UseQueryResult<string, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useMoonPayUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMoonPayUrl.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMoonPayUrl/useMoonPayUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AACrE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACpD;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,aAAa,CAAC,CAAC;CACtE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,6BAA8B,mBAAmB,kEAKvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnceEvent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type OnceEventParams } from '@dynamic-labs-sdk/client';
|
|
2
|
+
/**
|
|
3
|
+
* Subscribes to a Dynamic client event for a single occurrence.
|
|
4
|
+
*
|
|
5
|
+
* Wraps `onceEvent` from `@dynamic-labs-sdk/client` — the one-shot sibling of
|
|
6
|
+
* `useEvent`. The listener fires at most once. Uses a ref to always call the
|
|
7
|
+
* latest listener, and cleans up the subscription on unmount or event change.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* useOnceEvent({
|
|
12
|
+
* event: 'authFlowCancelled',
|
|
13
|
+
* listener: () => console.log('auth flow cancelled'),
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const useOnceEvent: <E extends keyof DynamicEvents>({ event, listener, }: OnceEventParams<E>) => void;
|
|
18
|
+
//# sourceMappingURL=useOnceEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnceEvent.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnceEvent/useOnceEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,0BAA0B,CAAC;AAK3E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,aAAa,wBAGvD,eAAe,CAAC,CAAC,CAAC,SAoBpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSwapQuote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getSwapQuote } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetSwapQuoteResult = Awaited<ReturnType<typeof getSwapQuote>>;
|
|
4
|
+
type GetSwapQuoteArgs = Parameters<typeof getSwapQuote>[0];
|
|
5
|
+
export type UseSwapQuoteParams = GetSwapQuoteArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetSwapQuoteResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getSwapQuote` from `@dynamic-labs-sdk/client`. Returns a swap quote (including the signing payload consumed by {@link useExecuteSwapTransaction}).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: quote, isLoading } = useSwapQuote(params);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useSwapQuote: ({ queryParams, ...args }: UseSwapQuoteParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").SwapQuoteResponse, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useSwapQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwapQuote.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSwapQuote/useSwapQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AACnE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,aAAa,CAAC,CAAC;CACrE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,6BAA8B,kBAAkB,kHAKrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSwapStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getSwapStatus } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetSwapStatusResult = Awaited<ReturnType<typeof getSwapStatus>>;
|
|
4
|
+
type GetSwapStatusArgs = Parameters<typeof getSwapStatus>[0];
|
|
5
|
+
export type UseSwapStatusParams = GetSwapStatusArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetSwapStatusResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getSwapStatus` from `@dynamic-labs-sdk/client`. Returns the current status of a previously submitted swap.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: status, isLoading } = useSwapStatus(params);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useSwapStatus: ({ queryParams, ...args }: UseSwapStatusParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-sdk/client").SwapStatusResponse, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useSwapStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwapStatus.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSwapStatus/useSwapStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AACrE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACpD;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,aAAa,CAAC,CAAC;CACtE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,6BAA8B,mBAAmB,iHAKvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletConnectCatalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getWalletConnectCatalog } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetWalletConnectCatalogResult = Awaited<ReturnType<typeof getWalletConnectCatalog>>;
|
|
4
|
+
export type UseWalletConnectCatalogParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
7
|
+
* staleTime, refetchInterval, etc.).
|
|
8
|
+
*/
|
|
9
|
+
queryParams?: UseBaseQueryParams<GetWalletConnectCatalogResult>['queryParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Returns the WalletConnect catalog (groups and wallets) used for displaying
|
|
13
|
+
* wallet information and building mobile wallet deeplinks.
|
|
14
|
+
*
|
|
15
|
+
* Wraps `getWalletConnectCatalog` from `@dynamic-labs-sdk/client`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* const { data: catalog, isLoading } = useWalletConnectCatalog();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useWalletConnectCatalog: ({ queryParams, }?: UseWalletConnectCatalogParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-sdk/client").WalletConnectCatalog, Error>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useWalletConnectCatalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletConnectCatalog.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletConnectCatalog/useWalletConnectCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,6BAA6B,GAAG,OAAO,CAC1C,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,6BAA6B,CAAC,CAAC,aAAa,CAAC,CAAC;CAChF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,sBAEjC,6BAA6B,mHAK5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletOptionsCatalogue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getWalletOptionsCatalogue } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetWalletOptionsCatalogueResult = Awaited<ReturnType<typeof getWalletOptionsCatalogue>>;
|
|
4
|
+
type GetWalletOptionsCatalogueArgs = NonNullable<Parameters<typeof getWalletOptionsCatalogue>[0]>;
|
|
5
|
+
export type UseWalletOptionsCatalogueParams = GetWalletOptionsCatalogueArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetWalletOptionsCatalogueResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getWalletOptionsCatalogue` from `@dynamic-labs-sdk/client`. Returns the catalogue of wallet options the project supports.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: catalogue, isLoading } = useWalletOptionsCatalogue();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useWalletOptionsCatalogue: ({ queryParams, ...args }?: UseWalletOptionsCatalogueParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-sdk/client").WalletOptionsCatalogue, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useWalletOptionsCatalogue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletOptionsCatalogue/useWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,+BAA+B,GAAG,OAAO,CAC5C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAC7C,CAAC;AACF,KAAK,6BAA6B,GAAG,WAAW,CAC9C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAChD,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,6BAA6B,GAAG;IAC5E;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,+BAA+B,CAAC,CAAC,aAAa,CAAC,CAAC;CAClF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,8BAGnC,+BAA+B,qHAK9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviderEvent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|