opinion-clob-sdk 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl

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.

Potentially problematic release.


This version of opinion-clob-sdk might be problematic. Click here for more details.

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