Add outcome type to API market descriptors (#325)

This commit is contained in:
Marshall Polaris 2022-05-24 14:31:49 -07:00 committed by GitHub
parent 5f385c2f9d
commit 2d8ad40e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ export type LiteMarket = {
description: string description: string
tags: string[] tags: string[]
url: string url: string
outcomeType: string
mechanism: string mechanism: string
pool: number pool: number
@ -57,6 +58,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
tags, tags,
slug, slug,
pool, pool,
outcomeType,
mechanism, mechanism,
volume7Days, volume7Days,
volume24Hours, volume24Hours,
@ -88,6 +90,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
probability, probability,
p, p,
totalLiquidity, totalLiquidity,
outcomeType,
mechanism, mechanism,
volume7Days, volume7Days,
volume24Hours, volume24Hours,