Skip to content

Commit

Permalink
change type
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Dec 27, 2024
1 parent c8d56d2 commit 59b1f60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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 = (
selectTokens: Map<string, string>,
isLimitStrat: boolean,
allFieldDefinitions: GuiFieldDefinition[],
gui: DotrainOrderGui,
allDeposits: GuiDeposit[],
allDeposits: TokenDeposit[],
allTokenInputs: Vault[],
allTokenOutputs: Vault[],
inputVaultIds: string[],
Expand Down
8 changes: 4 additions & 4 deletions packages/ui-components/src/lib/types/wizardSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -28,7 +28,7 @@ export interface FieldStep extends BaseWizardStep {

export interface DepositStep extends BaseWizardStep {
type: 'deposits';
deposit: GuiDeposit;
deposit: TokenDeposit;
gui: DotrainOrderGui;
tokenInfos: TokenInfos;
}
Expand All @@ -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;

0 comments on commit 59b1f60

Please sign in to comment.