@polymarket/bindings 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-AY4D74DC.js +2 -0
- package/dist/chunk-AY4D74DC.js.map +1 -0
- package/dist/chunk-QX4CCP47.js +2 -0
- package/dist/{chunk-I4SRN2Q5.js.map → chunk-QX4CCP47.js.map} +1 -1
- package/dist/chunk-UDKFL2IM.js +2 -0
- package/dist/chunk-UDKFL2IM.js.map +1 -0
- package/dist/clob/index.d.ts +97 -87
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/combos/index.d.ts +432 -176
- package/dist/combos/index.js +1 -1
- package/dist/combos/index.js.map +1 -1
- package/dist/data/index.d.ts +48 -48
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +77 -67
- package/dist/gamma/index.js +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.js +1 -1
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/subscriptions/index.d.ts +10 -10
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6TO35A2S.js +0 -2
- package/dist/chunk-6TO35A2S.js.map +0 -1
- package/dist/chunk-GJX3FYFG.js +0 -2
- package/dist/chunk-GJX3FYFG.js.map +0 -1
- package/dist/chunk-I4SRN2Q5.js +0 -2
package/dist/clob/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
2
|
import { TxHash } from '@polymarket/types';
|
|
3
|
-
import { BaseUnits,
|
|
3
|
+
import { BaseUnits, ConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, NotificationId, EpochMilliseconds, ApiKey, OrderSide, OrderId, TickSizeValue } from '../index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js';
|
|
6
6
|
|
|
@@ -14,8 +14,8 @@ declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
14
14
|
type ClosedOnlyMode = z.infer<typeof ClosedOnlyModeSchema>;
|
|
15
15
|
type OpenOrder = {
|
|
16
16
|
id: string;
|
|
17
|
-
/**
|
|
18
|
-
conditionId:
|
|
17
|
+
/** Condition ID for the market associated with this order. */
|
|
18
|
+
conditionId: ConditionId;
|
|
19
19
|
tokenId: TokenId;
|
|
20
20
|
owner: string;
|
|
21
21
|
makerAddress: string;
|
|
@@ -37,7 +37,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
37
37
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
maker_address: z.ZodString;
|
|
40
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
40
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
41
41
|
order_type: z.ZodString;
|
|
42
42
|
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
43
43
|
outcome: z.ZodString;
|
|
@@ -47,7 +47,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
47
47
|
size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
48
48
|
status: z.ZodString;
|
|
49
49
|
}, z.core.$strip>, z.ZodTransform<{
|
|
50
|
-
conditionId:
|
|
50
|
+
conditionId: ConditionId;
|
|
51
51
|
tokenId: TokenId;
|
|
52
52
|
associateTrades: string[];
|
|
53
53
|
createdAt: IsoDateTimeString;
|
|
@@ -63,7 +63,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
63
63
|
status: string;
|
|
64
64
|
} | {
|
|
65
65
|
expiresAt: IsoDateTimeString;
|
|
66
|
-
conditionId:
|
|
66
|
+
conditionId: ConditionId;
|
|
67
67
|
tokenId: TokenId;
|
|
68
68
|
associateTrades: string[];
|
|
69
69
|
createdAt: IsoDateTimeString;
|
|
@@ -84,7 +84,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
84
84
|
expiration: IsoDateTimeString | undefined;
|
|
85
85
|
id: string;
|
|
86
86
|
maker_address: string;
|
|
87
|
-
market:
|
|
87
|
+
market: ConditionId;
|
|
88
88
|
order_type: string;
|
|
89
89
|
original_size: DecimalString;
|
|
90
90
|
outcome: string;
|
|
@@ -103,7 +103,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
103
103
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
104
104
|
id: z.ZodString;
|
|
105
105
|
maker_address: z.ZodString;
|
|
106
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
106
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
107
107
|
order_type: z.ZodString;
|
|
108
108
|
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
109
109
|
outcome: z.ZodString;
|
|
@@ -113,7 +113,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
113
113
|
size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
114
114
|
status: z.ZodString;
|
|
115
115
|
}, z.core.$strip>, z.ZodTransform<{
|
|
116
|
-
conditionId:
|
|
116
|
+
conditionId: ConditionId;
|
|
117
117
|
tokenId: TokenId;
|
|
118
118
|
associateTrades: string[];
|
|
119
119
|
createdAt: IsoDateTimeString;
|
|
@@ -129,7 +129,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
129
129
|
status: string;
|
|
130
130
|
} | {
|
|
131
131
|
expiresAt: IsoDateTimeString;
|
|
132
|
-
conditionId:
|
|
132
|
+
conditionId: ConditionId;
|
|
133
133
|
tokenId: TokenId;
|
|
134
134
|
associateTrades: string[];
|
|
135
135
|
createdAt: IsoDateTimeString;
|
|
@@ -150,7 +150,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
150
150
|
expiration: IsoDateTimeString | undefined;
|
|
151
151
|
id: string;
|
|
152
152
|
maker_address: string;
|
|
153
|
-
market:
|
|
153
|
+
market: ConditionId;
|
|
154
154
|
order_type: string;
|
|
155
155
|
original_size: DecimalString;
|
|
156
156
|
outcome: string;
|
|
@@ -166,7 +166,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
166
166
|
nextCursor: string;
|
|
167
167
|
count: number;
|
|
168
168
|
data: ({
|
|
169
|
-
conditionId:
|
|
169
|
+
conditionId: ConditionId;
|
|
170
170
|
tokenId: TokenId;
|
|
171
171
|
associateTrades: string[];
|
|
172
172
|
createdAt: IsoDateTimeString;
|
|
@@ -182,7 +182,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
182
182
|
status: string;
|
|
183
183
|
} | {
|
|
184
184
|
expiresAt: IsoDateTimeString;
|
|
185
|
-
conditionId:
|
|
185
|
+
conditionId: ConditionId;
|
|
186
186
|
tokenId: TokenId;
|
|
187
187
|
associateTrades: string[];
|
|
188
188
|
createdAt: IsoDateTimeString;
|
|
@@ -201,7 +201,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
201
201
|
}, {
|
|
202
202
|
count: number;
|
|
203
203
|
data: ({
|
|
204
|
-
conditionId:
|
|
204
|
+
conditionId: ConditionId;
|
|
205
205
|
tokenId: TokenId;
|
|
206
206
|
associateTrades: string[];
|
|
207
207
|
createdAt: IsoDateTimeString;
|
|
@@ -217,7 +217,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
217
217
|
status: string;
|
|
218
218
|
} | {
|
|
219
219
|
expiresAt: IsoDateTimeString;
|
|
220
|
-
conditionId:
|
|
220
|
+
conditionId: ConditionId;
|
|
221
221
|
tokenId: TokenId;
|
|
222
222
|
associateTrades: string[];
|
|
223
223
|
createdAt: IsoDateTimeString;
|
|
@@ -270,8 +270,8 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
270
270
|
type MakerOrder = z.output<typeof MakerOrderSchema>;
|
|
271
271
|
type ClobTrade = {
|
|
272
272
|
id: string;
|
|
273
|
-
/**
|
|
274
|
-
conditionId:
|
|
273
|
+
/** Condition ID for the market associated with this trade. */
|
|
274
|
+
conditionId: ConditionId;
|
|
275
275
|
tokenId: TokenId;
|
|
276
276
|
owner: string;
|
|
277
277
|
makerAddress: string;
|
|
@@ -327,7 +327,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
327
327
|
price: DecimalString;
|
|
328
328
|
side: string;
|
|
329
329
|
}>>>;
|
|
330
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
330
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
331
331
|
match_time: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
332
332
|
outcome: z.ZodString;
|
|
333
333
|
owner: z.ZodString;
|
|
@@ -342,7 +342,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
342
342
|
}>;
|
|
343
343
|
transaction_hash: z.ZodString;
|
|
344
344
|
}, z.core.$strip>, z.ZodTransform<{
|
|
345
|
-
conditionId:
|
|
345
|
+
conditionId: ConditionId;
|
|
346
346
|
tokenId: TokenId;
|
|
347
347
|
bucketIndex: number;
|
|
348
348
|
feeRateBps: DecimalString;
|
|
@@ -388,7 +388,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
388
388
|
price: DecimalString;
|
|
389
389
|
side: string;
|
|
390
390
|
}[];
|
|
391
|
-
market:
|
|
391
|
+
market: ConditionId;
|
|
392
392
|
match_time: IsoDateTimeString;
|
|
393
393
|
outcome: string;
|
|
394
394
|
owner: string;
|
|
@@ -440,7 +440,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
440
440
|
price: DecimalString;
|
|
441
441
|
side: string;
|
|
442
442
|
}>>>;
|
|
443
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
443
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
444
444
|
match_time: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
445
445
|
outcome: z.ZodString;
|
|
446
446
|
owner: z.ZodString;
|
|
@@ -455,7 +455,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
455
455
|
}>;
|
|
456
456
|
transaction_hash: z.ZodString;
|
|
457
457
|
}, z.core.$strip>, z.ZodTransform<{
|
|
458
|
-
conditionId:
|
|
458
|
+
conditionId: ConditionId;
|
|
459
459
|
tokenId: TokenId;
|
|
460
460
|
bucketIndex: number;
|
|
461
461
|
feeRateBps: DecimalString;
|
|
@@ -501,7 +501,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
501
|
price: DecimalString;
|
|
502
502
|
side: string;
|
|
503
503
|
}[];
|
|
504
|
-
market:
|
|
504
|
+
market: ConditionId;
|
|
505
505
|
match_time: IsoDateTimeString;
|
|
506
506
|
outcome: string;
|
|
507
507
|
owner: string;
|
|
@@ -519,7 +519,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
519
519
|
nextCursor: string;
|
|
520
520
|
count: number;
|
|
521
521
|
data: {
|
|
522
|
-
conditionId:
|
|
522
|
+
conditionId: ConditionId;
|
|
523
523
|
tokenId: TokenId;
|
|
524
524
|
bucketIndex: number;
|
|
525
525
|
feeRateBps: DecimalString;
|
|
@@ -552,7 +552,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
552
552
|
}, {
|
|
553
553
|
count: number;
|
|
554
554
|
data: {
|
|
555
|
-
conditionId:
|
|
555
|
+
conditionId: ConditionId;
|
|
556
556
|
tokenId: TokenId;
|
|
557
557
|
bucketIndex: number;
|
|
558
558
|
feeRateBps: DecimalString;
|
|
@@ -620,21 +620,21 @@ type OrdersScoringResponse = z.infer<typeof OrdersScoringResponseSchema>;
|
|
|
620
620
|
declare const UserEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
621
621
|
asset_address: z.ZodString;
|
|
622
622
|
asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
623
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
623
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
624
624
|
date: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
625
625
|
earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
626
626
|
maker_address: z.ZodString;
|
|
627
627
|
}, z.core.$strip>, z.ZodTransform<{
|
|
628
628
|
assetAddress: string;
|
|
629
629
|
assetRate: DecimalString;
|
|
630
|
-
conditionId:
|
|
630
|
+
conditionId: ConditionId;
|
|
631
631
|
makerAddress: string;
|
|
632
632
|
date: IsoDateTimeString;
|
|
633
633
|
earnings: DecimalString;
|
|
634
634
|
}, {
|
|
635
635
|
asset_address: string;
|
|
636
636
|
asset_rate: DecimalString;
|
|
637
|
-
condition_id:
|
|
637
|
+
condition_id: ConditionId;
|
|
638
638
|
date: IsoDateTimeString;
|
|
639
639
|
earnings: DecimalString;
|
|
640
640
|
maker_address: string;
|
|
@@ -645,21 +645,21 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
645
645
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
646
646
|
asset_address: z.ZodString;
|
|
647
647
|
asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
648
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
648
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
649
649
|
date: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
650
650
|
earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
651
651
|
maker_address: z.ZodString;
|
|
652
652
|
}, z.core.$strip>, z.ZodTransform<{
|
|
653
653
|
assetAddress: string;
|
|
654
654
|
assetRate: DecimalString;
|
|
655
|
-
conditionId:
|
|
655
|
+
conditionId: ConditionId;
|
|
656
656
|
makerAddress: string;
|
|
657
657
|
date: IsoDateTimeString;
|
|
658
658
|
earnings: DecimalString;
|
|
659
659
|
}, {
|
|
660
660
|
asset_address: string;
|
|
661
661
|
asset_rate: DecimalString;
|
|
662
|
-
condition_id:
|
|
662
|
+
condition_id: ConditionId;
|
|
663
663
|
date: IsoDateTimeString;
|
|
664
664
|
earnings: DecimalString;
|
|
665
665
|
maker_address: string;
|
|
@@ -672,7 +672,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
672
672
|
data: {
|
|
673
673
|
assetAddress: string;
|
|
674
674
|
assetRate: DecimalString;
|
|
675
|
-
conditionId:
|
|
675
|
+
conditionId: ConditionId;
|
|
676
676
|
makerAddress: string;
|
|
677
677
|
date: IsoDateTimeString;
|
|
678
678
|
earnings: DecimalString;
|
|
@@ -683,7 +683,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
683
683
|
data: {
|
|
684
684
|
assetAddress: string;
|
|
685
685
|
assetRate: DecimalString;
|
|
686
|
-
conditionId:
|
|
686
|
+
conditionId: ConditionId;
|
|
687
687
|
makerAddress: string;
|
|
688
688
|
date: IsoDateTimeString;
|
|
689
689
|
earnings: DecimalString;
|
|
@@ -732,7 +732,7 @@ declare const TotalUserEarningsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
|
|
|
732
732
|
maker_address: string;
|
|
733
733
|
}>>>;
|
|
734
734
|
type TotalUserEarningsResponse = z.infer<typeof TotalUserEarningsResponseSchema>;
|
|
735
|
-
declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
735
|
+
declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>, z.ZodNumber>;
|
|
736
736
|
type RewardsPercentages = z.infer<typeof RewardsPercentagesSchema>;
|
|
737
737
|
declare const TokenSchema: z.ZodPipe<z.ZodObject<{
|
|
738
738
|
outcome: z.ZodString;
|
|
@@ -780,7 +780,7 @@ declare const EarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
780
780
|
earnings: DecimalString;
|
|
781
781
|
}>>;
|
|
782
782
|
declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
783
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
783
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
784
784
|
earning_percentage: z.ZodNumber;
|
|
785
785
|
earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
786
786
|
asset_address: z.ZodString;
|
|
@@ -836,7 +836,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
836
836
|
token_id: TokenId;
|
|
837
837
|
}>>>;
|
|
838
838
|
}, z.core.$strip>, z.ZodTransform<{
|
|
839
|
-
conditionId:
|
|
839
|
+
conditionId: ConditionId;
|
|
840
840
|
earningPercentage: number;
|
|
841
841
|
eventSlug: string;
|
|
842
842
|
makerAddress: string;
|
|
@@ -864,7 +864,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
864
864
|
price: DecimalString;
|
|
865
865
|
}[];
|
|
866
866
|
}, {
|
|
867
|
-
condition_id:
|
|
867
|
+
condition_id: ConditionId;
|
|
868
868
|
earning_percentage: number;
|
|
869
869
|
earnings: {
|
|
870
870
|
assetAddress: string;
|
|
@@ -896,7 +896,7 @@ type UserRewardsEarning = z.infer<typeof UserRewardsEarningSchema>;
|
|
|
896
896
|
declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
897
897
|
count: z.ZodNumber;
|
|
898
898
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
899
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
899
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
900
900
|
earning_percentage: z.ZodNumber;
|
|
901
901
|
earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
902
902
|
asset_address: z.ZodString;
|
|
@@ -952,7 +952,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
952
952
|
token_id: TokenId;
|
|
953
953
|
}>>>;
|
|
954
954
|
}, z.core.$strip>, z.ZodTransform<{
|
|
955
|
-
conditionId:
|
|
955
|
+
conditionId: ConditionId;
|
|
956
956
|
earningPercentage: number;
|
|
957
957
|
eventSlug: string;
|
|
958
958
|
makerAddress: string;
|
|
@@ -980,7 +980,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
980
980
|
price: DecimalString;
|
|
981
981
|
}[];
|
|
982
982
|
}, {
|
|
983
|
-
condition_id:
|
|
983
|
+
condition_id: ConditionId;
|
|
984
984
|
earning_percentage: number;
|
|
985
985
|
earnings: {
|
|
986
986
|
assetAddress: string;
|
|
@@ -1014,7 +1014,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1014
1014
|
nextCursor: string;
|
|
1015
1015
|
count: number;
|
|
1016
1016
|
data: {
|
|
1017
|
-
conditionId:
|
|
1017
|
+
conditionId: ConditionId;
|
|
1018
1018
|
earningPercentage: number;
|
|
1019
1019
|
eventSlug: string;
|
|
1020
1020
|
makerAddress: string;
|
|
@@ -1046,7 +1046,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1046
1046
|
}, {
|
|
1047
1047
|
count: number;
|
|
1048
1048
|
data: {
|
|
1049
|
-
conditionId:
|
|
1049
|
+
conditionId: ConditionId;
|
|
1050
1050
|
earningPercentage: number;
|
|
1051
1051
|
eventSlug: string;
|
|
1052
1052
|
makerAddress: string;
|
|
@@ -1133,8 +1133,8 @@ type BuilderTrade = {
|
|
|
1133
1133
|
tradeType: string;
|
|
1134
1134
|
takerOrderHash: string;
|
|
1135
1135
|
builder: string;
|
|
1136
|
-
/**
|
|
1137
|
-
conditionId:
|
|
1136
|
+
/** Condition ID for the market associated with this trade. */
|
|
1137
|
+
conditionId: ConditionId;
|
|
1138
1138
|
tokenId: TokenId;
|
|
1139
1139
|
side: OrderSide;
|
|
1140
1140
|
size: DecimalString;
|
|
@@ -1159,7 +1159,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1159
1159
|
tradeType: z.ZodString;
|
|
1160
1160
|
takerOrderHash: z.ZodString;
|
|
1161
1161
|
builder: z.ZodString;
|
|
1162
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1162
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1163
1163
|
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1164
1164
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1165
1165
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1179,7 +1179,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1179
1179
|
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>;
|
|
1180
1180
|
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>;
|
|
1181
1181
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1182
|
-
conditionId:
|
|
1182
|
+
conditionId: ConditionId;
|
|
1183
1183
|
tokenId: TokenId;
|
|
1184
1184
|
errMsg: string | null | undefined;
|
|
1185
1185
|
matchedAt: IsoDateTimeString;
|
|
@@ -1207,7 +1207,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1207
1207
|
tradeType: string;
|
|
1208
1208
|
takerOrderHash: string;
|
|
1209
1209
|
builder: string;
|
|
1210
|
-
market:
|
|
1210
|
+
market: ConditionId;
|
|
1211
1211
|
assetId: TokenId;
|
|
1212
1212
|
side: OrderSide;
|
|
1213
1213
|
size: DecimalString;
|
|
@@ -1236,7 +1236,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1236
1236
|
tradeType: z.ZodString;
|
|
1237
1237
|
takerOrderHash: z.ZodString;
|
|
1238
1238
|
builder: z.ZodString;
|
|
1239
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1239
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1240
1240
|
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1241
1241
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1242
1242
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1256,7 +1256,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1256
1256
|
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>;
|
|
1257
1257
|
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>;
|
|
1258
1258
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1259
|
-
conditionId:
|
|
1259
|
+
conditionId: ConditionId;
|
|
1260
1260
|
tokenId: TokenId;
|
|
1261
1261
|
errMsg: string | null | undefined;
|
|
1262
1262
|
matchedAt: IsoDateTimeString;
|
|
@@ -1284,7 +1284,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1284
1284
|
tradeType: string;
|
|
1285
1285
|
takerOrderHash: string;
|
|
1286
1286
|
builder: string;
|
|
1287
|
-
market:
|
|
1287
|
+
market: ConditionId;
|
|
1288
1288
|
assetId: TokenId;
|
|
1289
1289
|
side: OrderSide;
|
|
1290
1290
|
size: DecimalString;
|
|
@@ -1309,7 +1309,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1309
1309
|
limit: number;
|
|
1310
1310
|
count: number;
|
|
1311
1311
|
data: {
|
|
1312
|
-
conditionId:
|
|
1312
|
+
conditionId: ConditionId;
|
|
1313
1313
|
tokenId: TokenId;
|
|
1314
1314
|
errMsg: string | null | undefined;
|
|
1315
1315
|
matchedAt: IsoDateTimeString;
|
|
@@ -1338,7 +1338,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1338
1338
|
count: number;
|
|
1339
1339
|
next_cursor: string;
|
|
1340
1340
|
data: {
|
|
1341
|
-
conditionId:
|
|
1341
|
+
conditionId: ConditionId;
|
|
1342
1342
|
tokenId: TokenId;
|
|
1343
1343
|
errMsg: string | null | undefined;
|
|
1344
1344
|
matchedAt: IsoDateTimeString;
|
|
@@ -1427,11 +1427,21 @@ declare const SpreadSchema: z.ZodObject<{
|
|
|
1427
1427
|
type Spread = z.infer<typeof SpreadSchema>;
|
|
1428
1428
|
declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1429
1429
|
type Spreads = z.infer<typeof SpreadsSchema>;
|
|
1430
|
-
declare const
|
|
1430
|
+
declare const LastTradePriceValueSchema: z.ZodObject<{
|
|
1431
1431
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1432
1432
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1433
1433
|
}, z.core.$strip>;
|
|
1434
|
-
type LastTradePrice = z.infer<typeof
|
|
1434
|
+
type LastTradePrice = z.infer<typeof LastTradePriceValueSchema>;
|
|
1435
|
+
declare const LastTradePriceSchema: z.ZodPipe<z.ZodObject<{
|
|
1436
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1437
|
+
side: z.ZodUnion<readonly [z.ZodEnum<typeof OrderSide>, z.ZodLiteral<"">]>;
|
|
1438
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1439
|
+
price: DecimalString;
|
|
1440
|
+
side: OrderSide;
|
|
1441
|
+
} | null, {
|
|
1442
|
+
price: DecimalString;
|
|
1443
|
+
side: "" | OrderSide;
|
|
1444
|
+
}>>;
|
|
1435
1445
|
declare const LastTradePriceForTokenResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1436
1446
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1437
1447
|
side: z.ZodEnum<typeof OrderSide>;
|
|
@@ -1479,14 +1489,14 @@ declare const PriceHistorySchema: z.ZodObject<{
|
|
|
1479
1489
|
}, z.core.$strip>;
|
|
1480
1490
|
type PriceHistory = z.infer<typeof PriceHistorySchema>;
|
|
1481
1491
|
declare const ConditionByTokenSchema: z.ZodPipe<z.ZodObject<{
|
|
1482
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1483
|
-
}, z.core.$strip>, z.ZodTransform<
|
|
1484
|
-
condition_id:
|
|
1492
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1493
|
+
}, z.core.$strip>, z.ZodTransform<ConditionId, {
|
|
1494
|
+
condition_id: ConditionId;
|
|
1485
1495
|
}>>;
|
|
1486
1496
|
declare const ResolveConditionByTokenResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1487
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1488
|
-
}, z.core.$strip>, z.ZodTransform<
|
|
1489
|
-
condition_id:
|
|
1497
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1498
|
+
}, z.core.$strip>, z.ZodTransform<ConditionId, {
|
|
1499
|
+
condition_id: ConditionId;
|
|
1490
1500
|
}>>;
|
|
1491
1501
|
type ConditionByToken = z.infer<typeof ConditionByTokenSchema>;
|
|
1492
1502
|
type ResolveConditionByTokenResponse = z.infer<typeof ResolveConditionByTokenResponseSchema>;
|
|
@@ -1633,8 +1643,8 @@ type OrderBookHash = string & {
|
|
|
1633
1643
|
readonly __tag: 'OrderBookHash';
|
|
1634
1644
|
};
|
|
1635
1645
|
type OrderBook = {
|
|
1636
|
-
/**
|
|
1637
|
-
conditionId:
|
|
1646
|
+
/** Condition ID for the market this book belongs to. */
|
|
1647
|
+
conditionId: ConditionId;
|
|
1638
1648
|
tokenId: TokenId;
|
|
1639
1649
|
timestamp?: EpochMilliseconds | null;
|
|
1640
1650
|
/** Bid levels in ascending price order, lowest bid first. */
|
|
@@ -1653,7 +1663,7 @@ declare const OrderBookLevelSchema: z.ZodObject<{
|
|
|
1653
1663
|
}, z.core.$strip>;
|
|
1654
1664
|
declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1655
1665
|
declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
1656
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1666
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1657
1667
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1658
1668
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1659
1669
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1670,7 +1680,7 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1670
1680
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1671
1681
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1672
1682
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1673
|
-
conditionId:
|
|
1683
|
+
conditionId: ConditionId;
|
|
1674
1684
|
tokenId: TokenId;
|
|
1675
1685
|
minOrderSize: DecimalString;
|
|
1676
1686
|
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
@@ -1687,7 +1697,7 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1687
1697
|
hash: OrderBookHash;
|
|
1688
1698
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1689
1699
|
}, {
|
|
1690
|
-
market:
|
|
1700
|
+
market: ConditionId;
|
|
1691
1701
|
asset_id: TokenId;
|
|
1692
1702
|
bids: {
|
|
1693
1703
|
price: DecimalString;
|
|
@@ -1705,7 +1715,7 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1705
1715
|
last_trade_price?: DecimalString | null | undefined;
|
|
1706
1716
|
}>>;
|
|
1707
1717
|
declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1708
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1718
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1709
1719
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1710
1720
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1711
1721
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1722,7 +1732,7 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1722
1732
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1723
1733
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1724
1734
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1725
|
-
conditionId:
|
|
1735
|
+
conditionId: ConditionId;
|
|
1726
1736
|
tokenId: TokenId;
|
|
1727
1737
|
minOrderSize: DecimalString;
|
|
1728
1738
|
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
@@ -1739,7 +1749,7 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1739
1749
|
hash: OrderBookHash;
|
|
1740
1750
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1741
1751
|
}, {
|
|
1742
|
-
market:
|
|
1752
|
+
market: ConditionId;
|
|
1743
1753
|
asset_id: TokenId;
|
|
1744
1754
|
bids: {
|
|
1745
1755
|
price: DecimalString;
|
|
@@ -1757,7 +1767,7 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1757
1767
|
last_trade_price?: DecimalString | null | undefined;
|
|
1758
1768
|
}>>;
|
|
1759
1769
|
declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1760
|
-
market: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1770
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1761
1771
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1762
1772
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1763
1773
|
bids: z.ZodArray<z.ZodObject<{
|
|
@@ -1774,7 +1784,7 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1774
1784
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1775
1785
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1776
1786
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1777
|
-
conditionId:
|
|
1787
|
+
conditionId: ConditionId;
|
|
1778
1788
|
tokenId: TokenId;
|
|
1779
1789
|
minOrderSize: DecimalString;
|
|
1780
1790
|
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
@@ -1791,7 +1801,7 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1791
1801
|
hash: OrderBookHash;
|
|
1792
1802
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1793
1803
|
}, {
|
|
1794
|
-
market:
|
|
1804
|
+
market: ConditionId;
|
|
1795
1805
|
asset_id: TokenId;
|
|
1796
1806
|
bids: {
|
|
1797
1807
|
price: DecimalString;
|
|
@@ -1959,7 +1969,7 @@ declare const CurrentRewardConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1959
1969
|
}>>;
|
|
1960
1970
|
type CurrentRewardConfig = z.infer<typeof CurrentRewardConfigSchema>;
|
|
1961
1971
|
declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
1962
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1972
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1963
1973
|
rewards_max_spread: z.ZodOptional<z.ZodNumber>;
|
|
1964
1974
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1965
1975
|
rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -1989,7 +1999,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1989
1999
|
native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1990
2000
|
total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1991
2001
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1992
|
-
conditionId:
|
|
2002
|
+
conditionId: ConditionId;
|
|
1993
2003
|
rewardsMaxSpread: number | undefined;
|
|
1994
2004
|
rewardsMinSize: DecimalString | undefined;
|
|
1995
2005
|
rewardsConfig: {
|
|
@@ -2005,7 +2015,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2005
2015
|
nativeDailyRate: DecimalString | undefined;
|
|
2006
2016
|
totalDailyRate: DecimalString | undefined;
|
|
2007
2017
|
}, {
|
|
2008
|
-
condition_id:
|
|
2018
|
+
condition_id: ConditionId;
|
|
2009
2019
|
rewards_max_spread?: number | undefined;
|
|
2010
2020
|
rewards_min_size?: DecimalString | undefined;
|
|
2011
2021
|
rewards_config?: {
|
|
@@ -2027,7 +2037,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2027
2037
|
count: z.ZodNumber;
|
|
2028
2038
|
next_cursor: z.ZodString;
|
|
2029
2039
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2030
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
2040
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2031
2041
|
rewards_max_spread: z.ZodOptional<z.ZodNumber>;
|
|
2032
2042
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2033
2043
|
rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -2057,7 +2067,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2057
2067
|
native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2058
2068
|
total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2059
2069
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2060
|
-
conditionId:
|
|
2070
|
+
conditionId: ConditionId;
|
|
2061
2071
|
rewardsMaxSpread: number | undefined;
|
|
2062
2072
|
rewardsMinSize: DecimalString | undefined;
|
|
2063
2073
|
rewardsConfig: {
|
|
@@ -2073,7 +2083,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2073
2083
|
nativeDailyRate: DecimalString | undefined;
|
|
2074
2084
|
totalDailyRate: DecimalString | undefined;
|
|
2075
2085
|
}, {
|
|
2076
|
-
condition_id:
|
|
2086
|
+
condition_id: ConditionId;
|
|
2077
2087
|
rewards_max_spread?: number | undefined;
|
|
2078
2088
|
rewards_min_size?: DecimalString | undefined;
|
|
2079
2089
|
rewards_config?: {
|
|
@@ -2094,7 +2104,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2094
2104
|
limit: number;
|
|
2095
2105
|
count: number;
|
|
2096
2106
|
data: {
|
|
2097
|
-
conditionId:
|
|
2107
|
+
conditionId: ConditionId;
|
|
2098
2108
|
rewardsMaxSpread: number | undefined;
|
|
2099
2109
|
rewardsMinSize: DecimalString | undefined;
|
|
2100
2110
|
rewardsConfig: {
|
|
@@ -2115,7 +2125,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2115
2125
|
count: number;
|
|
2116
2126
|
next_cursor: string;
|
|
2117
2127
|
data: {
|
|
2118
|
-
conditionId:
|
|
2128
|
+
conditionId: ConditionId;
|
|
2119
2129
|
rewardsMaxSpread: number | undefined;
|
|
2120
2130
|
rewardsMinSize: DecimalString | undefined;
|
|
2121
2131
|
rewardsConfig: {
|
|
@@ -2168,7 +2178,7 @@ declare const RewardConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2168
2178
|
}>>;
|
|
2169
2179
|
type RewardConfig = z.infer<typeof RewardConfigSchema>;
|
|
2170
2180
|
declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
2171
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
2181
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2172
2182
|
question: z.ZodString;
|
|
2173
2183
|
market_slug: z.ZodOptional<z.ZodString>;
|
|
2174
2184
|
event_slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2209,7 +2219,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2209
2219
|
total_rewards?: DecimalString | undefined;
|
|
2210
2220
|
}>>>>;
|
|
2211
2221
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2212
|
-
conditionId:
|
|
2222
|
+
conditionId: ConditionId;
|
|
2213
2223
|
marketSlug: string | undefined;
|
|
2214
2224
|
eventSlug: string | undefined;
|
|
2215
2225
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2230,7 +2240,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2230
2240
|
}[];
|
|
2231
2241
|
image?: string | undefined;
|
|
2232
2242
|
}, {
|
|
2233
|
-
condition_id:
|
|
2243
|
+
condition_id: ConditionId;
|
|
2234
2244
|
question: string;
|
|
2235
2245
|
tokens: {
|
|
2236
2246
|
tokenId: TokenId;
|
|
@@ -2257,7 +2267,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2257
2267
|
count: z.ZodNumber;
|
|
2258
2268
|
next_cursor: z.ZodString;
|
|
2259
2269
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2260
|
-
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
2270
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2261
2271
|
question: z.ZodString;
|
|
2262
2272
|
market_slug: z.ZodOptional<z.ZodString>;
|
|
2263
2273
|
event_slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2298,7 +2308,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2298
2308
|
total_rewards?: DecimalString | undefined;
|
|
2299
2309
|
}>>>>;
|
|
2300
2310
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2301
|
-
conditionId:
|
|
2311
|
+
conditionId: ConditionId;
|
|
2302
2312
|
marketSlug: string | undefined;
|
|
2303
2313
|
eventSlug: string | undefined;
|
|
2304
2314
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2319,7 +2329,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2319
2329
|
}[];
|
|
2320
2330
|
image?: string | undefined;
|
|
2321
2331
|
}, {
|
|
2322
|
-
condition_id:
|
|
2332
|
+
condition_id: ConditionId;
|
|
2323
2333
|
question: string;
|
|
2324
2334
|
tokens: {
|
|
2325
2335
|
tokenId: TokenId;
|
|
@@ -2345,7 +2355,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2345
2355
|
limit: number;
|
|
2346
2356
|
count: number;
|
|
2347
2357
|
data: {
|
|
2348
|
-
conditionId:
|
|
2358
|
+
conditionId: ConditionId;
|
|
2349
2359
|
marketSlug: string | undefined;
|
|
2350
2360
|
eventSlug: string | undefined;
|
|
2351
2361
|
rewardsMaxSpread: number | undefined;
|
|
@@ -2371,7 +2381,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2371
2381
|
count: number;
|
|
2372
2382
|
next_cursor: string;
|
|
2373
2383
|
data: {
|
|
2374
|
-
conditionId:
|
|
2384
|
+
conditionId: ConditionId;
|
|
2375
2385
|
marketSlug: string | undefined;
|
|
2376
2386
|
eventSlug: string | undefined;
|
|
2377
2387
|
rewardsMaxSpread: number | undefined;
|