@nexusmutual/sdk 1.12.0-rc.3 → 1.12.0-rc.4

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.
@@ -3,7 +3,7 @@
3
3
  "inputs": [
4
4
  {
5
5
  "internalType": "address",
6
- "name": "nxmAddress",
6
+ "name": "_registry",
7
7
  "type": "address"
8
8
  }
9
9
  ],
@@ -12,220 +12,260 @@
12
12
  },
13
13
  {
14
14
  "inputs": [],
15
- "name": "AcceptVoteRequired",
15
+ "name": "AlreadyVoted",
16
16
  "type": "error"
17
17
  },
18
18
  {
19
19
  "inputs": [],
20
- "name": "AlreadyVoted",
20
+ "name": "AssessmentAlreadyExists",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "claimId",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "HasNotVoted",
21
32
  "type": "error"
22
33
  },
23
34
  {
24
35
  "inputs": [],
25
- "name": "AssessmentIdsIpfsLengthMismatch",
36
+ "name": "InvalidAssessor",
26
37
  "type": "error"
27
38
  },
28
39
  {
29
40
  "inputs": [],
30
- "name": "AssessmentIdsVotesLengthMismatch",
41
+ "name": "InvalidClaimId",
31
42
  "type": "error"
32
43
  },
33
44
  {
34
- "inputs": [
35
- {
36
- "internalType": "uint256",
37
- "name": "maxUnstakeAmount",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "InvalidAmount",
45
+ "inputs": [],
46
+ "name": "InvalidGroupId",
42
47
  "type": "error"
43
48
  },
44
49
  {
45
50
  "inputs": [],
46
- "name": "InvalidMerkleProof",
51
+ "name": "InvalidMemberId",
47
52
  "type": "error"
48
53
  },
49
54
  {
50
55
  "inputs": [],
51
- "name": "NoWithdrawableRewards",
56
+ "name": "InvalidProductType",
52
57
  "type": "error"
53
58
  },
54
59
  {
55
- "inputs": [
56
- {
57
- "internalType": "address",
58
- "name": "nonMember",
59
- "type": "address"
60
- }
61
- ],
62
- "name": "NotMember",
60
+ "inputs": [],
61
+ "name": "NotEverybodyVoted",
63
62
  "type": "error"
64
63
  },
65
64
  {
66
65
  "inputs": [],
67
- "name": "OnlyTokenController",
66
+ "name": "OnlyMember",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "currentState",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "internalType": "uint256",
78
+ "name": "checks",
79
+ "type": "uint256"
80
+ }
81
+ ],
82
+ "name": "Paused",
68
83
  "type": "error"
69
84
  },
70
85
  {
71
86
  "inputs": [
72
87
  {
73
88
  "internalType": "uint256",
74
- "name": "lockupExpiry",
89
+ "name": "index",
75
90
  "type": "uint256"
76
91
  }
77
92
  ],
78
- "name": "StakeLockedForAssessment",
93
+ "name": "RevertedWithoutReason",
79
94
  "type": "error"
80
95
  },
81
96
  {
82
97
  "inputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "caller",
101
+ "type": "address"
102
+ },
83
103
  {
84
104
  "internalType": "uint256",
85
- "name": "lockupExpiry",
105
+ "name": "callerIndex",
106
+ "type": "uint256"
107
+ },
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "authorizedBitmap",
86
111
  "type": "uint256"
87
112
  }
88
113
  ],
89
- "name": "StakeLockedForGovernance",
114
+ "name": "Unauthorized",
90
115
  "type": "error"
91
116
  },
92
117
  {
93
118
  "inputs": [],
94
- "name": "StakeRequired",
119
+ "name": "VotingAlreadyClosed",
95
120
  "type": "error"
96
121
  },
97
122
  {
98
123
  "inputs": [],
99
- "name": "VotingClosed",
124
+ "name": "VotingPeriodEnded",
100
125
  "type": "error"
101
126
  },
