@somnia-chain/contracts-sdk 0.3.9 → 0.3.13

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 (89) hide show
  1. package/dist/gen/abi/prophecy-oracle/OracleCore.js +6 -0
  2. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.d.ts +2 -2
  3. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.js +8 -2
  4. package/dist/gen/abi/prophecy-oracle/PriceFeedScheduler.js +6 -0
  5. package/dist/gen/abi/prophecy-oracle/QuestionModerationRegistry.js +6 -0
  6. package/dist/gen/abi/prophecy-oracle/QuestionNameRegistry.js +6 -0
  7. package/dist/gen/abi/somnia-agents/agentRegistry.js +7 -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 +7 -2
  10. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.d.ts +2 -2
  11. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.js +2 -6
  12. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.d.ts +2 -0
  13. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.js +3 -0
  14. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.d.ts +2 -0
  15. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.js +3 -0
  16. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.d.ts +2 -0
  17. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.js +3 -0
  18. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.d.ts +2 -0
  19. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.js +3 -0
  20. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.d.ts +2 -0
  21. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.js +3 -0
  22. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.d.ts +2 -0
  23. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.js +3 -0
  24. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.d.ts +2 -0
  25. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.js +3 -0
  26. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.d.ts +2 -0
  27. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.js +3 -0
  28. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.d.ts +2 -0
  29. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.js +3 -0
  30. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.d.ts +2 -0
  31. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.js +3 -0
  32. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.d.ts +2 -0
  33. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.js +3 -0
  34. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.d.ts +2 -0
  35. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.js +3 -0
  36. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.d.ts +2 -0
  37. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.js +3 -0
  38. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.d.ts +2 -0
  39. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.js +3 -0
  40. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.d.ts +2 -0
  41. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.js +3 -0
  42. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.d.ts +2 -0
  43. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.js +3 -0
  44. package/dist/gen/abi/somnia-dex-protocol/spot-pool.SpotPool_Implementation.js +4 -0
  45. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.d.ts +2 -2
  46. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.js +2 -6
  47. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.d.ts +2 -0
  48. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.js +3 -0
  49. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.d.ts +2 -0
  50. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.js +3 -0
  51. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.d.ts +2 -0
  52. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.js +3 -0
  53. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.d.ts +2 -0
  54. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.js +3 -0
  55. package/dist/gen/abi/somnia-markets/SomiLock.d.ts +2 -2
  56. package/dist/gen/abi/somnia-markets/SomiLock.js +2 -2
  57. package/dist/gen/abi/somnia-markets/UserVaultFactory.d.ts +2 -0
  58. package/dist/gen/abi/somnia-markets/UserVaultFactory.js +3 -0
  59. package/dist/gen/abi/somnia-markets/UserVaultImpl.d.ts +2 -0
  60. package/dist/gen/abi/somnia-markets/UserVaultImpl.js +3 -0
  61. package/dist/gen/abis/1d0ea05bc53d.d.ts +231 -0
  62. package/dist/gen/abis/1d0ea05bc53d.js +301 -0
  63. package/dist/gen/abis/32cc7a5169e1.d.ts +1704 -0
  64. package/dist/gen/abis/32cc7a5169e1.js +2200 -0
  65. package/dist/gen/abis/49ad550ed87e.d.ts +692 -0
  66. package/dist/gen/abis/49ad550ed87e.js +897 -0
  67. package/dist/gen/abis/4a5210d62566.d.ts +2197 -0
  68. package/dist/gen/abis/4a5210d62566.js +2834 -0
  69. package/dist/gen/abis/{1a2db3035880.d.ts → 59f72604787a.d.ts} +419 -497
  70. package/dist/gen/abis/{1a2db3035880.js → 59f72604787a.js} +482 -576
  71. package/dist/gen/abis/{9818d0265866.d.ts → 5a4a0858050e.d.ts} +486 -472
  72. package/dist/gen/abis/{9818d0265866.js → 5a4a0858050e.js} +563 -531
  73. package/dist/gen/abis/914f4b7b21d6.d.ts +853 -0
  74. package/dist/gen/abis/914f4b7b21d6.js +1118 -0
  75. package/dist/gen/abis/{afc6a4821e4a.d.ts → ac9568ce34c8.d.ts} +260 -3
  76. package/dist/gen/abis/{afc6a4821e4a.js → ac9568ce34c8.js} +332 -3
  77. package/dist/gen/abis/d0e583337129.d.ts +575 -0
  78. package/dist/gen/abis/d0e583337129.js +741 -0
  79. package/dist/gen/abis/d4649fdaaab6.d.ts +713 -0
  80. package/dist/gen/abis/d4649fdaaab6.js +925 -0
  81. package/dist/gen/abis/ee870f549cb8.d.ts +888 -0
  82. package/dist/gen/abis/ee870f549cb8.js +1147 -0
  83. package/dist/gen/abis-index.d.ts +134 -46682
  84. package/dist/gen/abis-index.js +22 -6
  85. package/dist/gen/meta.d.ts +2 -2
  86. package/dist/gen/meta.js +2 -2
  87. package/dist/gen/registry.d.ts +1912 -33
  88. package/dist/gen/registry.js +1914 -33
  89. package/package.json +1 -1
