Skip to content

Commit

Permalink
use MarketReport from Indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
yornaath committed Oct 10, 2023
1 parent bf14eb9 commit ae8d3ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions lib/gql/markets.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { MarketStatus, ScalarRangeType } from "@zeitgeistpm/sdk";
import { MarketReport } from "@zeitgeistpm/indexer";
import { gql, GraphQLClient } from "graphql-request";
import { DAY_SECONDS } from "lib/constants";
import { marketMetaFilter } from "./constants";
import { MarketDispute, Report } from "lib/types/markets";
import { MarketDispute } from "lib/types/markets";

const marketIdsQuery = gql`
query MarketIds($end: BigInt) {
Expand Down Expand Up @@ -108,7 +109,7 @@ export interface MarketPageIndexedData {
categorical: string;
};
disputes: MarketDispute[];
report: Report;
report: MarketReport;
creator: string;
oracle: string;
tags: [];
Expand Down
6 changes: 0 additions & 6 deletions lib/types/markets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ export enum EMarketStatus {

export type MarketStatus = keyof typeof EMarketStatus;

export type Report = {
at: number;
by: string;
outcome: OutcomeReport;
};

export type MarketDispute = {
at: number;
by: string;
Expand Down

0 comments on commit ae8d3ff

Please sign in to comment.