@polymarket/clob-client 1.0.46 → 1.0.48

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/ctfabi.js ADDED
@@ -0,0 +1,709 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ctfAbi = void 0;
4
+ exports.ctfAbi = [
5
+ {
6
+ constant: true,
7
+ inputs: [
8
+ {
9
+ name: "owner",
10
+ type: "address",
11
+ },
12
+ {
13
+ name: "id",
14
+ type: "uint256",
15
+ },
16
+ ],
17
+ name: "balanceOf",
18
+ outputs: [
19
+ {
20
+ name: "",
21
+ type: "uint256",
22
+ },
23
+ ],
24
+ payable: false,
25
+ stateMutability: "view",
26
+ type: "function",
27
+ },
28
+ {
29
+ constant: true,
30
+ inputs: [
31
+ {
32
+ name: "interfaceId",
33
+ type: "bytes4",
34
+ },
35
+ ],
36
+ name: "supportsInterface",
37
+ outputs: [
38
+ {
39
+ name: "",
40
+ type: "bool",
41
+ },
42
+ ],
43
+ payable: false,
44
+ stateMutability: "view",
45
+ type: "function",
46
+ },
47
+ {
48
+ constant: true,
49
+ inputs: [
50
+ {
51
+ name: "",
52
+ type: "bytes32",
53
+ },
54
+ {
55
+ name: "",
56
+ type: "uint256",
57
+ },
58
+ ],
59
+ name: "payoutNumerators",
60
+ outputs: [
61
+ {
62
+ name: "",
63
+ type: "uint256",
64
+ },
65
+ ],
66
+ payable: false,
67
+ stateMutability: "view",
68
+ type: "function",
69
+ },
70
+ {
71
+ constant: false,
72
+ inputs: [
73
+ {
74
+ name: "from",
75
+ type: "address",
76
+ },
77
+ {
78
+ name: "to",
79
+ type: "address",
80
+ },
81
+ {
82
+ name: "ids",
83
+ type: "uint256[]",
84
+ },
85
+ {
86
+ name: "values",
87
+ type: "uint256[]",
88
+ },
89
+ {
90
+ name: "data",
91
+ type: "bytes",
92
+ },
93
+ ],
94
+ name: "safeBatchTransferFrom",
95
+ outputs: [],
96
+ payable: false,
97
+ stateMutability: "nonpayable",
98
+ type: "function",
99
+ },
100
+ {
101
+ constant: true,
102
+ inputs: [
103
+ {
104
+ name: "owners",
105
+ type: "address[]",
106
+ },
107
+ {
108
+ name: "ids",
109
+ type: "uint256[]",
110
+ },
111
+ ],
112
+ name: "balanceOfBatch",
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "uint256[]",
117
+ },
118
+ ],
119
+ payable: false,
120
+ stateMutability: "view",
121
+ type: "function",
122
+ },
123
+ {
124
+ constant: false,
125
+ inputs: [
126
+ {
127
+ name: "operator",
128
+ type: "address",
129
+ },
130
+ {
131
+ name: "approved",
132
+ type: "bool",
133
+ },
134
+ ],
135
+ name: "setApprovalForAll",
136
+ outputs: [],
137
+ payable: false,
138
+ stateMutability: "nonpayable",
139
+ type: "function",
140
+ },
141
+ {
142
+ constant: true,
143
+ inputs: [
144
+ {
145
+ name: "",
146
+ type: "bytes32",
147
+ },
148
+ ],
149
+ name: "payoutDenominator",
150
+ outputs: [
151
+ {
152
+ name: "",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ payable: false,
157
+ stateMutability: "view",
158
+ type: "function",
159
+ },
160
+ {
161
+ constant: true,
162
+ inputs: [
163
+ {
164
+ name: "owner",
165
+ type: "address",
166
+ },
167
+ {
168
+ name: "operator",
169
+ type: "address",
170
+ },
171
+ ],
172
+ name: "isApprovedForAll",
173
+ outputs: [
174
+ {
175
+ name: "",
176
+ type: "bool",
177
+ },
178
+ ],
179
+ payable: false,
180
+ stateMutability: "view",
181
+ type: "function",
182
+ },
183
+ {
184
+ constant: false,
185
+ inputs: [
186
+ {
187
+ name: "from",
188
+ type: "address",
189
+ },
190
+ {
191
+ name: "to",
192
+ type: "address",
193
+ },
194
+ {
195
+ name: "id",
196
+ type: "uint256",
197
+ },
198
+ {
199
+ name: "value",
200
+ type: "uint256",
201
+ },
202
+ {
203
+ name: "data",
204
+ type: "bytes",
205
+ },
206
+ ],
207
+ name: "safeTransferFrom",
208
+ outputs: [],
209
+ payable: false,
210
+ stateMutability: "nonpayable",
211
+ type: "function",
212
+ },
213
+ {
214
+ anonymous: false,
215
+ inputs: [
216
+ {
217
+ indexed: true,
218
+ name: "conditionId",
219
+ type: "bytes32",
220
+ },
221
+ {
222
+ indexed: true,
223
+ name: "oracle",
224
+ type: "address",
225
+ },
226
+ {
227
+ indexed: true,
228
+ name: "questionId",
229
+ type: "bytes32",
230
+ },
231
+ {
232
+ indexed: false,
233
+ name: "outcomeSlotCount",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ name: "ConditionPreparation",
238
+ type: "event",
239
+ },
240
+ {
241
+ anonymous: false,
242
+ inputs: [
243
+ {
244
+ indexed: true,
245
+ name: "conditionId",
246
+ type: "bytes32",
247
+ },
248
+ {
249
+ indexed: true,
250
+ name: "oracle",
251
+ type: "address",
252
+ },
253
+ {
254
+ indexed: true,
255
+ name: "questionId",
256
+ type: "bytes32",
257
+ },
258
+ {
259
+ indexed: false,
260
+ name: "outcomeSlotCount",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ indexed: false,
265
+ name: "payoutNumerators",
266
+ type: "uint256[]",
267
+ },
268
+ ],
269
+ name: "ConditionResolution",
270
+ type: "event",
271
+ },
272
+ {
273
+ anonymous: false,
274
+ inputs: [
275
+ {
276
+ indexed: true,
277
+ name: "stakeholder",
278
+ type: "address",
279
+ },
280
+ {
281
+ indexed: false,
282
+ name: "collateralToken",
283
+ type: "address",
284
+ },
285
+ {
286
+ indexed: true,
287
+ name: "parentCollectionId",
288
+ type: "bytes32",
289
+ },
290
+ {
291
+ indexed: true,
292
+ name: "conditionId",
293
+ type: "bytes32",
294
+ },
295
+ {
296
+ indexed: false,
297
+ name: "partition",
298
+ type: "uint256[]",
299
+ },
300
+ {
301
+ indexed: false,
302
+ name: "amount",
303
+ type: "uint256",
304
+ },
305
+ ],
306
+ name: "PositionSplit",
307
+ type: "event",
308
+ },
309
+ {
310
+ anonymous: false,
311
+ inputs: [
312
+ {
313
+ indexed: true,
314
+ name: "stakeholder",
315
+ type: "address",
316
+ },
317
+ {
318
+ indexed: false,
319
+ name: "collateralToken",
320
+ type: "address",
321
+ },
322
+ {
323
+ indexed: true,
324
+ name: "parentCollectionId",
325
+ type: "bytes32",
326
+ },
327
+ {
328
+ indexed: true,
329
+ name: "conditionId",
330
+ type: "bytes32",
331
+ },
332
+ {
333
+ indexed: false,
334
+ name: "partition",
335
+ type: "uint256[]",
336
+ },
337
+ {
338
+ indexed: false,
339
+ name: "amount",
340
+ type: "uint256",
341
+ },
342
+ ],
343
+ name: "PositionsMerge",
344
+ type: "event",
345
+ },
346
+ {
347
+ anonymous: false,
348
+ inputs: [
349
+ {
350
+ indexed: true,
351
+ name: "redeemer",
352
+ type: "address",
353
+ },
354
+ {
355
+ indexed: true,
356
+ name: "collateralToken",
357
+ type: "address",
358
+ },
359
+ {
360
+ indexed: true,
361
+ name: "parentCollectionId",
362
+ type: "bytes32",
363
+ },
364
+ {
365
+ indexed: false,
366
+ name: "conditionId",
367
+ type: "bytes32",
368
+ },
369
+ {
370
+ indexed: false,
371
+ name: "indexSets",
372
+ type: "uint256[]",
373
+ },
374
+ {
375
+ indexed: false,
376
+ name: "payout",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ name: "PayoutRedemption",
381
+ type: "event",
382
+ },
383
+ {
384
+ anonymous: false,
385
+ inputs: [
386
+ {
387
+ indexed: true,
388
+ name: "operator",
389
+ type: "address",
390
+ },
391
+ {
392
+ indexed: true,
393
+ name: "from",
394
+ type: "address",
395
+ },
396
+ {
397
+ indexed: true,
398
+ name: "to",
399
+ type: "address",
400
+ },
401
+ {
402
+ indexed: false,
403
+ name: "id",
404
+ type: "uint256",
405
+ },
406
+ {
407
+ indexed: false,
408
+ name: "value",
409
+ type: "uint256",
410
+ },
411
+ ],
412
+ name: "TransferSingle",
413
+ type: "event",
414
+ },
415
+ {
416
+ anonymous: false,
417
+ inputs: [
418
+ {
419
+ indexed: true,
420
+ name: "operator",
421
+ type: "address",
422
+ },
423
+ {
424
+ indexed: true,
425
+ name: "from",
426
+ type: "address",
427
+ },
428
+ {
429
+ indexed: true,
430
+ name: "to",
431
+ type: "address",
432
+ },
433
+ {
434
+ indexed: false,
435
+ name: "ids",
436
+ type: "uint256[]",
437
+ },
438
+ {
439
+ indexed: false,
440
+ name: "values",
441
+ type: "uint256[]",
442
+ },
443
+ ],
444
+ name: "TransferBatch",
445
+ type: "event",
446
+ },
447
+ {
448
+ anonymous: false,
449
+ inputs: [
450
+ {
451
+ indexed: true,
452
+ name: "owner",
453
+ type: "address",
454
+ },
455
+ {
456
+ indexed: true,
457
+ name: "operator",
458
+ type: "address",
459
+ },
460
+ {
461
+ indexed: false,
462
+ name: "approved",
463
+ type: "bool",
464
+ },
465
+ ],
466
+ name: "ApprovalForAll",
467
+ type: "event",
468
+ },
469
+ {
470
+ anonymous: false,
471
+ inputs: [
472
+ {
473
+ indexed: false,
474
+ name: "value",
475
+ type: "string",
476
+ },
477
+ {
478
+ indexed: true,
479
+ name: "id",
480
+ type: "uint256",
481
+ },
482
+ ],
483
+ name: "URI",
484
+ type: "event",
485
+ },
486
+ {
487
+ constant: false,
488
+ inputs: [
489
+ {
490
+ name: "oracle",
491
+ type: "address",
492
+ },
493
+ {
494
+ name: "questionId",
495
+ type: "bytes32",
496
+ },
497
+ {
498
+ name: "outcomeSlotCount",
499
+ type: "uint256",
500
+ },
501
+ ],
502
+ name: "prepareCondition",
503
+ outputs: [],
504
+ payable: false,
505
+ stateMutability: "nonpayable",
506
+ type: "function",
507
+ },
508
+ {
509
+ constant: false,
510
+ inputs: [
511
+ {
512
+ name: "questionId",
513
+ type: "bytes32",
514
+ },
515
+ {
516
+ name: "payouts",
517
+ type: "uint256[]",
518
+ },
519
+ ],
520
+ name: "reportPayouts",
521
+ outputs: [],
522
+ payable: false,
523
+ stateMutability: "nonpayable",
524
+ type: "function",
525
+ },
526
+ {
527
+ constant: false,
528
+ inputs: [
529
+ {
530
+ name: "collateralToken",
531
+ type: "address",
532
+ },
533
+ {
534
+ name: "parentCollectionId",
535
+ type: "bytes32",
536
+ },
537
+ {
538
+ name: "conditionId",
539
+ type: "bytes32",
540
+ },
541
+ {
542
+ name: "partition",
543
+ type: "uint256[]",
544
+ },
545
+ {
546
+ name: "amount",
547
+ type: "uint256",
548
+ },
549
+ ],
550
+ name: "splitPosition",
551
+ outputs: [],
552
+ payable: false,
553
+ stateMutability: "nonpayable",
554
+ type: "function",
555
+ },
556
+ {
557
+ constant: false,
558
+ inputs: [
559
+ {
560
+ name: "collateralToken",
561
+ type: "address",
562
+ },
563
+ {
564
+ name: "parentCollectionId",
565
+ type: "bytes32",
566
+ },
567
+ {
568
+ name: "conditionId",
569
+ type: "bytes32",
570
+ },
571
+ {
572
+ name: "partition",
573
+ type: "uint256[]",
574
+ },
575
+ {
576
+ name: "amount",
577
+ type: "uint256",
578
+ },
579
+ ],
580
+ name: "mergePositions",
581
+ outputs: [],
582
+ payable: false,
583
+ stateMutability: "nonpayable",
584
+ type: "function",
585
+ },
586
+ {
587
+ constant: false,
588
+ inputs: [
589
+ {
590
+ name: "collateralToken",
591
+ type: "address",
592
+ },
593
+ {
594
+ name: "parentCollectionId",
595
+ type: "bytes32",
596
+ },
597
+ {
598
+ name: "conditionId",
599
+ type: "bytes32",
600
+ },
601
+ {
602
+ name: "indexSets",
603
+ type: "uint256[]",
604
+ },
605
+ ],
606
+ name: "redeemPositions",
607
+ outputs: [],
608
+ payable: false,
609
+ stateMutability: "nonpayable",
610
+ type: "function",
611
+ },
612
+ {
613
+ constant: true,
614
+ inputs: [
615
+ {
616
+ name: "conditionId",
617
+ type: "bytes32",
618
+ },
619
+ ],
620
+ name: "getOutcomeSlotCount",
621
+ outputs: [
622
+ {
623
+ name: "",
624
+ type: "uint256",
625
+ },
626
+ ],
627
+ payable: false,
628
+ stateMutability: "view",
629
+ type: "function",
630
+ },
631
+ {
632
+ constant: true,
633
+ inputs: [
634
+ {
635
+ name: "oracle",
636
+ type: "address",
637
+ },
638
+ {
639
+ name: "questionId",
640
+ type: "bytes32",
641
+ },
642
+ {
643
+ name: "outcomeSlotCount",
644
+ type: "uint256",
645
+ },
646
+ ],
647
+ name: "getConditionId",
648
+ outputs: [
649
+ {
650
+ name: "",
651
+ type: "bytes32",
652
+ },
653
+ ],
654
+ payable: false,
655
+ stateMutability: "pure",
656
+ type: "function",
657
+ },
658
+ {
659
+ constant: true,
660
+ inputs: [
661
+ {
662
+ name: "parentCollectionId",
663
+ type: "bytes32",
664
+ },
665
+ {
666
+ name: "conditionId",
667
+ type: "bytes32",
668
+ },
669
+ {
670
+ name: "indexSet",
671
+ type: "uint256",
672
+ },
673
+ ],
674
+ name: "getCollectionId",
675
+ outputs: [
676
+ {
677
+ name: "",
678
+ type: "bytes32",
679
+ },
680
+ ],
681
+ payable: false,
682
+ stateMutability: "view",
683
+ type: "function",
684
+ },
685
+ {
686
+ constant: true,
687
+ inputs: [
688
+ {
689
+ name: "collateralToken",
690
+ type: "address",
691
+ },
692
+ {
693
+ name: "collectionId",
694
+ type: "bytes32",
695
+ },
696
+ ],
697
+ name: "getPositionId",
698
+ outputs: [
699
+ {
700
+ name: "",
701
+ type: "uint256",
702
+ },
703
+ ],
704
+ payable: false,
705
+ stateMutability: "pure",
706
+ type: "function",
707
+ },
708
+ ];
709
+ //# sourceMappingURL=ctfabi.js.map