@@ -0,0 +1,1118 @@
1
+ // Generated by `registry sdk` from dist-public/ — do not edit.
2
+ export const abi_914f4b7b21d6 = [
3
+ {
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable",
6
+ "type": "constructor"
7
+ },
8
+ {
9
+ "stateMutability": "payable",
10
+ "type": "receive"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "UPGRADE_INTERFACE_VERSION",
15
+ "outputs": [
16
+ {
17
+ "internalType": "string",
18
+ "name": "",
19
+ "type": "string"
20
+ }
21
+ ],
22
+ "stateMutability": "view",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [],
27
+ "name": "acceptOwnership",
28
+ "outputs": [],
29
+ "stateMutability": "nonpayable",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "questionId",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "getAnswer",
41
+ "outputs": [
42
+ {
43
+ "components": [
44
+ {
45
+ "internalType": "uint64",
46
+ "name": "timestamp",
47
+ "type": "uint64"
48
+ },
49
+ {
50
+ "internalType": "bool",
51
+ "name": "voided",
52
+ "type": "bool"
53
+ },
54
+ {
55
+ "internalType": "uint8",
56
+ "name": "outcomeIdx",
57
+ "type": "uint8"
58
+ },
59
+ {
60
+ "internalType": "int256",
61
+ "name": "numericValue",
62
+ "type": "int256"
63
+ },
64
+ {
65
+ "internalType": "uint256[]",
66
+ "name": "receiptIds",
67
+ "type": "uint256[]"
68
+ }
69
+ ],
70
+ "internalType": "struct Answer",
71
+ "name": "",
72
+ "type": "tuple"
73
+ }
74
+ ],
75
+ "stateMutability": "view",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [
80
+ {
81
+ "internalType": "uint256",
82
+ "name": "questionId",
83
+ "type": "uint256"
84
+ }
85
+ ],
86
+ "name": "getModerationStatus",
87
+ "outputs": [
88
+ {
89
+ "internalType": "enum RequestStatus",
90
+ "name": "",
91
+ "type": "uint8"
92
+ }
93
+ ],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "questionId",
102
+ "type": "uint256"
103
+ }
104
+ ],
105
+ "name": "getModerationVerdict",
106
+ "outputs": [
107
+ {
108
+ "internalType": "enum Verdict",
109
+ "name": "",
110
+ "type": "uint8"
111
+ }
112
+ ],
113
+ "stateMutability": "view",
114
+ "type": "function"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "questionId",
121
+ "type": "uint256"
122
+ }
123
+ ],
124
+ "name": "getName",
125
+ "outputs": [
126
+ {
127
+ "internalType": "string",
128
+ "name": "",
129
+ "type": "string"
130
+ }
131
+ ],
132
+ "stateMutability": "view",
133
+ "type": "function"
134
+ },
135
+ {
136
+ "inputs": [
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "questionId",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "name": "getNameStatus",
144
+ "outputs": [
145
+ {
146
+ "internalType": "enum RequestStatus",
147
+ "name": "",
148
+ "type": "uint8"
149
+ }
150
+ ],
151
+ "stateMutability": "view",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "questionId",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "getOutcome",
163
+ "outputs": [
164
+ {
165
+ "internalType": "uint8",
166
+ "name": "outcomeIdx",
167
+ "type": "uint8"
168
+ },
169
+ {
170
+ "internalType": "string",
171
+ "name": "label",
172
+ "type": "string"
173
+ },
174
+ {
175
+ "internalType": "int256",
176
+ "name": "numericValue",
177
+ "type": "int256"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "timestamp",
182
+ "type": "uint256"
183
+ }
184
+ ],
185
+ "stateMutability": "view",
186
+ "type": "function"
187
+ },
188
+ {
189
+ "inputs": [
190
+ {
191
+ "internalType": "uint256",
192
+ "name": "questionId",
193
+ "type": "uint256"
194
+ },
195
+ {
196
+ "internalType": "uint8",
197
+ "name": "outcomeIdx",
198
+ "type": "uint8"
199
+ }
200
+ ],
201
+ "name": "getOutcomeLabel",
202
+ "outputs": [
203
+ {
204
+ "internalType": "string",
205
+ "name": "",
206
+ "type": "string"
207
+ }
208
+ ],
209
+ "stateMutability": "view",
210
+ "type": "function"
211
+ },
212
+ {
213
+ "inputs": [
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "questionId",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "getOutcomeLabels",
221
+ "outputs": [
222
+ {
223
+ "internalType": "string[]",
224
+ "name": "",
225
+ "type": "string[]"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [
233
+ {
234
+ "internalType": "uint256",
235
+ "name": "questionId",
236
+ "type": "uint256"
237
+ }
238
+ ],
239
+ "name": "getQuestionMetadata",
240
+ "outputs": [
241
+ {
242
+ "internalType": "bytes",
243
+ "name": "",
244
+ "type": "bytes"
245
+ }
246
+ ],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "questionId",
255
+ "type": "uint256"
256
+ }
257
+ ],
258
+ "name": "getQuestionSources",
259
+ "outputs": [
260
+ {
261
+ "components": [
262
+ {
263
+ "internalType": "enum QuestionSourceType",
264
+ "name": "sourceType",
265
+ "type": "uint8"
266
+ },
267
+ {
268
+ "internalType": "bytes",
269
+ "name": "params",
270
+ "type": "bytes"
271
+ }
272
+ ],
273
+ "internalType": "struct QuestionSource[]",
274
+ "name": "",
275
+ "type": "tuple[]"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "sourceId",
286
+ "type": "uint256"
287
+ }
288
+ ],
289
+ "name": "getSource",
290
+ "outputs": [
291
+ {
292
+ "components": [
293
+ {
294
+ "internalType": "enum QuestionSourceType",
295
+ "name": "sourceType",
296
+ "type": "uint8"
297
+ },
298
+ {
299
+ "internalType": "bytes",
300
+ "name": "params",
301
+ "type": "bytes"
302
+ }
303
+ ],
304
+ "internalType": "struct QuestionSource",
305
+ "name": "",
306
+ "type": "tuple"
307
+ }
308
+ ],
309
+ "stateMutability": "view",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "internalType": "uint256",
316
+ "name": "questionId",
317
+ "type": "uint256"
318
+ }
319
+ ],
320
+ "name": "getStatus",
321
+ "outputs": [
322
+ {
323
+ "internalType": "enum QuestionStatus",
324
+ "name": "",
325
+ "type": "uint8"
326
+ }
327
+ ],
328
+ "stateMutability": "view",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "components": [
335
+ {
336
+ "internalType": "string",
337
+ "name": "questionText",
338
+ "type": "string"
339
+ },
340
+ {
341
+ "components": [
342
+ {
343
+ "internalType": "enum QuestionSourceType",
344
+ "name": "sourceType",
345
+ "type": "uint8"
346
+ },
347
+ {
348
+ "internalType": "bytes",
349
+ "name": "params",
350
+ "type": "bytes"
351
+ }
352
+ ],
353
+ "internalType": "struct QuestionSource[]",
354
+ "name": "sources",
355
+ "type": "tuple[]"
356
+ },
357
+ {
358
+ "components": [
359
+ {
360
+ "internalType": "enum AnswerType",
361
+ "name": "answerType",
362
+ "type": "uint8"
363
+ },
364
+ {
365
+ "internalType": "string[]",
366
+ "name": "discreteOutcomes",
367
+ "type": "string[]"
368
+ },
369
+ {
370
+ "components": [
371
+ {
372
+ "internalType": "int256",
373
+ "name": "low",
374
+ "type": "int256"
375
+ },
376
+ {
377
+ "internalType": "int256",
378
+ "name": "high",
379
+ "type": "int256"
380
+ }
381
+ ],
382
+ "internalType": "struct Interval[]",
383
+ "name": "numericIntervals",
384
+ "type": "tuple[]"
385
+ },
386
+ {
387
+ "internalType": "uint64",
388
+ "name": "numericDecimals",
389
+ "type": "uint64"
390
+ }
391
+ ],
392
+ "internalType": "struct ValidAnswers",
393
+ "name": "validAnswers",
394
+ "type": "tuple"
395
+ },
396
+ {
397
+ "internalType": "uint256",
398
+ "name": "resolutionTime",
399
+ "type": "uint256"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "minAgreement",
404
+ "type": "uint256"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "subcommitteeSize",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "subcommitteeThreshold",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "internalType": "struct QuestionDefinition",
418
+ "name": "def",
419
+ "type": "tuple"
420
+ }
421
+ ],
422
+ "name": "getSubmissionCost",
423
+ "outputs": [
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "totalCost",
427
+ "type": "uint256"
428
+ }
429
+ ],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "moderationRegistryAddr",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "address",
442
+ "name": "oracleCoreAddr",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "internalType": "address",
447
+ "name": "nameRegistryAddr",
448
+ "type": "address"
449
+ },
450
+ {
451
+ "internalType": "address",
452
+ "name": "owner_",
453
+ "type": "address"
454
+ }
455
+ ],
456
+ "name": "initialize",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [],
463
+ "name": "moderationRegistry",
464
+ "outputs": [
465
+ {
466
+ "internalType": "contract IQuestionModerationRegistry",
467
+ "name": "",
468
+ "type": "address"
469
+ }
470
+ ],
471
+ "stateMutability": "view",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [],
476
+ "name": "nameRegistry",
477
+ "outputs": [
478
+ {
479
+ "internalType": "contract IQuestionNameRegistry",
480
+ "name": "",
481
+ "type": "address"
482
+ }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [],
489
+ "name": "oracleCore",
490
+ "outputs": [
491
+ {
492
+ "internalType": "contract IOracleCore",
493
+ "name": "",
494
+ "type": "address"
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "name": "oracleCoreFor",
509
+ "outputs": [
510
+ {
511
+ "internalType": "address",
512
+ "name": "",
513
+ "type": "address"
514
+ }
515
+ ],
516
+ "stateMutability": "view",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [],
521
+ "name": "owner",
522
+ "outputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "",
526
+ "type": "address"
527
+ }
528
+ ],
529
+ "stateMutability": "view",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [],
534
+ "name": "pendingOwner",
535
+ "outputs": [
536
+ {
537
+ "internalType": "address",
538
+ "name": "",
539
+ "type": "address"
540
+ }
541
+ ],
542
+ "stateMutability": "view",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [],
547
+ "name": "proxiableUUID",
548
+ "outputs": [
549
+ {
550
+ "internalType": "bytes32",
551
+ "name": "",
552
+ "type": "bytes32"
553
+ }
554
+ ],
555
+ "stateMutability": "view",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [],
560
+ "name": "renounceOwnership",
561
+ "outputs": [],
562
+ "stateMutability": "nonpayable",
563
+ "type": "function"
564
+ },
565
+ {
566
+ "inputs": [
567
+ {
568
+ "internalType": "address",
569
+ "name": "registry",
570
+ "type": "address"
571
+ }
572
+ ],
573
+ "name": "setModerationRegistry",
574
+ "outputs": [],
575
+ "stateMutability": "nonpayable",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ {
581
+ "internalType": "address",
582
+ "name": "registry",
583
+ "type": "address"
584
+ }
585
+ ],
586
+ "name": "setNameRegistry",
587
+ "outputs": [],
588
+ "stateMutability": "nonpayable",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "internalType": "address",
595
+ "name": "oracleCore_",
596
+ "type": "address"
597
+ }
598
+ ],
599
+ "name": "setOracleCore",
600
+ "outputs": [],
601
+ "stateMutability": "nonpayable",
602
+ "type": "function"
603
+ },
604
+ {
605
+ "inputs": [
606
+ {
607
+ "components": [
608
+ {
609
+ "internalType": "string",
610
+ "name": "questionText",
611
+ "type": "string"
612
+ },
613
+ {
614
+ "components": [
615
+ {
616
+ "internalType": "enum QuestionSourceType",
617
+ "name": "sourceType",
618
+ "type": "uint8"
619
+ },
620
+ {
621
+ "internalType": "bytes",
622
+ "name": "params",
623
+ "type": "bytes"
624
+ }
625
+ ],
626
+ "internalType": "struct QuestionSource[]",
627
+ "name": "sources",
628
+ "type": "tuple[]"
629
+ },
630
+ {
631
+ "components": [
632
+ {
633
+ "internalType": "enum AnswerType",
634
+ "name": "answerType",
635
+ "type": "uint8"
636
+ },
637
+ {
638
+ "internalType": "string[]",
639
+ "name": "discreteOutcomes",
640
+ "type": "string[]"
641
+ },
642
+ {
643
+ "components": [
644
+ {
645
+ "internalType": "int256",
646
+ "name": "low",
647
+ "type": "int256"
648
+ },
649
+ {
650
+ "internalType": "int256",
651
+ "name": "high",
652
+ "type": "int256"
653
+ }
654
+ ],
655
+ "internalType": "struct Interval[]",
656
+ "name": "numericIntervals",
657
+ "type": "tuple[]"
658
+ },
659
+ {
660
+ "internalType": "uint64",
661
+ "name": "numericDecimals",
662
+ "type": "uint64"
663
+ }
664
+ ],
665
+ "internalType": "struct ValidAnswers",
666
+ "name": "validAnswers",
667
+ "type": "tuple"
668
+ },
669
+ {
670
+ "internalType": "uint256",
671
+ "name": "resolutionTime",
672
+ "type": "uint256"
673
+ },
674
+ {
675
+ "internalType": "uint256",
676
+ "name": "minAgreement",
677
+ "type": "uint256"
678
+ },
679
+ {
680
+ "internalType": "uint256",
681
+ "name": "subcommitteeSize",
682
+ "type": "uint256"
683
+ },
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "subcommitteeThreshold",
687
+ "type": "uint256"
688
+ }
689
+ ],
690
+ "internalType": "struct QuestionDefinition",
691
+ "name": "def",
692
+ "type": "tuple"
693
+ },
694
+ {
695
+ "internalType": "bytes",
696
+ "name": "metadata",
697
+ "type": "bytes"
698
+ }
699
+ ],
700
+ "name": "submitQuestion",
701
+ "outputs": [
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "questionId",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "stateMutability": "payable",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ {
714
+ "components": [
715
+ {
716
+ "internalType": "string",
717
+ "name": "questionText",
718
+ "type": "string"
719
+ },
720
+ {
721
+ "components": [
722
+ {
723
+ "internalType": "enum QuestionSourceType",
724
+ "name": "sourceType",
725
+ "type": "uint8"
726
+ },
727
+ {
728
+ "internalType": "bytes",
729
+ "name": "params",
730
+ "type": "bytes"
731
+ }
732
+ ],
733
+ "internalType": "struct QuestionSource[]",
734
+ "name": "sources",
735
+ "type": "tuple[]"
736
+ },
737
+ {
738
+ "components": [
739
+ {
740
+ "internalType": "enum AnswerType",
741
+ "name": "answerType",
742
+ "type": "uint8"
743
+ },
744
+ {
745
+ "internalType": "string[]",
746
+ "name": "discreteOutcomes",
747
+ "type": "string[]"
748
+ },
749
+ {
750
+ "components": [
751
+ {
752
+ "internalType": "int256",
753
+ "name": "low",
754
+ "type": "int256"
755
+ },
756
+ {
757
+ "internalType": "int256",
758
+ "name": "high",
759
+ "type": "int256"
760
+ }
761
+ ],
762
+ "internalType": "struct Interval[]",
763
+ "name": "numericIntervals",
764
+ "type": "tuple[]"
765
+ },
766
+ {
767
+ "internalType": "uint64",
768
+ "name": "numericDecimals",
769
+ "type": "uint64"
770
+ }
771
+ ],
772
+ "internalType": "struct ValidAnswers",
773
+ "name": "validAnswers",
774
+ "type": "tuple"
775
+ },
776
+ {
777
+ "internalType": "uint256",
778
+ "name": "resolutionTime",
779
+ "type": "uint256"
780
+ },
781
+ {
782
+ "internalType": "uint256",
783
+ "name": "minAgreement",
784
+ "type": "uint256"
785
+ },
786
+ {
787
+ "internalType": "uint256",
788
+ "name": "subcommitteeSize",
789
+ "type": "uint256"
790
+ },
791
+ {
792
+ "internalType": "uint256",
793
+ "name": "subcommitteeThreshold",
794
+ "type": "uint256"
795
+ }
796
+ ],
797
+ "internalType": "struct QuestionDefinition",
798
+ "name": "def",
799
+ "type": "tuple"
800
+ }
801
+ ],
802
+ "name": "submitQuestion",
803
+ "outputs": [
804
+ {
805
+ "internalType": "uint256",
806
+ "name": "questionId",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "stateMutability": "payable",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [
815
+ {
816
+ "internalType": "address",
817
+ "name": "newOwner",
818
+ "type": "address"
819
+ }
820
+ ],
821
+ "name": "transferOwnership",
822
+ "outputs": [],
823
+ "stateMutability": "nonpayable",
824
+ "type": "function"
825
+ },
826
+ {
827
+ "inputs": [
828
+ {
829
+ "internalType": "address",
830
+ "name": "newImplementation",
831
+ "type": "address"
832
+ },
833
+ {
834
+ "internalType": "bytes",
835
+ "name": "data",
836
+ "type": "bytes"
837
+ }
838
+ ],
839
+ "name": "upgradeToAndCall",
840
+ "outputs": [],
841
+ "stateMutability": "payable",
842
+ "type": "function"
843
+ },
844
+ {
845
+ "inputs": [],
846
+ "name": "version",
847
+ "outputs": [
848
+ {
849
+ "internalType": "string",
850
+ "name": "",
851
+ "type": "string"
852
+ }
853
+ ],
854
+ "stateMutability": "pure",
855
+ "type": "function"
856
+ },
857
+ {
858
+ "inputs": [
859
+ {
860
+ "internalType": "address payable",
861
+ "name": "to",
862
+ "type": "address"
863
+ },
864
+ {
865
+ "internalType": "uint256",
866
+ "name": "amount",
867
+ "type": "uint256"
868
+ }
869
+ ],
870
+ "name": "withdraw",
871
+ "outputs": [],
872
+ "stateMutability": "nonpayable",
873
+ "type": "function"
874
+ },
875
+ {
876
+ "anonymous": false,
877
+ "inputs": [
878
+ {
879
+ "indexed": false,
880
+ "internalType": "uint64",
881
+ "name": "version",
882
+ "type": "uint64"
883
+ }
884
+ ],
885
+ "name": "Initialized",
886
+ "type": "event"
887
+ },
888
+ {
889
+ "anonymous": false,
890
+ "inputs": [
891
+ {
892
+ "indexed": false,
893
+ "internalType": "address",
894
+ "name": "registry",
895
+ "type": "address"
896
+ }
897
+ ],
898
+ "name": "ModerationRegistrySet",
899
+ "type": "event"
900
+ },
901
+ {
902
+ "anonymous": false,
903
+ "inputs": [
904
+ {
905
+ "indexed": false,
906
+ "internalType": "address",
907
+ "name": "registry",
908
+ "type": "address"
909
+ }
910
+ ],
911
+ "name": "NameRegistrySet",
912
+ "type": "event"
913
+ },
914
+ {
915
+ "anonymous": false,
916
+ "inputs": [
917
+ {
918
+ "indexed": false,
919
+ "internalType": "address",
920
+ "name": "oracleCore",
921
+ "type": "address"
922
+ }
923
+ ],
924
+ "name": "OracleCoreSet",
925
+ "type": "event"
926
+ },
927
+ {
928
+ "anonymous": false,
929
+ "inputs": [
930
+ {
931
+ "indexed": true,
932
+ "internalType": "address",
933
+ "name": "previousOwner",
934
+ "type": "address"
935
+ },
936
+ {
937
+ "indexed": true,
938
+ "internalType": "address",
939
+ "name": "newOwner",
940
+ "type": "address"
941
+ }
942
+ ],
943
+ "name": "OwnershipTransferStarted",
944
+ "type": "event"
945
+ },
946
+ {
947
+ "anonymous": false,
948
+ "inputs": [
949
+ {
950
+ "indexed": true,
951
+ "internalType": "address",
952
+ "name": "previousOwner",
953
+ "type": "address"
954
+ },
955
+ {
956
+ "indexed": true,
957
+ "internalType": "address",
958
+ "name": "newOwner",
959
+ "type": "address"
960
+ }
961
+ ],
962
+ "name": "OwnershipTransferred",
963
+ "type": "event"
964
+ },
965
+ {
966
+ "anonymous": false,
967
+ "inputs": [
968
+ {
969
+ "indexed": true,
970
+ "internalType": "uint256",
971
+ "name": "questionId",
972
+ "type": "uint256"
973
+ },
974
+ {
975
+ "indexed": true,
976
+ "internalType": "address",
977
+ "name": "creator",
978
+ "type": "address"
979
+ }
980
+ ],
981
+ "name": "QuestionSubmitted",
982
+ "type": "event"
983
+ },
984
+ {
985
+ "anonymous": false,
986
+ "inputs": [
987
+ {
988
+ "indexed": true,
989
+ "internalType": "address",
990
+ "name": "implementation",
991
+ "type": "address"
992
+ }
993
+ ],
994
+ "name": "Upgraded",
995
+ "type": "event"
996
+ },
997
+ {
998
+ "inputs": [
999
+ {
1000
+ "internalType": "address",
1001
+ "name": "target",
1002
+ "type": "address"
1003
+ }
1004
+ ],
1005
+ "name": "AddressEmptyCode",
1006
+ "type": "error"
1007
+ },
1008
+ {
1009
+ "inputs": [
1010
+ {
1011
+ "internalType": "address",
1012
+ "name": "implementation",
1013
+ "type": "address"
1014
+ }
1015
+ ],
1016
+ "name": "ERC1967InvalidImplementation",
1017
+ "type": "error"
1018
+ },
1019
+ {
1020
+ "inputs": [],
1021
+ "name": "ERC1967NonPayable",
1022
+ "type": "error"
1023
+ },
1024
+ {
1025
+ "inputs": [],
1026
+ "name": "FailedCall",
1027
+ "type": "error"
1028
+ },
1029
+ {
1030
+ "inputs": [],
1031
+ "name": "IncorrectMsgValue",
1032
+ "type": "error"
1033
+ },
1034
+ {
1035
+ "inputs": [],
1036
+ "name": "InvalidInitialization",
1037
+ "type": "error"
1038
+ },
1039
+ {
1040
+ "inputs": [],
1041
+ "name": "NotInitializing",
1042
+ "type": "error"
1043
+ },
1044
+ {
1045
+ "inputs": [
1046
+ {
1047
+ "internalType": "address",
1048
+ "name": "owner",
1049
+ "type": "address"
1050
+ }
1051
+ ],
1052
+ "name": "OwnableInvalidOwner",
1053
+ "type": "error"
1054
+ },
1055
+ {
1056
+ "inputs": [
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "account",
1060
+ "type": "address"
1061
+ }
1062
+ ],
1063
+ "name": "OwnableUnauthorizedAccount",
1064
+ "type": "error"
1065
+ },
1066
+ {
1067
+ "inputs": [],
1068
+ "name": "QuestionIdCollision",
1069
+ "type": "error"
1070
+ },
1071
+ {
1072
+ "inputs": [],
1073
+ "name": "QuestionNotFound",
1074
+ "type": "error"
1075
+ },
1076
+ {
1077
+ "inputs": [],
1078
+ "name": "ReentrancyGuardReentrantCall",
1079
+ "type": "error"
1080
+ },
1081
+ {
1082
+ "inputs": [],
1083
+ "name": "RefundFailed",
1084
+ "type": "error"
1085
+ },
1086
+ {
1087
+ "inputs": [],
1088
+ "name": "UUPSUnauthorizedCallContext",
1089
+ "type": "error"
1090
+ },
1091
+ {
1092
+ "inputs": [
1093
+ {
1094
+ "internalType": "bytes32",
1095
+ "name": "slot",
1096
+ "type": "bytes32"
1097
+ }
1098
+ ],
1099
+ "name": "UUPSUnsupportedProxiableUUID",
1100
+ "type": "error"
1101
+ },
1102
+ {
1103
+ "inputs": [],
1104
+ "name": "UnknownAnswer",
1105
+ "type": "error"
1106
+ },
1107
+ {
1108
+ "inputs": [],
1109
+ "name": "WithdrawFailed",
1110
+ "type": "error"
1111
+ },
1112
+ {
1113
+ "inputs": [],
1114
+ "name": "ZeroRegistryAddress",
1115
+ "type": "error"
1116
+ }
1117
+ ];
1118
+ export const digest = "sha256:914f4b7b21d6276de742b031d22f8e7b3e9fab642c64052af5a3d65cb821f2d6";