diff --git a/actions/model.ts b/actions/model.ts index f534b41..04fc5bc 100644 --- a/actions/model.ts +++ b/actions/model.ts @@ -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; diff --git a/actions/poll.ts b/actions/poll.ts index fd6488b..9b91ae1 100644 --- a/actions/poll.ts +++ b/actions/poll.ts @@ -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 { const { owner, chainId, conditionalOrderParams, provider } = params;