diff --git a/packages/automated-dispute/src/types/events.ts b/packages/automated-dispute/src/types/events.ts index 096b522..0709879 100644 --- a/packages/automated-dispute/src/types/events.ts +++ b/packages/automated-dispute/src/types/events.ts @@ -4,7 +4,6 @@ import { Address, Log } from "viem"; import { Dispute, DisputeStatus, Request, RequestId, Response } from "./prophet.js"; export type EboEventName = - | "NewEpoch" | "RequestCreated" | "ResponseProposed" | "ResponseDisputed" @@ -12,11 +11,6 @@ export type EboEventName = | "DisputeEscalated" | "RequestFinalized"; -export interface NewEpoch { - epoch: bigint; - epochBlockNumber: bigint; -} - export interface ResponseProposed { requestId: string; responseId: string; @@ -56,21 +50,19 @@ export interface RequestFinalized { blockNumber: bigint; } -export type EboEventData = E extends "NewEpoch" - ? NewEpoch - : E extends "RequestCreated" - ? RequestCreated - : E extends "ResponseProposed" - ? ResponseProposed - : E extends "ResponseDisputed" - ? ResponseDisputed - : E extends "DisputeStatusChanged" - ? DisputeStatusChanged - : E extends "DisputeEscalated" - ? DisputeEscalated - : E extends "RequestFinalized" - ? RequestFinalized - : never; +export type EboEventData = E extends "RequestCreated" + ? RequestCreated + : E extends "ResponseProposed" + ? ResponseProposed + : E extends "ResponseDisputed" + ? ResponseDisputed + : E extends "DisputeStatusChanged" + ? DisputeStatusChanged + : E extends "DisputeEscalated" + ? DisputeEscalated + : E extends "RequestFinalized" + ? RequestFinalized + : never; export type EboEvent = { name: T;