Skip to content

Commit 8f8807d

Browse files
committed
chore(release): 0.4.0-alpha.11
1 parent 87f62d8 commit 8f8807d

7 files changed

Lines changed: 22 additions & 19 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@inverter-network/react",
33
"description": "INVERTER react",
4-
"version": "0.4.0-alpha.10",
4+
"version": "0.4.0-alpha.11",
55
"exports": {
66
".": {
77
"types": "./dist/types/index.d.ts",
@@ -79,7 +79,7 @@
7979
},
8080
"dependencies": {
8181
"@api3/logos": "^0.2.18",
82-
"@inverter-network/sdk": "0.4.0-alpha.9",
82+
"@inverter-network/sdk": "0.4.0-alpha.11",
8383
"@inverter-network/graphql": "^0.9.17",
8484
"@radix-ui/react-accordion": "^1.2.1",
8585
"@radix-ui/react-alert-dialog": "^1.1.2",

src/hooks/use-get-deploy-form.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useGetDeployStore } from '@/store'
55
import type { GetDeployFormStep, UseGetDeployFormProps } from '@/types'
66
import { isDeployForm } from '@/utils'
77
import type {
8-
DeploySchema,
8+
GetDeployWorkflowInputs,
99
FactoryType,
1010
RequestedModules,
1111
} from '@inverter-network/sdk'
@@ -39,7 +39,10 @@ export const useGetDeployForm = ({
3939
const availableFormSteps = (() => {
4040
if (!prepDeployment.data) return []
4141
const { optionalModules, ...rest } = prepDeployment.data
42-
.inputs as unknown as DeploySchema<RequestedModules, FactoryType>
42+
.inputs as unknown as GetDeployWorkflowInputs<
43+
RequestedModules,
44+
FactoryType
45+
>
4346

4447
const result = (
4548
Object.keys(prepDeployment.data.inputs) as GetDeployFormStep[]

src/hooks/use-get-deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const useGetDeploy = <
6464

6565
if (shouldResetForm) resetGetDeployForm?.()
6666

67-
return await inverter.data.getDeploy({
67+
return await inverter.data.deployWorkflow({
6868
requestedModules,
6969
factoryType,
7070
})

src/hooks/use-get-module.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type { UseQueryOptions } from '@tanstack/react-query'
55
import { useQuery } from '@tanstack/react-query'
66
import { ERC20_ABI } from '@inverter-network/sdk'
77
import type {
8-
Extras,
9-
GetModuleReturn,
8+
TagConfig,
9+
GetModuleReturnType,
1010
PopWalletClient,
1111
} from '@inverter-network/sdk'
1212
import type { Except } from 'type-fest-4'
@@ -15,10 +15,10 @@ import { useInverter } from './use-inverter'
1515
export 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>
2828
export 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

src/hooks/use-module-interaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use client'
22

33
import { useModuleInteractionStore } from '@/store'
4-
import type { GetModuleReturn } from '@inverter-network/sdk'
4+
import type { GetModuleReturnType } from '@inverter-network/sdk'
55

66
export const useModuleInteraction = (
7-
selectedModule: GetModuleReturn<any, any> | undefined
7+
selectedModule: GetModuleReturnType<any, any> | undefined
88
) => {
99
const {
1010
moduleInteractionMode,

src/hooks/use-workflow-interaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useModuleInteractionStore } from '@/store'
44
import type { UseWorkFlowReturnType } from './use-workflow'
55
import type { SelectedModuleType } from '@/types'
6-
import type { GetModuleReturn } from '@inverter-network/sdk'
6+
import type { GetModuleReturnType } from '@inverter-network/sdk'
77

88
export const useWorkflowInteraction = (
99
workflow: UseWorkFlowReturnType<any>
@@ -61,7 +61,7 @@ export const useWorkflowInteraction = (
6161
]
6262

6363
return workflow.data?.[key]?.[value]
64-
})()) as GetModuleReturn<any, any> | undefined
64+
})()) as GetModuleReturnType<any, any> | undefined
6565

6666
// set the selectedOptionalModuleIndex
6767
const setOptionalModule = (index: number) => {

0 commit comments

Comments
 (0)