Skip to content

Commit

Permalink
Delete unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 24, 2023
1 parent e66024c commit fa980b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 1 addition & 7 deletions actions/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,7 @@ export function replacer(_key: any, value: any) {
}
}

export enum ValidationResult {
Success,
Failed,
FailedButIsExpected,
}

export interface ValidateOrderParams {
export interface PollingParams {
owner: string;
chainId: SupportedChainId;
conditionalOrderParams: ConditionalOrderParams;
Expand Down
5 changes: 2 additions & 3 deletions actions/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import {
PollResult,
PollResultCode,
} from "@cowprotocol/cow-sdk";
import { utils } from "ethers";

import { ValidateOrderParams } from "./model";
import { PollingParams } from "./model";

const ordersFactory = new ConditionalOrderFactory(
DEFAULT_CONDITIONAL_ORDER_REGSTRY
);

export async function pollConditionalOrder(
params: ValidateOrderParams
params: PollingParams
): Promise<PollResult | undefined> {
const { owner, chainId, conditionalOrderParams, provider } = params;

Expand Down

0 comments on commit fa980b0

Please sign in to comment.