102
127
  {
103
128
  "anonymous": false,
104
129
  "inputs": [
130
+ {
131
+ "indexed": true,
132
+ "internalType": "uint256",
133
+ "name": "productTypeId",
134
+ "type": "uint256"
135
+ },
136
+ {
137
+ "indexed": true,
138
+ "internalType": "uint256",
139
+ "name": "groupId",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "name": "AssessingGroupForProductTypeSet",
144
+ "type": "event"
145
+ },
146
+ {
147
+ "anonymous": false,
148
+ "inputs": [
149
+ {
150
+ "indexed": true,
151
+ "internalType": "uint256",
152
+ "name": "claimId",
153
+ "type": "uint256"
154
+ },
105
155
  {
106
156
  "indexed": false,
107
157
  "internalType": "uint256",
108
- "name": "assessmentId",
158
+ "name": "assessorGroupId",
109
159
  "type": "uint256"
110
160
  },
111
161
  {
112
162
  "indexed": false,
113
- "internalType": "address",
114
- "name": "assessor",
115
- "type": "address"
163
+ "internalType": "uint256",
164
+ "name": "start",
165
+ "type": "uint256"
116
166
  },
117
167
  {
118
- "components": [
119
- {
120
- "internalType": "uint96",
121
- "name": "accepted",
122
- "type": "uint96"
123
- },
124
- {
125
- "internalType": "uint96",
126
- "name": "denied",
127
- "type": "uint96"
128
- },
129
- {
130
- "internalType": "uint32",
131
- "name": "start",
132
- "type": "uint32"
133
- },
134
- {
135
- "internalType": "uint32",
136
- "name": "end",
137
- "type": "uint32"
138
- }
139
- ],
140
168
  "indexed": false,
141
- "internalType": "struct IAssessment.Poll",
142
- "name": "poll",
143
- "type": "tuple"
169
+ "internalType": "uint256",
170
+ "name": "end",
171
+ "type": "uint256"
144
172
  }
145
173
  ],
146
- "name": "FraudProcessed",
174
+ "name": "AssessmentStarted",
147
175
  "type": "event"
148
176
  },
149
177
  {
150
178
  "anonymous": false,
151
179
  "inputs": [
180
+ {
181
+ "indexed": true,
182
+ "internalType": "uint256",
183
+ "name": "groupId",
184
+ "type": "uint256"
185
+ },
152
186
  {
153
187
  "indexed": false,
154
- "internalType": "bytes32",
155
- "name": "root",
156
- "type": "bytes32"
188
+ "internalType": "uint256",
189
+ "name": "assessorMemberId",
190
+ "type": "uint256"
157
191
  }
158
192
  ],
159
- "name": "FraudSubmitted",
193
+ "name": "AssessorAddedToGroup",
160
194
  "type": "event"
161
195
  },
162
196
  {
163
197
  "anonymous": false,
164
198
  "inputs": [
165
199
  {
166
- "indexed": false,
167
- "internalType": "address",
168
- "name": "user",
169
- "type": "address"
170
- },
171
- {
172
- "indexed": false,
173
- "internalType": "address",
174
- "name": "to",
175
- "type": "address"
200
+ "indexed": true,
201
+ "internalType": "uint256",
202
+ "name": "groupId",
203
+ "type": "uint256"
176
204
  },
177
205
  {
178
206
  "indexed": false,
179
207
  "internalType": "uint256",
180
- "name": "amount",
208
+ "name": "assessorMemberId",
181
209
  "type": "uint256"
182
210
  }
183
211
  ],
184
- "name": "RewardWithdrawn",
212
+ "name": "AssessorRemovedFromGroup",
185
213
  "type": "event"
186
214
  },
187
215
  {
188
216
  "anonymous": false,
189
217
  "inputs": [
190
218
  {
191
- "indexed": false,
192
- "internalType": "address",
193
- "name": "user",
194
- "type": "address"
219
+ "indexed": true,
220
+ "internalType": "uint256",
221
+ "name": "groupId",
222
+ "type": "uint256"
195
223
  },
196
224
  {
197
225
  "indexed": false,
198
- "internalType": "uint104",
199
- "name": "amount",
200
- "type": "uint104"
226
+ "internalType": "bytes32",
227
+ "name": "ipfsMetadata",
228
+ "type": "bytes32"
201
229
  }
202
230
  ],
203
- "name": "StakeDeposited",
231
+ "name": "GroupMetadataSet",
204
232
  "type": "event"
205
233
  },
206
234
  {
207
235
  "anonymous": false,
208
236
  "inputs": [
237
+ {
238
+ "indexed": true,
239
+ "internalType": "uint256",
240
+ "name": "claimId",
241
+ "type": "uint256"
242
+ },
209
243
  {
210
244
  "indexed": true,
211
245
  "internalType": "address",
212
- "name": "user",
246
+ "name": "assessor",
213
247
  "type": "address"
214
248
  },
249
+ {
250
+ "indexed": true,
251
+ "internalType": "uint256",
252
+ "name": "assessorMemberId",
253
+ "type": "uint256"
254
+ },
215
255
  {
216
256
  "indexed": false,
217
- "internalType": "address",
218
- "name": "to",
219
- "type": "address"
257
+ "internalType": "bool",
258
+ "name": "support",
259
+ "type": "bool"
220
260
  },
221
261
  {
222
262
  "indexed": false,
223
- "internalType": "uint96",
224
- "name": "amount",
225
- "type": "uint96"
263
+ "internalType": "bytes32",
264
+ "name": "ipfsHash",
265
+ "type": "bytes32"
226
266
  }
227
267
  ],
228
- "name": "StakeWithdrawn",
268
+ "name": "VoteCast",
229
269
  "type": "event"
230
270
  },
231
271
  {
@@ -233,84 +273,88 @@
233
273
  "inputs": [
234
274
  {
235
275
  "indexed": true,
236
- "internalType": "address",
237
- "name": "user",
238
- "type": "address"
276
+ "internalType": "uint256",
277
+ "name": "claimId",
278
+ "type": "uint256"
239
279
  },
240
280
  {
241
- "indexed": false,
281
+ "indexed": true,
242
282
  "internalType": "uint256",
243
- "name": "assessmentId",
283
+ "name": "assessorMemberId",
244
284
  "type": "uint256"
245
- },
285
+ }
286
+ ],
287
+ "name": "VoteUndone",
288
+ "type": "event"
289
+ },
290
+ {
291
+ "anonymous": false,
292
+ "inputs": [
246
293
  {
247
- "indexed": false,
248
- "internalType": "uint96",
249
- "name": "stakedAmount",
250
- "type": "uint96"
294
+ "indexed": true,
295
+ "internalType": "uint256",
296
+ "name": "claimId",
297
+ "type": "uint256"
251
298
  },
252
299
  {
253
300
  "indexed": false,
254
- "internalType": "bool",
255
- "name": "accepted",
256
- "type": "bool"
301
+ "internalType": "uint256",
302
+ "name": "newEnd",
303
+ "type": "uint256"
304
+ }
305
+ ],
306
+ "name": "VotingEndChanged",
307
+ "type": "event"
308
+ },
309
+ {
310
+ "inputs": [
311
+ {
312
+ "internalType": "uint256[]",
313
+ "name": "assessorMemberIds",
314
+ "type": "uint256[]"
257
315
  },
258
316
  {
259
- "indexed": false,
260
- "internalType": "string",
261
- "name": "ipfsAssessmentDataHash",
262
- "type": "string"
317
+ "internalType": "uint256",
318
+ "name": "groupId",
319
+ "type": "uint256"
263
320
  }
264
321
  ],
265
- "name": "VoteCast",
266
- "type": "event"
322
+ "name": "addAssessorsToGroup",
323
+ "outputs": [],
324
+ "stateMutability": "nonpayable",
325
+ "type": "function"
267
326
  },
268
327
  {
269
328
  "inputs": [
270
329
  {
271
330
  "internalType": "uint256",
272
- "name": "",
331
+ "name": "claimId",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "assessorMemberId",
273
337
  "type": "uint256"
274
338
  }
275
339
  ],
276
- "name": "assessments",
340
+ "name": "ballotOf",
277
341
  "outputs": [
278
342
  {
279
343
  "components": [
280
- {
281
- "internalType": "uint96",
282
- "name": "accepted",
283
- "type": "uint96"
284
- },
285
- {
286
- "internalType": "uint96",
287
- "name": "denied",
288
- "type": "uint96"
289
- },
290
344
  {
291
345
  "internalType": "uint32",
292
- "name": "start",
346
+ "name": "timestamp",
293
347
  "type": "uint32"
294
348
  },
295
349
  {
296
- "internalType": "uint32",
297
- "name": "end",
298
- "type": "uint32"
350
+ "internalType": "bool",
351
+ "name": "support",
352
+ "type": "bool"
299
353
  }
300
354
  ],
301
- "internalType": "struct IAssessment.Poll",
302
- "name": "poll",
355
+ "internalType": "struct IAssessments.Ballot",
356
+ "name": "",
303
357
  "type": "tuple"
304
- },
305
- {
306
- "internalType": "uint128",
307
- "name": "totalRewardInNXM",
308
- "type": "uint128"
309
- },
310
- {
311
- "internalType": "uint128",
312
- "name": "assessmentDepositInETH",
313
- "type": "uint128"
314
358
  }
315
359
  ],
316
360
  "stateMutability": "view",
@@ -319,34 +363,22 @@
319
363
  {
320
364
  "inputs": [
321
365
  {
322
- "internalType": "uint256[]",
323
- "name": "assessmentIds",
324
- "type": "uint256[]"
325
- },
326
- {
327
- "internalType": "bool[]",
328
- "name": "votes",
329
- "type": "bool[]"
366
+ "internalType": "uint256",
367
+ "name": "claimId",
368
+ "type": "uint256"
330
369
  },
331
370
  {
332
- "internalType": "string[]",
333
- "name": "ipfsAssessmentDataHashes",
334
- "type": "string[]"
371
+ "internalType": "bool",
372
+ "name": "voteSupport",
373
+ "type": "bool"
335
374
  },
336
375
  {
337
- "internalType": "uint96",
338
- "name": "stakeIncrease",
339
- "type": "uint96"
376
+ "internalType": "bytes32",
377
+ "name": "ipfsHash",
378
+ "type": "bytes32"
340
379
  }
341
380
  ],
342
- "name": "castVotes",
343
- "outputs": [],
344
- "stateMutability": "nonpayable",
345
- "type": "function"
346
- },
347
- {
348
- "inputs": [],
349
- "name": "changeDependentContractAddress",
381
+ "name": "castVote",
350
382
  "outputs": [],
351
383
  "stateMutability": "nonpayable",
352
384
  "type": "function"
@@ -354,12 +386,12 @@
354
386
  {
355
387
  "inputs": [
356
388
  {
357
- "internalType": "address",
358
- "name": "masterAddress",
359
- "type": "address"
389
+ "internalType": "uint256",
390
+ "name": "claimId",
391
+ "type": "uint256"
360
392
  }
361
393
  ],
362
- "name": "changeMasterAddress",
394
+ "name": "closeVotingEarly",
363
395
  "outputs": [],
364
396
  "stateMutability": "nonpayable",
365
397
  "type": "function"
@@ -368,81 +400,55 @@
368
400
  "inputs": [
369
401
  {
370
402
  "internalType": "uint256",
371
- "name": "",
403
+ "name": "claimId",
372
404
  "type": "uint256"
373
405
  }
374
406
  ],
375
- "name": "fraudResolution",
376
- "outputs": [
377
- {
378
- "internalType": "bytes32",
379
- "name": "",
380
- "type": "bytes32"
381
- }
382
- ],
383
- "stateMutability": "view",
384
- "type": "function"
385
- },
386
- {
387
- "inputs": [],
388
- "name": "getAssessmentsCount",
389
- "outputs": [
390
- {
391
- "internalType": "uint256",
392
- "name": "",
393
- "type": "uint256"
394
- }
395
- ],
396
- "stateMutability": "view",
407
+ "name": "extendVotingPeriod",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
397
410
  "type": "function"
398
411
  },
399
412
  {
400
- "inputs": [],
401
- "name": "getMinVotingPeriod",
402
- "outputs": [
413
+ "inputs": [
403
414
  {
404
415
  "internalType": "uint256",
405
- "name": "",
416
+ "name": "productTypeId",
406
417
  "type": "uint256"
407
418
  }
408
419
  ],
409
- "stateMutability": "pure",
410
- "type": "function"
411
- },
412
- {
413
- "inputs": [],
414
- "name": "getPayoutCooldown",
420
+ "name": "getAssessingGroupIdForProductType",
415
421
  "outputs": [
416
422
  {
417
423
  "internalType": "uint256",
418
- "name": "",
424
+ "name": "assessingGroupId",
419
425
  "type": "uint256"
420
426
  }
421
427
  ],
422
- "stateMutability": "pure",
428
+ "stateMutability": "view",
423
429
  "type": "function"
424
430
  },
425
431
  {
426
432
  "inputs": [
427
433
  {
428
434
  "internalType": "uint256",
429
- "name": "assessmentId",
435
+ "name": "claimId",
430
436
  "type": "uint256"
431
437
  }
432
438
  ],
433
- "name": "getPoll",
439
+ "name": "getAssessment",
434
440
  "outputs": [
435
441
  {
436
442
  "components": [
437
443
  {
438
- "internalType": "uint96",
439
- "name": "accepted",
440
- "type": "uint96"
444
+ "internalType": "uint16",
445
+ "name": "assessingGroupId",
446
+ "type": "uint16"
441
447
  },
442
448
  {
443
- "internalType": "uint96",
444
- "name": "denied",
445
- "type": "uint96"
449
+ "internalType": "uint32",
450
+ "name": "cooldownPeriod",
451
+ "type": "uint32"
446
452
  },
447
453
  {
448
454
  "internalType": "uint32",
@@ -451,12 +457,22 @@
451
457
  },
452
458
  {
453
459
  "internalType": "uint32",
454
- "name": "end",
460
+ "name": "votingEnd",
455
461
  "type": "uint32"
462
+ },
463
+ {
464
+ "internalType": "uint8",
465
+ "name": "acceptVotes",
466
+ "type": "uint8"
467
+ },
468
+ {
469
+ "internalType": "uint8",
470
+ "name": "denyVotes",
471
+ "type": "uint8"
456
472
  }
457
473
  ],
458
- "internalType": "struct IAssessment.Poll",
459
- "name": "",
474
+ "internalType": "struct Assessment",
475
+ "name": "assessment",
460
476
  "type": "tuple"
461
477
  }
462
478
  ],
@@ -465,72 +481,73 @@
465
481
  },
466
482
  {
467
483
  "inputs": [
468
- {
469
- "internalType": "address",
470
- "name": "staker",
471
- "type": "address"
472
- }
473
- ],
474
- "name": "getRewards",
475
- "outputs": [
476
484
  {
477
485
  "internalType": "uint256",
478
- "name": "totalPendingAmountInNXM",
486
+ "name": "claimId",
479
487
  "type": "uint256"
480
488
  },
481
489
  {
482
490
  "internalType": "uint256",
483
- "name": "withdrawableAmountInNXM",
491
+ "name": "assessorMemberId",
484
492
  "type": "uint256"
485
- },
493
+ }
494
+ ],
495
+ "name": "getBallotsMetadata",
496
+ "outputs": [
486
497
  {
487
- "internalType": "uint256",
488
- "name": "withdrawableUntilIndex",
489
- "type": "uint256"
498
+ "internalType": "bytes32",
499
+ "name": "",
500
+ "type": "bytes32"
490
501
  }
491
502
  ],
492
503
  "stateMutability": "view",
493
504
  "type": "function"
494
505
  },
495
506
  {
496
- "inputs": [],
497
- "name": "getSilentEndingPeriod",
498
- "outputs": [
507
+ "inputs": [
499
508
  {
500
509
  "internalType": "uint256",
501
- "name": "",
510
+ "name": "groupId",
502
511
  "type": "uint256"
503
512
  }
504
513
  ],
505
- "stateMutability": "pure",
506
- "type": "function"
507
- },
508
- {
509
- "inputs": [],
510
- "name": "getStakeLockupPeriod",
514
+ "name": "getGroupAssessorCount",
511
515
  "outputs": [
512
516
  {
513
517
  "internalType": "uint256",
514
- "name": "",
518
+ "name": "assessorCount",
515
519
  "type": "uint256"
516
520
  }
517
521
  ],
518
- "stateMutability": "pure",
522
+ "stateMutability": "view",
519
523
  "type": "function"
520
524
  },
521
525
  {
522
526
  "inputs": [
523
527
  {
524
- "internalType": "address",
525
- "name": "assessor",
526
- "type": "address"
528
+ "internalType": "uint256",
529
+ "name": "groupId",
530
+ "type": "uint256"
527
531
  }
528
532
  ],
529
- "name": "getVoteCountOfAssessor",
533
+ "name": "getGroupAssessors",
534
+ "outputs": [
535
+ {
536
+ "internalType": "uint256[]",
537
+ "name": "assessorMemberIds",
538
+ "type": "uint256[]"
539
+ }
540
+ ],
541
+ "stateMutability": "view",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [],
546
+ "name": "getGroupsCount",
530
547
  "outputs": [
531
548
  {
532
549
  "internalType": "uint256",
533
- "name": "",
550
+ "name": "groupCount",
534
551
  "type": "uint256"
535
552
  }
536
553
  ],
@@ -540,22 +557,34 @@
540
557
  {
541
558
  "inputs": [
542
559
  {
543
- "internalType": "address",
544
- "name": "",
545
- "type": "address"
546
- },
547
- {
548
- "internalType": "uint256",
549
- "name": "",
550
- "type": "uint256"
560
+ "internalType": "uint256[]",
561
+ "name": "groupIds",
562
+ "type": "uint256[]"
551
563
  }
552
564
  ],
553
- "name": "hasAlreadyVotedOn",
565
+ "name": "getGroupsData",
554
566
  "outputs": [
555
567
  {
556
- "internalType": "bool",
557
- "name": "",
558
- "type": "bool"
568
+ "components": [
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "id",
572
+ "type": "uint256"
573
+ },
574
+ {
575
+ "internalType": "bytes32",
576
+ "name": "ipfsMetadata",
577
+ "type": "bytes32"
578
+ },
579
+ {
580
+ "internalType": "uint256[]",
581
+ "name": "assessors",
582
+ "type": "uint256[]"
583
+ }
584
+ ],
585
+ "internalType": "struct IAssessments.AssessmentGroupView[]",
586
+ "name": "groups",
587
+ "type": "tuple[]"
559
588
  }
560
589
  ],
561
590
  "stateMutability": "view",
@@ -565,42 +594,35 @@
565
594
  "inputs": [
566
595
  {
567
596
  "internalType": "uint256",
568
- "name": "",
597
+ "name": "assessorMemberId",
569
598
  "type": "uint256"
570
599
  }
571
600
  ],
572
- "name": "internalContracts",
601
+ "name": "getGroupsForAssessor",
573
602
  "outputs": [
574
603
  {
575
- "internalType": "address payable",
576
- "name": "",
577
- "type": "address"
604
+ "internalType": "uint256[]",
605
+ "name": "groupIds",
606
+ "type": "uint256[]"
578
607
  }
579
608
  ],
580
609
  "stateMutability": "view",
581
610
  "type": "function"
582
611
  },
583
612
  {
584
- "inputs": [],
585
- "name": "master",
586
- "outputs": [
613
+ "inputs": [
587
614
  {
588
- "internalType": "contract INXMMaster",
589
- "name": "",
590
- "type": "address"
615
+ "internalType": "uint256",
616
+ "name": "assessorMemberId",
617
+ "type": "uint256"
591
618
  }
592
619
  ],
593
- "stateMutability": "view",
594
- "type": "function"
595
- },
596
- {
597
- "inputs": [],
598
- "name": "nxm",
620
+ "name": "isAssessor",
599
621
  "outputs": [
600
622
  {
601
- "internalType": "contract INXMToken",
623
+ "internalType": "bool",
602
624
  "name": "",
603
- "type": "address"
625
+ "type": "bool"
604
626
  }
605
627
  ],
606
628
  "stateMutability": "view",
@@ -610,120 +632,80 @@
610
632
  "inputs": [
611
633
  {
612
634
  "internalType": "uint256",
613
- "name": "rootIndex",
635
+ "name": "assessorMemberId",
614
636
  "type": "uint256"
615
637
  },
616
- {
617
- "internalType": "bytes32[]",
618
- "name": "proof",
619
- "type": "bytes32[]"
620
- },
621
- {
622
- "internalType": "address",
623
- "name": "assessor",
624
- "type": "address"
625
- },
626
638
  {
627
639
  "internalType": "uint256",
628
- "name": "lastFraudulentVoteIndex",
640
+ "name": "groupId",
629
641
  "type": "uint256"
630
- },
631
- {
632
- "internalType": "uint96",
633
- "name": "burnAmount",
634
- "type": "uint96"
635
- },
636
- {
637
- "internalType": "uint16",
638
- "name": "fraudCount",
639
- "type": "uint16"
640
- },
642
+ }
643
+ ],
644
+ "name": "isAssessorInGroup",
645
+ "outputs": [
641
646
  {
642
- "internalType": "uint256",
643
- "name": "voteBatchSize",
644
- "type": "uint256"
647
+ "internalType": "bool",
648
+ "name": "",
649
+ "type": "bool"
645
650
  }
646
651
  ],
647
- "name": "processFraud",
648
- "outputs": [],
649
- "stateMutability": "nonpayable",
652
+ "stateMutability": "view",
650
653
  "type": "function"
651
654
  },
652
655
  {
653
- "inputs": [
656
+ "inputs": [],
657
+ "name": "minVotingPeriod",
658
+ "outputs": [
654
659
  {
655
- "internalType": "uint96",
656
- "name": "amount",
657
- "type": "uint96"
660
+ "internalType": "uint256",
661
+ "name": "",
662
+ "type": "uint256"
658
663
  }
659
664
  ],
660
- "name": "stake",
661
- "outputs": [],
662
- "stateMutability": "nonpayable",
665
+ "stateMutability": "pure",
663
666
  "type": "function"
664
667
  },
665
668
  {
666
669
  "inputs": [
667
670
  {
668
- "internalType": "address",
669
- "name": "",
670
- "type": "address"
671
+ "internalType": "bytes[]",
672
+ "name": "data",
673
+ "type": "bytes[]"
671
674
  }
672
675
  ],
673
- "name": "stakeOf",
676
+ "name": "multicall",
674
677
  "outputs": [
675
678
  {
676
- "internalType": "uint96",
677
- "name": "amount",
678
- "type": "uint96"
679
- },
680
- {
681
- "internalType": "uint104",
682
- "name": "rewardsWithdrawableFromIndex",
683
- "type": "uint104"
684
- },
685
- {
686
- "internalType": "uint16",
687
- "name": "fraudCount",
688
- "type": "uint16"
679
+ "internalType": "bytes[]",
680
+ "name": "results",
681
+ "type": "bytes[]"
689
682
  }
690
683
  ],
691
- "stateMutability": "view",
684
+ "stateMutability": "nonpayable",
692
685
  "type": "function"
693
686
  },
694
687
  {
695
- "inputs": [
696
- {
697
- "internalType": "uint256",
698
- "name": "totalAssessmentReward",
699
- "type": "uint256"
700
- },
701
- {
702
- "internalType": "uint256",
703
- "name": "assessmentDepositInETH",
704
- "type": "uint256"
705
- }
706
- ],
707
- "name": "startAssessment",
688
+ "inputs": [],
689
+ "name": "registry",
708
690
  "outputs": [
709
691
  {
710
- "internalType": "uint256",
692
+ "internalType": "contract IRegistry",
711
693
  "name": "",
712
- "type": "uint256"
694
+ "type": "address"
713
695
  }
714
696
  ],
715
- "stateMutability": "nonpayable",
697
+ "stateMutability": "view",
716
698
  "type": "function"
717
699
  },
718
700
  {
719
701
  "inputs": [
720
702
  {
721
- "internalType": "bytes32",
722
- "name": "root",
723
- "type": "bytes32"
703
+ "internalType": "uint256",
704
+ "name": "assessorMemberId",
705
+ "type": "uint256"
724
706
  }
725
707
  ],
726
- "name": "submitFraud",
708
+ "name": "removeAssessorFromAllGroups",
727
709
  "outputs": [],
728
710
  "stateMutability": "nonpayable",
729
711
  "type": "function"
@@ -731,17 +713,17 @@
731
713
  {
732
714
  "inputs": [
733
715
  {
734
- "internalType": "uint96",
735
- "name": "amount",
736
- "type": "uint96"
716
+ "internalType": "uint256",
717
+ "name": "assessorMemberId",
718
+ "type": "uint256"
737
719
  },
738
720
  {
739
- "internalType": "address",
740
- "name": "to",
741
- "type": "address"
721
+ "internalType": "uint256",
722
+ "name": "groupId",
723
+ "type": "uint256"
742
724
  }
743
725
  ],
744
- "name": "unstake",
726
+ "name": "removeAssessorFromGroup",
745
727
  "outputs": [],
746
728
  "stateMutability": "nonpayable",
747
729
  "type": "function"
@@ -749,110 +731,77 @@
749
731
  {
750
732
  "inputs": [
751
733
  {
752
- "internalType": "address",
753
- "name": "staker",
754
- "type": "address"
734
+ "internalType": "uint256[]",
735
+ "name": "productTypeIds",
736
+ "type": "uint256[]"
737
+ },
738
+ {
739
+ "internalType": "uint256",
740
+ "name": "groupId",
741
+ "type": "uint256"
755
742
  }
756
743
  ],
757
- "name": "unstakeAllFor",
744
+ "name": "setAssessingGroupIdForProductTypes",
758
745
  "outputs": [],
759
746
  "stateMutability": "nonpayable",
760
747
  "type": "function"
761
748
  },
762
749
  {
763
750
  "inputs": [
764
- {
765
- "internalType": "address",
766
- "name": "",
767
- "type": "address"
768
- },
769
751
  {
770
752
  "internalType": "uint256",
771
- "name": "",
753
+ "name": "groupId",
772
754
  "type": "uint256"
773
- }
774
- ],
775
- "name": "votesOf",
776
- "outputs": [
777
- {
778
- "internalType": "uint80",
779
- "name": "assessmentId",
780
- "type": "uint80"
781
- },
782
- {
783
- "internalType": "bool",
784
- "name": "accepted",
785
- "type": "bool"
786
- },
787
- {
788
- "internalType": "uint32",
789
- "name": "timestamp",
790
- "type": "uint32"
791
755
  },
792
756
  {
793
- "internalType": "uint96",
794
- "name": "stakedAmount",
795
- "type": "uint96"
757
+ "internalType": "bytes32",
758
+ "name": "ipfsMetadata",
759
+ "type": "bytes32"
796
760
  }
797
761
  ],
798
- "stateMutability": "view",
762
+ "name": "setGroupMetadata",
763
+ "outputs": [],
764
+ "stateMutability": "nonpayable",
799
765
  "type": "function"
800
766
  },
801
767
  {
802
768
  "inputs": [
803
769
  {
804
- "internalType": "address",
805
- "name": "staker",
806
- "type": "address"
770
+ "internalType": "uint256",
771
+ "name": "claimId",
772
+ "type": "uint256"
807
773
  },
808
- {
809
- "internalType": "uint104",
810
- "name": "batchSize",
811
- "type": "uint104"
812
- }
813
- ],
814
- "name": "withdrawRewards",
815
- "outputs": [
816
774
  {
817
775
  "internalType": "uint256",
818
- "name": "withdrawn",
776
+ "name": "productTypeId",
819
777
  "type": "uint256"
820
778
  },
821
779
  {
822
780
  "internalType": "uint256",
823
- "name": "withdrawnUntilIndex",
781
+ "name": "cooldownPeriod",
824
782
  "type": "uint256"
825
783
  }
826
784
  ],
785
+ "name": "startAssessment",
786
+ "outputs": [],
827
787
  "stateMutability": "nonpayable",
828
788
  "type": "function"
829
789
  },
830
790
  {
831
791
  "inputs": [
832
- {
833
- "internalType": "address",
834
- "name": "destination",
835
- "type": "address"
836
- },
837
- {
838
- "internalType": "uint104",
839
- "name": "batchSize",
840
- "type": "uint104"
841
- }
842
- ],
843
- "name": "withdrawRewardsTo",
844
- "outputs": [
845
792
  {
846
793
  "internalType": "uint256",
847
- "name": "withdrawn",
794
+ "name": "assessorMemberId",
848
795
  "type": "uint256"
849
796
  },
850
797
  {
851
- "internalType": "uint256",
852
- "name": "withdrawnUntilIndex",
853
- "type": "uint256"
798
+ "internalType": "uint256[]",
799
+ "name": "claimIds",
800
+ "type": "uint256[]"
854
801
  }
855
802
  ],
803
+ "name": "undoVotes",
804
+ "outputs": [],
856
805
  "stateMutability": "nonpayable",
857
806
  "type": "function"
858
807
  }