@@ -5,8 +5,8 @@ import type { UseQueryOptions } from '@tanstack/react-query'
55import { useQuery } from '@tanstack/react-query'
66import { ERC20_ABI } from '@inverter-network/sdk'
77import type {
8- Extras ,
9- GetModuleReturn ,
8+ TagConfig ,
9+ GetModuleReturnType ,
1010 PopWalletClient ,
1111} from '@inverter-network/sdk'
1212import type { Except } from 'type-fest-4'
@@ -15,10 +15,10 @@ import { useInverter } from './use-inverter'
1515export type UseGetModuleParams < T extends ModuleName > = {
1616 address ?: string | `0x${string } `
1717 name : T
18- extras ?: Extras
18+ tagConfig ?: TagConfig
1919 dependencies ?: any [ ]
2020 options ?: Except <
21- UseQueryOptions < GetModuleReturn < T , PopWalletClient > | undefined , Error > ,
21+ UseQueryOptions < GetModuleReturnType < T , PopWalletClient > | undefined , Error > ,
2222 'queryKey' | 'queryFn'
2323 >
2424}
@@ -28,13 +28,13 @@ export type UseGetModuleReturnType = ReturnType<typeof useGetModule>
2828export const useGetModule = < T extends ModuleName > ( {
2929 address,
3030 name,
31- extras ,
31+ tagConfig ,
3232 options = {
3333 enabled : true ,
3434 } ,
3535 dependencies = [ ] ,
3636} : UseGetModuleParams < T > ) => {
37- let { decimals, walletAddress, ...restExtras } = extras || { }
37+ let { decimals, walletAddress, ...restTagConfig } = tagConfig || { }
3838 const inverter = useInverter ( )
3939 const zeroXAddress = address as `0x${string } `
4040
@@ -108,10 +108,10 @@ export const useGetModule = <T extends ModuleName>({
108108 const data = inverter . data ! . getModule ( {
109109 name,
110110 address : zeroXAddress ,
111- extras : {
111+ tagConfig : {
112112 decimals,
113113 defaultToken,
114- ...restExtras ,
114+ ...restTagConfig ,
115115 } ,
116116 } )
117117
0 commit comments