From 59b1f60a082efe71bd8dc72bca82448abef80332 Mon Sep 17 00:00:00 2001 From: Jamie Harding Date: Fri, 27 Dec 2024 15:09:49 +0100 Subject: [PATCH] change type --- .../components/deployment/wizard/getDeploymentSteps.ts | 4 ++-- packages/ui-components/src/lib/types/wizardSteps.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ui-components/src/lib/components/deployment/wizard/getDeploymentSteps.ts b/packages/ui-components/src/lib/components/deployment/wizard/getDeploymentSteps.ts index ee64cfb25..5f55f31f4 100644 --- a/packages/ui-components/src/lib/components/deployment/wizard/getDeploymentSteps.ts +++ b/packages/ui-components/src/lib/components/deployment/wizard/getDeploymentSteps.ts @@ -4,7 +4,7 @@ import type { DepositStep, FieldStep, TokenInputStep } from "$lib/types/wizardSt import type { SelectTokenStep } from "$lib/types/wizardSteps"; -import type { DotrainOrderGui, GuiFieldDefinition, TokenInfos, Vault , GuiDeposit} from '@rainlanguage/orderbook/js_api'; +import type { DotrainOrderGui, GuiFieldDefinition, TokenInfos, Vault, TokenDeposit} from '@rainlanguage/orderbook/js_api'; import type { WizardStep } from '../../../types/wizardSteps'; export const getDeploymentSteps = ( @@ -12,7 +12,7 @@ export const getDeploymentSteps = ( isLimitStrat: boolean, allFieldDefinitions: GuiFieldDefinition[], gui: DotrainOrderGui, - allDeposits: GuiDeposit[], + allDeposits: TokenDeposit[], allTokenInputs: Vault[], allTokenOutputs: Vault[], inputVaultIds: string[], diff --git a/packages/ui-components/src/lib/types/wizardSteps.ts b/packages/ui-components/src/lib/types/wizardSteps.ts index 5162f33ef..0729e498e 100644 --- a/packages/ui-components/src/lib/types/wizardSteps.ts +++ b/packages/ui-components/src/lib/types/wizardSteps.ts @@ -2,9 +2,9 @@ import type { DotrainOrderGui, SelectTokens, GuiFieldDefinition, - GuiDeposit, TokenInfos, - Vault + Vault, + TokenDeposit } from '@rainlanguage/orderbook/js_api'; export type StepType = 'tokens' | 'fields' | 'deposits' | 'tokenInput' | 'tokenOutput'; @@ -28,7 +28,7 @@ export interface FieldStep extends BaseWizardStep { export interface DepositStep extends BaseWizardStep { type: 'deposits'; - deposit: GuiDeposit; + deposit: TokenDeposit; gui: DotrainOrderGui; tokenInfos: TokenInfos; } @@ -51,4 +51,4 @@ export interface TokenOutputStep extends BaseWizardStep { outputVaultIds: string[]; } -export type WizardStep = TokenStep | FieldStep | DepositStep | TokenInputStep | TokenOutputStep; +export type WizardStep = SelectTokenStep | FieldStep | DepositStep | TokenInputStep | TokenOutputStep;