@rateloop/contracts 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +27 -0
  2. package/dist/cjs/abis/AdvisoryVoteRecorderAbi.js +935 -0
  3. package/dist/cjs/abis/CategoryRegistryAbi.js +518 -0
  4. package/dist/cjs/abis/ClusterPayoutOracleAbi.js +2580 -0
  5. package/dist/cjs/abis/ConfidentialityEscrowAbi.js +1619 -0
  6. package/dist/cjs/abis/ContentRegistryAbi.js +2606 -0
  7. package/dist/cjs/abis/FeedbackBonusEscrowAbi.js +1496 -0
  8. package/dist/cjs/abis/FeedbackRegistryAbi.js +642 -0
  9. package/dist/cjs/abis/FrontendRegistryAbi.js +1406 -0
  10. package/dist/cjs/abis/LaunchDistributionPoolAbi.js +2936 -0
  11. package/dist/cjs/abis/LoopReputationAbi.js +1365 -0
  12. package/dist/cjs/abis/ProfileRegistryAbi.js +708 -0
  13. package/dist/cjs/abis/ProtocolConfigAbi.js +2075 -0
  14. package/dist/cjs/abis/QuestionRewardPoolEscrowAbi.js +2910 -0
  15. package/dist/cjs/abis/RateLoopGovernorAbi.js +2018 -0
  16. package/dist/cjs/abis/RaterRegistryAbi.js +3062 -0
  17. package/dist/cjs/abis/RaterRegistryConfidentialityAbi.js +117 -0
  18. package/dist/cjs/abis/RoundRewardDistributorAbi.js +1523 -0
  19. package/dist/cjs/abis/RoundVotingEngineAbi.js +2295 -0
  20. package/dist/cjs/abis/TimelockControllerAbi.js +1001 -0
  21. package/dist/cjs/abis/X402QuestionSubmitterAbi.js +2137 -0
  22. package/dist/cjs/abis/index.js +43 -0
  23. package/dist/cjs/deployedContracts.js +168595 -0
  24. package/dist/cjs/deployments.js +48 -0
  25. package/dist/cjs/index.js +27 -0
  26. package/dist/cjs/package.json +3 -0
  27. package/dist/cjs/protocol.js +99 -0
  28. package/dist/cjs/types.js +2 -0
  29. package/dist/cjs/voting.js +336 -0
  30. package/dist/cjs/votingCore.js +301 -0
  31. package/dist/esm/abis/AdvisoryVoteRecorderAbi.d.ts +727 -0
  32. package/dist/esm/abis/AdvisoryVoteRecorderAbi.d.ts.map +1 -0
  33. package/dist/esm/abis/AdvisoryVoteRecorderAbi.js +932 -0
  34. package/dist/esm/abis/CategoryRegistryAbi.d.ts +396 -0
  35. package/dist/esm/abis/CategoryRegistryAbi.d.ts.map +1 -0
  36. package/dist/esm/abis/CategoryRegistryAbi.js +515 -0
  37. package/dist/esm/abis/ClusterPayoutOracleAbi.d.ts +2005 -0
  38. package/dist/esm/abis/ClusterPayoutOracleAbi.d.ts.map +1 -0
  39. package/dist/esm/abis/ClusterPayoutOracleAbi.js +2577 -0
  40. package/dist/esm/abis/ConfidentialityEscrowAbi.d.ts +1255 -0
  41. package/dist/esm/abis/ConfidentialityEscrowAbi.d.ts.map +1 -0
  42. package/dist/esm/abis/ConfidentialityEscrowAbi.js +1616 -0
  43. package/dist/esm/abis/ContentRegistryAbi.d.ts +2036 -0
  44. package/dist/esm/abis/ContentRegistryAbi.d.ts.map +1 -0
  45. package/dist/esm/abis/ContentRegistryAbi.js +2603 -0
  46. package/dist/esm/abis/FeedbackBonusEscrowAbi.d.ts +1163 -0
  47. package/dist/esm/abis/FeedbackBonusEscrowAbi.d.ts.map +1 -0
  48. package/dist/esm/abis/FeedbackBonusEscrowAbi.js +1493 -0
  49. package/dist/esm/abis/FeedbackRegistryAbi.d.ts +498 -0
  50. package/dist/esm/abis/FeedbackRegistryAbi.d.ts.map +1 -0
  51. package/dist/esm/abis/FeedbackRegistryAbi.js +639 -0
  52. package/dist/esm/abis/FrontendRegistryAbi.d.ts +1084 -0
  53. package/dist/esm/abis/FrontendRegistryAbi.d.ts.map +1 -0
  54. package/dist/esm/abis/FrontendRegistryAbi.js +1403 -0
  55. package/dist/esm/abis/LaunchDistributionPoolAbi.d.ts +2273 -0
  56. package/dist/esm/abis/LaunchDistributionPoolAbi.d.ts.map +1 -0
  57. package/dist/esm/abis/LaunchDistributionPoolAbi.js +2933 -0
  58. package/dist/esm/abis/LoopReputationAbi.d.ts +1042 -0
  59. package/dist/esm/abis/LoopReputationAbi.d.ts.map +1 -0
  60. package/dist/esm/abis/LoopReputationAbi.js +1362 -0
  61. package/dist/esm/abis/ProfileRegistryAbi.d.ts +545 -0
  62. package/dist/esm/abis/ProfileRegistryAbi.d.ts.map +1 -0
  63. package/dist/esm/abis/ProfileRegistryAbi.js +705 -0
  64. package/dist/esm/abis/ProtocolConfigAbi.d.ts +1617 -0
  65. package/dist/esm/abis/ProtocolConfigAbi.d.ts.map +1 -0
  66. package/dist/esm/abis/ProtocolConfigAbi.js +2072 -0
  67. package/dist/esm/abis/QuestionRewardPoolEscrowAbi.d.ts +2287 -0
  68. package/dist/esm/abis/QuestionRewardPoolEscrowAbi.d.ts.map +1 -0
  69. package/dist/esm/abis/QuestionRewardPoolEscrowAbi.js +2907 -0
  70. package/dist/esm/abis/RateLoopGovernorAbi.d.ts +1544 -0
  71. package/dist/esm/abis/RateLoopGovernorAbi.d.ts.map +1 -0
  72. package/dist/esm/abis/RateLoopGovernorAbi.js +2015 -0
  73. package/dist/esm/abis/RaterRegistryAbi.d.ts +2390 -0
  74. package/dist/esm/abis/RaterRegistryAbi.d.ts.map +1 -0
  75. package/dist/esm/abis/RaterRegistryAbi.js +3059 -0
  76. package/dist/esm/abis/RaterRegistryConfidentialityAbi.d.ts +132 -0
  77. package/dist/esm/abis/RaterRegistryConfidentialityAbi.d.ts.map +1 -0
  78. package/dist/esm/abis/RaterRegistryConfidentialityAbi.js +114 -0
  79. package/dist/esm/abis/RoundRewardDistributorAbi.d.ts +1182 -0
  80. package/dist/esm/abis/RoundRewardDistributorAbi.d.ts.map +1 -0
  81. package/dist/esm/abis/RoundRewardDistributorAbi.js +1520 -0
  82. package/dist/esm/abis/RoundVotingEngineAbi.d.ts +1797 -0
  83. package/dist/esm/abis/RoundVotingEngineAbi.d.ts.map +1 -0
  84. package/dist/esm/abis/RoundVotingEngineAbi.js +2292 -0
  85. package/dist/esm/abis/TimelockControllerAbi.d.ts +771 -0
  86. package/dist/esm/abis/TimelockControllerAbi.d.ts.map +1 -0
  87. package/dist/esm/abis/TimelockControllerAbi.js +998 -0
  88. package/dist/esm/abis/X402QuestionSubmitterAbi.d.ts +1663 -0
  89. package/dist/esm/abis/X402QuestionSubmitterAbi.d.ts.map +1 -0
  90. package/dist/esm/abis/X402QuestionSubmitterAbi.js +2134 -0
  91. package/dist/esm/abis/index.d.ts +21 -0
  92. package/dist/esm/abis/index.d.ts.map +1 -0
  93. package/dist/esm/abis/index.js +20 -0
  94. package/dist/esm/deployedContracts.d.ts +8 -0
  95. package/dist/esm/deployedContracts.d.ts.map +1 -0
  96. package/dist/esm/deployedContracts.js +168593 -0
  97. package/dist/esm/deployments.d.ts +6 -0
  98. package/dist/esm/deployments.d.ts.map +1 -0
  99. package/dist/esm/deployments.js +39 -0
  100. package/dist/esm/index.d.ts +7 -0
  101. package/dist/esm/index.d.ts.map +1 -0
  102. package/dist/esm/index.js +6 -0
  103. package/dist/esm/protocol.d.ts +64 -0
  104. package/dist/esm/protocol.d.ts.map +1 -0
  105. package/dist/esm/protocol.js +94 -0
  106. package/dist/esm/types.d.ts +16 -0
  107. package/dist/esm/types.d.ts.map +1 -0
  108. package/dist/esm/types.js +1 -0
  109. package/dist/esm/voting.d.ts +75 -0
  110. package/dist/esm/voting.d.ts.map +1 -0
  111. package/dist/esm/voting.js +279 -0
  112. package/dist/esm/votingCore.d.ts +55 -0
  113. package/dist/esm/votingCore.d.ts.map +1 -0
  114. package/dist/esm/votingCore.js +286 -0
  115. package/package.json +122 -0
