add resolutionProbability to LiteMarket (#546)
This commit is contained in:
parent
237a6c4d2a
commit
4ea7b6692a
|
@ -33,6 +33,7 @@ export type Contract<T extends AnyContractType = AnyContractType> = {
|
||||||
isResolved: boolean
|
isResolved: boolean
|
||||||
resolutionTime?: number // When the contract creator resolved the market
|
resolutionTime?: number // When the contract creator resolved the market
|
||||||
resolution?: string
|
resolution?: string
|
||||||
|
resolutionProbability?: number,
|
||||||
|
|
||||||
closeEmailsSent?: number
|
closeEmailsSent?: number
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,7 @@ Requires no authorization.
|
||||||
isResolved: boolean
|
isResolved: boolean
|
||||||
resolutionTime?: number
|
resolutionTime?: number
|
||||||
resolution?: string
|
resolution?: string
|
||||||
|
resolutionProbability?: number // Used for BINARY markets resolved to MKT
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ export type LiteMarket = {
|
||||||
isResolved: boolean
|
isResolved: boolean
|
||||||
resolution?: string
|
resolution?: string
|
||||||
resolutionTime?: number
|
resolutionTime?: number
|
||||||
|
resolutionProbability?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApiAnswer = Answer & {
|
export type ApiAnswer = Answer & {
|
||||||
|
@ -73,6 +74,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
||||||
isResolved,
|
isResolved,
|
||||||
resolution,
|
resolution,
|
||||||
resolutionTime,
|
resolutionTime,
|
||||||
|
resolutionProbability,
|
||||||
} = contract
|
} = contract
|
||||||
|
|
||||||
const { p, totalLiquidity } = contract as any
|
const { p, totalLiquidity } = contract as any
|
||||||
|
@ -106,6 +108,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
||||||
isResolved,
|
isResolved,
|
||||||
resolution,
|
resolution,
|
||||||
resolutionTime,
|
resolutionTime,
|
||||||
|
resolutionProbability,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user