@getpara/react-core 2.20.0 → 2.22.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/chains/cosmos/index.d.ts +4 -0
- package/dist/chains/cosmos/index.js +19 -0
- package/dist/chains/cosmos/mutations.d.ts +175 -0
- package/dist/chains/cosmos/mutations.js +63 -0
- package/dist/chains/cosmos/types.d.ts +9 -0
- package/dist/chains/cosmos/types.js +0 -0
- package/dist/chains/cosmos/useParaCosmjsAminoSigner.d.ts +54 -0
- package/dist/chains/cosmos/useParaCosmjsAminoSigner.js +115 -0
- package/dist/chains/cosmos/useParaCosmjsProtoSigner.d.ts +56 -0
- package/dist/chains/cosmos/useParaCosmjsProtoSigner.js +115 -0
- package/dist/chains/evm/ethers/index.d.ts +3 -0
- package/dist/chains/evm/ethers/index.js +7 -0
- package/dist/chains/evm/ethers/mutations.d.ts +608 -0
- package/dist/chains/evm/ethers/mutations.js +112 -0
- package/dist/chains/evm/ethers/types.d.ts +8 -0
- package/dist/chains/evm/ethers/types.js +0 -0
- package/dist/chains/evm/ethers/useParaEthersSigner.d.ts +55 -0
- package/dist/chains/evm/ethers/useParaEthersSigner.js +115 -0
- package/dist/chains/evm/viem/index.d.ts +4 -0
- package/dist/chains/evm/viem/index.js +11 -0
- package/dist/chains/evm/viem/mutations.d.ts +546 -0
- package/dist/chains/evm/viem/mutations.js +146 -0
- package/dist/chains/evm/viem/types.d.ts +10 -0
- package/dist/chains/evm/viem/types.js +0 -0
- package/dist/chains/evm/viem/useParaViemAccount.d.ts +44 -0
- package/dist/chains/evm/viem/useParaViemAccount.js +108 -0
- package/dist/chains/evm/viem/useParaViemClient.d.ts +57 -0
- package/dist/chains/evm/viem/useParaViemClient.js +115 -0
- package/dist/chains/index.d.ts +6 -0
- package/dist/chains/index.js +5 -0
- package/dist/chains/resolveWallet.d.ts +20 -0
- package/dist/chains/resolveWallet.js +42 -0
- package/dist/chains/solana/index.d.ts +3 -0
- package/dist/chains/solana/index.js +7 -0
- package/dist/chains/solana/mutations.d.ts +129 -0
- package/dist/chains/solana/mutations.js +59 -0
- package/dist/chains/solana/types.d.ts +7 -0
- package/dist/chains/solana/types.js +0 -0
- package/dist/chains/solana/useParaSolanaSigner.d.ts +59 -0
- package/dist/chains/solana/useParaSolanaSigner.js +108 -0
- package/dist/chains/stellar/index.d.ts +3 -0
- package/dist/chains/stellar/index.js +7 -0
- package/dist/chains/stellar/mutations.d.ts +351 -0
- package/dist/chains/stellar/mutations.js +77 -0
- package/dist/chains/stellar/types.d.ts +3 -0
- package/dist/chains/stellar/types.js +0 -0
- package/dist/chains/stellar/useParaStellarSigner.d.ts +54 -0
- package/dist/chains/stellar/useParaStellarSigner.js +108 -0
- package/dist/chains/types.d.ts +21 -0
- package/dist/chains/types.js +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/provider/ParaProviderCore.d.ts +39 -47
- package/dist/provider/ParaProviderCore.js +11 -6
- package/dist/provider/actions/index.d.ts +5 -0
- package/dist/provider/hooks/aa/createSmartAccountHook.js +3 -2
- package/dist/provider/hooks/aa/thirdweb.d.ts +6 -2
- package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.d.ts +64 -5
- package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.d.ts +64 -5
- package/dist/provider/hooks/mutations/useClaimPregenWallets.d.ts +66 -5
- package/dist/provider/hooks/mutations/useCreateGuestWallets.d.ts +64 -5
- package/dist/provider/hooks/mutations/useCreatePregenWallet.d.ts +66 -5
- package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.d.ts +66 -5
- package/dist/provider/hooks/mutations/useCreateWallet.d.ts +64 -5
- package/dist/provider/hooks/mutations/useCreateWalletPerType.d.ts +64 -5
- package/dist/provider/hooks/mutations/useEnable2fa.d.ts +64 -5
- package/dist/provider/hooks/mutations/useExportPrivateKey.d.ts +112 -5
- package/dist/provider/hooks/mutations/useHasPregenWallet.d.ts +66 -5
- package/dist/provider/hooks/mutations/useIssueJwt.d.ts +64 -5
- package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +64 -5
- package/dist/provider/hooks/mutations/useLoginExternalWallet.d.ts +64 -5
- package/dist/provider/hooks/mutations/useLogout.d.ts +64 -5
- package/dist/provider/hooks/mutations/useResendVerificationCode.d.ts +64 -5
- package/dist/provider/hooks/mutations/useSetup2fa.d.ts +64 -5
- package/dist/provider/hooks/mutations/useSignMessage.d.ts +64 -5
- package/dist/provider/hooks/mutations/useSignTransaction.d.ts +64 -5
- package/dist/provider/hooks/mutations/useSignUpOrLogIn.d.ts +64 -5
- package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.d.ts +66 -5
- package/dist/provider/hooks/mutations/useVerify2fa.d.ts +64 -5
- package/dist/provider/hooks/mutations/useVerifyExternalWallet.d.ts +64 -5
- package/dist/provider/hooks/mutations/useVerifyNewAccount.d.ts +64 -5
- package/dist/provider/hooks/mutations/useWaitForLogin.d.ts +64 -5
- package/dist/provider/hooks/mutations/useWaitForSignup.d.ts +64 -5
- package/dist/provider/hooks/mutations/useWaitForWalletCreation.d.ts +64 -5
- package/dist/provider/hooks/queries/createAccountHook.js +3 -3
- package/dist/provider/hooks/queries/useAccount.d.ts +9 -63
- package/dist/provider/hooks/queries/useAccount.js +3 -61
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/stores/index.d.ts +1 -1
- package/dist/provider/stores/index.js +0 -1
- package/dist/provider/utils/renameMutations.d.ts +1 -1
- package/dist/provider/utils/renameMutations.js +1 -14
- package/package.json +68 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import type ParaCore from '@getpara/core-sdk';
|
|
3
|
-
import type { ConstructorOpts, Environment } from '@getpara/core-sdk';
|
|
3
|
+
import type { ConstructorOpts, Environment, BaseEvent, LoginEvent, LogoutEvent, AccountSetupEvent, AccountCreationEvent, SignMessageEvent, SignTransactionEvent, WalletCreatedEvent, WalletsChangeEvent } from '@getpara/core-sdk';
|
|
4
4
|
import type { StoreApi } from 'zustand';
|
|
5
5
|
import { type ParaStorageAdapter } from './stores/createCoreStore.js';
|
|
6
6
|
import type { CoreStore, FarcasterMiniAppConfig } from './stores/types.js';
|
|
@@ -9,70 +9,62 @@ export interface CoreProviderConfig {
|
|
|
9
9
|
rpcUrl?: string;
|
|
10
10
|
farcasterMiniAppConfig?: FarcasterMiniAppConfig;
|
|
11
11
|
}
|
|
12
|
-
/** Shape of events delivered to callbacks via the platform-agnostic emitter. */
|
|
13
|
-
export interface ParaCallbackEvent<T = unknown> {
|
|
14
|
-
detail: {
|
|
15
|
-
data: T;
|
|
16
|
-
error?: Error;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
12
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* useEventListeners; the core emitter ensures they fire on all platforms.
|
|
13
|
+
* Shape of events delivered to callbacks.
|
|
14
|
+
* @deprecated Use the specific event types (LoginEvent, LogoutEvent, etc.) from `@getpara/core-sdk` instead.
|
|
23
15
|
*/
|
|
16
|
+
export type ParaCallbackEvent<T = unknown> = CustomEventInit<BaseEvent<T>>;
|
|
17
|
+
/** Event callbacks fired during the Para authentication and signing lifecycle. */
|
|
24
18
|
export interface CoreCallbacks {
|
|
25
|
-
onLogin?: (event:
|
|
26
|
-
onLogout?: (event:
|
|
27
|
-
onAccountSetup?: (event:
|
|
28
|
-
onAccountCreation?: (event:
|
|
29
|
-
onSignMessage?: (event:
|
|
30
|
-
onSignTransaction?: (event:
|
|
31
|
-
onWalletCreated?: (event:
|
|
32
|
-
onWalletsChange?: (event:
|
|
19
|
+
onLogin?: (event: LoginEvent) => void;
|
|
20
|
+
onLogout?: (event: LogoutEvent) => void;
|
|
21
|
+
onAccountSetup?: (event: AccountSetupEvent) => void;
|
|
22
|
+
onAccountCreation?: (event: AccountCreationEvent) => void;
|
|
23
|
+
onSignMessage?: (event: SignMessageEvent) => void;
|
|
24
|
+
onSignTransaction?: (event: SignTransactionEvent) => void;
|
|
25
|
+
onWalletCreated?: (event: WalletCreatedEvent) => void;
|
|
26
|
+
onWalletsChange?: (event: WalletsChangeEvent) => void;
|
|
33
27
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Config object that can be passed instead of a pre-instantiated client.
|
|
36
|
-
* Platform providers (web, RN) handle client creation internally.
|
|
37
|
-
*/
|
|
28
|
+
/** Config object for creating a Para client. Pass this instead of a pre-instantiated client. */
|
|
38
29
|
export interface ParaClientConfig {
|
|
39
30
|
apiKey: string;
|
|
40
31
|
env?: Environment;
|
|
41
32
|
opts?: ConstructorOpts;
|
|
42
33
|
}
|
|
43
|
-
/**
|
|
34
|
+
/** @internal ParaClientConfig with a client factory. */
|
|
44
35
|
export interface ParaClientConfigWithFactory<TClient extends ParaCore = ParaCore> extends ParaClientConfig {
|
|
45
36
|
createClient: (apiKey: string, env?: Environment, opts?: ConstructorOpts) => TClient;
|
|
46
37
|
}
|
|
47
|
-
|
|
38
|
+
/** Props for `ParaProvider`. */
|
|
39
|
+
export interface ParaProviderBaseProps<TClient extends ParaCore = ParaCore, TConfig extends CoreProviderConfig = CoreProviderConfig, TCallbacks extends CoreCallbacks = CoreCallbacks> extends PropsWithChildren {
|
|
40
|
+
/** A pre-instantiated Para client, or a config object with `apiKey` and optional `env`/`opts`. */
|
|
41
|
+
paraClientConfig: TClient | ParaClientConfig;
|
|
42
|
+
/** Provider configuration (appName, rpcUrl, etc.). */
|
|
43
|
+
config: TConfig;
|
|
44
|
+
/** Event callbacks fired during the authentication and signing lifecycle. */
|
|
45
|
+
callbacks?: TCallbacks;
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
47
|
+
* When true (default), children are not rendered until the SDK is ready.
|
|
48
|
+
* Set to false to render children immediately — they can use `useParaStatus()`
|
|
49
|
+
* to handle the loading state themselves.
|
|
51
50
|
*/
|
|
52
|
-
|
|
53
|
-
/** Core configuration (appName, rpcUrl, etc.). */
|
|
54
|
-
config: CoreProviderConfig;
|
|
55
|
-
/** Optional event callbacks. Wired up by platform-specific providers. */
|
|
56
|
-
callbacks?: CoreCallbacks;
|
|
51
|
+
waitForReady?: boolean;
|
|
57
52
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
53
|
+
* Content to render while the SDK is initializing.
|
|
54
|
+
* When omitted, nothing is rendered until ready.
|
|
60
55
|
*/
|
|
56
|
+
fallback?: React.ReactNode;
|
|
57
|
+
}
|
|
58
|
+
/** @internal Props for ParaProviderCore. Consumers should not use this directly. */
|
|
59
|
+
export interface ParaProviderCoreProps<TClient extends ParaCore = ParaCore> extends Omit<ParaProviderBaseProps<TClient>, 'paraClientConfig'> {
|
|
60
|
+
/** @internal Pre-instantiated client or config with factory. */
|
|
61
|
+
paraClientConfig: TClient | ParaClientConfigWithFactory<TClient>;
|
|
62
|
+
/** @internal Called after the client is resolved, before it's set in the store. */
|
|
61
63
|
configureClient?: (client: TClient) => void;
|
|
62
|
-
/**
|
|
64
|
+
/** @internal Storage adapter for persistence. */
|
|
63
65
|
storageAdapter?: ParaStorageAdapter;
|
|
64
|
-
/**
|
|
65
|
-
* Optional extended store from a platform SDK.
|
|
66
|
-
* When provided, ParaProviderCore uses this store instead of creating its own.
|
|
67
|
-
* This allows web/RN SDKs to extend the core store with platform-specific slices.
|
|
68
|
-
*/
|
|
66
|
+
/** @internal Extended store from a platform SDK. */
|
|
69
67
|
store?: StoreApi<CoreStore>;
|
|
70
|
-
/**
|
|
71
|
-
* When true (default), children are not rendered until the SDK is ready.
|
|
72
|
-
* Set to false when the platform SDK manages its own readiness gate
|
|
73
|
-
* (e.g. web renders providers immediately but gates user children separately).
|
|
74
|
-
*/
|
|
75
|
-
waitForReady?: boolean;
|
|
76
68
|
}
|
|
77
69
|
/**
|
|
78
70
|
* Platform-agnostic Para provider. Manages the core Zustand store, syncs the
|
|
@@ -82,4 +74,4 @@ export interface ParaProviderCoreProps<TClient extends ParaCore = ParaCore> exte
|
|
|
82
74
|
* a `createClient` factory. Platform SDKs wrap this and add platform-specific
|
|
83
75
|
* providers on top.
|
|
84
76
|
*/
|
|
85
|
-
export declare function ParaProviderCore<TClient extends ParaCore = ParaCore>({ children, paraClientConfig: paraClientInput, config, callbacks, configureClient, storageAdapter, store: externalStore, waitForReady, }: ParaProviderCoreProps<TClient>): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare function ParaProviderCore<TClient extends ParaCore = ParaCore>({ children, paraClientConfig: paraClientInput, config, callbacks, configureClient, storageAdapter, store: externalStore, waitForReady, fallback, }: ParaProviderCoreProps<TClient>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,7 @@ const EVENT_TO_CALLBACK = {
|
|
|
16
16
|
function isClientConfig(v) {
|
|
17
17
|
return typeof v === "object" && v !== null && "createClient" in v;
|
|
18
18
|
}
|
|
19
|
-
const ParaProviderCoreInner = ({ children, paraClientConfig: paraClient, config, callbacks, waitForReady }) => {
|
|
19
|
+
const ParaProviderCoreInner = ({ children, paraClientConfig: paraClient, config, callbacks, waitForReady, fallback }) => {
|
|
20
20
|
var _a;
|
|
21
21
|
const unsubRef = useRef(null);
|
|
22
22
|
const setClient = useCoreStore((state) => state.setClient);
|
|
@@ -52,7 +52,10 @@ const ParaProviderCoreInner = ({ children, paraClientConfig: paraClient, config,
|
|
|
52
52
|
setParaState(snapshot);
|
|
53
53
|
});
|
|
54
54
|
unsubRef.current = unsubscribe;
|
|
55
|
-
}).catch(
|
|
55
|
+
}).catch((error) => {
|
|
56
|
+
setParaState(client.getCurrentState());
|
|
57
|
+
console.error(error);
|
|
58
|
+
});
|
|
56
59
|
return () => {
|
|
57
60
|
var _a2;
|
|
58
61
|
cancelled = true;
|
|
@@ -75,10 +78,10 @@ const ParaProviderCoreInner = ({ children, paraClientConfig: paraClient, config,
|
|
|
75
78
|
}, []);
|
|
76
79
|
const isReady = (_a = paraState == null ? void 0 : paraState.isReady) != null ? _a : false;
|
|
77
80
|
if (!client) {
|
|
78
|
-
return null;
|
|
81
|
+
return /* @__PURE__ */ jsx(Fragment, { children: fallback != null ? fallback : null });
|
|
79
82
|
}
|
|
80
83
|
if (waitForReady && !isReady) {
|
|
81
|
-
return null;
|
|
84
|
+
return /* @__PURE__ */ jsx(Fragment, { children: fallback != null ? fallback : null });
|
|
82
85
|
}
|
|
83
86
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
84
87
|
};
|
|
@@ -90,7 +93,8 @@ function ParaProviderCore({
|
|
|
90
93
|
configureClient,
|
|
91
94
|
storageAdapter,
|
|
92
95
|
store: externalStore,
|
|
93
|
-
waitForReady = true
|
|
96
|
+
waitForReady = true,
|
|
97
|
+
fallback
|
|
94
98
|
}) {
|
|
95
99
|
const store = useMemo(
|
|
96
100
|
() => externalStore != null ? externalStore : createCoreStore({ storage: storageAdapter }),
|
|
@@ -106,7 +110,7 @@ function ParaProviderCore({
|
|
|
106
110
|
setResolvedClient(client);
|
|
107
111
|
}, [paraClientInput]);
|
|
108
112
|
if (!resolvedClient) {
|
|
109
|
-
return null;
|
|
113
|
+
return /* @__PURE__ */ jsx(Fragment, { children: fallback != null ? fallback : null });
|
|
110
114
|
}
|
|
111
115
|
return /* @__PURE__ */ jsx(CoreStoreContext.Provider, { value: store, children: /* @__PURE__ */ jsx(
|
|
112
116
|
ParaProviderCoreInner,
|
|
@@ -115,6 +119,7 @@ function ParaProviderCore({
|
|
|
115
119
|
config,
|
|
116
120
|
callbacks,
|
|
117
121
|
waitForReady,
|
|
122
|
+
fallback,
|
|
118
123
|
children
|
|
119
124
|
}
|
|
120
125
|
) });
|
|
@@ -21,10 +21,15 @@ export declare const logout: (para?: ParaCore, args?: LogoutParams) => Promise<v
|
|
|
21
21
|
export declare const resendVerificationCode: (para?: ParaCore, args?: ResendVerificationCodeParams) => Promise<void>;
|
|
22
22
|
export declare const createWallet: (para?: ParaCore, args?: CreateWalletParams) => Promise<CreateWalletResponse>;
|
|
23
23
|
export declare const createWalletPerType: (para?: ParaCore, args?: CreateWalletPerTypeParams) => Promise<CreateWalletPerTypeResponse>;
|
|
24
|
+
/** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
|
|
24
25
|
export declare const createPregenWallet: (para?: ParaCore, args?: CreatePregenWalletParams) => Promise<CreatePregenWalletResponse>;
|
|
26
|
+
/** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
|
|
25
27
|
export declare const createPregenWalletPerType: (para?: ParaCore, args?: CreatePregenWalletPerTypeParams) => Promise<CreatePregenWalletPerTypeResponse>;
|
|
28
|
+
/** @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
|
|
26
29
|
export declare const claimPregenWallets: (para?: ParaCore, args?: ClaimPregenWalletsParams) => Promise<ClaimPregenWalletsResponse>;
|
|
30
|
+
/** @deprecated Use the REST API (`GET /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
|
|
27
31
|
export declare const hasPregenWallet: (para?: ParaCore, args?: HasPregenWalletParams) => Promise<boolean>;
|
|
32
|
+
/** @deprecated Use the REST API (`PATCH /v1/wallets/:id`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen */
|
|
28
33
|
export declare const updatePregenWalletIdentifier: (para?: ParaCore, args?: UpdatePregenWalletIdentifierParams) => Promise<void>;
|
|
29
34
|
export declare const createGuestWallets: (para?: ParaCore) => Promise<CreateGuestWalletsResponse>;
|
|
30
35
|
export declare const signMessage: (para?: ParaCore, args?: SignMessageParams) => Promise<FullSignatureRes>;
|
|
@@ -57,11 +57,12 @@ function createSmartAccountHook(config, useEnhancer) {
|
|
|
57
57
|
return function useSmartAccount(params = {}) {
|
|
58
58
|
var _b, _c, _d, _e, _f, _g, _h;
|
|
59
59
|
const para = useClient();
|
|
60
|
-
const { isConnected,
|
|
60
|
+
const { isConnected, embedded } = useAccount();
|
|
61
61
|
const { data: wallet } = useWallet();
|
|
62
|
+
const userId = embedded == null ? void 0 : embedded.userId;
|
|
62
63
|
const _a = params != null ? params : {}, { enabled = true } = _a, rest = __objRest(_a, ["enabled"]);
|
|
63
64
|
const configParams = rest;
|
|
64
|
-
const contextAddress = (wallet == null ? void 0 : wallet.type) === "EVM" && !(
|
|
65
|
+
const contextAddress = (wallet == null ? void 0 : wallet.type) === "EVM" && !("isExternal" in wallet && wallet.isExternal) ? wallet == null ? void 0 : wallet.address : void 0;
|
|
65
66
|
const enhancement = (_b = useEnhancer == null ? void 0 : useEnhancer(configParams)) != null ? _b : {};
|
|
66
67
|
const effectiveSigner = (_c = enhancement.signer) != null ? _c : void 0;
|
|
67
68
|
const signerAddress = (_d = enhancement.signerAddress) != null ? _d : void 0;
|
|
@@ -6,7 +6,9 @@ export declare const THIRDWEB_SMART_ACCOUNT_BASE_KEY = "PARA_THIRDWEB_SMART_ACCO
|
|
|
6
6
|
* Factory that creates a `useThirdwebSmartAccount` hook with an optional enhancer.
|
|
7
7
|
* Pass `useWagmiSignerEnhancer` on web to support external wallet signers.
|
|
8
8
|
*/
|
|
9
|
-
export declare const createThirdwebSmartAccountHook: (useEnhancer?: (params: UseThirdwebSmartAccountParams) => SmartAccountEnhancement) => (params?:
|
|
9
|
+
export declare const createThirdwebSmartAccountHook: (useEnhancer?: (params: UseThirdwebSmartAccountParams) => SmartAccountEnhancement) => (params?: import("@getpara/aa-thirdweb").ThirdwebSmartAccountConfig & {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}) => import("./types.js").UseSmartAccountResult<SmartAccount>;
|
|
10
12
|
/**
|
|
11
13
|
* React / React Native hook to create and manage a Thirdweb smart account.
|
|
12
14
|
*
|
|
@@ -15,4 +17,6 @@ export declare const createThirdwebSmartAccountHook: (useEnhancer?: (params: Use
|
|
|
15
17
|
*
|
|
16
18
|
* Requires `@getpara/aa-thirdweb` to be installed.
|
|
17
19
|
*/
|
|
18
|
-
export declare const useThirdwebSmartAccount: (params?:
|
|
20
|
+
export declare const useThirdwebSmartAccount: (params?: import("@getpara/aa-thirdweb").ThirdwebSmartAccountConfig & {
|
|
21
|
+
enabled?: boolean;
|
|
22
|
+
}) => import("./types.js").UseSmartAccountResult<SmartAccount>;
|
|
@@ -15,20 +15,79 @@ export declare const AUTHENTICATE_EMAIL_OR_PHONE_KEY = "AUTHENTICATE_EMAIL_OR_PH
|
|
|
15
15
|
* await authenticateWithEmailOrPhoneAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useAuthenticateWithEmailOrPhone: () => {
|
|
18
|
+
data: undefined;
|
|
19
|
+
variables: undefined;
|
|
20
|
+
error: null;
|
|
21
|
+
isError: false;
|
|
22
|
+
isIdle: true;
|
|
23
|
+
isPending: false;
|
|
24
|
+
isSuccess: false;
|
|
25
|
+
status: "idle";
|
|
26
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
27
|
+
reset: () => void;
|
|
28
|
+
context: unknown;
|
|
29
|
+
failureCount: number;
|
|
30
|
+
failureReason: Error;
|
|
31
|
+
isPaused: boolean;
|
|
32
|
+
submittedAt: number;
|
|
33
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
34
|
+
authenticateWithEmailOrPhone: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
35
|
+
authenticateWithEmailOrPhoneAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
36
|
+
} | {
|
|
37
|
+
data: undefined;
|
|
38
|
+
variables: AuthenticateWithEmailOrPhoneParams;
|
|
39
|
+
error: null;
|
|
40
|
+
isError: false;
|
|
41
|
+
isIdle: false;
|
|
42
|
+
isPending: true;
|
|
43
|
+
isSuccess: false;
|
|
44
|
+
status: "pending";
|
|
45
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
46
|
+
reset: () => void;
|
|
47
|
+
context: unknown;
|
|
48
|
+
failureCount: number;
|
|
49
|
+
failureReason: Error;
|
|
50
|
+
isPaused: boolean;
|
|
51
|
+
submittedAt: number;
|
|
52
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
53
|
+
authenticateWithEmailOrPhone: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
54
|
+
authenticateWithEmailOrPhoneAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
55
|
+
} | {
|
|
56
|
+
data: undefined;
|
|
18
57
|
error: Error;
|
|
19
|
-
|
|
58
|
+
variables: AuthenticateWithEmailOrPhoneParams;
|
|
59
|
+
isError: true;
|
|
60
|
+
isIdle: false;
|
|
61
|
+
isPending: false;
|
|
62
|
+
isSuccess: false;
|
|
63
|
+
status: "error";
|
|
64
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
65
|
+
reset: () => void;
|
|
66
|
+
context: unknown;
|
|
67
|
+
failureCount: number;
|
|
68
|
+
failureReason: Error;
|
|
69
|
+
isPaused: boolean;
|
|
70
|
+
submittedAt: number;
|
|
71
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
72
|
+
authenticateWithEmailOrPhone: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
73
|
+
authenticateWithEmailOrPhoneAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
74
|
+
} | {
|
|
20
75
|
data: import("@getpara/core-sdk").AuthenticateResponse;
|
|
76
|
+
error: null;
|
|
21
77
|
variables: AuthenticateWithEmailOrPhoneParams;
|
|
22
|
-
isError:
|
|
23
|
-
isIdle:
|
|
24
|
-
isPending:
|
|
25
|
-
|
|
78
|
+
isError: false;
|
|
79
|
+
isIdle: false;
|
|
80
|
+
isPending: false;
|
|
81
|
+
isSuccess: true;
|
|
82
|
+
status: "success";
|
|
83
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
26
84
|
reset: () => void;
|
|
27
85
|
context: unknown;
|
|
28
86
|
failureCount: number;
|
|
29
87
|
failureReason: Error;
|
|
30
88
|
isPaused: boolean;
|
|
31
89
|
submittedAt: number;
|
|
90
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
32
91
|
authenticateWithEmailOrPhone: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
33
92
|
authenticateWithEmailOrPhoneAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithEmailOrPhoneParams, unknown>;
|
|
34
93
|
};
|
|
@@ -15,20 +15,79 @@ export declare const AUTHENTICATE_OAUTH_KEY = "AUTHENTICATE_OAUTH";
|
|
|
15
15
|
* await authenticateWithOAuthAsync({ ...params });
|
|
16
16
|
*/
|
|
17
17
|
export declare const useAuthenticateWithOAuth: () => {
|
|
18
|
+
data: undefined;
|
|
19
|
+
variables: undefined;
|
|
20
|
+
error: null;
|
|
21
|
+
isError: false;
|
|
22
|
+
isIdle: true;
|
|
23
|
+
isPending: false;
|
|
24
|
+
isSuccess: false;
|
|
25
|
+
status: "idle";
|
|
26
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
27
|
+
reset: () => void;
|
|
28
|
+
context: unknown;
|
|
29
|
+
failureCount: number;
|
|
30
|
+
failureReason: Error;
|
|
31
|
+
isPaused: boolean;
|
|
32
|
+
submittedAt: number;
|
|
33
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
34
|
+
authenticateWithOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
35
|
+
authenticateWithOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
36
|
+
} | {
|
|
37
|
+
data: undefined;
|
|
38
|
+
variables: AuthenticateWithOAuthParams;
|
|
39
|
+
error: null;
|
|
40
|
+
isError: false;
|
|
41
|
+
isIdle: false;
|
|
42
|
+
isPending: true;
|
|
43
|
+
isSuccess: false;
|
|
44
|
+
status: "pending";
|
|
45
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
46
|
+
reset: () => void;
|
|
47
|
+
context: unknown;
|
|
48
|
+
failureCount: number;
|
|
49
|
+
failureReason: Error;
|
|
50
|
+
isPaused: boolean;
|
|
51
|
+
submittedAt: number;
|
|
52
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
53
|
+
authenticateWithOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
54
|
+
authenticateWithOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
55
|
+
} | {
|
|
56
|
+
data: undefined;
|
|
18
57
|
error: Error;
|
|
19
|
-
|
|
58
|
+
variables: AuthenticateWithOAuthParams;
|
|
59
|
+
isError: true;
|
|
60
|
+
isIdle: false;
|
|
61
|
+
isPending: false;
|
|
62
|
+
isSuccess: false;
|
|
63
|
+
status: "error";
|
|
64
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
65
|
+
reset: () => void;
|
|
66
|
+
context: unknown;
|
|
67
|
+
failureCount: number;
|
|
68
|
+
failureReason: Error;
|
|
69
|
+
isPaused: boolean;
|
|
70
|
+
submittedAt: number;
|
|
71
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
72
|
+
authenticateWithOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
73
|
+
authenticateWithOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
74
|
+
} | {
|
|
20
75
|
data: import("@getpara/core-sdk").AuthenticateResponse;
|
|
76
|
+
error: null;
|
|
21
77
|
variables: AuthenticateWithOAuthParams;
|
|
22
|
-
isError:
|
|
23
|
-
isIdle:
|
|
24
|
-
isPending:
|
|
25
|
-
|
|
78
|
+
isError: false;
|
|
79
|
+
isIdle: false;
|
|
80
|
+
isPending: false;
|
|
81
|
+
isSuccess: true;
|
|
82
|
+
status: "success";
|
|
83
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
26
84
|
reset: () => void;
|
|
27
85
|
context: unknown;
|
|
28
86
|
failureCount: number;
|
|
29
87
|
failureReason: Error;
|
|
30
88
|
isPaused: boolean;
|
|
31
89
|
submittedAt: number;
|
|
90
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
32
91
|
authenticateWithOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
33
92
|
authenticateWithOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk").AuthenticateResponse, Error, AuthenticateWithOAuthParams, unknown>;
|
|
34
93
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ClaimPregenWalletsParams } from '@getpara/core-sdk';
|
|
2
2
|
export declare const CLAIM_PREGEN_WALLETS_KEY = "CLAIM_PREGEN_WALLETS";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated Use the REST API (`POST /v1/wallets`) instead. See https://docs.getpara.com/v2/rest/migrate-from-sdk-pregen
|
|
5
|
+
*
|
|
4
6
|
* React hook for the `claimPregenWallets` mutation.
|
|
5
7
|
*
|
|
6
8
|
* Returns a mutation result object with all standard fields from `useMutation`, except:
|
|
@@ -15,20 +17,79 @@ export declare const CLAIM_PREGEN_WALLETS_KEY = "CLAIM_PREGEN_WALLETS";
|
|
|
15
17
|
* await claimPregenWalletsAsync({ ...params });
|
|
16
18
|
*/
|
|
17
19
|
export declare const useClaimPregenWallets: () => {
|
|
20
|
+
data: undefined;
|
|
21
|
+
variables: undefined;
|
|
22
|
+
error: null;
|
|
23
|
+
isError: false;
|
|
24
|
+
isIdle: true;
|
|
25
|
+
isPending: false;
|
|
26
|
+
isSuccess: false;
|
|
27
|
+
status: "idle";
|
|
28
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
29
|
+
reset: () => void;
|
|
30
|
+
context: unknown;
|
|
31
|
+
failureCount: number;
|
|
32
|
+
failureReason: Error;
|
|
33
|
+
isPaused: boolean;
|
|
34
|
+
submittedAt: number;
|
|
35
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
36
|
+
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
37
|
+
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
38
|
+
} | {
|
|
39
|
+
data: undefined;
|
|
40
|
+
variables: ClaimPregenWalletsParams;
|
|
41
|
+
error: null;
|
|
42
|
+
isError: false;
|
|
43
|
+
isIdle: false;
|
|
44
|
+
isPending: true;
|
|
45
|
+
isSuccess: false;
|
|
46
|
+
status: "pending";
|
|
47
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
48
|
+
reset: () => void;
|
|
49
|
+
context: unknown;
|
|
50
|
+
failureCount: number;
|
|
51
|
+
failureReason: Error;
|
|
52
|
+
isPaused: boolean;
|
|
53
|
+
submittedAt: number;
|
|
54
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
55
|
+
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
56
|
+
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
57
|
+
} | {
|
|
58
|
+
data: undefined;
|
|
18
59
|
error: Error;
|
|
19
|
-
|
|
60
|
+
variables: ClaimPregenWalletsParams;
|
|
61
|
+
isError: true;
|
|
62
|
+
isIdle: false;
|
|
63
|
+
isPending: false;
|
|
64
|
+
isSuccess: false;
|
|
65
|
+
status: "error";
|
|
66
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
67
|
+
reset: () => void;
|
|
68
|
+
context: unknown;
|
|
69
|
+
failureCount: number;
|
|
70
|
+
failureReason: Error;
|
|
71
|
+
isPaused: boolean;
|
|
72
|
+
submittedAt: number;
|
|
73
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
74
|
+
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
75
|
+
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
76
|
+
} | {
|
|
20
77
|
data: string;
|
|
78
|
+
error: null;
|
|
21
79
|
variables: ClaimPregenWalletsParams;
|
|
22
|
-
isError:
|
|
23
|
-
isIdle:
|
|
24
|
-
isPending:
|
|
25
|
-
|
|
80
|
+
isError: false;
|
|
81
|
+
isIdle: false;
|
|
82
|
+
isPending: false;
|
|
83
|
+
isSuccess: true;
|
|
84
|
+
status: "success";
|
|
85
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
26
86
|
reset: () => void;
|
|
27
87
|
context: unknown;
|
|
28
88
|
failureCount: number;
|
|
29
89
|
failureReason: Error;
|
|
30
90
|
isPaused: boolean;
|
|
31
91
|
submittedAt: number;
|
|
92
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
32
93
|
claimPregenWallets: import("@tanstack/react-query").UseMutateFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
33
94
|
claimPregenWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<string, Error, ClaimPregenWalletsParams, unknown>;
|
|
34
95
|
};
|
|
@@ -15,20 +15,79 @@ export declare const CREATE_GUEST_WALLETS_KEY = "CREATE_GUEST_WALLETS";
|
|
|
15
15
|
* await createGuestWalletsAsync();
|
|
16
16
|
*/
|
|
17
17
|
export declare const useCreateGuestWallets: () => {
|
|
18
|
+
data: undefined;
|
|
19
|
+
variables: undefined;
|
|
20
|
+
error: null;
|
|
21
|
+
isError: false;
|
|
22
|
+
isIdle: true;
|
|
23
|
+
isPending: false;
|
|
24
|
+
isSuccess: false;
|
|
25
|
+
status: "idle";
|
|
26
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
27
|
+
reset: () => void;
|
|
28
|
+
context: unknown;
|
|
29
|
+
failureCount: number;
|
|
30
|
+
failureReason: Error;
|
|
31
|
+
isPaused: boolean;
|
|
32
|
+
submittedAt: number;
|
|
33
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
34
|
+
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
35
|
+
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
36
|
+
} | {
|
|
37
|
+
data: undefined;
|
|
38
|
+
variables: void;
|
|
39
|
+
error: null;
|
|
40
|
+
isError: false;
|
|
41
|
+
isIdle: false;
|
|
42
|
+
isPending: true;
|
|
43
|
+
isSuccess: false;
|
|
44
|
+
status: "pending";
|
|
45
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
46
|
+
reset: () => void;
|
|
47
|
+
context: unknown;
|
|
48
|
+
failureCount: number;
|
|
49
|
+
failureReason: Error;
|
|
50
|
+
isPaused: boolean;
|
|
51
|
+
submittedAt: number;
|
|
52
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
53
|
+
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
54
|
+
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
55
|
+
} | {
|
|
56
|
+
data: undefined;
|
|
18
57
|
error: Error;
|
|
19
|
-
|
|
58
|
+
variables: void;
|
|
59
|
+
isError: true;
|
|
60
|
+
isIdle: false;
|
|
61
|
+
isPending: false;
|
|
62
|
+
isSuccess: false;
|
|
63
|
+
status: "error";
|
|
64
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
65
|
+
reset: () => void;
|
|
66
|
+
context: unknown;
|
|
67
|
+
failureCount: number;
|
|
68
|
+
failureReason: Error;
|
|
69
|
+
isPaused: boolean;
|
|
70
|
+
submittedAt: number;
|
|
71
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
72
|
+
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
73
|
+
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
74
|
+
} | {
|
|
20
75
|
data: CreateGuestWalletsResponse;
|
|
76
|
+
error: null;
|
|
21
77
|
variables: void;
|
|
22
|
-
isError:
|
|
23
|
-
isIdle:
|
|
24
|
-
isPending:
|
|
25
|
-
|
|
78
|
+
isError: false;
|
|
79
|
+
isIdle: false;
|
|
80
|
+
isPending: false;
|
|
81
|
+
isSuccess: true;
|
|
82
|
+
status: "success";
|
|
83
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
26
84
|
reset: () => void;
|
|
27
85
|
context: unknown;
|
|
28
86
|
failureCount: number;
|
|
29
87
|
failureReason: Error;
|
|
30
88
|
isPaused: boolean;
|
|
31
89
|
submittedAt: number;
|
|
90
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
32
91
|
createGuestWallets: import("@tanstack/react-query").UseMutateFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
33
92
|
createGuestWalletsAsync: import("@tanstack/react-query").UseMutateAsyncFunction<CreateGuestWalletsResponse, Error, void, unknown>;
|
|
34
93
|
};
|