Preparing search index...
The search index is not available sdk-v2
Function projectEndTimestamp
project End Timestamp< C , MS > ( ctx: C , market: Data < C , C extends RpcContext < MS > ? RpcMarket < C , MS > | SaturatedRpcMarket < C , MS > : never , C extends IndexerContext | FullContext < MS > ? IndexedMarket < C , MS > : never , MS > , _now?: ChainTime ) : Promise < null | number >
Type Parameters
MS extends MetadataStorage < { __meta: "markets" ; categories: undefined | ( { name: string; img?: string | undefined; ticker?: string | undefined; color?: string | undefined; }) [] ; confidentialId: undefined | string ; description: string ; img: undefined | string ; question: string ; scalarType: undefined | "number" | "date" ; slug: string ; tags: undefined | string [] ; } , MS >
Parameters
ctx: C
Optional
_now: ChainTime
Returns Promise < null | number >
Get the projected end timestamp for a market.
Note
If market has period as timestamps will use that directly and if its set to a block end date it will project a approximate end timestamp based on the on chain current block and block time.
Returns
Promise<number | null>