@mysten/dapp-kit 1.0.5 → 1.0.6
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/CHANGELOG.md +12 -0
- package/dist/components/AccountDropdownMenu.css.d.ts +7 -0
- package/dist/components/AccountDropdownMenu.css.d.ts.map +1 -0
- package/dist/components/AccountDropdownMenu.d.ts +11 -0
- package/dist/components/AccountDropdownMenu.d.ts.map +1 -0
- package/dist/components/ConnectButton.d.ts +10 -0
- package/dist/components/ConnectButton.d.ts.map +1 -0
- package/dist/components/SuiClientProvider.d.ts +26 -0
- package/dist/components/SuiClientProvider.d.ts.map +1 -0
- package/dist/components/WalletProvider.d.ts +27 -0
- package/dist/components/WalletProvider.d.ts.map +1 -0
- package/dist/components/connect-modal/ConnectModal.css.d.ts +12 -0
- package/dist/components/connect-modal/ConnectModal.css.d.ts.map +1 -0
- package/dist/components/connect-modal/ConnectModal.d.ts +24 -0
- package/dist/components/connect-modal/ConnectModal.d.ts.map +1 -0
- package/dist/components/connect-modal/InfoSection.css.d.ts +2 -0
- package/dist/components/connect-modal/InfoSection.css.d.ts.map +1 -0
- package/dist/components/connect-modal/InfoSection.d.ts +7 -0
- package/dist/components/connect-modal/InfoSection.d.ts.map +1 -0
- package/dist/components/connect-modal/views/ConnectionStatus.css.d.ts +6 -0
- package/dist/components/connect-modal/views/ConnectionStatus.css.d.ts.map +1 -0
- package/dist/components/connect-modal/views/ConnectionStatus.d.ts +9 -0
- package/dist/components/connect-modal/views/ConnectionStatus.d.ts.map +1 -0
- package/dist/components/connect-modal/views/GettingStarted.css.d.ts +4 -0
- package/dist/components/connect-modal/views/GettingStarted.css.d.ts.map +1 -0
- package/dist/components/connect-modal/views/GettingStarted.d.ts +2 -0
- package/dist/components/connect-modal/views/GettingStarted.d.ts.map +1 -0
- package/dist/components/connect-modal/views/WhatIsAWallet.css.d.ts +3 -0
- package/dist/components/connect-modal/views/WhatIsAWallet.css.d.ts.map +1 -0
- package/dist/components/connect-modal/views/WhatIsAWallet.d.ts +2 -0
- package/dist/components/connect-modal/views/WhatIsAWallet.d.ts.map +1 -0
- package/dist/components/connect-modal/wallet-list/WalletList.css.d.ts +2 -0
- package/dist/components/connect-modal/wallet-list/WalletList.css.d.ts.map +1 -0
- package/dist/components/connect-modal/wallet-list/WalletList.d.ts +10 -0
- package/dist/components/connect-modal/wallet-list/WalletList.d.ts.map +1 -0
- package/dist/components/connect-modal/wallet-list/WalletListItem.css.d.ts +5 -0
- package/dist/components/connect-modal/wallet-list/WalletListItem.css.d.ts.map +1 -0
- package/dist/components/connect-modal/wallet-list/WalletListItem.d.ts +10 -0
- package/dist/components/connect-modal/wallet-list/WalletListItem.d.ts.map +1 -0
- package/dist/components/icons/BackIcon.d.ts +3 -0
- package/dist/components/icons/BackIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/ChevronIcon.d.ts +3 -0
- package/dist/components/icons/ChevronIcon.d.ts.map +1 -0
- package/dist/components/icons/CloseIcon.d.ts +3 -0
- package/dist/components/icons/CloseIcon.d.ts.map +1 -0
- package/dist/components/styling/InjectedThemeStyles.d.ts +7 -0
- package/dist/components/styling/InjectedThemeStyles.d.ts.map +1 -0
- package/dist/components/styling/StyleMarker.css.d.ts +2 -0
- package/dist/components/styling/StyleMarker.css.d.ts.map +1 -0
- package/dist/components/styling/StyleMarker.d.ts +3 -0
- package/dist/components/styling/StyleMarker.d.ts.map +1 -0
- package/dist/components/ui/Button.css.d.ts +34 -0
- package/dist/components/ui/Button.css.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +9 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/Heading.css.d.ts +34 -0
- package/dist/components/ui/Heading.css.d.ts.map +1 -0
- package/dist/components/ui/Heading.d.ts +13 -0
- package/dist/components/ui/Heading.d.ts.map +1 -0
- package/dist/components/ui/IconButton.css.d.ts +2 -0
- package/dist/components/ui/IconButton.css.d.ts.map +1 -0
- package/dist/components/ui/IconButton.d.ts +7 -0
- package/dist/components/ui/IconButton.d.ts.map +1 -0
- package/dist/components/ui/Text.css.d.ts +34 -0
- package/dist/components/ui/Text.css.d.ts.map +1 -0
- package/dist/components/ui/Text.d.ts +13 -0
- package/dist/components/ui/Text.d.ts.map +1 -0
- package/dist/constants/styleDataAttribute.d.ts +6 -0
- package/dist/constants/styleDataAttribute.d.ts.map +1 -0
- package/dist/constants/walletDefaults.d.ts +7 -0
- package/dist/constants/walletDefaults.d.ts.map +1 -0
- package/dist/constants/walletMutationKeys.d.ts +14 -0
- package/dist/constants/walletMutationKeys.d.ts.map +1 -0
- package/dist/contexts/walletContext.d.ts +14 -0
- package/dist/contexts/walletContext.d.ts.map +1 -0
- package/dist/errors/walletErrors.d.ts +23 -0
- package/dist/errors/walletErrors.d.ts.map +1 -0
- package/dist/hooks/networkConfig.d.ts +11 -0
- package/dist/hooks/networkConfig.d.ts.map +1 -0
- package/dist/hooks/useResolveSuiNSNames.d.ts +4 -0
- package/dist/hooks/useResolveSuiNSNames.d.ts.map +1 -0
- package/dist/hooks/useSuiClient.d.ts +4 -0
- package/dist/hooks/useSuiClient.d.ts.map +1 -0
- package/dist/hooks/useSuiClientInfiniteQuery.d.ts +26 -0
- package/dist/hooks/useSuiClientInfiniteQuery.d.ts.map +1 -0
- package/dist/hooks/useSuiClientMutation.d.ts +5 -0
- package/dist/hooks/useSuiClientMutation.d.ts.map +1 -0
- package/dist/hooks/useSuiClientQueries.d.ts +28 -0
- package/dist/hooks/useSuiClientQueries.d.ts.map +1 -0
- package/dist/hooks/useSuiClientQuery.d.ts +39 -0
- package/dist/hooks/useSuiClientQuery.d.ts.map +1 -0
- package/dist/hooks/wallet/useAccounts.d.ts +6 -0
- package/dist/hooks/wallet/useAccounts.d.ts.map +1 -0
- package/dist/hooks/wallet/useAutoConnectWallet.d.ts +2 -0
- package/dist/hooks/wallet/useAutoConnectWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useConnectWallet.d.ts +16 -0
- package/dist/hooks/wallet/useConnectWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useCurrentAccount.d.ts +6 -0
- package/dist/hooks/wallet/useCurrentAccount.d.ts.map +1 -0
- package/dist/hooks/wallet/useCurrentWallet.d.ts +26 -0
- package/dist/hooks/wallet/useCurrentWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useDisconnectWallet.d.ts +10 -0
- package/dist/hooks/wallet/useDisconnectWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useSignAndExecuteTransaction.d.ts +30 -0
- package/dist/hooks/wallet/useSignAndExecuteTransaction.d.ts.map +1 -0
- package/dist/hooks/wallet/useSignPersonalMessage.d.ts +14 -0
- package/dist/hooks/wallet/useSignPersonalMessage.d.ts.map +1 -0
- package/dist/hooks/wallet/useSignTransaction.d.ts +18 -0
- package/dist/hooks/wallet/useSignTransaction.d.ts.map +1 -0
- package/dist/hooks/wallet/useSlushWallet.d.ts +6 -0
- package/dist/hooks/wallet/useSlushWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useSwitchAccount.d.ts +15 -0
- package/dist/hooks/wallet/useSwitchAccount.d.ts.map +1 -0
- package/dist/hooks/wallet/useUnsafeBurnerWallet.d.ts +2 -0
- package/dist/hooks/wallet/useUnsafeBurnerWallet.d.ts.map +1 -0
- package/dist/hooks/wallet/useWalletPropertiesChanged.d.ts +5 -0
- package/dist/hooks/wallet/useWalletPropertiesChanged.d.ts.map +1 -0
- package/dist/hooks/wallet/useWalletStore.d.ts +3 -0
- package/dist/hooks/wallet/useWalletStore.d.ts.map +1 -0
- package/dist/hooks/wallet/useWallets.d.ts +5 -0
- package/dist/hooks/wallet/useWallets.d.ts.map +1 -0
- package/dist/hooks/wallet/useWalletsChanged.d.ts +6 -0
- package/dist/hooks/wallet/useWalletsChanged.d.ts.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/themes/lightTheme.d.ts +3 -0
- package/dist/themes/lightTheme.d.ts.map +1 -0
- package/dist/themes/themeContract.d.ts +141 -0
- package/dist/themes/themeContract.d.ts.map +1 -0
- package/dist/types/utilityTypes.d.ts +2 -0
- package/dist/types/utilityTypes.d.ts.map +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/assertUnreachable.d.ts +5 -0
- package/dist/utils/assertUnreachable.d.ts.map +1 -0
- package/dist/utils/stateStorage.d.ts +3 -0
- package/dist/utils/stateStorage.d.ts.map +1 -0
- package/dist/utils/walletUtils.d.ts +4 -0
- package/dist/utils/walletUtils.d.ts.map +1 -0
- package/dist/walletStore.d.ts +45 -0
- package/dist/walletStore.d.ts.map +1 -0
- package/docs/index.md +93 -0
- package/docs/llms-index.md +22 -0
- package/docs/rpc-hooks.md +166 -0
- package/docs/slush.md +29 -0
- package/docs/sui-client-provider.md +196 -0
- package/docs/themes.md +117 -0
- package/docs/wallet-components/ConnectButton.md +22 -0
- package/docs/wallet-components/ConnectModal.md +67 -0
- package/docs/wallet-hooks/useAccounts.md +36 -0
- package/docs/wallet-hooks/useAutoConnectWallet.md +29 -0
- package/docs/wallet-hooks/useConnectWallet.md +48 -0
- package/docs/wallet-hooks/useCurrentAccount.md +36 -0
- package/docs/wallet-hooks/useCurrentWallet.md +59 -0
- package/docs/wallet-hooks/useDisconnectWallet.md +26 -0
- package/docs/wallet-hooks/useSignAndExecuteTransaction.md +124 -0
- package/docs/wallet-hooks/useSignPersonalMessage.md +59 -0
- package/docs/wallet-hooks/useSignTransaction.md +67 -0
- package/docs/wallet-hooks/useSwitchAccount.md +47 -0
- package/docs/wallet-hooks/useWallets.md +38 -0
- package/docs/wallet-provider.md +38 -0
- package/package.json +5 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MutationKey } from '@tanstack/react-query';
|
|
2
|
+
export declare const walletMutationKeys: {
|
|
3
|
+
all: {
|
|
4
|
+
baseScope: string;
|
|
5
|
+
};
|
|
6
|
+
connectWallet: (additionalKeys?: MutationKey) => unknown[];
|
|
7
|
+
autoconnectWallet: (additionalKeys?: MutationKey) => unknown[];
|
|
8
|
+
disconnectWallet: (additionalKeys?: MutationKey) => unknown[];
|
|
9
|
+
signPersonalMessage: (additionalKeys?: MutationKey) => unknown[];
|
|
10
|
+
signTransaction: (additionalKeys?: MutationKey) => unknown[];
|
|
11
|
+
signAndExecuteTransaction: (additionalKeys?: MutationKey) => unknown[];
|
|
12
|
+
switchAccount: (additionalKeys?: MutationKey) => unknown[];
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=walletMutationKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletMutationKeys.d.ts","sourceRoot":"","sources":["../../src/constants/walletMutationKeys.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;qCAYgB,WAAW;yCAAX,WAAW;wCAAX,WAAW;2CAAX,WAAW;uCAAX,WAAW;iDAAX,WAAW;qCAAX,WAAW;CAHzD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const WalletContext: import("react").Context<(Omit<import("zustand").StoreApi<import("../walletStore.js").StoreState>, "setState" | "persist"> & {
|
|
2
|
+
setState(partial: import("../walletStore.js").StoreState | Partial<import("../walletStore.js").StoreState> | ((state: import("../walletStore.js").StoreState) => import("../walletStore.js").StoreState | Partial<import("../walletStore.js").StoreState>), replace?: false | undefined): unknown;
|
|
3
|
+
setState(state: import("../walletStore.js").StoreState | ((state: import("../walletStore.js").StoreState) => import("../walletStore.js").StoreState), replace: true): unknown;
|
|
4
|
+
persist: {
|
|
5
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<import("../walletStore.js").StoreState, unknown, unknown>>) => void;
|
|
6
|
+
clearStorage: () => void;
|
|
7
|
+
rehydrate: () => Promise<void> | void;
|
|
8
|
+
hasHydrated: () => boolean;
|
|
9
|
+
onHydrate: (fn: (state: import("../walletStore.js").StoreState) => void) => () => void;
|
|
10
|
+
onFinishHydration: (fn: (state: import("../walletStore.js").StoreState) => void) => () => void;
|
|
11
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<import("../walletStore.js").StoreState, unknown, unknown>>;
|
|
12
|
+
};
|
|
13
|
+
}) | null>;
|
|
14
|
+
//# sourceMappingURL=walletContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletContext.d.ts","sourceRoot":"","sources":["../../src/contexts/walletContext.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;UAA0C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An error that is instantiated when someone attempts to perform an action that requires an active wallet connection.
|
|
3
|
+
*/
|
|
4
|
+
export declare class WalletNotConnectedError extends Error {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* An error that is instantiated when someone attempts to perform an action that requires a selected wallet account.
|
|
8
|
+
* This is more of an edge case stemming from the fact that wallets don't technically require you to authorize any
|
|
9
|
+
* accounts when connecting a wallet.
|
|
10
|
+
*/
|
|
11
|
+
export declare class WalletNoAccountSelectedError extends Error {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* An error that is instantiated when someone attempts to perform an action that isn't supported by a wallet.
|
|
15
|
+
*/
|
|
16
|
+
export declare class WalletFeatureNotSupportedError extends Error {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An error that is instantiated when a wallet account can't be found for a specific wallet.
|
|
20
|
+
*/
|
|
21
|
+
export declare class WalletAccountNotFoundError extends Error {
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=walletErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletErrors.d.ts","sourceRoot":"","sources":["../../src/errors/walletErrors.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;CAAG;AAErD;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;CAAG;AAE1D;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;CAAG;AAE5D;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;CAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SuiJsonRpcClientOptions } from '@mysten/sui/jsonRpc';
|
|
2
|
+
export type NetworkConfig<T extends object = object> = SuiJsonRpcClientOptions & {
|
|
3
|
+
variables?: T;
|
|
4
|
+
};
|
|
5
|
+
export declare function createNetworkConfig<const T extends Record<string, Config>, Config extends NetworkConfig<Variables> = T[keyof T], Variables extends object = NonNullable<Config['variables']>>(networkConfig: T): {
|
|
6
|
+
networkConfig: T;
|
|
7
|
+
useNetworkConfig: () => Config;
|
|
8
|
+
useNetworkVariables: () => Variables;
|
|
9
|
+
useNetworkVariable: <K extends keyof Variables>(name: K) => Variables[K];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=networkConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/networkConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAInE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,uBAAuB,GAAG;IAChF,SAAS,CAAC,EAAE,CAAC,CAAC;CACd,CAAC;AAEF,wBAAgB,mBAAmB,CAClC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,MAAM,SAAS,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,EACpD,SAAS,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,EAC1D,aAAa,EAAE,CAAC;;4BACY,MAAM;+BAUH,SAAS;yBAMb,CAAC,SAAS,MAAM,SAAS,QAAQ,CAAC,KAAG,SAAS,CAAC,CAAC,CAAC;EAY7E"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResolvedNameServiceNames } from '@mysten/sui/jsonRpc';
|
|
2
|
+
import type { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
export declare function useResolveSuiNSName(address?: string | null, options?: Omit<UseQueryOptions<ResolvedNameServiceNames, Error, string | null, unknown[]>, 'queryFn' | 'queryKey' | 'select'>): UseQueryResult<string | null, Error>;
|
|
4
|
+
//# sourceMappingURL=useResolveSuiNSNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolveSuiNSNames.d.ts","sourceRoot":"","sources":["../../src/hooks/useResolveSuiNSNames.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI7E,wBAAgB,mBAAmB,CAClC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,CAAC,EAAE,IAAI,CACb,eAAe,CAAC,wBAAwB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,EAC1E,SAAS,GAAG,UAAU,GAAG,QAAQ,CACjC,GACC,cAAc,CAAC,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC,CAetC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
2
|
+
export declare function useSuiClientContext(): import("../components/SuiClientProvider.js").SuiClientProviderContext;
|
|
3
|
+
export declare function useSuiClient(): SuiJsonRpcClient;
|
|
4
|
+
//# sourceMappingURL=useSuiClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuiClient.d.ts","sourceRoot":"","sources":["../../src/hooks/useSuiClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK5D,wBAAgB,mBAAmB,0EAUlC;AAED,wBAAgB,YAAY,IAAI,gBAAgB,CAE/C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
2
|
+
import type { InfiniteData, UseInfiniteQueryOptions, UseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import type { PartialBy } from '../types/utilityTypes.js';
|
|
4
|
+
interface PaginatedResult {
|
|
5
|
+
data?: unknown;
|
|
6
|
+
nextCursor?: unknown;
|
|
7
|
+
hasNextPage: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type SuiRpcPaginatedMethodName = {
|
|
10
|
+
[K in keyof SuiJsonRpcClient]: SuiJsonRpcClient[K] extends (input: any) => Promise<PaginatedResult> ? K : never;
|
|
11
|
+
}[keyof SuiJsonRpcClient];
|
|
12
|
+
export type SuiRpcPaginatedMethods = {
|
|
13
|
+
[K in SuiRpcPaginatedMethodName]: SuiJsonRpcClient[K] extends (input: infer Params) => Promise<infer Result extends {
|
|
14
|
+
hasNextPage?: boolean | null;
|
|
15
|
+
nextCursor?: infer Cursor | null;
|
|
16
|
+
}> ? {
|
|
17
|
+
name: K;
|
|
18
|
+
result: Result;
|
|
19
|
+
params: Params;
|
|
20
|
+
cursor: Cursor;
|
|
21
|
+
} : never;
|
|
22
|
+
};
|
|
23
|
+
export type UseSuiClientInfiniteQueryOptions<T extends keyof SuiRpcPaginatedMethods, TData> = PartialBy<Omit<UseInfiniteQueryOptions<SuiRpcPaginatedMethods[T]['result'], Error, TData, unknown[]>, 'queryFn' | 'initialPageParam' | 'getNextPageParam'>, 'queryKey'>;
|
|
24
|
+
export declare function useSuiClientInfiniteQuery<T extends keyof SuiRpcPaginatedMethods, TData = InfiniteData<SuiRpcPaginatedMethods[T]['result']>>(method: T, params: SuiRpcPaginatedMethods[T]['params'], { queryKey, enabled, ...options }?: UseSuiClientInfiniteQueryOptions<T, TData>): UseInfiniteQueryResult<TData, Error>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useSuiClientInfiniteQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuiClientInfiniteQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useSuiClientInfiniteQuery.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACX,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,UAAU,eAAe;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,yBAAyB,GAAG;KACtC,CAAC,IAAI,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAC1D,KAAK,EAAE,GAAG,KACN,OAAO,CAAC,eAAe,CAAC,GAC1B,CAAC,GACD,KAAK;CACR,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAE1B,MAAM,MAAM,sBAAsB,GAAG;KACnC,CAAC,IAAI,yBAAyB,GAAG,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAC7D,KAAK,EAAE,MAAM,MAAM,KACf,OAAO,CACX,MAAM,MAAM,SAAS;QAAE,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;KAAE,CACvF,GACE;QACA,IAAI,EAAE,CAAC,CAAC;QACR,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KACf,GACA,KAAK;CACR,CAAC;AAEF,MAAM,MAAM,gCAAgC,CAC3C,CAAC,SAAS,MAAM,sBAAsB,EACtC,KAAK,IACF,SAAS,CACZ,IAAI,CACH,uBAAuB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EACrF,SAAS,GAAG,kBAAkB,GAAG,kBAAkB,CACnD,EACD,UAAU,CACV,CAAC;AAEF,wBAAgB,yBAAyB,CACxC,CAAC,SAAS,MAAM,sBAAsB,EACtC,KAAK,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAEzD,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAC3C,EACC,QAAa,EACb,OAAkB,EAClB,GAAG,OAAO,EACV,GAAE,gCAAgC,CAAC,CAAC,EAAE,KAAK,CAAM,GAChD,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,CAgBtC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import type { SuiRpcMethods } from './useSuiClientQuery.js';
|
|
3
|
+
export type UseSuiClientMutationOptions<T extends keyof SuiRpcMethods> = Omit<UseMutationOptions<SuiRpcMethods[T]['result'], Error, SuiRpcMethods[T]['params'], unknown[]>, 'mutationFn'>;
|
|
4
|
+
export declare function useSuiClientMutation<T extends keyof SuiRpcMethods>(method: T, options?: UseSuiClientMutationOptions<T>): UseMutationResult<SuiRpcMethods[T]['result'], Error, SuiRpcMethods[T]['params'], unknown[]>;
|
|
5
|
+
//# sourceMappingURL=useSuiClientMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuiClientMutation.d.ts","sourceRoot":"","sources":["../../src/hooks/useSuiClientMutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAInF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,MAAM,aAAa,IAAI,IAAI,CAC5E,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,EAC5F,YAAY,CACZ,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,aAAa,EACjE,MAAM,EAAE,CAAC,EACT,OAAO,GAAE,2BAA2B,CAAC,CAAC,CAAM,GAC1C,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAS7F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { SuiRpcMethods, UseSuiClientQueryOptions } from './useSuiClientQuery.js';
|
|
3
|
+
type SuiClientQueryOptions = SuiRpcMethods[keyof SuiRpcMethods] extends infer Method ? Method extends {
|
|
4
|
+
name: infer M extends keyof SuiRpcMethods;
|
|
5
|
+
params?: infer P;
|
|
6
|
+
} ? undefined extends P ? {
|
|
7
|
+
method: M;
|
|
8
|
+
params?: P;
|
|
9
|
+
options?: UseSuiClientQueryOptions<M, unknown>;
|
|
10
|
+
} : {
|
|
11
|
+
method: M;
|
|
12
|
+
params: P;
|
|
13
|
+
options?: UseSuiClientQueryOptions<M, unknown>;
|
|
14
|
+
} : never : never;
|
|
15
|
+
export type UseSuiClientQueriesResults<Args extends readonly SuiClientQueryOptions[]> = {
|
|
16
|
+
-readonly [K in keyof Args]: Args[K] extends {
|
|
17
|
+
method: infer M extends keyof SuiRpcMethods;
|
|
18
|
+
readonly options?: {
|
|
19
|
+
select?: (...args: any[]) => infer R;
|
|
20
|
+
} | object;
|
|
21
|
+
} ? UseQueryResult<unknown extends R ? SuiRpcMethods[M]['result'] : R> : never;
|
|
22
|
+
};
|
|
23
|
+
export declare function useSuiClientQueries<const Queries extends readonly SuiClientQueryOptions[], Results = UseSuiClientQueriesResults<Queries>>({ queries, combine, }: {
|
|
24
|
+
queries: Queries;
|
|
25
|
+
combine?: (results: UseSuiClientQueriesResults<Queries>) => Results;
|
|
26
|
+
}): Results;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=useSuiClientQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuiClientQueries.d.ts","sourceRoot":"","sources":["../../src/hooks/useSuiClientQueries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEtF,KAAK,qBAAqB,GAAG,aAAa,CAAC,MAAM,aAAa,CAAC,SAAS,MAAM,MAAM,GACjF,MAAM,SAAS;IACf,IAAI,EAAE,MAAM,CAAC,SAAS,MAAM,aAAa,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;CACjB,GACC,SAAS,SAAS,CAAC,GAClB;IACA,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,OAAO,CAAC,EAAE,wBAAwB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAC/C,GACA;IACA,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,EAAE,CAAC,CAAC;IACV,OAAO,CAAC,EAAE,wBAAwB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAC/C,GACD,KAAK,GACN,KAAK,CAAC;AAET,MAAM,MAAM,0BAA0B,CAAC,IAAI,SAAS,SAAS,qBAAqB,EAAE,IAAI;IACvF,CAAC,UAAU,CAAC,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS;QAC5C,MAAM,EAAE,MAAM,CAAC,SAAS,MAAM,aAAa,CAAC;QAC5C,QAAQ,CAAC,OAAO,CAAC,EACd;YACA,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,CAAC;SACpC,GACD,MAAM,CAAC;KACV,GACE,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAClE,KAAK;CACR,CAAC;AAEF,wBAAgB,mBAAmB,CAClC,KAAK,CAAC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EACtD,OAAO,GAAG,0BAA0B,CAAC,OAAO,CAAC,EAC5C,EACD,OAAO,EACP,OAAO,GACP,EAAE;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,0BAA0B,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC;CACpE,GAAG,OAAO,CAiBV"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
2
|
+
import type { UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import type { PartialBy } from '../types/utilityTypes.js';
|
|
4
|
+
export type SuiRpcMethodName = {
|
|
5
|
+
[K in keyof SuiJsonRpcClient]: SuiJsonRpcClient[K] extends ((input: any) => Promise<any>) | (() => Promise<any>) ? K : never;
|
|
6
|
+
}[keyof SuiJsonRpcClient];
|
|
7
|
+
export type SuiRpcMethods = {
|
|
8
|
+
[K in SuiRpcMethodName]: SuiJsonRpcClient[K] extends (input: infer P) => Promise<infer R> ? {
|
|
9
|
+
name: K;
|
|
10
|
+
result: R;
|
|
11
|
+
params: P;
|
|
12
|
+
} : SuiJsonRpcClient[K] extends () => Promise<infer R> ? {
|
|
13
|
+
name: K;
|
|
14
|
+
result: R;
|
|
15
|
+
params: undefined | object;
|
|
16
|
+
} : never;
|
|
17
|
+
};
|
|
18
|
+
export type UseSuiClientQueryOptions<T extends keyof SuiRpcMethods, TData> = PartialBy<Omit<UseQueryOptions<SuiRpcMethods[T]['result'], Error, TData, unknown[]>, 'queryFn'>, 'queryKey'>;
|
|
19
|
+
export type GetSuiClientQueryOptions<T extends keyof SuiRpcMethods> = {
|
|
20
|
+
client: SuiJsonRpcClient;
|
|
21
|
+
network: string;
|
|
22
|
+
method: T;
|
|
23
|
+
options?: PartialBy<Omit<UndefinedInitialDataOptions<SuiRpcMethods[T]['result']>, 'queryFn'>, 'queryKey'>;
|
|
24
|
+
} & (undefined extends SuiRpcMethods[T]['params'] ? {
|
|
25
|
+
params?: SuiRpcMethods[T]['params'];
|
|
26
|
+
} : {
|
|
27
|
+
params: SuiRpcMethods[T]['params'];
|
|
28
|
+
});
|
|
29
|
+
export declare function getSuiClientQuery<T extends keyof SuiRpcMethods>({ client, network, method, params, options, }: GetSuiClientQueryOptions<T>): import("@tanstack/react-query").OmitKeyof<UseQueryOptions<SuiRpcMethods[T]["result"], Error, SuiRpcMethods[T]["result"], readonly unknown[]>, "queryFn"> & {
|
|
30
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<SuiRpcMethods[T]["result"], readonly unknown[], never> | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
queryKey: readonly unknown[] & {
|
|
33
|
+
[dataTagSymbol]: SuiRpcMethods[T]["result"];
|
|
34
|
+
[dataTagErrorSymbol]: Error;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare function useSuiClientQuery<T extends keyof SuiRpcMethods, TData = SuiRpcMethods[T]['result']>(...args: undefined extends SuiRpcMethods[T]['params'] ? [method: T, params?: SuiRpcMethods[T]['params'], options?: UseSuiClientQueryOptions<T, TData>] : [method: T, params: SuiRpcMethods[T]['params'], options?: UseSuiClientQueryOptions<T, TData>]): UseQueryResult<TData, Error>;
|
|
38
|
+
export declare function useSuiClientSuspenseQuery<T extends keyof SuiRpcMethods, TData = SuiRpcMethods[T]['result']>(...args: undefined extends SuiRpcMethods[T]['params'] ? [method: T, params?: SuiRpcMethods[T]['params'], options?: UndefinedInitialDataOptions<TData>] : [method: T, params: SuiRpcMethods[T]['params'], options?: UndefinedInitialDataOptions<TData>]): import("@tanstack/react-query").UseSuspenseQueryResult<SuiRpcMethods[T]["result"], Error>;
|
|
39
|
+
//# sourceMappingURL=useSuiClientQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuiClientQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useSuiClientQuery.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccounts.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useAccounts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,aAAa,EAAE,CAEtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutoConnectWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useAutoConnectWallet.ts"],"names":[],"mappings":"AAYA,wBAAgB,oBAAoB,IAAI,UAAU,GAAG,MAAM,GAAG,WAAW,CAgFxE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StandardConnectInput, StandardConnectOutput, WalletWithRequiredFeatures } from '@mysten/wallet-standard';
|
|
2
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
type ConnectWalletArgs = {
|
|
4
|
+
/** The wallet to connect to. */
|
|
5
|
+
wallet: WalletWithRequiredFeatures;
|
|
6
|
+
/** An optional account address to connect to. Defaults to the first authorized account. */
|
|
7
|
+
accountAddress?: string;
|
|
8
|
+
} & StandardConnectInput;
|
|
9
|
+
type ConnectWalletResult = StandardConnectOutput;
|
|
10
|
+
type UseConnectWalletMutationOptions = Omit<UseMutationOptions<ConnectWalletResult, Error, ConnectWalletArgs, unknown>, 'mutationFn'>;
|
|
11
|
+
/**
|
|
12
|
+
* Mutation hook for establishing a connection to a specific wallet.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useConnectWallet({ mutationKey, ...mutationOptions }?: UseConnectWalletMutationOptions): UseMutationResult<ConnectWalletResult, Error, ConnectWalletArgs, unknown>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=useConnectWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useConnectWallet.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,oBAAoB,EACpB,qBAAqB,EAErB,0BAA0B,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAMnF,KAAK,iBAAiB,GAAG;IACxB,gCAAgC;IAChC,MAAM,EAAE,0BAA0B,CAAC;IAEnC,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,oBAAoB,CAAC;AAEzB,KAAK,mBAAmB,GAAG,qBAAqB,CAAC;AAEjD,KAAK,+BAA+B,GAAG,IAAI,CAC1C,kBAAkB,CAAC,mBAAmB,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAC1E,YAAY,CACZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAChC,WAAW,EACX,GAAG,eAAe,EAClB,GAAE,+BAAoC,GAAG,iBAAiB,CAC1D,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,OAAO,CACP,CA+BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useCurrentAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,GAAG,IAAI,CAExD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the wallet that is currently connected to the dApp, if one exists.
|
|
3
|
+
*/
|
|
4
|
+
export declare function useCurrentWallet(): {
|
|
5
|
+
readonly connectionStatus: "connecting";
|
|
6
|
+
readonly currentWallet: null;
|
|
7
|
+
readonly isDisconnected: false;
|
|
8
|
+
readonly isConnecting: true;
|
|
9
|
+
readonly isConnected: false;
|
|
10
|
+
readonly supportedIntents: readonly [];
|
|
11
|
+
} | {
|
|
12
|
+
readonly connectionStatus: "disconnected";
|
|
13
|
+
readonly currentWallet: null;
|
|
14
|
+
readonly isDisconnected: true;
|
|
15
|
+
readonly isConnecting: false;
|
|
16
|
+
readonly isConnected: false;
|
|
17
|
+
readonly supportedIntents: readonly [];
|
|
18
|
+
} | {
|
|
19
|
+
readonly connectionStatus: "connected";
|
|
20
|
+
readonly currentWallet: import("@mysten/wallet-standard").WalletWithRequiredFeatures;
|
|
21
|
+
readonly isDisconnected: false;
|
|
22
|
+
readonly isConnecting: false;
|
|
23
|
+
readonly isConnected: true;
|
|
24
|
+
readonly supportedIntents: string[];
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useCurrentWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useCurrentWallet.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAmC/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { WalletNotConnectedError } from '../../errors/walletErrors.js';
|
|
3
|
+
type UseDisconnectWalletError = WalletNotConnectedError | Error;
|
|
4
|
+
type UseDisconnectWalletMutationOptions = Omit<UseMutationOptions<void, UseDisconnectWalletError, void, unknown>, 'mutationFn'>;
|
|
5
|
+
/**
|
|
6
|
+
* Mutation hook for disconnecting from an active wallet connection, if currently connected.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useDisconnectWallet({ mutationKey, ...mutationOptions }?: UseDisconnectWalletMutationOptions): UseMutationResult<void, UseDisconnectWalletError, void>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=useDisconnectWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDisconnectWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useDisconnectWallet.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAInF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAIvE,KAAK,wBAAwB,GAAG,uBAAuB,GAAG,KAAK,CAAC;AAEhE,KAAK,kCAAkC,GAAG,IAAI,CAC7C,kBAAkB,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,OAAO,CAAC,EACjE,YAAY,CACZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EACnC,WAAW,EACX,GAAG,eAAe,EAClB,GAAE,kCAAuC,GAAG,iBAAiB,CAC7D,IAAI,EACJ,wBAAwB,EACxB,IAAI,CACJ,CAwBA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Transaction } from '@mysten/sui/transactions';
|
|
2
|
+
import type { SuiSignAndExecuteTransactionInput, SuiSignAndExecuteTransactionOutput } from '@mysten/wallet-standard';
|
|
3
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
4
|
+
import { WalletFeatureNotSupportedError, WalletNoAccountSelectedError, WalletNotConnectedError } from '../../errors/walletErrors.js';
|
|
5
|
+
import type { PartialBy } from '../../types/utilityTypes.js';
|
|
6
|
+
type UseSignAndExecuteTransactionArgs = PartialBy<Omit<SuiSignAndExecuteTransactionInput, 'transaction'>, 'account' | 'chain'> & {
|
|
7
|
+
transaction: Transaction | string;
|
|
8
|
+
};
|
|
9
|
+
type UseSignAndExecuteTransactionResult = SuiSignAndExecuteTransactionOutput;
|
|
10
|
+
type UseSignAndExecuteTransactionError = WalletFeatureNotSupportedError | WalletNoAccountSelectedError | WalletNotConnectedError | Error;
|
|
11
|
+
type ExecuteTransactionResult = {
|
|
12
|
+
digest: string;
|
|
13
|
+
rawEffects?: number[];
|
|
14
|
+
} | {
|
|
15
|
+
effects?: {
|
|
16
|
+
bcs?: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type UseSignAndExecuteTransactionMutationOptions<Result extends ExecuteTransactionResult> = Omit<UseMutationOptions<Result, UseSignAndExecuteTransactionError, UseSignAndExecuteTransactionArgs, unknown>, 'mutationFn'> & {
|
|
20
|
+
execute?: ({ bytes, signature }: {
|
|
21
|
+
bytes: string;
|
|
22
|
+
signature: string;
|
|
23
|
+
}) => Promise<Result>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Mutation hook for prompting the user to sign and execute a transaction.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useSignAndExecuteTransaction<Result extends ExecuteTransactionResult = UseSignAndExecuteTransactionResult>({ mutationKey, execute, ...mutationOptions }?: UseSignAndExecuteTransactionMutationOptions<Result>): UseMutationResult<Result, UseSignAndExecuteTransactionError, UseSignAndExecuteTransactionArgs>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useSignAndExecuteTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignAndExecuteTransaction.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useSignAndExecuteTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EACX,iCAAiC,EACjC,kCAAkC,EAClC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAInF,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAK7D,KAAK,gCAAgC,GAAG,SAAS,CAChD,IAAI,CAAC,iCAAiC,EAAE,aAAa,CAAC,EACtD,SAAS,GAAG,OAAO,CACnB,GAAG;IACH,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,KAAK,kCAAkC,GAAG,kCAAkC,CAAC;AAE7E,KAAK,iCAAiC,GACnC,8BAA8B,GAC9B,4BAA4B,GAC5B,uBAAuB,GACvB,KAAK,CAAC;AAET,KAAK,wBAAwB,GAC1B;IACA,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,GACD;IACA,OAAO,CAAC,EAAE;QACT,GAAG,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;CACD,CAAC;AAEL,KAAK,2CAA2C,CAAC,MAAM,SAAS,wBAAwB,IAAI,IAAI,CAC/F,kBAAkB,CACjB,MAAM,EACN,iCAAiC,EACjC,gCAAgC,EAChC,OAAO,CACP,EACD,YAAY,CACZ,GAAG;IACH,OAAO,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1F,CAAC;AAEF;;GAEG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,SAAS,wBAAwB,GAAG,kCAAkC,EAC3E,EACD,WAAW,EACX,OAAO,EACP,GAAG,eAAe,EAClB,GAAE,2CAA2C,CAAC,MAAM,CAAM,GAAG,iBAAiB,CAC9E,MAAM,EACN,iCAAiC,EACjC,gCAAgC,CAChC,CAiFA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SuiSignPersonalMessageInput, SuiSignPersonalMessageOutput } from '@mysten/wallet-standard';
|
|
2
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
import { WalletFeatureNotSupportedError, WalletNoAccountSelectedError, WalletNotConnectedError } from '../..//errors/walletErrors.js';
|
|
4
|
+
import type { PartialBy } from '../../types/utilityTypes.js';
|
|
5
|
+
type UseSignPersonalMessageArgs = PartialBy<SuiSignPersonalMessageInput, 'account' | 'chain'>;
|
|
6
|
+
type UseSignPersonalMessageResult = SuiSignPersonalMessageOutput;
|
|
7
|
+
type UseSignPersonalMessageError = WalletFeatureNotSupportedError | WalletNoAccountSelectedError | WalletNotConnectedError | Error;
|
|
8
|
+
type UseSignPersonalMessageMutationOptions = Omit<UseMutationOptions<UseSignPersonalMessageResult, UseSignPersonalMessageError, UseSignPersonalMessageArgs, unknown>, 'mutationFn'>;
|
|
9
|
+
/**
|
|
10
|
+
* Mutation hook for prompting the user to sign a message.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSignPersonalMessage({ mutationKey, ...mutationOptions }?: UseSignPersonalMessageMutationOptions): UseMutationResult<UseSignPersonalMessageResult, UseSignPersonalMessageError, UseSignPersonalMessageArgs>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useSignPersonalMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignPersonalMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useSignPersonalMessage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,2BAA2B,EAC3B,4BAA4B,EAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGnF,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAK7D,KAAK,0BAA0B,GAAG,SAAS,CAAC,2BAA2B,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;AAE9F,KAAK,4BAA4B,GAAG,4BAA4B,CAAC;AAEjE,KAAK,2BAA2B,GAC7B,8BAA8B,GAC9B,4BAA4B,GAC5B,uBAAuB,GACvB,KAAK,CAAC;AAET,KAAK,qCAAqC,GAAG,IAAI,CAChD,kBAAkB,CACjB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,OAAO,CACP,EACD,YAAY,CACZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,WAAW,EACX,GAAG,eAAe,EAClB,GAAE,qCAA0C,GAAG,iBAAiB,CAChE,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,CAC1B,CAgDA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Transaction } from '@mysten/sui/transactions';
|
|
2
|
+
import type { SignedTransaction, SuiSignTransactionInput } from '@mysten/wallet-standard';
|
|
3
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
4
|
+
import { WalletFeatureNotSupportedError, WalletNoAccountSelectedError, WalletNotConnectedError } from '../../errors/walletErrors.js';
|
|
5
|
+
import type { PartialBy } from '../../types/utilityTypes.js';
|
|
6
|
+
type UseSignTransactionArgs = PartialBy<Omit<SuiSignTransactionInput, 'transaction'>, 'account' | 'chain'> & {
|
|
7
|
+
transaction: Transaction | string;
|
|
8
|
+
};
|
|
9
|
+
interface UseSignTransactionResult extends SignedTransaction {
|
|
10
|
+
}
|
|
11
|
+
type UseSignTransactionError = WalletFeatureNotSupportedError | WalletNoAccountSelectedError | WalletNotConnectedError | Error;
|
|
12
|
+
type UseSignTransactionMutationOptions = Omit<UseMutationOptions<UseSignTransactionResult, UseSignTransactionError, UseSignTransactionArgs, unknown>, 'mutationFn'>;
|
|
13
|
+
/**
|
|
14
|
+
* Mutation hook for prompting the user to sign a transaction.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useSignTransaction({ mutationKey, ...mutationOptions }?: UseSignTransactionMutationOptions): UseMutationResult<UseSignTransactionResult, UseSignTransactionError, UseSignTransactionArgs>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useSignTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useSignTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAInF,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAK7D,KAAK,sBAAsB,GAAG,SAAS,CACtC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,EAC5C,SAAS,GAAG,OAAO,CACnB,GAAG;IACH,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,UAAU,wBAAyB,SAAQ,iBAAiB;CAAG;AAE/D,KAAK,uBAAuB,GACzB,8BAA8B,GAC9B,4BAA4B,GAC5B,uBAAuB,GACvB,KAAK,CAAC;AAET,KAAK,iCAAiC,GAAG,IAAI,CAC5C,kBAAkB,CACjB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,OAAO,CACP,EACD,YAAY,CACZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAClC,WAAW,EACX,GAAG,eAAe,EAClB,GAAE,iCAAsC,GAAG,iBAAiB,CAC5D,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,CACtB,CAwDA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSlushWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useSlushWallet.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,iBAAiB,QA8BxD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WalletAccount } from '@mysten/wallet-standard';
|
|
2
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
import { WalletAccountNotFoundError, WalletNotConnectedError } from '../../errors/walletErrors.js';
|
|
4
|
+
type SwitchAccountArgs = {
|
|
5
|
+
account: WalletAccount;
|
|
6
|
+
};
|
|
7
|
+
type SwitchAccountResult = void;
|
|
8
|
+
type UseSwitchAccountError = WalletNotConnectedError | WalletAccountNotFoundError | Error;
|
|
9
|
+
type UseSwitchAccountMutationOptions = Omit<UseMutationOptions<SwitchAccountResult, UseSwitchAccountError, SwitchAccountArgs, unknown>, 'mutationFn'>;
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for switching to a specific wallet account.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSwitchAccount({ mutationKey, ...mutationOptions }?: UseSwitchAccountMutationOptions): UseMutationResult<SwitchAccountResult, UseSwitchAccountError, SwitchAccountArgs>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useSwitchAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwitchAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useSwitchAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAInF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAInG,KAAK,iBAAiB,GAAG;IACxB,OAAO,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,KAAK,mBAAmB,GAAG,IAAI,CAAC;AAEhC,KAAK,qBAAqB,GAAG,uBAAuB,GAAG,0BAA0B,GAAG,KAAK,CAAC;AAE1F,KAAK,+BAA+B,GAAG,IAAI,CAC1C,kBAAkB,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAC1F,YAAY,CACZ,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAChC,WAAW,EACX,GAAG,eAAe,EAClB,GAAE,+BAAoC,GAAG,iBAAiB,CAC1D,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,CACjB,CAwBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUnsafeBurnerWallet.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useUnsafeBurnerWallet.ts"],"names":[],"mappings":"AA2BA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAUrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletPropertiesChanged.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useWalletPropertiesChanged.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,0BAA0B,SAiBzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useWalletStore.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,wBAAgB,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC,CAQvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWallets.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useWallets.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,UAAU,mEAEzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WalletWithRequiredFeatures } from '@mysten/wallet-standard';
|
|
2
|
+
/**
|
|
3
|
+
* Internal hook for easily handling the addition and removal of new wallets.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useWalletsChanged(preferredWallets: string[], walletFilter?: (wallet: WalletWithRequiredFeatures) => boolean): void;
|
|
6
|
+
//# sourceMappingURL=useWalletsChanged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletsChanged.d.ts","sourceRoot":"","sources":["../../../src/hooks/wallet/useWalletsChanged.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAO1E;;GAEG;AACH,wBAAgB,iBAAiB,CAChC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,OAAO,QAyB9D"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from './components/connect-modal/ConnectModal.js';
|
|
2
|
+
export * from './components/ConnectButton.js';
|
|
3
|
+
export * from './components/SuiClientProvider.js';
|
|
4
|
+
export * from './components/WalletProvider.js';
|
|
5
|
+
export * from './hooks/networkConfig.js';
|
|
6
|
+
export * from './hooks/useResolveSuiNSNames.js';
|
|
7
|
+
export * from './hooks/useSuiClient.js';
|
|
8
|
+
export * from './hooks/useSuiClientInfiniteQuery.js';
|
|
9
|
+
export * from './hooks/useSuiClientMutation.js';
|
|
10
|
+
export * from './hooks/useSuiClientQuery.js';
|
|
11
|
+
export * from './hooks/useSuiClientQueries.js';
|
|
12
|
+
export * from './hooks/wallet/useAccounts.js';
|
|
13
|
+
export * from './hooks/wallet/useAutoConnectWallet.js';
|
|
14
|
+
export * from './hooks/wallet/useConnectWallet.js';
|
|
15
|
+
export * from './hooks/wallet/useCurrentAccount.js';
|
|
16
|
+
export * from './hooks/wallet/useCurrentWallet.js';
|
|
17
|
+
export * from './hooks/wallet/useDisconnectWallet.js';
|
|
18
|
+
export * from './hooks/wallet/useSignAndExecuteTransaction.js';
|
|
19
|
+
export * from './hooks/wallet/useSignPersonalMessage.js';
|
|
20
|
+
export * from './hooks/wallet/useSignTransaction.js';
|
|
21
|
+
export * from './hooks/wallet/useSwitchAccount.js';
|
|
22
|
+
export * from './hooks/wallet/useWallets.js';
|
|
23
|
+
export * from './themes/lightTheme.js';
|
|
24
|
+
export * from './types.js';
|
|
25
|
+
export type { Theme, ThemeVars, DynamicTheme } from './themes/themeContract.js';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAE3B,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightTheme.d.ts","sourceRoot":"","sources":["../../src/themes/lightTheme.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,UAAU,EAAE,SAyDxB,CAAC"}
|