Skip to content

Commit 511b01c

Browse files
committed
Proper exports
1 parent 1078fae commit 511b01c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

packages/react/src/hooks/account/wallet/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './use-claim-namespace'
12
export * from './use-create-remote-account'
23
export * from './use-create-sub-account'
34
export * from './use-deposit'
@@ -6,8 +7,9 @@ export * from './use-execute'
67
export * from './use-execute-on-remote'
78
export * from './use-execute-on-remote-module'
89
export * from './use-execute-remote'
9-
export * from './use-send-funds-to-remote'
10+
export * from './use-install-modules'
1011
export * from './use-request-remote-funds'
12+
export * from './use-send-funds-to-remote'
1113
export * from './use-update-info'
1214
export * from './use-update-settings'
1315
export * from './use-update-status'

packages/react/src/hooks/account/wallet/use-claim-namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type UseClaimNamespaceParameters = {
2525
}
2626

2727
/**
28-
* Execute a msg as the account.
28+
* Claim a namespace from version control on the account.
2929
* @param accountId
3030
* @param chainName
3131
* @param mutation

packages/react/src/hooks/account/wallet/use-install-modules.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ import {
99
UseMutationReturnType,
1010
} from '../../../types/queries'
1111

12-
type ExecuteMutation = ExtractArgsFromParameters<
12+
type InstallModulesMutation = ExtractArgsFromParameters<
1313
Parameters<AccountWalletClient['installModules']>[0]
1414
>
1515

16-
export type UseExecuteParameters = {
16+
export type UseInstallModulesParameters = {
1717
accountId: AccountId | undefined
1818
chainName: string | undefined
19-
mutation?: UseMutationParameters<ExecuteResult, unknown, ExecuteMutation>
19+
mutation?: UseMutationParameters<
20+
ExecuteResult,
21+
unknown,
22+
InstallModulesMutation
23+
>
2024
}
2125

2226
/**
@@ -29,10 +33,10 @@ export function useInstallModules({
2933
accountId,
3034
chainName,
3135
mutation,
32-
}: UseExecuteParameters): UseMutationReturnType<
36+
}: UseInstallModulesParameters): UseMutationReturnType<
3337
ExecuteResult,
3438
unknown,
35-
ExecuteMutation
39+
InstallModulesMutation
3640
> {
3741
const config = useConfig()
3842
const accountClient = config.useAccountWalletClient({

0 commit comments

Comments
 (0)