Skip to content

Commit c24cf2b

Browse files
committed
chore(deps): update @inverter-network/sdk to version 0.5.3 and adjust type definitions in use-module-multicall hook
1 parent 0abb970 commit c24cf2b

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"dependencies": {
7777
"@api3/logos": "^0.2.18",
7878
"@inverter-network/graphql": "^0.9.31",
79-
"@inverter-network/sdk": "0.5.2",
79+
"@inverter-network/sdk": "0.5.3",
8080
"debug": "^4.4.0",
8181
"immer": "^10.1.1",
8282
"zod": "^3.23.8",

src/hooks/use-module-multicall.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type {
22
MethodOptions,
3-
ModuleMulticallCall,
43
ModuleMulticallSimulateReturnType,
54
ModuleMulticallWriteReturnType,
5+
SingleModuleCall,
66
} from '@inverter-network/sdk'
77
import type {
88
UseMutationOptions,
@@ -34,8 +34,8 @@ export type UseModuleMulticallParams<
3434
| undefined,
3535
Error,
3636
{
37-
write: { call: ModuleMulticallCall; options?: MethodOptions }
38-
simulate: { call: ModuleMulticallCall }
37+
write: { calls: SingleModuleCall[]; options?: MethodOptions }
38+
simulate: { calls: SingleModuleCall[] }
3939
}[TMethodKind]
4040
>
4141
} & (
@@ -62,8 +62,8 @@ export type UseModuleMulticallReturnType<
6262
| undefined,
6363
Error,
6464
{
65-
write: { call: ModuleMulticallCall; options?: MethodOptions }
66-
simulate: { call: ModuleMulticallCall }
65+
write: { calls: SingleModuleCall[]; options?: MethodOptions }
66+
simulate: { calls: SingleModuleCall[] }
6767
}[TMethodKind]
6868
>
6969

@@ -106,7 +106,7 @@ export function useModuleMulticall<
106106
return (await inverter.data!.moduleMulticall[kind](
107107
{
108108
...rest,
109-
call: params.call,
109+
calls: params.calls,
110110
},
111111
...('options' in params ? [params.options] : [])
112112
)) as {

0 commit comments

Comments
 (0)