@@ -0,0 +1,2137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.X402QuestionSubmitterAbi = void 0;
4
+ exports.X402QuestionSubmitterAbi = [
5
+ {
6
+ "type": "constructor",
7
+ "inputs": [
8
+ {
9
+ "name": "_registry",
10
+ "type": "address",
11
+ "internalType": "contract ContentRegistry"
12
+ },
13
+ {
14
+ "name": "_usdcToken",
15
+ "type": "address",
16
+ "internalType": "address"
17
+ },
18
+ {
19
+ "name": "_questionRewardPoolEscrow",
20
+ "type": "address",
21
+ "internalType": "address"
22
+ },
23
+ {
24
+ "name": "_feedbackBonusEscrow",
25
+ "type": "address",
26
+ "internalType": "address"
27
+ },
28
+ {
29
+ "name": "initialOwner",
30
+ "type": "address",
31
+ "internalType": "address"
32
+ }
33
+ ],
34
+ "stateMutability": "nonpayable"
35
+ },
36
+ {
37
+ "type": "function",
38
+ "name": "computeX402QuestionOneShotPaymentNonce",
39
+ "inputs": [
40
+ {
41
+ "name": "metadata",
42
+ "type": "tuple",
43
+ "internalType": "struct ContentRegistry.SubmissionMetadata",
44
+ "components": [
45
+ {
46
+ "name": "url",
47
+ "type": "string",
48
+ "internalType": "string"
49
+ },
50
+ {
51
+ "name": "title",
52
+ "type": "string",
53
+ "internalType": "string"
54
+ },
55
+ {
56
+ "name": "tags",
57
+ "type": "string",
58
+ "internalType": "string"
59
+ },
60
+ {
61
+ "name": "categoryId",
62
+ "type": "uint256",
63
+ "internalType": "uint256"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "name": "imageUrls",
69
+ "type": "string[]",
70
+ "internalType": "string[]"
71
+ },
72
+ {
73
+ "name": "videoUrl",
74
+ "type": "string",
75
+ "internalType": "string"
76
+ },
77
+ {
78
+ "name": "details",
79
+ "type": "tuple",
80
+ "internalType": "struct ContentRegistry.SubmissionDetails",
81
+ "components": [
82
+ {
83
+ "name": "detailsUrl",
84
+ "type": "string",
85
+ "internalType": "string"
86
+ },
87
+ {
88
+ "name": "detailsHash",
89
+ "type": "bytes32",
90
+ "internalType": "bytes32"
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "name": "salt",
96
+ "type": "bytes32",
97
+ "internalType": "bytes32"
98
+ },
99
+ {
100
+ "name": "rewardTerms",
101
+ "type": "tuple",
102
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
103
+ "components": [
104
+ {
105
+ "name": "asset",
106
+ "type": "uint8",
107
+ "internalType": "uint8"
108
+ },
109
+ {
110
+ "name": "amount",
111
+ "type": "uint256",
112
+ "internalType": "uint256"
113
+ },
114
+ {
115
+ "name": "requiredVoters",
116
+ "type": "uint256",
117
+ "internalType": "uint256"
118
+ },
119
+ {
120
+ "name": "requiredSettledRounds",
121
+ "type": "uint256",
122
+ "internalType": "uint256"
123
+ },
124
+ {
125
+ "name": "bountyStartBy",
126
+ "type": "uint256",
127
+ "internalType": "uint256"
128
+ },
129
+ {
130
+ "name": "bountyWindowSeconds",
131
+ "type": "uint256",
132
+ "internalType": "uint256"
133
+ },
134
+ {
135
+ "name": "feedbackWindowSeconds",
136
+ "type": "uint256",
137
+ "internalType": "uint256"
138
+ },
139
+ {
140
+ "name": "bountyEligibility",
141
+ "type": "uint8",
142
+ "internalType": "uint8"
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "roundConfig",
148
+ "type": "tuple",
149
+ "internalType": "struct RoundLib.RoundConfig",
150
+ "components": [
151
+ {
152
+ "name": "epochDuration",
153
+ "type": "uint32",
154
+ "internalType": "uint32"
155
+ },
156
+ {
157
+ "name": "maxDuration",
158
+ "type": "uint32",
159
+ "internalType": "uint32"
160
+ },
161
+ {
162
+ "name": "minVoters",
163
+ "type": "uint16",
164
+ "internalType": "uint16"
165
+ },
166
+ {
167
+ "name": "maxVoters",
168
+ "type": "uint16",
169
+ "internalType": "uint16"
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "name": "spec",
175
+ "type": "tuple",
176
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
177
+ "components": [
178
+ {
179
+ "name": "questionMetadataHash",
180
+ "type": "bytes32",
181
+ "internalType": "bytes32"
182
+ },
183
+ {
184
+ "name": "resultSpecHash",
185
+ "type": "bytes32",
186
+ "internalType": "bytes32"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "name": "feedbackBonusTerms",
192
+ "type": "tuple",
193
+ "internalType": "struct X402QuestionSubmitter.FeedbackBonusTerms",
194
+ "components": [
195
+ {
196
+ "name": "amount",
197
+ "type": "uint256",
198
+ "internalType": "uint256"
199
+ },
200
+ {
201
+ "name": "feedbackClosesAt",
202
+ "type": "uint256",
203
+ "internalType": "uint256"
204
+ },
205
+ {
206
+ "name": "awarder",
207
+ "type": "address",
208
+ "internalType": "address"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "name": "payer",
214
+ "type": "address",
215
+ "internalType": "address"
216
+ },
217
+ {
218
+ "name": "payee",
219
+ "type": "address",
220
+ "internalType": "address"
221
+ },
222
+ {
223
+ "name": "value",
224
+ "type": "uint256",
225
+ "internalType": "uint256"
226
+ },
227
+ {
228
+ "name": "validAfter",
229
+ "type": "uint256",
230
+ "internalType": "uint256"
231
+ },
232
+ {
233
+ "name": "validBefore",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ }
237
+ ],
238
+ "outputs": [
239
+ {
240
+ "name": "",
241
+ "type": "bytes32",
242
+ "internalType": "bytes32"
243
+ }
244
+ ],
245
+ "stateMutability": "view"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "computeX402QuestionOneShotPaymentNonce",
250
+ "inputs": [
251
+ {
252
+ "name": "metadata",
253
+ "type": "tuple",
254
+ "internalType": "struct ContentRegistry.SubmissionMetadata",
255
+ "components": [
256
+ {
257
+ "name": "url",
258
+ "type": "string",
259
+ "internalType": "string"
260
+ },
261
+ {
262
+ "name": "title",
263
+ "type": "string",
264
+ "internalType": "string"
265
+ },
266
+ {
267
+ "name": "tags",
268
+ "type": "string",
269
+ "internalType": "string"
270
+ },
271
+ {
272
+ "name": "categoryId",
273
+ "type": "uint256",
274
+ "internalType": "uint256"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "name": "imageUrls",
280
+ "type": "string[]",
281
+ "internalType": "string[]"
282
+ },
283
+ {
284
+ "name": "videoUrl",
285
+ "type": "string",
286
+ "internalType": "string"
287
+ },
288
+ {
289
+ "name": "details",
290
+ "type": "tuple",
291
+ "internalType": "struct ContentRegistry.SubmissionDetails",
292
+ "components": [
293
+ {
294
+ "name": "detailsUrl",
295
+ "type": "string",
296
+ "internalType": "string"
297
+ },
298
+ {
299
+ "name": "detailsHash",
300
+ "type": "bytes32",
301
+ "internalType": "bytes32"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "name": "salt",
307
+ "type": "bytes32",
308
+ "internalType": "bytes32"
309
+ },
310
+ {
311
+ "name": "rewardTerms",
312
+ "type": "tuple",
313
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
314
+ "components": [
315
+ {
316
+ "name": "asset",
317
+ "type": "uint8",
318
+ "internalType": "uint8"
319
+ },
320
+ {
321
+ "name": "amount",
322
+ "type": "uint256",
323
+ "internalType": "uint256"
324
+ },
325
+ {
326
+ "name": "requiredVoters",
327
+ "type": "uint256",
328
+ "internalType": "uint256"
329
+ },
330
+ {
331
+ "name": "requiredSettledRounds",
332
+ "type": "uint256",
333
+ "internalType": "uint256"
334
+ },
335
+ {
336
+ "name": "bountyStartBy",
337
+ "type": "uint256",
338
+ "internalType": "uint256"
339
+ },
340
+ {
341
+ "name": "bountyWindowSeconds",
342
+ "type": "uint256",
343
+ "internalType": "uint256"
344
+ },
345
+ {
346
+ "name": "feedbackWindowSeconds",
347
+ "type": "uint256",
348
+ "internalType": "uint256"
349
+ },
350
+ {
351
+ "name": "bountyEligibility",
352
+ "type": "uint8",
353
+ "internalType": "uint8"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "name": "roundConfig",
359
+ "type": "tuple",
360
+ "internalType": "struct RoundLib.RoundConfig",
361
+ "components": [
362
+ {
363
+ "name": "epochDuration",
364
+ "type": "uint32",
365
+ "internalType": "uint32"
366
+ },
367
+ {
368
+ "name": "maxDuration",
369
+ "type": "uint32",
370
+ "internalType": "uint32"
371
+ },
372
+ {
373
+ "name": "minVoters",
374
+ "type": "uint16",
375
+ "internalType": "uint16"
376
+ },
377
+ {
378
+ "name": "maxVoters",
379
+ "type": "uint16",
380
+ "internalType": "uint16"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "name": "spec",
386
+ "type": "tuple",
387
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
388
+ "components": [
389
+ {
390
+ "name": "questionMetadataHash",
391
+ "type": "bytes32",
392
+ "internalType": "bytes32"
393
+ },
394
+ {
395
+ "name": "resultSpecHash",
396
+ "type": "bytes32",
397
+ "internalType": "bytes32"
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "name": "confidentiality",
403
+ "type": "tuple",
404
+ "internalType": "struct IConfidentialityEscrow.ConfidentialityConfig",
405
+ "components": [
406
+ {
407
+ "name": "gated",
408
+ "type": "bool",
409
+ "internalType": "bool"
410
+ },
411
+ {
412
+ "name": "bondAsset",
413
+ "type": "uint8",
414
+ "internalType": "uint8"
415
+ },
416
+ {
417
+ "name": "bondAmount",
418
+ "type": "uint64",
419
+ "internalType": "uint64"
420
+ },
421
+ {
422
+ "name": "flags",
423
+ "type": "uint8",
424
+ "internalType": "uint8"
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "name": "feedbackBonusTerms",
430
+ "type": "tuple",
431
+ "internalType": "struct X402QuestionSubmitter.FeedbackBonusTerms",
432
+ "components": [
433
+ {
434
+ "name": "amount",
435
+ "type": "uint256",
436
+ "internalType": "uint256"
437
+ },
438
+ {
439
+ "name": "feedbackClosesAt",
440
+ "type": "uint256",
441
+ "internalType": "uint256"
442
+ },
443
+ {
444
+ "name": "awarder",
445
+ "type": "address",
446
+ "internalType": "address"
447
+ }
448
+ ]
449
+ },
450
+ {
451
+ "name": "payer",
452
+ "type": "address",
453
+ "internalType": "address"
454
+ },
455
+ {
456
+ "name": "payee",
457
+ "type": "address",
458
+ "internalType": "address"
459
+ },
460
+ {
461
+ "name": "value",
462
+ "type": "uint256",
463
+ "internalType": "uint256"
464
+ },
465
+ {
466
+ "name": "validAfter",
467
+ "type": "uint256",
468
+ "internalType": "uint256"
469
+ },
470
+ {
471
+ "name": "validBefore",
472
+ "type": "uint256",
473
+ "internalType": "uint256"
474
+ }
475
+ ],
476
+ "outputs": [
477
+ {
478
+ "name": "",
479
+ "type": "bytes32",
480
+ "internalType": "bytes32"
481
+ }
482
+ ],
483
+ "stateMutability": "view"
484
+ },
485
+ {
486
+ "type": "function",
487
+ "name": "computeX402QuestionPaymentNonce",
488
+ "inputs": [
489
+ {
490
+ "name": "metadata",
491
+ "type": "tuple",
492
+ "internalType": "struct ContentRegistry.SubmissionMetadata",
493
+ "components": [
494
+ {
495
+ "name": "url",
496
+ "type": "string",
497
+ "internalType": "string"
498
+ },
499
+ {
500
+ "name": "title",
501
+ "type": "string",
502
+ "internalType": "string"
503
+ },
504
+ {
505
+ "name": "tags",
506
+ "type": "string",
507
+ "internalType": "string"
508
+ },
509
+ {
510
+ "name": "categoryId",
511
+ "type": "uint256",
512
+ "internalType": "uint256"
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "name": "imageUrls",
518
+ "type": "string[]",
519
+ "internalType": "string[]"
520
+ },
521
+ {
522
+ "name": "videoUrl",
523
+ "type": "string",
524
+ "internalType": "string"
525
+ },
526
+ {
527
+ "name": "details",
528
+ "type": "tuple",
529
+ "internalType": "struct ContentRegistry.SubmissionDetails",
530
+ "components": [
531
+ {
532
+ "name": "detailsUrl",
533
+ "type": "string",
534
+ "internalType": "string"
535
+ },
536
+ {
537
+ "name": "detailsHash",
538
+ "type": "bytes32",
539
+ "internalType": "bytes32"
540
+ }
541
+ ]
542
+ },
543
+ {
544
+ "name": "salt",
545
+ "type": "bytes32",
546
+ "internalType": "bytes32"
547
+ },
548
+ {
549
+ "name": "rewardTerms",
550
+ "type": "tuple",
551
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
552
+ "components": [
553
+ {
554
+ "name": "asset",
555
+ "type": "uint8",
556
+ "internalType": "uint8"
557
+ },
558
+ {
559
+ "name": "amount",
560
+ "type": "uint256",
561
+ "internalType": "uint256"
562
+ },
563
+ {
564
+ "name": "requiredVoters",
565
+ "type": "uint256",
566
+ "internalType": "uint256"
567
+ },
568
+ {
569
+ "name": "requiredSettledRounds",
570
+ "type": "uint256",
571
+ "internalType": "uint256"
572
+ },
573
+ {
574
+ "name": "bountyStartBy",
575
+ "type": "uint256",
576
+ "internalType": "uint256"
577
+ },
578
+ {
579
+ "name": "bountyWindowSeconds",
580
+ "type": "uint256",
581
+ "internalType": "uint256"
582
+ },
583
+ {
584
+ "name": "feedbackWindowSeconds",
585
+ "type": "uint256",
586
+ "internalType": "uint256"
587
+ },
588
+ {
589
+ "name": "bountyEligibility",
590
+ "type": "uint8",
591
+ "internalType": "uint8"
592
+ }
593
+ ]
594
+ },
595
+ {
596
+ "name": "roundConfig",
597
+ "type": "tuple",
598
+ "internalType": "struct RoundLib.RoundConfig",
599
+ "components": [
600
+ {
601
+ "name": "epochDuration",
602
+ "type": "uint32",
603
+ "internalType": "uint32"
604
+ },
605
+ {
606
+ "name": "maxDuration",
607
+ "type": "uint32",
608
+ "internalType": "uint32"
609
+ },
610
+ {
611
+ "name": "minVoters",
612
+ "type": "uint16",
613
+ "internalType": "uint16"
614
+ },
615
+ {
616
+ "name": "maxVoters",
617
+ "type": "uint16",
618
+ "internalType": "uint16"
619
+ }
620
+ ]
621
+ },
622
+ {
623
+ "name": "spec",
624
+ "type": "tuple",
625
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
626
+ "components": [
627
+ {
628
+ "name": "questionMetadataHash",
629
+ "type": "bytes32",
630
+ "internalType": "bytes32"
631
+ },
632
+ {
633
+ "name": "resultSpecHash",
634
+ "type": "bytes32",
635
+ "internalType": "bytes32"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "name": "confidentiality",
641
+ "type": "tuple",
642
+ "internalType": "struct IConfidentialityEscrow.ConfidentialityConfig",
643
+ "components": [
644
+ {
645
+ "name": "gated",
646
+ "type": "bool",
647
+ "internalType": "bool"
648
+ },
649
+ {
650
+ "name": "bondAsset",
651
+ "type": "uint8",
652
+ "internalType": "uint8"
653
+ },
654
+ {
655
+ "name": "bondAmount",
656
+ "type": "uint64",
657
+ "internalType": "uint64"
658
+ },
659
+ {
660
+ "name": "flags",
661
+ "type": "uint8",
662
+ "internalType": "uint8"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "name": "payer",
668
+ "type": "address",
669
+ "internalType": "address"
670
+ },
671
+ {
672
+ "name": "payee",
673
+ "type": "address",
674
+ "internalType": "address"
675
+ },
676
+ {
677
+ "name": "value",
678
+ "type": "uint256",
679
+ "internalType": "uint256"
680
+ },
681
+ {
682
+ "name": "validAfter",
683
+ "type": "uint256",
684
+ "internalType": "uint256"
685
+ },
686
+ {
687
+ "name": "validBefore",
688
+ "type": "uint256",
689
+ "internalType": "uint256"
690
+ }
691
+ ],
692
+ "outputs": [
693
+ {
694
+ "name": "",
695
+ "type": "bytes32",
696
+ "internalType": "bytes32"
697
+ }
698
+ ],
699
+ "stateMutability": "view"
700
+ },
701
+ {
702
+ "type": "function",
703
+ "name": "computeX402QuestionPaymentNonce",
704
+ "inputs": [
705
+ {
706
+ "name": "metadata",
707
+ "type": "tuple",
708
+ "internalType": "struct ContentRegistry.SubmissionMetadata",
709
+ "components": [
710
+ {
711
+ "name": "url",
712
+ "type": "string",
713
+ "internalType": "string"
714
+ },
715
+ {
716
+ "name": "title",
717
+ "type": "string",
718
+ "internalType": "string"
719
+ },
720
+ {
721
+ "name": "tags",
722
+ "type": "string",
723
+ "internalType": "string"
724
+ },
725
+ {
726
+ "name": "categoryId",
727
+ "type": "uint256",
728
+ "internalType": "uint256"
729
+ }
730
+ ]
731
+ },
732
+ {
733
+ "name": "imageUrls",
734
+ "type": "string[]",
735
+ "internalType": "string[]"
736
+ },
737
+ {
738
+ "name": "videoUrl",
739
+ "type": "string",
740
+ "internalType": "string"
741
+ },
742
+ {
743
+ "name": "details",
744
+ "type": "tuple",
745
+ "internalType": "struct ContentRegistry.SubmissionDetails",
746
+ "components": [
747
+ {
748
+ "name": "detailsUrl",
749
+ "type": "string",
750
+ "internalType": "string"
751
+ },
752
+ {
753
+ "name": "detailsHash",
754
+ "type": "bytes32",
755
+ "internalType": "bytes32"
756
+ }
757
+ ]
758
+ },
759
+ {
760
+ "name": "salt",
761
+ "type": "bytes32",
762
+ "internalType": "bytes32"
763
+ },
764
+ {
765
+ "name": "rewardTerms",
766
+ "type": "tuple",
767
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
768
+ "components": [
769
+ {
770
+ "name": "asset",
771
+ "type": "uint8",
772
+ "internalType": "uint8"
773
+ },
774
+ {
775
+ "name": "amount",
776
+ "type": "uint256",
777
+ "internalType": "uint256"
778
+ },
779
+ {
780
+ "name": "requiredVoters",
781
+ "type": "uint256",
782
+ "internalType": "uint256"
783
+ },
784
+ {
785
+ "name": "requiredSettledRounds",
786
+ "type": "uint256",
787
+ "internalType": "uint256"
788
+ },
789
+ {
790
+ "name": "bountyStartBy",
791
+ "type": "uint256",
792
+ "internalType": "uint256"
793
+ },
794
+ {
795
+ "name": "bountyWindowSeconds",
796
+ "type": "uint256",
797
+ "internalType": "uint256"
798
+ },
799
+ {
800
+ "name": "feedbackWindowSeconds",
801
+ "type": "uint256",
802
+ "internalType": "uint256"
803
+ },
804
+ {
805
+ "name": "bountyEligibility",
806
+ "type": "uint8",
807
+ "internalType": "uint8"
808
+ }
809
+ ]
810
+ },
811
+ {
812
+ "name": "roundConfig",
813
+ "type": "tuple",
814
+ "internalType": "struct RoundLib.RoundConfig",
815
+ "components": [
816
+ {
817
+ "name": "epochDuration",
818
+ "type": "uint32",
819
+ "internalType": "uint32"
820
+ },
821
+ {
822
+ "name": "maxDuration",
823
+ "type": "uint32",
824
+ "internalType": "uint32"
825
+ },
826
+ {
827
+ "name": "minVoters",
828
+ "type": "uint16",
829
+ "internalType": "uint16"
830
+ },
831
+ {
832
+ "name": "maxVoters",
833
+ "type": "uint16",
834
+ "internalType": "uint16"
835
+ }
836
+ ]
837
+ },
838
+ {
839
+ "name": "spec",
840
+ "type": "tuple",
841
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
842
+ "components": [
843
+ {
844
+ "name": "questionMetadataHash",
845
+ "type": "bytes32",
846
+ "internalType": "bytes32"
847
+ },
848
+ {
849
+ "name": "resultSpecHash",
850
+ "type": "bytes32",
851
+ "internalType": "bytes32"
852
+ }
853
+ ]
854
+ },
855
+ {
856
+ "name": "payer",
857
+ "type": "address",
858
+ "internalType": "address"
859
+ },
860
+ {
861
+ "name": "payee",
862
+ "type": "address",
863
+ "internalType": "address"
864
+ },
865
+ {
866
+ "name": "value",
867
+ "type": "uint256",
868
+ "internalType": "uint256"
869
+ },
870
+ {
871
+ "name": "validAfter",
872
+ "type": "uint256",
873
+ "internalType": "uint256"
874
+ },
875
+ {
876
+ "name": "validBefore",
877
+ "type": "uint256",
878
+ "internalType": "uint256"
879
+ }
880
+ ],
881
+ "outputs": [
882
+ {
883
+ "name": "",
884
+ "type": "bytes32",
885
+ "internalType": "bytes32"
886
+ }
887
+ ],
888
+ "stateMutability": "view"
889
+ },
890
+ {
891
+ "type": "function",
892
+ "name": "feedbackBonusEscrow",
893
+ "inputs": [],
894
+ "outputs": [
895
+ {
896
+ "name": "",
897
+ "type": "address",
898
+ "internalType": "address"
899
+ }
900
+ ],
901
+ "stateMutability": "view"
902
+ },
903
+ {
904
+ "type": "function",
905
+ "name": "owner",
906
+ "inputs": [],
907
+ "outputs": [
908
+ {
909
+ "name": "",
910
+ "type": "address",
911
+ "internalType": "address"
912
+ }
913
+ ],
914
+ "stateMutability": "view"
915
+ },
916
+ {
917
+ "type": "function",
918
+ "name": "questionRewardPoolEscrow",
919
+ "inputs": [],
920
+ "outputs": [
921
+ {
922
+ "name": "",
923
+ "type": "address",
924
+ "internalType": "address"
925
+ }
926
+ ],
927
+ "stateMutability": "view"
928
+ },
929
+ {
930
+ "type": "function",
931
+ "name": "registry",
932
+ "inputs": [],
933
+ "outputs": [
934
+ {
935
+ "name": "",
936
+ "type": "address",
937
+ "internalType": "contract ContentRegistry"
938
+ }
939
+ ],
940
+ "stateMutability": "view"
941
+ },
942
+ {
943
+ "type": "function",
944
+ "name": "renounceOwnership",
945
+ "inputs": [],
946
+ "outputs": [],
947
+ "stateMutability": "nonpayable"
948
+ },
949
+ {
950
+ "type": "function",
951
+ "name": "rescueToken",
952
+ "inputs": [
953
+ {
954
+ "name": "token",
955
+ "type": "address",
956
+ "internalType": "contract IERC20"
957
+ },
958
+ {
959
+ "name": "to",
960
+ "type": "address",
961
+ "internalType": "address"
962
+ },
963
+ {
964
+ "name": "amount",
965
+ "type": "uint256",
966
+ "internalType": "uint256"
967
+ }
968
+ ],
969
+ "outputs": [],
970
+ "stateMutability": "nonpayable"
971
+ },
972
+ {
973
+ "type": "function",
974
+ "name": "setFeedbackBonusEscrow",
975
+ "inputs": [
976
+ {
977
+ "name": "newEscrow",
978
+ "type": "address",
979
+ "internalType": "address"
980
+ }
981
+ ],
982
+ "outputs": [],
983
+ "stateMutability": "nonpayable"
984
+ },
985
+ {
986
+ "type": "function",
987
+ "name": "setQuestionRewardPoolEscrow",
988
+ "inputs": [
989
+ {
990
+ "name": "newEscrow",
991
+ "type": "address",
992
+ "internalType": "address"
993
+ }
994
+ ],
995
+ "outputs": [],
996
+ "stateMutability": "nonpayable"
997
+ },
998
+ {
999
+ "type": "function",
1000
+ "name": "submitQuestionWithX402OneShotPayment",
1001
+ "inputs": [
1002
+ {
1003
+ "name": "contextUrl",
1004
+ "type": "string",
1005
+ "internalType": "string"
1006
+ },
1007
+ {
1008
+ "name": "imageUrls",
1009
+ "type": "string[]",
1010
+ "internalType": "string[]"
1011
+ },
1012
+ {
1013
+ "name": "videoUrl",
1014
+ "type": "string",
1015
+ "internalType": "string"
1016
+ },
1017
+ {
1018
+ "name": "title",
1019
+ "type": "string",
1020
+ "internalType": "string"
1021
+ },
1022
+ {
1023
+ "name": "tags",
1024
+ "type": "string",
1025
+ "internalType": "string"
1026
+ },
1027
+ {
1028
+ "name": "categoryId",
1029
+ "type": "uint256",
1030
+ "internalType": "uint256"
1031
+ },
1032
+ {
1033
+ "name": "details",
1034
+ "type": "tuple",
1035
+ "internalType": "struct ContentRegistry.SubmissionDetails",
1036
+ "components": [
1037
+ {
1038
+ "name": "detailsUrl",
1039
+ "type": "string",
1040
+ "internalType": "string"
1041
+ },
1042
+ {
1043
+ "name": "detailsHash",
1044
+ "type": "bytes32",
1045
+ "internalType": "bytes32"
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "name": "salt",
1051
+ "type": "bytes32",
1052
+ "internalType": "bytes32"
1053
+ },
1054
+ {
1055
+ "name": "rewardTerms",
1056
+ "type": "tuple",
1057
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
1058
+ "components": [
1059
+ {
1060
+ "name": "asset",
1061
+ "type": "uint8",
1062
+ "internalType": "uint8"
1063
+ },
1064
+ {
1065
+ "name": "amount",
1066
+ "type": "uint256",
1067
+ "internalType": "uint256"
1068
+ },
1069
+ {
1070
+ "name": "requiredVoters",
1071
+ "type": "uint256",
1072
+ "internalType": "uint256"
1073
+ },
1074
+ {
1075
+ "name": "requiredSettledRounds",
1076
+ "type": "uint256",
1077
+ "internalType": "uint256"
1078
+ },
1079
+ {
1080
+ "name": "bountyStartBy",
1081
+ "type": "uint256",
1082
+ "internalType": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "bountyWindowSeconds",
1086
+ "type": "uint256",
1087
+ "internalType": "uint256"
1088
+ },
1089
+ {
1090
+ "name": "feedbackWindowSeconds",
1091
+ "type": "uint256",
1092
+ "internalType": "uint256"
1093
+ },
1094
+ {
1095
+ "name": "bountyEligibility",
1096
+ "type": "uint8",
1097
+ "internalType": "uint8"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "name": "roundConfig",
1103
+ "type": "tuple",
1104
+ "internalType": "struct RoundLib.RoundConfig",
1105
+ "components": [
1106
+ {
1107
+ "name": "epochDuration",
1108
+ "type": "uint32",
1109
+ "internalType": "uint32"
1110
+ },
1111
+ {
1112
+ "name": "maxDuration",
1113
+ "type": "uint32",
1114
+ "internalType": "uint32"
1115
+ },
1116
+ {
1117
+ "name": "minVoters",
1118
+ "type": "uint16",
1119
+ "internalType": "uint16"
1120
+ },
1121
+ {
1122
+ "name": "maxVoters",
1123
+ "type": "uint16",
1124
+ "internalType": "uint16"
1125
+ }
1126
+ ]
1127
+ },
1128
+ {
1129
+ "name": "spec",
1130
+ "type": "tuple",
1131
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
1132
+ "components": [
1133
+ {
1134
+ "name": "questionMetadataHash",
1135
+ "type": "bytes32",
1136
+ "internalType": "bytes32"
1137
+ },
1138
+ {
1139
+ "name": "resultSpecHash",
1140
+ "type": "bytes32",
1141
+ "internalType": "bytes32"
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "feedbackBonusTerms",
1147
+ "type": "tuple",
1148
+ "internalType": "struct X402QuestionSubmitter.FeedbackBonusTerms",
1149
+ "components": [
1150
+ {
1151
+ "name": "amount",
1152
+ "type": "uint256",
1153
+ "internalType": "uint256"
1154
+ },
1155
+ {
1156
+ "name": "feedbackClosesAt",
1157
+ "type": "uint256",
1158
+ "internalType": "uint256"
1159
+ },
1160
+ {
1161
+ "name": "awarder",
1162
+ "type": "address",
1163
+ "internalType": "address"
1164
+ }
1165
+ ]
1166
+ },
1167
+ {
1168
+ "name": "paymentAuthorization",
1169
+ "type": "tuple",
1170
+ "internalType": "struct Eip3009Authorization",
1171
+ "components": [
1172
+ {
1173
+ "name": "from",
1174
+ "type": "address",
1175
+ "internalType": "address"
1176
+ },
1177
+ {
1178
+ "name": "to",
1179
+ "type": "address",
1180
+ "internalType": "address"
1181
+ },
1182
+ {
1183
+ "name": "value",
1184
+ "type": "uint256",
1185
+ "internalType": "uint256"
1186
+ },
1187
+ {
1188
+ "name": "validAfter",
1189
+ "type": "uint256",
1190
+ "internalType": "uint256"
1191
+ },
1192
+ {
1193
+ "name": "validBefore",
1194
+ "type": "uint256",
1195
+ "internalType": "uint256"
1196
+ },
1197
+ {
1198
+ "name": "nonce",
1199
+ "type": "bytes32",
1200
+ "internalType": "bytes32"
1201
+ },
1202
+ {
1203
+ "name": "v",
1204
+ "type": "uint8",
1205
+ "internalType": "uint8"
1206
+ },
1207
+ {
1208
+ "name": "r",
1209
+ "type": "bytes32",
1210
+ "internalType": "bytes32"
1211
+ },
1212
+ {
1213
+ "name": "s",
1214
+ "type": "bytes32",
1215
+ "internalType": "bytes32"
1216
+ }
1217
+ ]
1218
+ }
1219
+ ],
1220
+ "outputs": [
1221
+ {
1222
+ "name": "contentId",
1223
+ "type": "uint256",
1224
+ "internalType": "uint256"
1225
+ },
1226
+ {
1227
+ "name": "feedbackBonusPoolId",
1228
+ "type": "uint256",
1229
+ "internalType": "uint256"
1230
+ }
1231
+ ],
1232
+ "stateMutability": "nonpayable"
1233
+ },
1234
+ {
1235
+ "type": "function",
1236
+ "name": "submitQuestionWithX402OneShotPayment",
1237
+ "inputs": [
1238
+ {
1239
+ "name": "contextUrl",
1240
+ "type": "string",
1241
+ "internalType": "string"
1242
+ },
1243
+ {
1244
+ "name": "imageUrls",
1245
+ "type": "string[]",
1246
+ "internalType": "string[]"
1247
+ },
1248
+ {
1249
+ "name": "videoUrl",
1250
+ "type": "string",
1251
+ "internalType": "string"
1252
+ },
1253
+ {
1254
+ "name": "title",
1255
+ "type": "string",
1256
+ "internalType": "string"
1257
+ },
1258
+ {
1259
+ "name": "tags",
1260
+ "type": "string",
1261
+ "internalType": "string"
1262
+ },
1263
+ {
1264
+ "name": "categoryId",
1265
+ "type": "uint256",
1266
+ "internalType": "uint256"
1267
+ },
1268
+ {
1269
+ "name": "details",
1270
+ "type": "tuple",
1271
+ "internalType": "struct ContentRegistry.SubmissionDetails",
1272
+ "components": [
1273
+ {
1274
+ "name": "detailsUrl",
1275
+ "type": "string",
1276
+ "internalType": "string"
1277
+ },
1278
+ {
1279
+ "name": "detailsHash",
1280
+ "type": "bytes32",
1281
+ "internalType": "bytes32"
1282
+ }
1283
+ ]
1284
+ },
1285
+ {
1286
+ "name": "salt",
1287
+ "type": "bytes32",
1288
+ "internalType": "bytes32"
1289
+ },
1290
+ {
1291
+ "name": "rewardTerms",
1292
+ "type": "tuple",
1293
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
1294
+ "components": [
1295
+ {
1296
+ "name": "asset",
1297
+ "type": "uint8",
1298
+ "internalType": "uint8"
1299
+ },
1300
+ {
1301
+ "name": "amount",
1302
+ "type": "uint256",
1303
+ "internalType": "uint256"
1304
+ },
1305
+ {
1306
+ "name": "requiredVoters",
1307
+ "type": "uint256",
1308
+ "internalType": "uint256"
1309
+ },
1310
+ {
1311
+ "name": "requiredSettledRounds",
1312
+ "type": "uint256",
1313
+ "internalType": "uint256"
1314
+ },
1315
+ {
1316
+ "name": "bountyStartBy",
1317
+ "type": "uint256",
1318
+ "internalType": "uint256"
1319
+ },
1320
+ {
1321
+ "name": "bountyWindowSeconds",
1322
+ "type": "uint256",
1323
+ "internalType": "uint256"
1324
+ },
1325
+ {
1326
+ "name": "feedbackWindowSeconds",
1327
+ "type": "uint256",
1328
+ "internalType": "uint256"
1329
+ },
1330
+ {
1331
+ "name": "bountyEligibility",
1332
+ "type": "uint8",
1333
+ "internalType": "uint8"
1334
+ }
1335
+ ]
1336
+ },
1337
+ {
1338
+ "name": "roundConfig",
1339
+ "type": "tuple",
1340
+ "internalType": "struct RoundLib.RoundConfig",
1341
+ "components": [
1342
+ {
1343
+ "name": "epochDuration",
1344
+ "type": "uint32",
1345
+ "internalType": "uint32"
1346
+ },
1347
+ {
1348
+ "name": "maxDuration",
1349
+ "type": "uint32",
1350
+ "internalType": "uint32"
1351
+ },
1352
+ {
1353
+ "name": "minVoters",
1354
+ "type": "uint16",
1355
+ "internalType": "uint16"
1356
+ },
1357
+ {
1358
+ "name": "maxVoters",
1359
+ "type": "uint16",
1360
+ "internalType": "uint16"
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "name": "spec",
1366
+ "type": "tuple",
1367
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
1368
+ "components": [
1369
+ {
1370
+ "name": "questionMetadataHash",
1371
+ "type": "bytes32",
1372
+ "internalType": "bytes32"
1373
+ },
1374
+ {
1375
+ "name": "resultSpecHash",
1376
+ "type": "bytes32",
1377
+ "internalType": "bytes32"
1378
+ }
1379
+ ]
1380
+ },
1381
+ {
1382
+ "name": "confidentiality",
1383
+ "type": "tuple",
1384
+ "internalType": "struct IConfidentialityEscrow.ConfidentialityConfig",
1385
+ "components": [
1386
+ {
1387
+ "name": "gated",
1388
+ "type": "bool",
1389
+ "internalType": "bool"
1390
+ },
1391
+ {
1392
+ "name": "bondAsset",
1393
+ "type": "uint8",
1394
+ "internalType": "uint8"
1395
+ },
1396
+ {
1397
+ "name": "bondAmount",
1398
+ "type": "uint64",
1399
+ "internalType": "uint64"
1400
+ },
1401
+ {
1402
+ "name": "flags",
1403
+ "type": "uint8",
1404
+ "internalType": "uint8"
1405
+ }
1406
+ ]
1407
+ },
1408
+ {
1409
+ "name": "feedbackBonusTerms",
1410
+ "type": "tuple",
1411
+ "internalType": "struct X402QuestionSubmitter.FeedbackBonusTerms",
1412
+ "components": [
1413
+ {
1414
+ "name": "amount",
1415
+ "type": "uint256",
1416
+ "internalType": "uint256"
1417
+ },
1418
+ {
1419
+ "name": "feedbackClosesAt",
1420
+ "type": "uint256",
1421
+ "internalType": "uint256"
1422
+ },
1423
+ {
1424
+ "name": "awarder",
1425
+ "type": "address",
1426
+ "internalType": "address"
1427
+ }
1428
+ ]
1429
+ },
1430
+ {
1431
+ "name": "paymentAuthorization",
1432
+ "type": "tuple",
1433
+ "internalType": "struct Eip3009Authorization",
1434
+ "components": [
1435
+ {
1436
+ "name": "from",
1437
+ "type": "address",
1438
+ "internalType": "address"
1439
+ },
1440
+ {
1441
+ "name": "to",
1442
+ "type": "address",
1443
+ "internalType": "address"
1444
+ },
1445
+ {
1446
+ "name": "value",
1447
+ "type": "uint256",
1448
+ "internalType": "uint256"
1449
+ },
1450
+ {
1451
+ "name": "validAfter",
1452
+ "type": "uint256",
1453
+ "internalType": "uint256"
1454
+ },
1455
+ {
1456
+ "name": "validBefore",
1457
+ "type": "uint256",
1458
+ "internalType": "uint256"
1459
+ },
1460
+ {
1461
+ "name": "nonce",
1462
+ "type": "bytes32",
1463
+ "internalType": "bytes32"
1464
+ },
1465
+ {
1466
+ "name": "v",
1467
+ "type": "uint8",
1468
+ "internalType": "uint8"
1469
+ },
1470
+ {
1471
+ "name": "r",
1472
+ "type": "bytes32",
1473
+ "internalType": "bytes32"
1474
+ },
1475
+ {
1476
+ "name": "s",
1477
+ "type": "bytes32",
1478
+ "internalType": "bytes32"
1479
+ }
1480
+ ]
1481
+ }
1482
+ ],
1483
+ "outputs": [
1484
+ {
1485
+ "name": "contentId",
1486
+ "type": "uint256",
1487
+ "internalType": "uint256"
1488
+ },
1489
+ {
1490
+ "name": "feedbackBonusPoolId",
1491
+ "type": "uint256",
1492
+ "internalType": "uint256"
1493
+ }
1494
+ ],
1495
+ "stateMutability": "nonpayable"
1496
+ },
1497
+ {
1498
+ "type": "function",
1499
+ "name": "submitQuestionWithX402Payment",
1500
+ "inputs": [
1501
+ {
1502
+ "name": "contextUrl",
1503
+ "type": "string",
1504
+ "internalType": "string"
1505
+ },
1506
+ {
1507
+ "name": "imageUrls",
1508
+ "type": "string[]",
1509
+ "internalType": "string[]"
1510
+ },
1511
+ {
1512
+ "name": "videoUrl",
1513
+ "type": "string",
1514
+ "internalType": "string"
1515
+ },
1516
+ {
1517
+ "name": "title",
1518
+ "type": "string",
1519
+ "internalType": "string"
1520
+ },
1521
+ {
1522
+ "name": "tags",
1523
+ "type": "string",
1524
+ "internalType": "string"
1525
+ },
1526
+ {
1527
+ "name": "categoryId",
1528
+ "type": "uint256",
1529
+ "internalType": "uint256"
1530
+ },
1531
+ {
1532
+ "name": "details",
1533
+ "type": "tuple",
1534
+ "internalType": "struct ContentRegistry.SubmissionDetails",
1535
+ "components": [
1536
+ {
1537
+ "name": "detailsUrl",
1538
+ "type": "string",
1539
+ "internalType": "string"
1540
+ },
1541
+ {
1542
+ "name": "detailsHash",
1543
+ "type": "bytes32",
1544
+ "internalType": "bytes32"
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "name": "salt",
1550
+ "type": "bytes32",
1551
+ "internalType": "bytes32"
1552
+ },
1553
+ {
1554
+ "name": "rewardTerms",
1555
+ "type": "tuple",
1556
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
1557
+ "components": [
1558
+ {
1559
+ "name": "asset",
1560
+ "type": "uint8",
1561
+ "internalType": "uint8"
1562
+ },
1563
+ {
1564
+ "name": "amount",
1565
+ "type": "uint256",
1566
+ "internalType": "uint256"
1567
+ },
1568
+ {
1569
+ "name": "requiredVoters",
1570
+ "type": "uint256",
1571
+ "internalType": "uint256"
1572
+ },
1573
+ {
1574
+ "name": "requiredSettledRounds",
1575
+ "type": "uint256",
1576
+ "internalType": "uint256"
1577
+ },
1578
+ {
1579
+ "name": "bountyStartBy",
1580
+ "type": "uint256",
1581
+ "internalType": "uint256"
1582
+ },
1583
+ {
1584
+ "name": "bountyWindowSeconds",
1585
+ "type": "uint256",
1586
+ "internalType": "uint256"
1587
+ },
1588
+ {
1589
+ "name": "feedbackWindowSeconds",
1590
+ "type": "uint256",
1591
+ "internalType": "uint256"
1592
+ },
1593
+ {
1594
+ "name": "bountyEligibility",
1595
+ "type": "uint8",
1596
+ "internalType": "uint8"
1597
+ }
1598
+ ]
1599
+ },
1600
+ {
1601
+ "name": "roundConfig",
1602
+ "type": "tuple",
1603
+ "internalType": "struct RoundLib.RoundConfig",
1604
+ "components": [
1605
+ {
1606
+ "name": "epochDuration",
1607
+ "type": "uint32",
1608
+ "internalType": "uint32"
1609
+ },
1610
+ {
1611
+ "name": "maxDuration",
1612
+ "type": "uint32",
1613
+ "internalType": "uint32"
1614
+ },
1615
+ {
1616
+ "name": "minVoters",
1617
+ "type": "uint16",
1618
+ "internalType": "uint16"
1619
+ },
1620
+ {
1621
+ "name": "maxVoters",
1622
+ "type": "uint16",
1623
+ "internalType": "uint16"
1624
+ }
1625
+ ]
1626
+ },
1627
+ {
1628
+ "name": "spec",
1629
+ "type": "tuple",
1630
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
1631
+ "components": [
1632
+ {
1633
+ "name": "questionMetadataHash",
1634
+ "type": "bytes32",
1635
+ "internalType": "bytes32"
1636
+ },
1637
+ {
1638
+ "name": "resultSpecHash",
1639
+ "type": "bytes32",
1640
+ "internalType": "bytes32"
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "name": "confidentiality",
1646
+ "type": "tuple",
1647
+ "internalType": "struct IConfidentialityEscrow.ConfidentialityConfig",
1648
+ "components": [
1649
+ {
1650
+ "name": "gated",
1651
+ "type": "bool",
1652
+ "internalType": "bool"
1653
+ },
1654
+ {
1655
+ "name": "bondAsset",
1656
+ "type": "uint8",
1657
+ "internalType": "uint8"
1658
+ },
1659
+ {
1660
+ "name": "bondAmount",
1661
+ "type": "uint64",
1662
+ "internalType": "uint64"
1663
+ },
1664
+ {
1665
+ "name": "flags",
1666
+ "type": "uint8",
1667
+ "internalType": "uint8"
1668
+ }
1669
+ ]
1670
+ },
1671
+ {
1672
+ "name": "paymentAuthorization",
1673
+ "type": "tuple",
1674
+ "internalType": "struct Eip3009Authorization",
1675
+ "components": [
1676
+ {
1677
+ "name": "from",
1678
+ "type": "address",
1679
+ "internalType": "address"
1680
+ },
1681
+ {
1682
+ "name": "to",
1683
+ "type": "address",
1684
+ "internalType": "address"
1685
+ },
1686
+ {
1687
+ "name": "value",
1688
+ "type": "uint256",
1689
+ "internalType": "uint256"
1690
+ },
1691
+ {
1692
+ "name": "validAfter",
1693
+ "type": "uint256",
1694
+ "internalType": "uint256"
1695
+ },
1696
+ {
1697
+ "name": "validBefore",
1698
+ "type": "uint256",
1699
+ "internalType": "uint256"
1700
+ },
1701
+ {
1702
+ "name": "nonce",
1703
+ "type": "bytes32",
1704
+ "internalType": "bytes32"
1705
+ },
1706
+ {
1707
+ "name": "v",
1708
+ "type": "uint8",
1709
+ "internalType": "uint8"
1710
+ },
1711
+ {
1712
+ "name": "r",
1713
+ "type": "bytes32",
1714
+ "internalType": "bytes32"
1715
+ },
1716
+ {
1717
+ "name": "s",
1718
+ "type": "bytes32",
1719
+ "internalType": "bytes32"
1720
+ }
1721
+ ]
1722
+ }
1723
+ ],
1724
+ "outputs": [
1725
+ {
1726
+ "name": "contentId",
1727
+ "type": "uint256",
1728
+ "internalType": "uint256"
1729
+ }
1730
+ ],
1731
+ "stateMutability": "nonpayable"
1732
+ },
1733
+ {
1734
+ "type": "function",
1735
+ "name": "submitQuestionWithX402Payment",
1736
+ "inputs": [
1737
+ {
1738
+ "name": "contextUrl",
1739
+ "type": "string",
1740
+ "internalType": "string"
1741
+ },
1742
+ {
1743
+ "name": "imageUrls",
1744
+ "type": "string[]",
1745
+ "internalType": "string[]"
1746
+ },
1747
+ {
1748
+ "name": "videoUrl",
1749
+ "type": "string",
1750
+ "internalType": "string"
1751
+ },
1752
+ {
1753
+ "name": "title",
1754
+ "type": "string",
1755
+ "internalType": "string"
1756
+ },
1757
+ {
1758
+ "name": "tags",
1759
+ "type": "string",
1760
+ "internalType": "string"
1761
+ },
1762
+ {
1763
+ "name": "categoryId",
1764
+ "type": "uint256",
1765
+ "internalType": "uint256"
1766
+ },
1767
+ {
1768
+ "name": "details",
1769
+ "type": "tuple",
1770
+ "internalType": "struct ContentRegistry.SubmissionDetails",
1771
+ "components": [
1772
+ {
1773
+ "name": "detailsUrl",
1774
+ "type": "string",
1775
+ "internalType": "string"
1776
+ },
1777
+ {
1778
+ "name": "detailsHash",
1779
+ "type": "bytes32",
1780
+ "internalType": "bytes32"
1781
+ }
1782
+ ]
1783
+ },
1784
+ {
1785
+ "name": "salt",
1786
+ "type": "bytes32",
1787
+ "internalType": "bytes32"
1788
+ },
1789
+ {
1790
+ "name": "rewardTerms",
1791
+ "type": "tuple",
1792
+ "internalType": "struct ContentRegistry.SubmissionRewardTerms",
1793
+ "components": [
1794
+ {
1795
+ "name": "asset",
1796
+ "type": "uint8",
1797
+ "internalType": "uint8"
1798
+ },
1799
+ {
1800
+ "name": "amount",
1801
+ "type": "uint256",
1802
+ "internalType": "uint256"
1803
+ },
1804
+ {
1805
+ "name": "requiredVoters",
1806
+ "type": "uint256",
1807
+ "internalType": "uint256"
1808
+ },
1809
+ {
1810
+ "name": "requiredSettledRounds",
1811
+ "type": "uint256",
1812
+ "internalType": "uint256"
1813
+ },
1814
+ {
1815
+ "name": "bountyStartBy",
1816
+ "type": "uint256",
1817
+ "internalType": "uint256"
1818
+ },
1819
+ {
1820
+ "name": "bountyWindowSeconds",
1821
+ "type": "uint256",
1822
+ "internalType": "uint256"
1823
+ },
1824
+ {
1825
+ "name": "feedbackWindowSeconds",
1826
+ "type": "uint256",
1827
+ "internalType": "uint256"
1828
+ },
1829
+ {
1830
+ "name": "bountyEligibility",
1831
+ "type": "uint8",
1832
+ "internalType": "uint8"
1833
+ }
1834
+ ]
1835
+ },
1836
+ {
1837
+ "name": "roundConfig",
1838
+ "type": "tuple",
1839
+ "internalType": "struct RoundLib.RoundConfig",
1840
+ "components": [
1841
+ {
1842
+ "name": "epochDuration",
1843
+ "type": "uint32",
1844
+ "internalType": "uint32"
1845
+ },
1846
+ {
1847
+ "name": "maxDuration",
1848
+ "type": "uint32",
1849
+ "internalType": "uint32"
1850
+ },
1851
+ {
1852
+ "name": "minVoters",
1853
+ "type": "uint16",
1854
+ "internalType": "uint16"
1855
+ },
1856
+ {
1857
+ "name": "maxVoters",
1858
+ "type": "uint16",
1859
+ "internalType": "uint16"
1860
+ }
1861
+ ]
1862
+ },
1863
+ {
1864
+ "name": "spec",
1865
+ "type": "tuple",
1866
+ "internalType": "struct ContentRegistry.QuestionSpecCommitment",
1867
+ "components": [
1868
+ {
1869
+ "name": "questionMetadataHash",
1870
+ "type": "bytes32",
1871
+ "internalType": "bytes32"
1872
+ },
1873
+ {
1874
+ "name": "resultSpecHash",
1875
+ "type": "bytes32",
1876
+ "internalType": "bytes32"
1877
+ }
1878
+ ]
1879
+ },
1880
+ {
1881
+ "name": "paymentAuthorization",
1882
+ "type": "tuple",
1883
+ "internalType": "struct Eip3009Authorization",
1884
+ "components": [
1885
+ {
1886
+ "name": "from",
1887
+ "type": "address",
1888
+ "internalType": "address"
1889
+ },
1890
+ {
1891
+ "name": "to",
1892
+ "type": "address",
1893
+ "internalType": "address"
1894
+ },
1895
+ {
1896
+ "name": "value",
1897
+ "type": "uint256",
1898
+ "internalType": "uint256"
1899
+ },
1900
+ {
1901
+ "name": "validAfter",
1902
+ "type": "uint256",
1903
+ "internalType": "uint256"
1904
+ },
1905
+ {
1906
+ "name": "validBefore",
1907
+ "type": "uint256",
1908
+ "internalType": "uint256"
1909
+ },
1910
+ {
1911
+ "name": "nonce",
1912
+ "type": "bytes32",
1913
+ "internalType": "bytes32"
1914
+ },
1915
+ {
1916
+ "name": "v",
1917
+ "type": "uint8",
1918
+ "internalType": "uint8"
1919
+ },
1920
+ {
1921
+ "name": "r",
1922
+ "type": "bytes32",
1923
+ "internalType": "bytes32"
1924
+ },
1925
+ {
1926
+ "name": "s",
1927
+ "type": "bytes32",
1928
+ "internalType": "bytes32"
1929
+ }
1930
+ ]
1931
+ }
1932
+ ],
1933
+ "outputs": [
1934
+ {
1935
+ "name": "contentId",
1936
+ "type": "uint256",
1937
+ "internalType": "uint256"
1938
+ }
1939
+ ],
1940
+ "stateMutability": "nonpayable"
1941
+ },
1942
+ {
1943
+ "type": "function",
1944
+ "name": "transferOwnership",
1945
+ "inputs": [
1946
+ {
1947
+ "name": "newOwner",
1948
+ "type": "address",
1949
+ "internalType": "address"
1950
+ }
1951
+ ],
1952
+ "outputs": [],
1953
+ "stateMutability": "nonpayable"
1954
+ },
1955
+ {
1956
+ "type": "function",
1957
+ "name": "usdcToken",
1958
+ "inputs": [],
1959
+ "outputs": [
1960
+ {
1961
+ "name": "",
1962
+ "type": "address",
1963
+ "internalType": "contract IERC20"
1964
+ }
1965
+ ],
1966
+ "stateMutability": "view"
1967
+ },
1968
+ {
1969
+ "type": "event",
1970
+ "name": "FeedbackBonusEscrowUpdated",
1971
+ "inputs": [
1972
+ {
1973
+ "name": "previousEscrow",
1974
+ "type": "address",
1975
+ "indexed": true,
1976
+ "internalType": "address"
1977
+ },
1978
+ {
1979
+ "name": "currentEscrow",
1980
+ "type": "address",
1981
+ "indexed": true,
1982
+ "internalType": "address"
1983
+ }
1984
+ ],
1985
+ "anonymous": false
1986
+ },
1987
+ {
1988
+ "type": "event",
1989
+ "name": "OwnershipTransferred",
1990
+ "inputs": [
1991
+ {
1992
+ "name": "previousOwner",
1993
+ "type": "address",
1994
+ "indexed": true,
1995
+ "internalType": "address"
1996
+ },
1997
+ {
1998
+ "name": "newOwner",
1999
+ "type": "address",
2000
+ "indexed": true,
2001
+ "internalType": "address"
2002
+ }
2003
+ ],
2004
+ "anonymous": false
2005
+ },
2006
+ {
2007
+ "type": "event",
2008
+ "name": "QuestionRewardPoolEscrowUpdated",
2009
+ "inputs": [
2010
+ {
2011
+ "name": "previousEscrow",
2012
+ "type": "address",
2013
+ "indexed": true,
2014
+ "internalType": "address"
2015
+ },
2016
+ {
2017
+ "name": "currentEscrow",
2018
+ "type": "address",
2019
+ "indexed": true,
2020
+ "internalType": "address"
2021
+ }
2022
+ ],
2023
+ "anonymous": false
2024
+ },
2025
+ {
2026
+ "type": "event",
2027
+ "name": "X402FeedbackBonusAttached",
2028
+ "inputs": [
2029
+ {
2030
+ "name": "contentId",
2031
+ "type": "uint256",
2032
+ "indexed": true,
2033
+ "internalType": "uint256"
2034
+ },
2035
+ {
2036
+ "name": "feedbackBonusPoolId",
2037
+ "type": "uint256",
2038
+ "indexed": true,
2039
+ "internalType": "uint256"
2040
+ },
2041
+ {
2042
+ "name": "funder",
2043
+ "type": "address",
2044
+ "indexed": true,
2045
+ "internalType": "address"
2046
+ },
2047
+ {
2048
+ "name": "amount",
2049
+ "type": "uint256",
2050
+ "indexed": false,
2051
+ "internalType": "uint256"
2052
+ },
2053
+ {
2054
+ "name": "feedbackClosesAt",
2055
+ "type": "uint256",
2056
+ "indexed": false,
2057
+ "internalType": "uint256"
2058
+ },
2059
+ {
2060
+ "name": "awarder",
2061
+ "type": "address",
2062
+ "indexed": false,
2063
+ "internalType": "address"
2064
+ }
2065
+ ],
2066
+ "anonymous": false
2067
+ },
2068
+ {
2069
+ "type": "event",
2070
+ "name": "X402QuestionSubmitted",
2071
+ "inputs": [
2072
+ {
2073
+ "name": "contentId",
2074
+ "type": "uint256",
2075
+ "indexed": true,
2076
+ "internalType": "uint256"
2077
+ },
2078
+ {
2079
+ "name": "submitter",
2080
+ "type": "address",
2081
+ "indexed": true,
2082
+ "internalType": "address"
2083
+ },
2084
+ {
2085
+ "name": "paymentNonce",
2086
+ "type": "bytes32",
2087
+ "indexed": true,
2088
+ "internalType": "bytes32"
2089
+ },
2090
+ {
2091
+ "name": "amount",
2092
+ "type": "uint256",
2093
+ "indexed": false,
2094
+ "internalType": "uint256"
2095
+ }
2096
+ ],
2097
+ "anonymous": false
2098
+ },
2099
+ {
2100
+ "type": "error",
2101
+ "name": "OwnableInvalidOwner",
2102
+ "inputs": [
2103
+ {
2104
+ "name": "owner",
2105
+ "type": "address",
2106
+ "internalType": "address"
2107
+ }
2108
+ ]
2109
+ },
2110
+ {
2111
+ "type": "error",
2112
+ "name": "OwnableUnauthorizedAccount",
2113
+ "inputs": [
2114
+ {
2115
+ "name": "account",
2116
+ "type": "address",
2117
+ "internalType": "address"
2118
+ }
2119
+ ]
2120
+ },
2121
+ {
2122
+ "type": "error",
2123
+ "name": "ReentrancyGuardReentrantCall",
2124
+ "inputs": []
2125
+ },
2126
+ {
2127
+ "type": "error",
2128
+ "name": "SafeERC20FailedOperation",
2129
+ "inputs": [
2130
+ {
2131
+ "name": "token",
2132
+ "type": "address",
2133
+ "internalType": "address"
2134
+ }
2135
+ ]
2136
+ }
2137
+ ];