@somnia-chain/contracts-sdk 0.2.0 → 0.3.5

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.
Files changed (55) hide show
  1. package/README.md +32 -1
  2. package/dist/abis.d.ts +21 -1
  3. package/dist/abis.js +17 -1
  4. package/dist/enumerate.d.ts +56 -0
  5. package/dist/enumerate.js +70 -0
  6. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.d.ts +2 -0
  7. package/dist/gen/abi/somnia-accounts/SafeProxyFactory.js +3 -0
  8. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.d.ts +2 -2
  9. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.js +2 -2
  10. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.d.ts +2 -2
  11. package/dist/gen/abi/somnia-markets/BinaryMarketsModule.js +2 -2
  12. package/dist/gen/abi/somnia-markets/FeedMarketCreator.d.ts +2 -0
  13. package/dist/gen/abi/somnia-markets/FeedMarketCreator.js +3 -0
  14. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.d.ts +2 -0
  15. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy1.js +3 -0
  16. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.d.ts +2 -0
  17. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy2.js +3 -0
  18. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.d.ts +2 -0
  19. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy3.js +3 -0
  20. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.d.ts +2 -0
  21. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy4.js +3 -0
  22. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.d.ts +2 -0
  23. package/dist/gen/abi/somnia-markets/FeedMarketCreator.legacy5.js +3 -0
  24. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.d.ts +2 -0
  25. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.js +3 -0
  26. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.d.ts +2 -0
  27. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy1.js +3 -0
  28. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.d.ts +2 -0
  29. package/dist/gen/abi/somnia-markets/PriceFeedOracleAdapter.legacy2.js +3 -0
  30. package/dist/gen/abi/somnia-markets/venue-2.marketCreator.js +4 -0
  31. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.d.ts +2 -0
  32. package/dist/gen/abi/somnia-markets/venue-4.marketCreator.js +3 -0
  33. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.d.ts +2 -0
  34. package/dist/gen/abi/somnia-markets/venue-4.marketCreatorPolicy.js +3 -0
  35. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.d.ts +2 -2
  36. package/dist/gen/abi/somnia-markets/venue-5.marketCreator.js +2 -2
  37. package/dist/gen/abis/{9611b42c6d5f.d.ts → 2fd67c1745ef.d.ts} +35 -2
  38. package/dist/gen/abis/{9611b42c6d5f.js → 2fd67c1745ef.js} +44 -2
  39. package/dist/gen/abis/44d37d7ba560.d.ts +180 -0
  40. package/dist/gen/abis/44d37d7ba560.js +233 -0
  41. package/dist/gen/abis/{49cb4deac436.d.ts → 88eb6f69cc13.d.ts} +145 -57
  42. package/dist/gen/abis/{49cb4deac436.js → 88eb6f69cc13.js} +183 -70
  43. package/dist/gen/abis/89e2309cce3a.d.ts +1010 -0
  44. package/dist/gen/abis/89e2309cce3a.js +1301 -0
  45. package/dist/gen/abis/a032a21f83aa.d.ts +1048 -0
  46. package/dist/gen/abis/a032a21f83aa.js +1371 -0
  47. package/dist/gen/abis-index.d.ts +6999 -4643
  48. package/dist/gen/abis-index.js +10 -4
  49. package/dist/gen/meta.d.ts +2 -2
  50. package/dist/gen/meta.js +2 -2
  51. package/dist/gen/registry.d.ts +213 -43
  52. package/dist/gen/registry.js +213 -43
  53. package/dist/index.d.ts +54 -4
  54. package/dist/index.js +16 -22
  55. package/package.json +1 -1
