dkg 0.1.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dkg/__init__.py +3 -0
- dkg/asset.py +781 -0
- dkg/constants.py +39 -0
- dkg/data/interfaces/Assertion.json +131 -0
- dkg/data/interfaces/AssertionStorage.json +229 -0
- dkg/data/interfaces/CommitManagerV1.json +534 -0
- dkg/data/interfaces/CommitManagerV1U1.json +720 -0
- dkg/data/interfaces/ContentAsset.json +671 -0
- dkg/data/interfaces/ContentAssetStorage.json +706 -0
- dkg/data/interfaces/HashingProxy.json +227 -0
- dkg/data/interfaces/Hub.json +356 -0
- dkg/data/interfaces/Identity.json +193 -0
- dkg/data/interfaces/IdentityStorage.json +342 -0
- dkg/data/interfaces/ParametersStorage.json +468 -0
- dkg/data/interfaces/Profile.json +292 -0
- dkg/data/interfaces/ProfileStorage.json +596 -0
- dkg/data/interfaces/ProofManagerV1.json +525 -0
- dkg/data/interfaces/ProofManagerV1U1.json +546 -0
- dkg/data/interfaces/ScoringProxy.json +242 -0
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +1299 -0
- dkg/data/interfaces/ServiceAgreementStorageV1.json +901 -0
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +1097 -0
- dkg/data/interfaces/ServiceAgreementV1.json +741 -0
- dkg/data/interfaces/ShardingTable.json +268 -0
- dkg/data/interfaces/ShardingTableStorage.json +317 -0
- dkg/data/interfaces/Staking.json +456 -0
- dkg/data/interfaces/StakingStorage.json +407 -0
- dkg/data/interfaces/Token.json +544 -0
- dkg/data/interfaces/UnfinalizedStateStorage.json +171 -0
- dkg/data/interfaces/WhitelistStorage.json +124 -0
- dkg/dataclasses.py +45 -0
- dkg/exceptions.py +161 -0
- dkg/graph.py +63 -0
- dkg/main.py +74 -0
- dkg/manager.py +64 -0
- dkg/method.py +131 -0
- dkg/module.py +63 -0
- dkg/node.py +54 -0
- dkg/providers/__init__.py +2 -0
- dkg/providers/blockchain.py +181 -0
- dkg/providers/node_http.py +62 -0
- dkg/types/__init__.py +8 -0
- dkg/types/blockchain.py +58 -0
- dkg/types/dkg_node.py +20 -0
- dkg/types/encoding.py +22 -0
- dkg/types/evm.py +25 -0
- dkg/types/generics.py +21 -0
- dkg/types/network.py +20 -0
- dkg/types/rdf.py +21 -0
- dkg/utils/__init__.py +0 -0
- dkg/utils/blockchain_request.py +159 -0
- dkg/utils/decorators.py +46 -0
- dkg/utils/merkle.py +173 -0
- dkg/utils/metadata.py +50 -0
- dkg/utils/node_request.py +197 -0
- dkg/utils/rdf.py +51 -0
- dkg/utils/string_transformations.py +22 -0
- dkg/utils/ual.py +41 -0
- dkg-0.1.0b1.dist-info/LICENSE +202 -0
- dkg-0.1.0b1.dist-info/METADATA +453 -0
- dkg-0.1.0b1.dist-info/RECORD +62 -0
- dkg-0.1.0b1.dist-info/WHEEL +4 -0
@@ -0,0 +1,1097 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address",
|
6
|
+
"name": "hubAddress",
|
7
|
+
"type": "address"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"stateMutability": "nonpayable",
|
11
|
+
"type": "constructor"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"anonymous": false,
|
15
|
+
"inputs": [
|
16
|
+
{
|
17
|
+
"indexed": true,
|
18
|
+
"internalType": "address",
|
19
|
+
"name": "custodian",
|
20
|
+
"type": "address"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"indexed": false,
|
24
|
+
"internalType": "uint256",
|
25
|
+
"name": "amount",
|
26
|
+
"type": "uint256"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "MisplacedOTPWithdrawn",
|
30
|
+
"type": "event"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"anonymous": false,
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"indexed": true,
|
37
|
+
"internalType": "address",
|
38
|
+
"name": "custodian",
|
39
|
+
"type": "address"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"indexed": false,
|
43
|
+
"internalType": "address",
|
44
|
+
"name": "tokenContract",
|
45
|
+
"type": "address"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"indexed": false,
|
49
|
+
"internalType": "uint256",
|
50
|
+
"name": "amount",
|
51
|
+
"type": "uint256"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"name": "MisplacedTokensWithdrawn",
|
55
|
+
"type": "event"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"anonymous": false,
|
59
|
+
"inputs": [
|
60
|
+
{
|
61
|
+
"indexed": true,
|
62
|
+
"internalType": "address",
|
63
|
+
"name": "custodian",
|
64
|
+
"type": "address"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"indexed": false,
|
68
|
+
"internalType": "uint256",
|
69
|
+
"name": "amount",
|
70
|
+
"type": "uint256"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "TokenTransferred",
|
74
|
+
"type": "event"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [
|
78
|
+
{
|
79
|
+
"internalType": "bytes32",
|
80
|
+
"name": "commitId",
|
81
|
+
"type": "bytes32"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"internalType": "uint72",
|
85
|
+
"name": "identityId",
|
86
|
+
"type": "uint72"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"internalType": "uint72",
|
90
|
+
"name": "prevIdentityId",
|
91
|
+
"type": "uint72"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"internalType": "uint72",
|
95
|
+
"name": "nextIdentityId",
|
96
|
+
"type": "uint72"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"internalType": "uint40",
|
100
|
+
"name": "score",
|
101
|
+
"type": "uint40"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"name": "createEpochStateCommitSubmissionObject",
|
105
|
+
"outputs": [],
|
106
|
+
"stateMutability": "nonpayable",
|
107
|
+
"type": "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"inputs": [
|
111
|
+
{
|
112
|
+
"internalType": "bytes32",
|
113
|
+
"name": "agreementId",
|
114
|
+
"type": "bytes32"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"internalType": "uint256",
|
118
|
+
"name": "startTime",
|
119
|
+
"type": "uint256"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"internalType": "uint16",
|
123
|
+
"name": "epochsNumber",
|
124
|
+
"type": "uint16"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"internalType": "uint128",
|
128
|
+
"name": "epochLength",
|
129
|
+
"type": "uint128"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"internalType": "uint96",
|
133
|
+
"name": "tokenAmount",
|
134
|
+
"type": "uint96"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"internalType": "uint8",
|
138
|
+
"name": "scoreFunctionId",
|
139
|
+
"type": "uint8"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"internalType": "uint8",
|
143
|
+
"name": "proofWindowOffsetPerc",
|
144
|
+
"type": "uint8"
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"name": "createServiceAgreementObject",
|
148
|
+
"outputs": [],
|
149
|
+
"stateMutability": "nonpayable",
|
150
|
+
"type": "function"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"inputs": [
|
154
|
+
{
|
155
|
+
"internalType": "bytes32",
|
156
|
+
"name": "agreementId",
|
157
|
+
"type": "bytes32"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"internalType": "uint16",
|
161
|
+
"name": "epoch",
|
162
|
+
"type": "uint16"
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"name": "decrementAgreementRewardedNodesNumber",
|
166
|
+
"outputs": [],
|
167
|
+
"stateMutability": "nonpayable",
|
168
|
+
"type": "function"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"inputs": [
|
172
|
+
{
|
173
|
+
"internalType": "bytes32",
|
174
|
+
"name": "epochStateId",
|
175
|
+
"type": "bytes32"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"name": "decrementEpochStateCommitsCount",
|
179
|
+
"outputs": [],
|
180
|
+
"stateMutability": "nonpayable",
|
181
|
+
"type": "function"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [
|
185
|
+
{
|
186
|
+
"internalType": "bytes32",
|
187
|
+
"name": "agreementId",
|
188
|
+
"type": "bytes32"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"internalType": "uint16",
|
192
|
+
"name": "epoch",
|
193
|
+
"type": "uint16"
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"name": "deleteAgreementRewardedNodesNumber",
|
197
|
+
"outputs": [],
|
198
|
+
"stateMutability": "nonpayable",
|
199
|
+
"type": "function"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"inputs": [
|
203
|
+
{
|
204
|
+
"internalType": "bytes32",
|
205
|
+
"name": "commitId",
|
206
|
+
"type": "bytes32"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"name": "deleteEpochStateCommitSubmissionsObject",
|
210
|
+
"outputs": [],
|
211
|
+
"stateMutability": "nonpayable",
|
212
|
+
"type": "function"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"inputs": [
|
216
|
+
{
|
217
|
+
"internalType": "bytes32",
|
218
|
+
"name": "epochStateId",
|
219
|
+
"type": "bytes32"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"name": "deleteEpochStateCommitsCount",
|
223
|
+
"outputs": [],
|
224
|
+
"stateMutability": "nonpayable",
|
225
|
+
"type": "function"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"inputs": [
|
229
|
+
{
|
230
|
+
"internalType": "bytes32",
|
231
|
+
"name": "agreementId",
|
232
|
+
"type": "bytes32"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"name": "deleteServiceAgreementObject",
|
236
|
+
"outputs": [],
|
237
|
+
"stateMutability": "nonpayable",
|
238
|
+
"type": "function"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"inputs": [
|
242
|
+
{
|
243
|
+
"internalType": "bytes32",
|
244
|
+
"name": "stateId",
|
245
|
+
"type": "bytes32"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
"name": "deleteUpdateCommitsDeadline",
|
249
|
+
"outputs": [],
|
250
|
+
"stateMutability": "nonpayable",
|
251
|
+
"type": "function"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"inputs": [
|
255
|
+
{
|
256
|
+
"internalType": "bytes32",
|
257
|
+
"name": "commitId",
|
258
|
+
"type": "bytes32"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
"name": "epochStateCommitSubmissionExists",
|
262
|
+
"outputs": [
|
263
|
+
{
|
264
|
+
"internalType": "bool",
|
265
|
+
"name": "",
|
266
|
+
"type": "bool"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"stateMutability": "view",
|
270
|
+
"type": "function"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"inputs": [
|
274
|
+
{
|
275
|
+
"internalType": "bytes32",
|
276
|
+
"name": "agreementId",
|
277
|
+
"type": "bytes32"
|
278
|
+
}
|
279
|
+
],
|
280
|
+
"name": "getAgreementData",
|
281
|
+
"outputs": [
|
282
|
+
{
|
283
|
+
"internalType": "uint256",
|
284
|
+
"name": "",
|
285
|
+
"type": "uint256"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "uint16",
|
289
|
+
"name": "",
|
290
|
+
"type": "uint16"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"internalType": "uint128",
|
294
|
+
"name": "",
|
295
|
+
"type": "uint128"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"internalType": "uint96[2]",
|
299
|
+
"name": "",
|
300
|
+
"type": "uint96[2]"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"internalType": "uint8[2]",
|
304
|
+
"name": "",
|
305
|
+
"type": "uint8[2]"
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"stateMutability": "view",
|
309
|
+
"type": "function"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"inputs": [
|
313
|
+
{
|
314
|
+
"internalType": "bytes32",
|
315
|
+
"name": "agreementId",
|
316
|
+
"type": "bytes32"
|
317
|
+
}
|
318
|
+
],
|
319
|
+
"name": "getAgreementEpochLength",
|
320
|
+
"outputs": [
|
321
|
+
{
|
322
|
+
"internalType": "uint128",
|
323
|
+
"name": "",
|
324
|
+
"type": "uint128"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"stateMutability": "view",
|
328
|
+
"type": "function"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"inputs": [
|
332
|
+
{
|
333
|
+
"internalType": "bytes32",
|
334
|
+
"name": "agreementId",
|
335
|
+
"type": "bytes32"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"internalType": "uint16",
|
339
|
+
"name": "epoch",
|
340
|
+
"type": "uint16"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "uint256",
|
344
|
+
"name": "stateIndex",
|
345
|
+
"type": "uint256"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"name": "getAgreementEpochSubmissionHead",
|
349
|
+
"outputs": [
|
350
|
+
{
|
351
|
+
"internalType": "bytes32",
|
352
|
+
"name": "",
|
353
|
+
"type": "bytes32"
|
354
|
+
}
|
355
|
+
],
|
356
|
+
"stateMutability": "view",
|
357
|
+
"type": "function"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"inputs": [
|
361
|
+
{
|
362
|
+
"internalType": "bytes32",
|
363
|
+
"name": "agreementId",
|
364
|
+
"type": "bytes32"
|
365
|
+
}
|
366
|
+
],
|
367
|
+
"name": "getAgreementEpochsNumber",
|
368
|
+
"outputs": [
|
369
|
+
{
|
370
|
+
"internalType": "uint16",
|
371
|
+
"name": "",
|
372
|
+
"type": "uint16"
|
373
|
+
}
|
374
|
+
],
|
375
|
+
"stateMutability": "view",
|
376
|
+
"type": "function"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"inputs": [
|
380
|
+
{
|
381
|
+
"internalType": "bytes32",
|
382
|
+
"name": "agreementId",
|
383
|
+
"type": "bytes32"
|
384
|
+
}
|
385
|
+
],
|
386
|
+
"name": "getAgreementProofWindowOffsetPerc",
|
387
|
+
"outputs": [
|
388
|
+
{
|
389
|
+
"internalType": "uint8",
|
390
|
+
"name": "",
|
391
|
+
"type": "uint8"
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"stateMutability": "view",
|
395
|
+
"type": "function"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"inputs": [
|
399
|
+
{
|
400
|
+
"internalType": "bytes32",
|
401
|
+
"name": "agreementId",
|
402
|
+
"type": "bytes32"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"internalType": "uint16",
|
406
|
+
"name": "epoch",
|
407
|
+
"type": "uint16"
|
408
|
+
}
|
409
|
+
],
|
410
|
+
"name": "getAgreementRewardedNodesNumber",
|
411
|
+
"outputs": [
|
412
|
+
{
|
413
|
+
"internalType": "uint32",
|
414
|
+
"name": "",
|
415
|
+
"type": "uint32"
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"stateMutability": "view",
|
419
|
+
"type": "function"
|
420
|
+
},
|
421
|
+
{
|
422
|
+
"inputs": [
|
423
|
+
{
|
424
|
+
"internalType": "bytes32",
|
425
|
+
"name": "agreementId",
|
426
|
+
"type": "bytes32"
|
427
|
+
}
|
428
|
+
],
|
429
|
+
"name": "getAgreementScoreFunctionId",
|
430
|
+
"outputs": [
|
431
|
+
{
|
432
|
+
"internalType": "uint8",
|
433
|
+
"name": "",
|
434
|
+
"type": "uint8"
|
435
|
+
}
|
436
|
+
],
|
437
|
+
"stateMutability": "view",
|
438
|
+
"type": "function"
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"inputs": [
|
442
|
+
{
|
443
|
+
"internalType": "bytes32",
|
444
|
+
"name": "agreementId",
|
445
|
+
"type": "bytes32"
|
446
|
+
}
|
447
|
+
],
|
448
|
+
"name": "getAgreementStartTime",
|
449
|
+
"outputs": [
|
450
|
+
{
|
451
|
+
"internalType": "uint256",
|
452
|
+
"name": "",
|
453
|
+
"type": "uint256"
|
454
|
+
}
|
455
|
+
],
|
456
|
+
"stateMutability": "view",
|
457
|
+
"type": "function"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"inputs": [
|
461
|
+
{
|
462
|
+
"internalType": "bytes32",
|
463
|
+
"name": "agreementId",
|
464
|
+
"type": "bytes32"
|
465
|
+
}
|
466
|
+
],
|
467
|
+
"name": "getAgreementTokenAmount",
|
468
|
+
"outputs": [
|
469
|
+
{
|
470
|
+
"internalType": "uint96",
|
471
|
+
"name": "",
|
472
|
+
"type": "uint96"
|
473
|
+
}
|
474
|
+
],
|
475
|
+
"stateMutability": "view",
|
476
|
+
"type": "function"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"inputs": [
|
480
|
+
{
|
481
|
+
"internalType": "bytes32",
|
482
|
+
"name": "agreementId",
|
483
|
+
"type": "bytes32"
|
484
|
+
}
|
485
|
+
],
|
486
|
+
"name": "getAgreementUpdateTokenAmount",
|
487
|
+
"outputs": [
|
488
|
+
{
|
489
|
+
"internalType": "uint96",
|
490
|
+
"name": "",
|
491
|
+
"type": "uint96"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"stateMutability": "view",
|
495
|
+
"type": "function"
|
496
|
+
},
|
497
|
+
{
|
498
|
+
"inputs": [
|
499
|
+
{
|
500
|
+
"internalType": "bytes32",
|
501
|
+
"name": "commitId",
|
502
|
+
"type": "bytes32"
|
503
|
+
}
|
504
|
+
],
|
505
|
+
"name": "getEpochStateCommitSubmission",
|
506
|
+
"outputs": [
|
507
|
+
{
|
508
|
+
"components": [
|
509
|
+
{
|
510
|
+
"internalType": "uint72",
|
511
|
+
"name": "identityId",
|
512
|
+
"type": "uint72"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"internalType": "uint72",
|
516
|
+
"name": "prevIdentityId",
|
517
|
+
"type": "uint72"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "uint72",
|
521
|
+
"name": "nextIdentityId",
|
522
|
+
"type": "uint72"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "uint40",
|
526
|
+
"name": "score",
|
527
|
+
"type": "uint40"
|
528
|
+
}
|
529
|
+
],
|
530
|
+
"internalType": "struct ServiceAgreementStructsV1.CommitSubmission",
|
531
|
+
"name": "",
|
532
|
+
"type": "tuple"
|
533
|
+
}
|
534
|
+
],
|
535
|
+
"stateMutability": "view",
|
536
|
+
"type": "function"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"inputs": [
|
540
|
+
{
|
541
|
+
"internalType": "bytes32",
|
542
|
+
"name": "commitId",
|
543
|
+
"type": "bytes32"
|
544
|
+
}
|
545
|
+
],
|
546
|
+
"name": "getEpochStateCommitSubmissionIdentityId",
|
547
|
+
"outputs": [
|
548
|
+
{
|
549
|
+
"internalType": "uint72",
|
550
|
+
"name": "",
|
551
|
+
"type": "uint72"
|
552
|
+
}
|
553
|
+
],
|
554
|
+
"stateMutability": "view",
|
555
|
+
"type": "function"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"inputs": [
|
559
|
+
{
|
560
|
+
"internalType": "bytes32",
|
561
|
+
"name": "commitId",
|
562
|
+
"type": "bytes32"
|
563
|
+
}
|
564
|
+
],
|
565
|
+
"name": "getEpochStateCommitSubmissionNextIdentityId",
|
566
|
+
"outputs": [
|
567
|
+
{
|
568
|
+
"internalType": "uint72",
|
569
|
+
"name": "",
|
570
|
+
"type": "uint72"
|
571
|
+
}
|
572
|
+
],
|
573
|
+
"stateMutability": "view",
|
574
|
+
"type": "function"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"inputs": [
|
578
|
+
{
|
579
|
+
"internalType": "bytes32",
|
580
|
+
"name": "commitId",
|
581
|
+
"type": "bytes32"
|
582
|
+
}
|
583
|
+
],
|
584
|
+
"name": "getEpochStateCommitSubmissionPrevIdentityId",
|
585
|
+
"outputs": [
|
586
|
+
{
|
587
|
+
"internalType": "uint72",
|
588
|
+
"name": "",
|
589
|
+
"type": "uint72"
|
590
|
+
}
|
591
|
+
],
|
592
|
+
"stateMutability": "view",
|
593
|
+
"type": "function"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"inputs": [
|
597
|
+
{
|
598
|
+
"internalType": "bytes32",
|
599
|
+
"name": "commitId",
|
600
|
+
"type": "bytes32"
|
601
|
+
}
|
602
|
+
],
|
603
|
+
"name": "getEpochStateCommitSubmissionScore",
|
604
|
+
"outputs": [
|
605
|
+
{
|
606
|
+
"internalType": "uint40",
|
607
|
+
"name": "",
|
608
|
+
"type": "uint40"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"stateMutability": "view",
|
612
|
+
"type": "function"
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"inputs": [
|
616
|
+
{
|
617
|
+
"internalType": "bytes32",
|
618
|
+
"name": "epochStateId",
|
619
|
+
"type": "bytes32"
|
620
|
+
}
|
621
|
+
],
|
622
|
+
"name": "getEpochStateCommitsCount",
|
623
|
+
"outputs": [
|
624
|
+
{
|
625
|
+
"internalType": "uint8",
|
626
|
+
"name": "",
|
627
|
+
"type": "uint8"
|
628
|
+
}
|
629
|
+
],
|
630
|
+
"stateMutability": "view",
|
631
|
+
"type": "function"
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"inputs": [
|
635
|
+
{
|
636
|
+
"internalType": "bytes32",
|
637
|
+
"name": "stateId",
|
638
|
+
"type": "bytes32"
|
639
|
+
}
|
640
|
+
],
|
641
|
+
"name": "getUpdateCommitsDeadline",
|
642
|
+
"outputs": [
|
643
|
+
{
|
644
|
+
"internalType": "uint256",
|
645
|
+
"name": "",
|
646
|
+
"type": "uint256"
|
647
|
+
}
|
648
|
+
],
|
649
|
+
"stateMutability": "view",
|
650
|
+
"type": "function"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"inputs": [],
|
654
|
+
"name": "hub",
|
655
|
+
"outputs": [
|
656
|
+
{
|
657
|
+
"internalType": "contract Hub",
|
658
|
+
"name": "",
|
659
|
+
"type": "address"
|
660
|
+
}
|
661
|
+
],
|
662
|
+
"stateMutability": "view",
|
663
|
+
"type": "function"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"inputs": [
|
667
|
+
{
|
668
|
+
"internalType": "bytes32",
|
669
|
+
"name": "agreementId",
|
670
|
+
"type": "bytes32"
|
671
|
+
},
|
672
|
+
{
|
673
|
+
"internalType": "uint16",
|
674
|
+
"name": "epoch",
|
675
|
+
"type": "uint16"
|
676
|
+
}
|
677
|
+
],
|
678
|
+
"name": "incrementAgreementRewardedNodesNumber",
|
679
|
+
"outputs": [],
|
680
|
+
"stateMutability": "nonpayable",
|
681
|
+
"type": "function"
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"inputs": [
|
685
|
+
{
|
686
|
+
"internalType": "bytes32",
|
687
|
+
"name": "epochStateId",
|
688
|
+
"type": "bytes32"
|
689
|
+
}
|
690
|
+
],
|
691
|
+
"name": "incrementEpochStateCommitsCount",
|
692
|
+
"outputs": [],
|
693
|
+
"stateMutability": "nonpayable",
|
694
|
+
"type": "function"
|
695
|
+
},
|
696
|
+
{
|
697
|
+
"inputs": [],
|
698
|
+
"name": "initialize",
|
699
|
+
"outputs": [],
|
700
|
+
"stateMutability": "nonpayable",
|
701
|
+
"type": "function"
|
702
|
+
},
|
703
|
+
{
|
704
|
+
"inputs": [],
|
705
|
+
"name": "name",
|
706
|
+
"outputs": [
|
707
|
+
{
|
708
|
+
"internalType": "string",
|
709
|
+
"name": "",
|
710
|
+
"type": "string"
|
711
|
+
}
|
712
|
+
],
|
713
|
+
"stateMutability": "pure",
|
714
|
+
"type": "function"
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"inputs": [
|
718
|
+
{
|
719
|
+
"internalType": "bytes32",
|
720
|
+
"name": "agreementId",
|
721
|
+
"type": "bytes32"
|
722
|
+
}
|
723
|
+
],
|
724
|
+
"name": "serviceAgreementExists",
|
725
|
+
"outputs": [
|
726
|
+
{
|
727
|
+
"internalType": "bool",
|
728
|
+
"name": "",
|
729
|
+
"type": "bool"
|
730
|
+
}
|
731
|
+
],
|
732
|
+
"stateMutability": "view",
|
733
|
+
"type": "function"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"inputs": [
|
737
|
+
{
|
738
|
+
"internalType": "bytes32",
|
739
|
+
"name": "agreementId",
|
740
|
+
"type": "bytes32"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"internalType": "uint128",
|
744
|
+
"name": "epochLength",
|
745
|
+
"type": "uint128"
|
746
|
+
}
|
747
|
+
],
|
748
|
+
"name": "setAgreementEpochLength",
|
749
|
+
"outputs": [],
|
750
|
+
"stateMutability": "nonpayable",
|
751
|
+
"type": "function"
|
752
|
+
},
|
753
|
+
{
|
754
|
+
"inputs": [
|
755
|
+
{
|
756
|
+
"internalType": "bytes32",
|
757
|
+
"name": "agreementId",
|
758
|
+
"type": "bytes32"
|
759
|
+
},
|
760
|
+
{
|
761
|
+
"internalType": "uint16",
|
762
|
+
"name": "epoch",
|
763
|
+
"type": "uint16"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"internalType": "uint256",
|
767
|
+
"name": "stateIndex",
|
768
|
+
"type": "uint256"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"internalType": "bytes32",
|
772
|
+
"name": "headCommitId",
|
773
|
+
"type": "bytes32"
|
774
|
+
}
|
775
|
+
],
|
776
|
+
"name": "setAgreementEpochSubmissionHead",
|
777
|
+
"outputs": [],
|
778
|
+
"stateMutability": "nonpayable",
|
779
|
+
"type": "function"
|
780
|
+
},
|
781
|
+
{
|
782
|
+
"inputs": [
|
783
|
+
{
|
784
|
+
"internalType": "bytes32",
|
785
|
+
"name": "agreementId",
|
786
|
+
"type": "bytes32"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"internalType": "uint16",
|
790
|
+
"name": "epochsNumber",
|
791
|
+
"type": "uint16"
|
792
|
+
}
|
793
|
+
],
|
794
|
+
"name": "setAgreementEpochsNumber",
|
795
|
+
"outputs": [],
|
796
|
+
"stateMutability": "nonpayable",
|
797
|
+
"type": "function"
|
798
|
+
},
|
799
|
+
{
|
800
|
+
"inputs": [
|
801
|
+
{
|
802
|
+
"internalType": "bytes32",
|
803
|
+
"name": "agreementId",
|
804
|
+
"type": "bytes32"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"internalType": "uint8",
|
808
|
+
"name": "proofWindowOffsetPerc",
|
809
|
+
"type": "uint8"
|
810
|
+
}
|
811
|
+
],
|
812
|
+
"name": "setAgreementProofWindowOffsetPerc",
|
813
|
+
"outputs": [],
|
814
|
+
"stateMutability": "nonpayable",
|
815
|
+
"type": "function"
|
816
|
+
},
|
817
|
+
{
|
818
|
+
"inputs": [
|
819
|
+
{
|
820
|
+
"internalType": "bytes32",
|
821
|
+
"name": "agreementId",
|
822
|
+
"type": "bytes32"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"internalType": "uint16",
|
826
|
+
"name": "epoch",
|
827
|
+
"type": "uint16"
|
828
|
+
},
|
829
|
+
{
|
830
|
+
"internalType": "uint32",
|
831
|
+
"name": "rewardedNodesNumber",
|
832
|
+
"type": "uint32"
|
833
|
+
}
|
834
|
+
],
|
835
|
+
"name": "setAgreementRewardedNodesNumber",
|
836
|
+
"outputs": [],
|
837
|
+
"stateMutability": "nonpayable",
|
838
|
+
"type": "function"
|
839
|
+
},
|
840
|
+
{
|
841
|
+
"inputs": [
|
842
|
+
{
|
843
|
+
"internalType": "bytes32",
|
844
|
+
"name": "agreementId",
|
845
|
+
"type": "bytes32"
|
846
|
+
},
|
847
|
+
{
|
848
|
+
"internalType": "uint8",
|
849
|
+
"name": "newScoreFunctionId",
|
850
|
+
"type": "uint8"
|
851
|
+
}
|
852
|
+
],
|
853
|
+
"name": "setAgreementScoreFunctionId",
|
854
|
+
"outputs": [],
|
855
|
+
"stateMutability": "nonpayable",
|
856
|
+
"type": "function"
|
857
|
+
},
|
858
|
+
{
|
859
|
+
"inputs": [
|
860
|
+
{
|
861
|
+
"internalType": "bytes32",
|
862
|
+
"name": "agreementId",
|
863
|
+
"type": "bytes32"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"internalType": "uint256",
|
867
|
+
"name": "startTime",
|
868
|
+
"type": "uint256"
|
869
|
+
}
|
870
|
+
],
|
871
|
+
"name": "setAgreementStartTime",
|
872
|
+
"outputs": [],
|
873
|
+
"stateMutability": "nonpayable",
|
874
|
+
"type": "function"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"inputs": [
|
878
|
+
{
|
879
|
+
"internalType": "bytes32",
|
880
|
+
"name": "agreementId",
|
881
|
+
"type": "bytes32"
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"internalType": "uint96",
|
885
|
+
"name": "tokenAmount",
|
886
|
+
"type": "uint96"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"name": "setAgreementTokenAmount",
|
890
|
+
"outputs": [],
|
891
|
+
"stateMutability": "nonpayable",
|
892
|
+
"type": "function"
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"inputs": [
|
896
|
+
{
|
897
|
+
"internalType": "bytes32",
|
898
|
+
"name": "agreementId",
|
899
|
+
"type": "bytes32"
|
900
|
+
},
|
901
|
+
{
|
902
|
+
"internalType": "uint96",
|
903
|
+
"name": "updateTokenAmount",
|
904
|
+
"type": "uint96"
|
905
|
+
}
|
906
|
+
],
|
907
|
+
"name": "setAgreementUpdateTokenAmount",
|
908
|
+
"outputs": [],
|
909
|
+
"stateMutability": "nonpayable",
|
910
|
+
"type": "function"
|
911
|
+
},
|
912
|
+
{
|
913
|
+
"inputs": [
|
914
|
+
{
|
915
|
+
"internalType": "bytes32",
|
916
|
+
"name": "commitId",
|
917
|
+
"type": "bytes32"
|
918
|
+
},
|
919
|
+
{
|
920
|
+
"internalType": "uint72",
|
921
|
+
"name": "identityId",
|
922
|
+
"type": "uint72"
|
923
|
+
}
|
924
|
+
],
|
925
|
+
"name": "setEpochStateCommitSubmissionIdentityId",
|
926
|
+
"outputs": [],
|
927
|
+
"stateMutability": "nonpayable",
|
928
|
+
"type": "function"
|
929
|
+
},
|
930
|
+
{
|
931
|
+
"inputs": [
|
932
|
+
{
|
933
|
+
"internalType": "bytes32",
|
934
|
+
"name": "commitId",
|
935
|
+
"type": "bytes32"
|
936
|
+
},
|
937
|
+
{
|
938
|
+
"internalType": "uint72",
|
939
|
+
"name": "nextIdentityId",
|
940
|
+
"type": "uint72"
|
941
|
+
}
|
942
|
+
],
|
943
|
+
"name": "setEpochStateCommitSubmissionNextIdentityId",
|
944
|
+
"outputs": [],
|
945
|
+
"stateMutability": "nonpayable",
|
946
|
+
"type": "function"
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"inputs": [
|
950
|
+
{
|
951
|
+
"internalType": "bytes32",
|
952
|
+
"name": "commitId",
|
953
|
+
"type": "bytes32"
|
954
|
+
},
|
955
|
+
{
|
956
|
+
"internalType": "uint72",
|
957
|
+
"name": "prevIdentityId",
|
958
|
+
"type": "uint72"
|
959
|
+
}
|
960
|
+
],
|
961
|
+
"name": "setEpochStateCommitSubmissionPrevIdentityId",
|
962
|
+
"outputs": [],
|
963
|
+
"stateMutability": "nonpayable",
|
964
|
+
"type": "function"
|
965
|
+
},
|
966
|
+
{
|
967
|
+
"inputs": [
|
968
|
+
{
|
969
|
+
"internalType": "bytes32",
|
970
|
+
"name": "commitId",
|
971
|
+
"type": "bytes32"
|
972
|
+
},
|
973
|
+
{
|
974
|
+
"internalType": "uint40",
|
975
|
+
"name": "score",
|
976
|
+
"type": "uint40"
|
977
|
+
}
|
978
|
+
],
|
979
|
+
"name": "setEpochStateCommitSubmissionScore",
|
980
|
+
"outputs": [],
|
981
|
+
"stateMutability": "nonpayable",
|
982
|
+
"type": "function"
|
983
|
+
},
|
984
|
+
{
|
985
|
+
"inputs": [
|
986
|
+
{
|
987
|
+
"internalType": "bytes32",
|
988
|
+
"name": "epochStateId",
|
989
|
+
"type": "bytes32"
|
990
|
+
},
|
991
|
+
{
|
992
|
+
"internalType": "uint8",
|
993
|
+
"name": "newEpochStateCommitsCount",
|
994
|
+
"type": "uint8"
|
995
|
+
}
|
996
|
+
],
|
997
|
+
"name": "setEpochStateCommitsCount",
|
998
|
+
"outputs": [],
|
999
|
+
"stateMutability": "nonpayable",
|
1000
|
+
"type": "function"
|
1001
|
+
},
|
1002
|
+
{
|
1003
|
+
"inputs": [
|
1004
|
+
{
|
1005
|
+
"internalType": "bytes32",
|
1006
|
+
"name": "stateId",
|
1007
|
+
"type": "bytes32"
|
1008
|
+
},
|
1009
|
+
{
|
1010
|
+
"internalType": "uint256",
|
1011
|
+
"name": "deadline",
|
1012
|
+
"type": "uint256"
|
1013
|
+
}
|
1014
|
+
],
|
1015
|
+
"name": "setUpdateCommitsDeadline",
|
1016
|
+
"outputs": [],
|
1017
|
+
"stateMutability": "nonpayable",
|
1018
|
+
"type": "function"
|
1019
|
+
},
|
1020
|
+
{
|
1021
|
+
"inputs": [],
|
1022
|
+
"name": "tokenContract",
|
1023
|
+
"outputs": [
|
1024
|
+
{
|
1025
|
+
"internalType": "contract IERC20",
|
1026
|
+
"name": "",
|
1027
|
+
"type": "address"
|
1028
|
+
}
|
1029
|
+
],
|
1030
|
+
"stateMutability": "view",
|
1031
|
+
"type": "function"
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
"inputs": [
|
1035
|
+
{
|
1036
|
+
"internalType": "address",
|
1037
|
+
"name": "receiver",
|
1038
|
+
"type": "address"
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
"internalType": "uint96",
|
1042
|
+
"name": "tokenAmount",
|
1043
|
+
"type": "uint96"
|
1044
|
+
}
|
1045
|
+
],
|
1046
|
+
"name": "transferAgreementTokens",
|
1047
|
+
"outputs": [],
|
1048
|
+
"stateMutability": "nonpayable",
|
1049
|
+
"type": "function"
|
1050
|
+
},
|
1051
|
+
{
|
1052
|
+
"inputs": [
|
1053
|
+
{
|
1054
|
+
"internalType": "address payable",
|
1055
|
+
"name": "custodian",
|
1056
|
+
"type": "address"
|
1057
|
+
}
|
1058
|
+
],
|
1059
|
+
"name": "transferTokens",
|
1060
|
+
"outputs": [],
|
1061
|
+
"stateMutability": "nonpayable",
|
1062
|
+
"type": "function"
|
1063
|
+
},
|
1064
|
+
{
|
1065
|
+
"inputs": [],
|
1066
|
+
"name": "version",
|
1067
|
+
"outputs": [
|
1068
|
+
{
|
1069
|
+
"internalType": "string",
|
1070
|
+
"name": "",
|
1071
|
+
"type": "string"
|
1072
|
+
}
|
1073
|
+
],
|
1074
|
+
"stateMutability": "pure",
|
1075
|
+
"type": "function"
|
1076
|
+
},
|
1077
|
+
{
|
1078
|
+
"inputs": [],
|
1079
|
+
"name": "withdrawMisplacedOTP",
|
1080
|
+
"outputs": [],
|
1081
|
+
"stateMutability": "nonpayable",
|
1082
|
+
"type": "function"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"inputs": [
|
1086
|
+
{
|
1087
|
+
"internalType": "address",
|
1088
|
+
"name": "tokenContractAddress",
|
1089
|
+
"type": "address"
|
1090
|
+
}
|
1091
|
+
],
|
1092
|
+
"name": "withdrawMisplacedTokens",
|
1093
|
+
"outputs": [],
|
1094
|
+
"stateMutability": "nonpayable",
|
1095
|
+
"type": "function"
|
1096
|
+
}
|
1097
|
+
]
|