Skip to content

Commit

Permalink
Max expiresAt
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Jan 28, 2025
1 parent 1727eb4 commit a7197b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/api/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const API = (_apiTypeCheck = {
amount: z.number().gte(SWEEPS_MIN_BET),
replyToCommentId: z.string().optional(),
limitProb: z.number().gte(0.01).lte(0.99).optional(),
expiresAt: z.number().optional(),
expiresAt: z.number().lt(Number.MAX_SAFE_INTEGER).optional(),
// Used for binary and new multiple choice contracts (cpmm-multi-1).
outcome: z.enum(['YES', 'NO']).default('YES'),
//Multi
Expand Down Expand Up @@ -253,7 +253,7 @@ export const API = (_apiTypeCheck = {
contractId: z.string(),
amount: z.number().gte(1),
limitProb: z.number().gte(0).lte(1).optional(),
expiresAt: z.number().optional(),
expiresAt: z.number().lt(Number.MAX_SAFE_INTEGER).optional(),
answerIds: z.array(z.string()).min(1),
deterministic: z.boolean().optional(),
})
Expand Down Expand Up @@ -814,7 +814,7 @@ export const API = (_apiTypeCheck = {
props: z
.object({
amount: z.number().positive().finite().safe(),
expiresTime: z.number().optional(),
expiresTime: z.number().lt(Number.MAX_SAFE_INTEGER).optional(),
maxUses: z.number().optional(),
message: z.string().optional(),
})
Expand Down

0 comments on commit a7197b6

Please sign in to comment.