@@ -0,0 +1,1371 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export const abi_a032a21f83aa = [
3
+ {
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable",
6
+ "type": "constructor"
7
+ },
8
+ {
9
+ "inputs": [],
10
+ "name": "DISPLAY_DECIMALS",
11
+ "outputs": [
12
+ {
13
+ "internalType": "uint8",
14
+ "name": "",
15
+ "type": "uint8"
16
+ }
17
+ ],
18
+ "stateMutability": "view",
19
+ "type": "function"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "FEED",
24
+ "outputs": [
25
+ {
26
+ "internalType": "contract IPriceFeedLatest",
27
+ "name": "",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "stateMutability": "view",
32
+ "type": "function"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "MODULE",
37
+ "outputs": [
38
+ {
39
+ "internalType": "contract IOracleAnswerReceiver",
40
+ "name": "",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "stateMutability": "view",
45
+ "type": "function"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "PRICE_DECIMALS",
50
+ "outputs": [
51
+ {
52
+ "internalType": "uint8",
53
+ "name": "",
54
+ "type": "uint8"
55
+ }
56
+ ],
57
+ "stateMutability": "view",
58
+ "type": "function"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "UPGRADE_INTERFACE_VERSION",
63
+ "outputs": [
64
+ {
65
+ "internalType": "string",
66
+ "name": "",
67
+ "type": "string"
68
+ }
69
+ ],
70
+ "stateMutability": "view",
71
+ "type": "function"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "acceptOwnership",
76
+ "outputs": [],
77
+ "stateMutability": "nonpayable",
78
+ "type": "function"
79
+ },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "internalType": "bytes32",
84
+ "name": "boundaryKey",
85
+ "type": "bytes32"
86
+ }
87
+ ],
88
+ "name": "boundaryCaptures",
89
+ "outputs": [
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "price",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "internalType": "uint64",
97
+ "name": "capturedAt",
98
+ "type": "uint64"
99
+ },
100
+ {
101
+ "internalType": "bool",
102
+ "name": "voided",
103
+ "type": "bool"
104
+ },
105
+ {
106
+ "internalType": "bool",
107
+ "name": "captured",
108
+ "type": "bool"
109
+ }
110
+ ],
111
+ "stateMutability": "view",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "uint256",
118
+ "name": "questionId",
119
+ "type": "uint256"
120
+ }
121
+ ],
122
+ "name": "capture",
123
+ "outputs": [],
124
+ "stateMutability": "nonpayable",
125
+ "type": "function"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "questionId",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "captures",
136
+ "outputs": [
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "price",
140
+ "type": "uint256"
141
+ },
142
+ {
143
+ "internalType": "uint64",
144
+ "name": "capturedAt",
145
+ "type": "uint64"
146
+ },
147
+ {
148
+ "internalType": "uint8",
149
+ "name": "outcomeIdx",
150
+ "type": "uint8"
151
+ },
152
+ {
153
+ "internalType": "bool",
154
+ "name": "voided",
155
+ "type": "bool"
156
+ },
157
+ {
158
+ "internalType": "bool",
159
+ "name": "captured",
160
+ "type": "bool"
161
+ }
162
+ ],
163
+ "stateMutability": "view",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "uint256",
170
+ "name": "questionId",
171
+ "type": "uint256"
172
+ }
173
+ ],
174
+ "name": "claimText",
175
+ "outputs": [
176
+ {
177
+ "internalType": "string",
178
+ "name": "",
179
+ "type": "string"
180
+ }
181
+ ],
182
+ "stateMutability": "view",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [
187
+ {
188
+ "components": [
189
+ {
190
+ "internalType": "string",
191
+ "name": "questionText",
192
+ "type": "string"
193
+ },
194
+ {
195
+ "components": [
196
+ {
197
+ "internalType": "enum QuestionSourceType",
198
+ "name": "sourceType",
199
+ "type": "uint8"
200
+ },
201
+ {
202
+ "internalType": "bytes",
203
+ "name": "params",
204
+ "type": "bytes"
205
+ }
206
+ ],
207
+ "internalType": "struct QuestionSource[]",
208
+ "name": "sources",
209
+ "type": "tuple[]"
210
+ },
211
+ {
212
+ "components": [
213
+ {
214
+ "internalType": "enum AnswerType",
215
+ "name": "answerType",
216
+ "type": "uint8"
217
+ },
218
+ {
219
+ "internalType": "string[]",
220
+ "name": "discreteOutcomes",
221
+ "type": "string[]"
222
+ },
223
+ {
224
+ "components": [
225
+ {
226
+ "internalType": "int256",
227
+ "name": "low",
228
+ "type": "int256"
229
+ },
230
+ {
231
+ "internalType": "int256",
232
+ "name": "high",
233
+ "type": "int256"
234
+ }
235
+ ],
236
+ "internalType": "struct Interval[]",
237
+ "name": "numericIntervals",
238
+ "type": "tuple[]"
239
+ },
240
+ {
241
+ "internalType": "uint64",
242
+ "name": "numericDecimals",
243
+ "type": "uint64"
244
+ }
245
+ ],
246
+ "internalType": "struct ValidAnswers",
247
+ "name": "validAnswers",
248
+ "type": "tuple"
249
+ },
250
+ {
251
+ "internalType": "uint256",
252
+ "name": "resolutionTime",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "minAgreement",
258
+ "type": "uint256"
259
+ },
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "subcommitteeSize",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "internalType": "uint256",
267
+ "name": "subcommitteeThreshold",
268
+ "type": "uint256"
269
+ }
270
+ ],
271
+ "internalType": "struct QuestionDefinition",
272
+ "name": "",
273
+ "type": "tuple"
274
+ }
275
+ ],
276
+ "name": "getSchedulingCost",
277
+ "outputs": [
278
+ {
279
+ "internalType": "uint256",
280
+ "name": "",
281
+ "type": "uint256"
282
+ }
283
+ ],
284
+ "stateMutability": "pure",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "name": "getSlotCount",
296
+ "outputs": [
297
+ {
298
+ "internalType": "uint8",
299
+ "name": "",
300
+ "type": "uint8"
301
+ }
302
+ ],
303
+ "stateMutability": "pure",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "admin",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "internalType": "contract IPriceFeedLatest",
315
+ "name": "feed",
316
+ "type": "address"
317
+ },
318
+ {
319
+ "internalType": "contract IOracleAnswerReceiver",
320
+ "name": "module",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "internalType": "uint64",
325
+ "name": "stalenessToleranceSec_",
326
+ "type": "uint64"
327
+ },
328
+ {
329
+ "internalType": "string",
330
+ "name": "labelPrefix_",
331
+ "type": "string"
332
+ },
333
+ {
334
+ "internalType": "uint8",
335
+ "name": "displayDecimals_",
336
+ "type": "uint8"
337
+ }
338
+ ],
339
+ "name": "initialize",
340
+ "outputs": [],
341
+ "stateMutability": "nonpayable",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [],
346
+ "name": "labelPrefix",
347
+ "outputs": [
348
+ {
349
+ "internalType": "string",
350
+ "name": "",
351
+ "type": "string"
352
+ }
353
+ ],
354
+ "stateMutability": "view",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [
359
+ {
360
+ "internalType": "bytes32",
361
+ "name": "marketId",
362
+ "type": "bytes32"
363
+ }
364
+ ],
365
+ "name": "marketBound",
366
+ "outputs": [
367
+ {
368
+ "internalType": "bool",
369
+ "name": "",
370
+ "type": "bool"
371
+ }
372
+ ],
373
+ "stateMutability": "view",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "questionId",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "name": "marketCountFor",
385
+ "outputs": [
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "count",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "bytes32",
399
+ "name": "marketId",
400
+ "type": "bytes32"
401
+ }
402
+ ],
403
+ "name": "marketResolutionDelivered",
404
+ "outputs": [
405
+ {
406
+ "internalType": "bool",
407
+ "name": "",
408
+ "type": "bool"
409
+ }
410
+ ],
411
+ "stateMutability": "view",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [
416
+ {
417
+ "internalType": "uint256",
418
+ "name": "questionId",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "marketsFor",
423
+ "outputs": [
424
+ {
425
+ "internalType": "bytes32[]",
426
+ "name": "marketIds",
427
+ "type": "bytes32[]"
428
+ }
429
+ ],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "bytes32",
437
+ "name": "marketId",
438
+ "type": "bytes32"
439
+ },
440
+ {
441
+ "internalType": "uint32",
442
+ "name": "",
443
+ "type": "uint32"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "oracleQuestionId",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "address",
452
+ "name": "",
453
+ "type": "address"
454
+ }
455
+ ],
456
+ "name": "onBind",
457
+ "outputs": [],
458
+ "stateMutability": "payable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "bytes32",
465
+ "name": "marketId",
466
+ "type": "bytes32"
467
+ },
468
+ {
469
+ "internalType": "uint32",
470
+ "name": "",
471
+ "type": "uint32"
472
+ },
473
+ {
474
+ "internalType": "uint256",
475
+ "name": "oracleQuestionId",
476
+ "type": "uint256"
477
+ }
478
+ ],
479
+ "name": "onBind",
480
+ "outputs": [],
481
+ "stateMutability": "payable",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [
486
+ {
487
+ "internalType": "bytes32",
488
+ "name": "",
489
+ "type": "bytes32"
490
+ }
491
+ ],
492
+ "name": "onResolved",
493
+ "outputs": [],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [],
499
+ "name": "owner",
500
+ "outputs": [
501
+ {
502
+ "internalType": "address",
503
+ "name": "",
504
+ "type": "address"
505
+ }
506
+ ],
507
+ "stateMutability": "view",
508
+ "type": "function"
509
+ },
510
+ {
511
+ "inputs": [],
512
+ "name": "pendingOwner",
513
+ "outputs": [
514
+ {
515
+ "internalType": "address",
516
+ "name": "",
517
+ "type": "address"
518
+ }
519
+ ],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [],
525
+ "name": "proxiableUUID",
526
+ "outputs": [
527
+ {
528
+ "internalType": "bytes32",
529
+ "name": "",
530
+ "type": "bytes32"
531
+ }
532
+ ],
533
+ "stateMutability": "view",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "inputs": [
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "oracleQuestionId",
541
+ "type": "uint256"
542
+ }
543
+ ],
544
+ "name": "pullAnswer",
545
+ "outputs": [
546
+ {
547
+ "internalType": "uint8",
548
+ "name": "outcomeIdx",
549
+ "type": "uint8"
550
+ },
551
+ {
552
+ "internalType": "bool",
553
+ "name": "voided",
554
+ "type": "bool"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "oracleQuestionId",
565
+ "type": "uint256"
566
+ }
567
+ ],
568
+ "name": "pullNumericAnswer",
569
+ "outputs": [
570
+ {
571
+ "internalType": "int256",
572
+ "name": "numericValue",
573
+ "type": "int256"
574
+ },
575
+ {
576
+ "internalType": "bool",
577
+ "name": "voided",
578
+ "type": "bool"
579
+ }
580
+ ],
581
+ "stateMutability": "view",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ {
587
+ "internalType": "bytes32",
588
+ "name": "marketId",
589
+ "type": "bytes32"
590
+ }
591
+ ],
592
+ "name": "questionForMarket",
593
+ "outputs": [
594
+ {
595
+ "internalType": "uint256",
596
+ "name": "",
597
+ "type": "uint256"
598
+ }
599
+ ],
600
+ "stateMutability": "view",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "inputs": [
605
+ {
606
+ "internalType": "string",
607
+ "name": "symbol",
608
+ "type": "string"
609
+ },
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "strike",
613
+ "type": "uint256"
614
+ },
615
+ {
616
+ "internalType": "uint64",
617
+ "name": "expiry",
618
+ "type": "uint64"
619
+ }
620
+ ],
621
+ "name": "questionIdFor",
622
+ "outputs": [
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "questionId",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "stateMutability": "view",
630
+ "type": "function"
631
+ },
632
+ {
633
+ "inputs": [
634
+ {
635
+ "internalType": "uint256",
636
+ "name": "questionId",
637
+ "type": "uint256"
638
+ }
639
+ ],
640
+ "name": "questions",
641
+ "outputs": [
642
+ {
643
+ "internalType": "string",
644
+ "name": "symbol",
645
+ "type": "string"
646
+ },
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "strike",
650
+ "type": "uint256"
651
+ },
652
+ {
653
+ "internalType": "uint64",
654
+ "name": "expiry",
655
+ "type": "uint64"
656
+ },
657
+ {
658
+ "internalType": "bool",
659
+ "name": "registered",
660
+ "type": "bool"
661
+ }
662
+ ],
663
+ "stateMutability": "view",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [
668
+ {
669
+ "internalType": "string",
670
+ "name": "symbol",
671
+ "type": "string"
672
+ }
673
+ ],
674
+ "name": "readFreshPrice",
675
+ "outputs": [
676
+ {
677
+ "internalType": "uint256",
678
+ "name": "price",
679
+ "type": "uint256"
680
+ }
681
+ ],
682
+ "stateMutability": "view",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [
687
+ {
688
+ "internalType": "string",
689
+ "name": "symbol",
690
+ "type": "string"
691
+ },
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "strike",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "internalType": "uint64",
699
+ "name": "expiry",
700
+ "type": "uint64"
701
+ }
702
+ ],
703
+ "name": "registerQuestion",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "questionId",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "stateMutability": "nonpayable",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "renounceOwnership",
717
+ "outputs": [],
718
+ "stateMutability": "nonpayable",
719
+ "type": "function"
720
+ },
721
+ {
722
+ "inputs": [
723
+ {
724
+ "internalType": "uint256",
725
+ "name": "value",
726
+ "type": "uint256"
727
+ },
728
+ {
729
+ "internalType": "uint8",
730
+ "name": "toDecimals",
731
+ "type": "uint8"
732
+ }
733
+ ],
734
+ "name": "rescale",
735
+ "outputs": [
736
+ {
737
+ "internalType": "uint256",
738
+ "name": "scaled",
739
+ "type": "uint256"
740
+ }
741
+ ],
742
+ "stateMutability": "view",
743
+ "type": "function"
744
+ },
745
+ {
746
+ "inputs": [
747
+ {
748
+ "internalType": "bytes32",
749
+ "name": "marketId",
750
+ "type": "bytes32"
751
+ }
752
+ ],
753
+ "name": "resolveMarket",
754
+ "outputs": [],
755
+ "stateMutability": "nonpayable",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [],
760
+ "name": "resolveReserve",
761
+ "outputs": [
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "",
765
+ "type": "uint256"
766
+ }
767
+ ],
768
+ "stateMutability": "pure",
769
+ "type": "function"
770
+ },
771
+ {
772
+ "inputs": [
773
+ {
774
+ "components": [
775
+ {
776
+ "internalType": "string",
777
+ "name": "questionText",
778
+ "type": "string"
779
+ },
780
+ {
781
+ "components": [
782
+ {
783
+ "internalType": "enum QuestionSourceType",
784
+ "name": "sourceType",
785
+ "type": "uint8"
786
+ },
787
+ {
788
+ "internalType": "bytes",
789
+ "name": "params",
790
+ "type": "bytes"
791
+ }
792
+ ],
793
+ "internalType": "struct QuestionSource[]",
794
+ "name": "sources",
795
+ "type": "tuple[]"
796
+ },
797
+ {
798
+ "components": [
799
+ {
800
+ "internalType": "enum AnswerType",
801
+ "name": "answerType",
802
+ "type": "uint8"
803
+ },
804
+ {
805
+ "internalType": "string[]",
806
+ "name": "discreteOutcomes",
807
+ "type": "string[]"
808
+ },
809
+ {
810
+ "components": [
811
+ {
812
+ "internalType": "int256",
813
+ "name": "low",
814
+ "type": "int256"
815
+ },
816
+ {
817
+ "internalType": "int256",
818
+ "name": "high",
819
+ "type": "int256"
820
+ }
821
+ ],
822
+ "internalType": "struct Interval[]",
823
+ "name": "numericIntervals",
824
+ "type": "tuple[]"
825
+ },
826
+ {
827
+ "internalType": "uint64",
828
+ "name": "numericDecimals",
829
+ "type": "uint64"
830
+ }
831
+ ],
832
+ "internalType": "struct ValidAnswers",
833
+ "name": "validAnswers",
834
+ "type": "tuple"
835
+ },
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "resolutionTime",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "minAgreement",
844
+ "type": "uint256"
845
+ },
846
+ {
847
+ "internalType": "uint256",
848
+ "name": "subcommitteeSize",
849
+ "type": "uint256"
850
+ },
851
+ {
852
+ "internalType": "uint256",
853
+ "name": "subcommitteeThreshold",
854
+ "type": "uint256"
855
+ }
856
+ ],
857
+ "internalType": "struct QuestionDefinition",
858
+ "name": "",
859
+ "type": "tuple"
860
+ }
861
+ ],
862
+ "name": "scheduleQuestion",
863
+ "outputs": [
864
+ {
865
+ "internalType": "uint256",
866
+ "name": "",
867
+ "type": "uint256"
868
+ }
869
+ ],
870
+ "stateMutability": "payable",
871
+ "type": "function"
872
+ },
873
+ {
874
+ "inputs": [],
875
+ "name": "stalenessToleranceSec",
876
+ "outputs": [
877
+ {
878
+ "internalType": "uint64",
879
+ "name": "",
880
+ "type": "uint64"
881
+ }
882
+ ],
883
+ "stateMutability": "view",
884
+ "type": "function"
885
+ },
886
+ {
887
+ "inputs": [
888
+ {
889
+ "internalType": "bytes4",
890
+ "name": "interfaceId",
891
+ "type": "bytes4"
892
+ }
893
+ ],
894
+ "name": "supportsInterface",
895
+ "outputs": [
896
+ {
897
+ "internalType": "bool",
898
+ "name": "",
899
+ "type": "bool"
900
+ }
901
+ ],
902
+ "stateMutability": "view",
903
+ "type": "function"
904
+ },
905
+ {
906
+ "inputs": [
907
+ {
908
+ "internalType": "address",
909
+ "name": "newOwner",
910
+ "type": "address"
911
+ }
912
+ ],
913
+ "name": "transferOwnership",
914
+ "outputs": [],
915
+ "stateMutability": "nonpayable",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "inputs": [
920
+ {
921
+ "internalType": "address",
922
+ "name": "newImplementation",
923
+ "type": "address"
924
+ },
925
+ {
926
+ "internalType": "bytes",
927
+ "name": "data",
928
+ "type": "bytes"
929
+ }
930
+ ],
931
+ "name": "upgradeToAndCall",
932
+ "outputs": [],
933
+ "stateMutability": "payable",
934
+ "type": "function"
935
+ },
936
+ {
937
+ "anonymous": false,
938
+ "inputs": [
939
+ {
940
+ "indexed": true,
941
+ "internalType": "uint256",
942
+ "name": "questionId",
943
+ "type": "uint256"
944
+ },
945
+ {
946
+ "indexed": false,
947
+ "internalType": "uint8",
948
+ "name": "outcomeIdx",
949
+ "type": "uint8"
950
+ },
951
+ {
952
+ "indexed": false,
953
+ "internalType": "string",
954
+ "name": "outcomeLabel",
955
+ "type": "string"
956
+ },
957
+ {
958
+ "indexed": false,
959
+ "internalType": "int256",
960
+ "name": "numericValue",
961
+ "type": "int256"
962
+ },
963
+ {
964
+ "indexed": false,
965
+ "internalType": "bool",
966
+ "name": "voided",
967
+ "type": "bool"
968
+ },
969
+ {
970
+ "indexed": false,
971
+ "internalType": "uint8",
972
+ "name": "reason",
973
+ "type": "uint8"
974
+ },
975
+ {
976
+ "indexed": false,
977
+ "internalType": "uint256[]",
978
+ "name": "receiptIds",
979
+ "type": "uint256[]"
980
+ }
981
+ ],
982
+ "name": "AnswerPosted",
983
+ "type": "event"
984
+ },
985
+ {
986
+ "anonymous": false,
987
+ "inputs": [
988
+ {
989
+ "indexed": false,
990
+ "internalType": "uint64",
991
+ "name": "version",
992
+ "type": "uint64"
993
+ }
994
+ ],
995
+ "name": "Initialized",
996
+ "type": "event"
997
+ },
998
+ {
999
+ "anonymous": false,
1000
+ "inputs": [
1001
+ {
1002
+ "indexed": true,
1003
+ "internalType": "uint256",
1004
+ "name": "questionId",
1005
+ "type": "uint256"
1006
+ },
1007
+ {
1008
+ "indexed": true,
1009
+ "internalType": "bytes32",
1010
+ "name": "marketId",
1011
+ "type": "bytes32"
1012
+ },
1013
+ {
1014
+ "indexed": false,
1015
+ "internalType": "bool",
1016
+ "name": "voided",
1017
+ "type": "bool"
1018
+ }
1019
+ ],
1020
+ "name": "MarketAnswered",
1021
+ "type": "event"
1022
+ },
1023
+ {
1024
+ "anonymous": false,
1025
+ "inputs": [
1026
+ {
1027
+ "indexed": true,
1028
+ "internalType": "uint256",
1029
+ "name": "questionId",
1030
+ "type": "uint256"
1031
+ },
1032
+ {
1033
+ "indexed": true,
1034
+ "internalType": "bytes32",
1035
+ "name": "marketId",
1036
+ "type": "bytes32"
1037
+ }
1038
+ ],
1039
+ "name": "MarketResolutionFailed",
1040
+ "type": "event"
1041
+ },
1042
+ {
1043
+ "anonymous": false,
1044
+ "inputs": [
1045
+ {
1046
+ "indexed": true,
1047
+ "internalType": "address",
1048
+ "name": "previousOwner",
1049
+ "type": "address"
1050
+ },
1051
+ {
1052
+ "indexed": true,
1053
+ "internalType": "address",
1054
+ "name": "newOwner",
1055
+ "type": "address"
1056
+ }
1057
+ ],
1058
+ "name": "OwnershipTransferStarted",
1059
+ "type": "event"
1060
+ },
1061
+ {
1062
+ "anonymous": false,
1063
+ "inputs": [
1064
+ {
1065
+ "indexed": true,
1066
+ "internalType": "address",
1067
+ "name": "previousOwner",
1068
+ "type": "address"
1069
+ },
1070
+ {
1071
+ "indexed": true,
1072
+ "internalType": "address",
1073
+ "name": "newOwner",
1074
+ "type": "address"
1075
+ }
1076
+ ],
1077
+ "name": "OwnershipTransferred",
1078
+ "type": "event"
1079
+ },
1080
+ {
1081
+ "anonymous": false,
1082
+ "inputs": [
1083
+ {
1084
+ "indexed": true,
1085
+ "internalType": "uint256",
1086
+ "name": "questionId",
1087
+ "type": "uint256"
1088
+ },
1089
+ {
1090
+ "indexed": false,
1091
+ "internalType": "string",
1092
+ "name": "symbol",
1093
+ "type": "string"
1094
+ },
1095
+ {
1096
+ "indexed": false,
1097
+ "internalType": "uint256",
1098
+ "name": "strike",
1099
+ "type": "uint256"
1100
+ },
1101
+ {
1102
+ "indexed": false,
1103
+ "internalType": "uint64",
1104
+ "name": "expiry",
1105
+ "type": "uint64"
1106
+ }
1107
+ ],
1108
+ "name": "QuestionRegistered",
1109
+ "type": "event"
1110
+ },
1111
+ {
1112
+ "anonymous": false,
1113
+ "inputs": [
1114
+ {
1115
+ "indexed": true,
1116
+ "internalType": "address",
1117
+ "name": "implementation",
1118
+ "type": "address"
1119
+ }
1120
+ ],
1121
+ "name": "Upgraded",
1122
+ "type": "event"
1123
+ },
1124
+ {
1125
+ "inputs": [
1126
+ {
1127
+ "internalType": "address",
1128
+ "name": "target",
1129
+ "type": "address"
1130
+ }
1131
+ ],
1132
+ "name": "AddressEmptyCode",
1133
+ "type": "error"
1134
+ },
1135
+ {
1136
+ "inputs": [
1137
+ {
1138
+ "internalType": "uint256",
1139
+ "name": "questionId",
1140
+ "type": "uint256"
1141
+ }
1142
+ ],
1143
+ "name": "AlreadyCaptured",
1144
+ "type": "error"
1145
+ },
1146
+ {
1147
+ "inputs": [
1148
+ {
1149
+ "internalType": "address",
1150
+ "name": "implementation",
1151
+ "type": "address"
1152
+ }
1153
+ ],
1154
+ "name": "ERC1967InvalidImplementation",
1155
+ "type": "error"
1156
+ },
1157
+ {
1158
+ "inputs": [],
1159
+ "name": "ERC1967NonPayable",
1160
+ "type": "error"
1161
+ },
1162
+ {
1163
+ "inputs": [],
1164
+ "name": "FailedCall",
1165
+ "type": "error"
1166
+ },
1167
+ {
1168
+ "inputs": [
1169
+ {
1170
+ "internalType": "bytes32",
1171
+ "name": "marketId",
1172
+ "type": "bytes32"
1173
+ }
1174
+ ],
1175
+ "name": "IncompatibleMarket",
1176
+ "type": "error"
1177
+ },
1178
+ {
1179
+ "inputs": [],
1180
+ "name": "InvalidConfiguration",
1181
+ "type": "error"
1182
+ },
1183
+ {
1184
+ "inputs": [],
1185
+ "name": "InvalidDependency",
1186
+ "type": "error"
1187
+ },
1188
+ {
1189
+ "inputs": [
1190
+ {
1191
+ "internalType": "string",
1192
+ "name": "symbol",
1193
+ "type": "string"
1194
+ }
1195
+ ],
1196
+ "name": "InvalidFeedReading",
1197
+ "type": "error"
1198
+ },
1199
+ {
1200
+ "inputs": [],
1201
+ "name": "InvalidInitialization",
1202
+ "type": "error"
1203
+ },
1204
+ {
1205
+ "inputs": [],
1206
+ "name": "InvalidQuestion",
1207
+ "type": "error"
1208
+ },
1209
+ {
1210
+ "inputs": [
1211
+ {
1212
+ "internalType": "uint256",
1213
+ "name": "questionId",
1214
+ "type": "uint256"
1215
+ }
1216
+ ],
1217
+ "name": "NoAnswerYet",
1218
+ "type": "error"
1219
+ },
1220
+ {
1221
+ "inputs": [],
1222
+ "name": "NotInitializing",
1223
+ "type": "error"
1224
+ },
1225
+ {
1226
+ "inputs": [
1227
+ {
1228
+ "internalType": "uint64",
1229
+ "name": "expiry",
1230
+ "type": "uint64"
1231
+ }
1232
+ ],
1233
+ "name": "NotYetExpired",
1234
+ "type": "error"
1235
+ },
1236
+ {
1237
+ "inputs": [],
1238
+ "name": "OnlyModule",
1239
+ "type": "error"
1240
+ },
1241
+ {
1242
+ "inputs": [
1243
+ {
1244
+ "internalType": "address",
1245
+ "name": "owner",
1246
+ "type": "address"
1247
+ }
1248
+ ],
1249
+ "name": "OwnableInvalidOwner",
1250
+ "type": "error"
1251
+ },
1252
+ {
1253
+ "inputs": [
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "account",
1257
+ "type": "address"
1258
+ }
1259
+ ],
1260
+ "name": "OwnableUnauthorizedAccount",
1261
+ "type": "error"
1262
+ },
1263
+ {
1264
+ "inputs": [
1265
+ {
1266
+ "internalType": "uint256",
1267
+ "name": "questionId",
1268
+ "type": "uint256"
1269
+ }
1270
+ ],
1271
+ "name": "QuestionAlreadyExpired",
1272
+ "type": "error"
1273
+ },
1274
+ {
1275
+ "inputs": [],
1276
+ "name": "ReentrancyGuardReentrantCall",
1277
+ "type": "error"
1278
+ },
1279
+ {
1280
+ "inputs": [
1281
+ {
1282
+ "internalType": "uint256",
1283
+ "name": "value",
1284
+ "type": "uint256"
1285
+ },
1286
+ {
1287
+ "internalType": "uint8",
1288
+ "name": "fromDecimals",
1289
+ "type": "uint8"
1290
+ },
1291
+ {
1292
+ "internalType": "uint8",
1293
+ "name": "toDecimals",
1294
+ "type": "uint8"
1295
+ }
1296
+ ],
1297
+ "name": "RescaleOverflow",
1298
+ "type": "error"
1299
+ },
1300
+ {
1301
+ "inputs": [],
1302
+ "name": "SchedulingNotSupported",
1303
+ "type": "error"
1304
+ },
1305
+ {
1306
+ "inputs": [],
1307
+ "name": "UUPSUnauthorizedCallContext",
1308
+ "type": "error"
1309
+ },
1310
+ {
1311
+ "inputs": [
1312
+ {
1313
+ "internalType": "bytes32",
1314
+ "name": "slot",
1315
+ "type": "bytes32"
1316
+ }
1317
+ ],
1318
+ "name": "UUPSUnsupportedProxiableUUID",
1319
+ "type": "error"
1320
+ },
1321
+ {
1322
+ "inputs": [],
1323
+ "name": "UnexpectedValue",
1324
+ "type": "error"
1325
+ },
1326
+ {
1327
+ "inputs": [
1328
+ {
1329
+ "internalType": "bytes32",
1330
+ "name": "marketId",
1331
+ "type": "bytes32"
1332
+ }
1333
+ ],
1334
+ "name": "UnknownMarket",
1335
+ "type": "error"
1336
+ },
1337
+ {
1338
+ "inputs": [
1339
+ {
1340
+ "internalType": "uint256",
1341
+ "name": "questionId",
1342
+ "type": "uint256"
1343
+ }
1344
+ ],
1345
+ "name": "UnknownQuestion",
1346
+ "type": "error"
1347
+ },
1348
+ {
1349
+ "inputs": [
1350
+ {
1351
+ "internalType": "string",
1352
+ "name": "symbol",
1353
+ "type": "string"
1354
+ }
1355
+ ],
1356
+ "name": "UnknownSymbol",
1357
+ "type": "error"
1358
+ },
1359
+ {
1360
+ "inputs": [
1361
+ {
1362
+ "internalType": "uint8",
1363
+ "name": "decimals",
1364
+ "type": "uint8"
1365
+ }
1366
+ ],
1367
+ "name": "UnsupportedDecimals",
1368
+ "type": "error"
1369
+ }
1370
+ ];
1371
+ export const digest = "sha256:a032a21f83aae76653320a00184cd18a9199c6f12926c4e9d49de5a827699e5c";