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,901 @@
|
|
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
|
+
"name": "commitSubmissionExists",
|
85
|
+
"outputs": [
|
86
|
+
{
|
87
|
+
"internalType": "bool",
|
88
|
+
"name": "",
|
89
|
+
"type": "bool"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"stateMutability": "view",
|
93
|
+
"type": "function"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"inputs": [
|
97
|
+
{
|
98
|
+
"internalType": "bytes32",
|
99
|
+
"name": "commitId",
|
100
|
+
"type": "bytes32"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"internalType": "uint72",
|
104
|
+
"name": "identityId",
|
105
|
+
"type": "uint72"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"internalType": "uint72",
|
109
|
+
"name": "prevIdentityId",
|
110
|
+
"type": "uint72"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"internalType": "uint72",
|
114
|
+
"name": "nextIdentityId",
|
115
|
+
"type": "uint72"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"internalType": "uint40",
|
119
|
+
"name": "score",
|
120
|
+
"type": "uint40"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"name": "createCommitSubmissionObject",
|
124
|
+
"outputs": [],
|
125
|
+
"stateMutability": "nonpayable",
|
126
|
+
"type": "function"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"inputs": [
|
130
|
+
{
|
131
|
+
"internalType": "bytes32",
|
132
|
+
"name": "agreementId",
|
133
|
+
"type": "bytes32"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"internalType": "uint16",
|
137
|
+
"name": "epochsNumber",
|
138
|
+
"type": "uint16"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"internalType": "uint128",
|
142
|
+
"name": "epochLength",
|
143
|
+
"type": "uint128"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"internalType": "uint96",
|
147
|
+
"name": "tokenAmount",
|
148
|
+
"type": "uint96"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"internalType": "uint8",
|
152
|
+
"name": "scoreFunctionId",
|
153
|
+
"type": "uint8"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"internalType": "uint8",
|
157
|
+
"name": "proofWindowOffsetPerc",
|
158
|
+
"type": "uint8"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"name": "createServiceAgreementObject",
|
162
|
+
"outputs": [],
|
163
|
+
"stateMutability": "nonpayable",
|
164
|
+
"type": "function"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"inputs": [
|
168
|
+
{
|
169
|
+
"internalType": "bytes32",
|
170
|
+
"name": "agreementId",
|
171
|
+
"type": "bytes32"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"internalType": "uint16",
|
175
|
+
"name": "epoch",
|
176
|
+
"type": "uint16"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"name": "decrementAgreementRewardedNodesNumber",
|
180
|
+
"outputs": [],
|
181
|
+
"stateMutability": "nonpayable",
|
182
|
+
"type": "function"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"inputs": [
|
186
|
+
{
|
187
|
+
"internalType": "bytes32",
|
188
|
+
"name": "commitId",
|
189
|
+
"type": "bytes32"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"name": "deleteCommitSubmissionsObject",
|
193
|
+
"outputs": [],
|
194
|
+
"stateMutability": "nonpayable",
|
195
|
+
"type": "function"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"inputs": [
|
199
|
+
{
|
200
|
+
"internalType": "bytes32",
|
201
|
+
"name": "agreementId",
|
202
|
+
"type": "bytes32"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"name": "deleteServiceAgreementObject",
|
206
|
+
"outputs": [],
|
207
|
+
"stateMutability": "nonpayable",
|
208
|
+
"type": "function"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"inputs": [
|
212
|
+
{
|
213
|
+
"internalType": "bytes32",
|
214
|
+
"name": "agreementId",
|
215
|
+
"type": "bytes32"
|
216
|
+
}
|
217
|
+
],
|
218
|
+
"name": "getAgreementData",
|
219
|
+
"outputs": [
|
220
|
+
{
|
221
|
+
"internalType": "uint256",
|
222
|
+
"name": "",
|
223
|
+
"type": "uint256"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"internalType": "uint16",
|
227
|
+
"name": "",
|
228
|
+
"type": "uint16"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"internalType": "uint128",
|
232
|
+
"name": "",
|
233
|
+
"type": "uint128"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"internalType": "uint96",
|
237
|
+
"name": "",
|
238
|
+
"type": "uint96"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"internalType": "uint8[2]",
|
242
|
+
"name": "",
|
243
|
+
"type": "uint8[2]"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"stateMutability": "view",
|
247
|
+
"type": "function"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"inputs": [
|
251
|
+
{
|
252
|
+
"internalType": "bytes32",
|
253
|
+
"name": "agreementId",
|
254
|
+
"type": "bytes32"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"name": "getAgreementEpochLength",
|
258
|
+
"outputs": [
|
259
|
+
{
|
260
|
+
"internalType": "uint128",
|
261
|
+
"name": "",
|
262
|
+
"type": "uint128"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"stateMutability": "view",
|
266
|
+
"type": "function"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"inputs": [
|
270
|
+
{
|
271
|
+
"internalType": "bytes32",
|
272
|
+
"name": "agreementId",
|
273
|
+
"type": "bytes32"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"internalType": "uint16",
|
277
|
+
"name": "epoch",
|
278
|
+
"type": "uint16"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"name": "getAgreementEpochSubmissionHead",
|
282
|
+
"outputs": [
|
283
|
+
{
|
284
|
+
"internalType": "bytes32",
|
285
|
+
"name": "",
|
286
|
+
"type": "bytes32"
|
287
|
+
}
|
288
|
+
],
|
289
|
+
"stateMutability": "view",
|
290
|
+
"type": "function"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"inputs": [
|
294
|
+
{
|
295
|
+
"internalType": "bytes32",
|
296
|
+
"name": "agreementId",
|
297
|
+
"type": "bytes32"
|
298
|
+
}
|
299
|
+
],
|
300
|
+
"name": "getAgreementEpochsNumber",
|
301
|
+
"outputs": [
|
302
|
+
{
|
303
|
+
"internalType": "uint16",
|
304
|
+
"name": "",
|
305
|
+
"type": "uint16"
|
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": "getAgreementProofWindowOffsetPerc",
|
320
|
+
"outputs": [
|
321
|
+
{
|
322
|
+
"internalType": "uint8",
|
323
|
+
"name": "",
|
324
|
+
"type": "uint8"
|
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
|
+
"name": "getAgreementRewardedNodesNumber",
|
344
|
+
"outputs": [
|
345
|
+
{
|
346
|
+
"internalType": "uint32",
|
347
|
+
"name": "",
|
348
|
+
"type": "uint32"
|
349
|
+
}
|
350
|
+
],
|
351
|
+
"stateMutability": "view",
|
352
|
+
"type": "function"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"inputs": [
|
356
|
+
{
|
357
|
+
"internalType": "bytes32",
|
358
|
+
"name": "agreementId",
|
359
|
+
"type": "bytes32"
|
360
|
+
}
|
361
|
+
],
|
362
|
+
"name": "getAgreementScoreFunctionId",
|
363
|
+
"outputs": [
|
364
|
+
{
|
365
|
+
"internalType": "uint8",
|
366
|
+
"name": "",
|
367
|
+
"type": "uint8"
|
368
|
+
}
|
369
|
+
],
|
370
|
+
"stateMutability": "view",
|
371
|
+
"type": "function"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"inputs": [
|
375
|
+
{
|
376
|
+
"internalType": "bytes32",
|
377
|
+
"name": "agreementId",
|
378
|
+
"type": "bytes32"
|
379
|
+
}
|
380
|
+
],
|
381
|
+
"name": "getAgreementStartTime",
|
382
|
+
"outputs": [
|
383
|
+
{
|
384
|
+
"internalType": "uint256",
|
385
|
+
"name": "",
|
386
|
+
"type": "uint256"
|
387
|
+
}
|
388
|
+
],
|
389
|
+
"stateMutability": "view",
|
390
|
+
"type": "function"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"inputs": [
|
394
|
+
{
|
395
|
+
"internalType": "bytes32",
|
396
|
+
"name": "agreementId",
|
397
|
+
"type": "bytes32"
|
398
|
+
}
|
399
|
+
],
|
400
|
+
"name": "getAgreementTokenAmount",
|
401
|
+
"outputs": [
|
402
|
+
{
|
403
|
+
"internalType": "uint96",
|
404
|
+
"name": "",
|
405
|
+
"type": "uint96"
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"stateMutability": "view",
|
409
|
+
"type": "function"
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"inputs": [
|
413
|
+
{
|
414
|
+
"internalType": "bytes32",
|
415
|
+
"name": "commitId",
|
416
|
+
"type": "bytes32"
|
417
|
+
}
|
418
|
+
],
|
419
|
+
"name": "getCommitSubmission",
|
420
|
+
"outputs": [
|
421
|
+
{
|
422
|
+
"components": [
|
423
|
+
{
|
424
|
+
"internalType": "uint72",
|
425
|
+
"name": "identityId",
|
426
|
+
"type": "uint72"
|
427
|
+
},
|
428
|
+
{
|
429
|
+
"internalType": "uint72",
|
430
|
+
"name": "prevIdentityId",
|
431
|
+
"type": "uint72"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"internalType": "uint72",
|
435
|
+
"name": "nextIdentityId",
|
436
|
+
"type": "uint72"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"internalType": "uint40",
|
440
|
+
"name": "score",
|
441
|
+
"type": "uint40"
|
442
|
+
}
|
443
|
+
],
|
444
|
+
"internalType": "struct ServiceAgreementStructsV1.CommitSubmission",
|
445
|
+
"name": "",
|
446
|
+
"type": "tuple"
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"stateMutability": "view",
|
450
|
+
"type": "function"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"inputs": [
|
454
|
+
{
|
455
|
+
"internalType": "bytes32",
|
456
|
+
"name": "commitId",
|
457
|
+
"type": "bytes32"
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"name": "getCommitSubmissionIdentityId",
|
461
|
+
"outputs": [
|
462
|
+
{
|
463
|
+
"internalType": "uint72",
|
464
|
+
"name": "",
|
465
|
+
"type": "uint72"
|
466
|
+
}
|
467
|
+
],
|
468
|
+
"stateMutability": "view",
|
469
|
+
"type": "function"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"inputs": [
|
473
|
+
{
|
474
|
+
"internalType": "bytes32",
|
475
|
+
"name": "commitId",
|
476
|
+
"type": "bytes32"
|
477
|
+
}
|
478
|
+
],
|
479
|
+
"name": "getCommitSubmissionNextIdentityId",
|
480
|
+
"outputs": [
|
481
|
+
{
|
482
|
+
"internalType": "uint72",
|
483
|
+
"name": "",
|
484
|
+
"type": "uint72"
|
485
|
+
}
|
486
|
+
],
|
487
|
+
"stateMutability": "view",
|
488
|
+
"type": "function"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"inputs": [
|
492
|
+
{
|
493
|
+
"internalType": "bytes32",
|
494
|
+
"name": "commitId",
|
495
|
+
"type": "bytes32"
|
496
|
+
}
|
497
|
+
],
|
498
|
+
"name": "getCommitSubmissionPrevIdentityId",
|
499
|
+
"outputs": [
|
500
|
+
{
|
501
|
+
"internalType": "uint72",
|
502
|
+
"name": "",
|
503
|
+
"type": "uint72"
|
504
|
+
}
|
505
|
+
],
|
506
|
+
"stateMutability": "view",
|
507
|
+
"type": "function"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"inputs": [
|
511
|
+
{
|
512
|
+
"internalType": "bytes32",
|
513
|
+
"name": "commitId",
|
514
|
+
"type": "bytes32"
|
515
|
+
}
|
516
|
+
],
|
517
|
+
"name": "getCommitSubmissionScore",
|
518
|
+
"outputs": [
|
519
|
+
{
|
520
|
+
"internalType": "uint40",
|
521
|
+
"name": "",
|
522
|
+
"type": "uint40"
|
523
|
+
}
|
524
|
+
],
|
525
|
+
"stateMutability": "view",
|
526
|
+
"type": "function"
|
527
|
+
},
|
528
|
+
{
|
529
|
+
"inputs": [],
|
530
|
+
"name": "hub",
|
531
|
+
"outputs": [
|
532
|
+
{
|
533
|
+
"internalType": "contract Hub",
|
534
|
+
"name": "",
|
535
|
+
"type": "address"
|
536
|
+
}
|
537
|
+
],
|
538
|
+
"stateMutability": "view",
|
539
|
+
"type": "function"
|
540
|
+
},
|
541
|
+
{
|
542
|
+
"inputs": [
|
543
|
+
{
|
544
|
+
"internalType": "bytes32",
|
545
|
+
"name": "agreementId",
|
546
|
+
"type": "bytes32"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"internalType": "uint16",
|
550
|
+
"name": "epoch",
|
551
|
+
"type": "uint16"
|
552
|
+
}
|
553
|
+
],
|
554
|
+
"name": "incrementAgreementRewardedNodesNumber",
|
555
|
+
"outputs": [],
|
556
|
+
"stateMutability": "nonpayable",
|
557
|
+
"type": "function"
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"inputs": [],
|
561
|
+
"name": "initialize",
|
562
|
+
"outputs": [],
|
563
|
+
"stateMutability": "nonpayable",
|
564
|
+
"type": "function"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"inputs": [],
|
568
|
+
"name": "name",
|
569
|
+
"outputs": [
|
570
|
+
{
|
571
|
+
"internalType": "string",
|
572
|
+
"name": "",
|
573
|
+
"type": "string"
|
574
|
+
}
|
575
|
+
],
|
576
|
+
"stateMutability": "pure",
|
577
|
+
"type": "function"
|
578
|
+
},
|
579
|
+
{
|
580
|
+
"inputs": [
|
581
|
+
{
|
582
|
+
"internalType": "bytes32",
|
583
|
+
"name": "agreementId",
|
584
|
+
"type": "bytes32"
|
585
|
+
}
|
586
|
+
],
|
587
|
+
"name": "serviceAgreementExists",
|
588
|
+
"outputs": [
|
589
|
+
{
|
590
|
+
"internalType": "bool",
|
591
|
+
"name": "",
|
592
|
+
"type": "bool"
|
593
|
+
}
|
594
|
+
],
|
595
|
+
"stateMutability": "view",
|
596
|
+
"type": "function"
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"inputs": [
|
600
|
+
{
|
601
|
+
"internalType": "bytes32",
|
602
|
+
"name": "agreementId",
|
603
|
+
"type": "bytes32"
|
604
|
+
},
|
605
|
+
{
|
606
|
+
"internalType": "uint128",
|
607
|
+
"name": "epochLength",
|
608
|
+
"type": "uint128"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"name": "setAgreementEpochLength",
|
612
|
+
"outputs": [],
|
613
|
+
"stateMutability": "nonpayable",
|
614
|
+
"type": "function"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"inputs": [
|
618
|
+
{
|
619
|
+
"internalType": "bytes32",
|
620
|
+
"name": "agreementId",
|
621
|
+
"type": "bytes32"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"internalType": "uint16",
|
625
|
+
"name": "epoch",
|
626
|
+
"type": "uint16"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "bytes32",
|
630
|
+
"name": "headCommitId",
|
631
|
+
"type": "bytes32"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"name": "setAgreementEpochSubmissionHead",
|
635
|
+
"outputs": [],
|
636
|
+
"stateMutability": "nonpayable",
|
637
|
+
"type": "function"
|
638
|
+
},
|
639
|
+
{
|
640
|
+
"inputs": [
|
641
|
+
{
|
642
|
+
"internalType": "bytes32",
|
643
|
+
"name": "agreementId",
|
644
|
+
"type": "bytes32"
|
645
|
+
},
|
646
|
+
{
|
647
|
+
"internalType": "uint16",
|
648
|
+
"name": "epochsNumber",
|
649
|
+
"type": "uint16"
|
650
|
+
}
|
651
|
+
],
|
652
|
+
"name": "setAgreementEpochsNumber",
|
653
|
+
"outputs": [],
|
654
|
+
"stateMutability": "nonpayable",
|
655
|
+
"type": "function"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"inputs": [
|
659
|
+
{
|
660
|
+
"internalType": "bytes32",
|
661
|
+
"name": "agreementId",
|
662
|
+
"type": "bytes32"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"internalType": "uint8",
|
666
|
+
"name": "proofWindowOffsetPerc",
|
667
|
+
"type": "uint8"
|
668
|
+
}
|
669
|
+
],
|
670
|
+
"name": "setAgreementProofWindowOffsetPerc",
|
671
|
+
"outputs": [],
|
672
|
+
"stateMutability": "nonpayable",
|
673
|
+
"type": "function"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"inputs": [
|
677
|
+
{
|
678
|
+
"internalType": "bytes32",
|
679
|
+
"name": "agreementId",
|
680
|
+
"type": "bytes32"
|
681
|
+
},
|
682
|
+
{
|
683
|
+
"internalType": "uint16",
|
684
|
+
"name": "epoch",
|
685
|
+
"type": "uint16"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"internalType": "uint32",
|
689
|
+
"name": "rewardedNodesNumber",
|
690
|
+
"type": "uint32"
|
691
|
+
}
|
692
|
+
],
|
693
|
+
"name": "setAgreementRewardedNodesNumber",
|
694
|
+
"outputs": [],
|
695
|
+
"stateMutability": "nonpayable",
|
696
|
+
"type": "function"
|
697
|
+
},
|
698
|
+
{
|
699
|
+
"inputs": [
|
700
|
+
{
|
701
|
+
"internalType": "bytes32",
|
702
|
+
"name": "agreementId",
|
703
|
+
"type": "bytes32"
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"internalType": "uint8",
|
707
|
+
"name": "newScoreFunctionId",
|
708
|
+
"type": "uint8"
|
709
|
+
}
|
710
|
+
],
|
711
|
+
"name": "setAgreementScoreFunctionId",
|
712
|
+
"outputs": [],
|
713
|
+
"stateMutability": "nonpayable",
|
714
|
+
"type": "function"
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"inputs": [
|
718
|
+
{
|
719
|
+
"internalType": "bytes32",
|
720
|
+
"name": "agreementId",
|
721
|
+
"type": "bytes32"
|
722
|
+
},
|
723
|
+
{
|
724
|
+
"internalType": "uint256",
|
725
|
+
"name": "startTime",
|
726
|
+
"type": "uint256"
|
727
|
+
}
|
728
|
+
],
|
729
|
+
"name": "setAgreementStartTime",
|
730
|
+
"outputs": [],
|
731
|
+
"stateMutability": "nonpayable",
|
732
|
+
"type": "function"
|
733
|
+
},
|
734
|
+
{
|
735
|
+
"inputs": [
|
736
|
+
{
|
737
|
+
"internalType": "bytes32",
|
738
|
+
"name": "agreementId",
|
739
|
+
"type": "bytes32"
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"internalType": "uint96",
|
743
|
+
"name": "tokenAmount",
|
744
|
+
"type": "uint96"
|
745
|
+
}
|
746
|
+
],
|
747
|
+
"name": "setAgreementTokenAmount",
|
748
|
+
"outputs": [],
|
749
|
+
"stateMutability": "nonpayable",
|
750
|
+
"type": "function"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"inputs": [
|
754
|
+
{
|
755
|
+
"internalType": "bytes32",
|
756
|
+
"name": "commitId",
|
757
|
+
"type": "bytes32"
|
758
|
+
},
|
759
|
+
{
|
760
|
+
"internalType": "uint72",
|
761
|
+
"name": "identityId",
|
762
|
+
"type": "uint72"
|
763
|
+
}
|
764
|
+
],
|
765
|
+
"name": "setCommitSubmissionIdentityId",
|
766
|
+
"outputs": [],
|
767
|
+
"stateMutability": "nonpayable",
|
768
|
+
"type": "function"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"inputs": [
|
772
|
+
{
|
773
|
+
"internalType": "bytes32",
|
774
|
+
"name": "commitId",
|
775
|
+
"type": "bytes32"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"internalType": "uint72",
|
779
|
+
"name": "nextIdentityId",
|
780
|
+
"type": "uint72"
|
781
|
+
}
|
782
|
+
],
|
783
|
+
"name": "setCommitSubmissionNextIdentityId",
|
784
|
+
"outputs": [],
|
785
|
+
"stateMutability": "nonpayable",
|
786
|
+
"type": "function"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"inputs": [
|
790
|
+
{
|
791
|
+
"internalType": "bytes32",
|
792
|
+
"name": "commitId",
|
793
|
+
"type": "bytes32"
|
794
|
+
},
|
795
|
+
{
|
796
|
+
"internalType": "uint72",
|
797
|
+
"name": "prevIdentityId",
|
798
|
+
"type": "uint72"
|
799
|
+
}
|
800
|
+
],
|
801
|
+
"name": "setCommitSubmissionPrevIdentityId",
|
802
|
+
"outputs": [],
|
803
|
+
"stateMutability": "nonpayable",
|
804
|
+
"type": "function"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"inputs": [
|
808
|
+
{
|
809
|
+
"internalType": "bytes32",
|
810
|
+
"name": "commitId",
|
811
|
+
"type": "bytes32"
|
812
|
+
},
|
813
|
+
{
|
814
|
+
"internalType": "uint40",
|
815
|
+
"name": "score",
|
816
|
+
"type": "uint40"
|
817
|
+
}
|
818
|
+
],
|
819
|
+
"name": "setCommitSubmissionScore",
|
820
|
+
"outputs": [],
|
821
|
+
"stateMutability": "nonpayable",
|
822
|
+
"type": "function"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"inputs": [],
|
826
|
+
"name": "tokenContract",
|
827
|
+
"outputs": [
|
828
|
+
{
|
829
|
+
"internalType": "contract IERC20",
|
830
|
+
"name": "",
|
831
|
+
"type": "address"
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"stateMutability": "view",
|
835
|
+
"type": "function"
|
836
|
+
},
|
837
|
+
{
|
838
|
+
"inputs": [
|
839
|
+
{
|
840
|
+
"internalType": "address",
|
841
|
+
"name": "receiver",
|
842
|
+
"type": "address"
|
843
|
+
},
|
844
|
+
{
|
845
|
+
"internalType": "uint96",
|
846
|
+
"name": "tokenAmount",
|
847
|
+
"type": "uint96"
|
848
|
+
}
|
849
|
+
],
|
850
|
+
"name": "transferAgreementTokens",
|
851
|
+
"outputs": [],
|
852
|
+
"stateMutability": "nonpayable",
|
853
|
+
"type": "function"
|
854
|
+
},
|
855
|
+
{
|
856
|
+
"inputs": [
|
857
|
+
{
|
858
|
+
"internalType": "address payable",
|
859
|
+
"name": "custodian",
|
860
|
+
"type": "address"
|
861
|
+
}
|
862
|
+
],
|
863
|
+
"name": "transferTokens",
|
864
|
+
"outputs": [],
|
865
|
+
"stateMutability": "nonpayable",
|
866
|
+
"type": "function"
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"inputs": [],
|
870
|
+
"name": "version",
|
871
|
+
"outputs": [
|
872
|
+
{
|
873
|
+
"internalType": "string",
|
874
|
+
"name": "",
|
875
|
+
"type": "string"
|
876
|
+
}
|
877
|
+
],
|
878
|
+
"stateMutability": "pure",
|
879
|
+
"type": "function"
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"inputs": [],
|
883
|
+
"name": "withdrawMisplacedOTP",
|
884
|
+
"outputs": [],
|
885
|
+
"stateMutability": "nonpayable",
|
886
|
+
"type": "function"
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"inputs": [
|
890
|
+
{
|
891
|
+
"internalType": "address",
|
892
|
+
"name": "tokenContractAddress",
|
893
|
+
"type": "address"
|
894
|
+
}
|
895
|
+
],
|
896
|
+
"name": "withdrawMisplacedTokens",
|
897
|
+
"outputs": [],
|
898
|
+
"stateMutability": "nonpayable",
|
899
|
+
"type": "function"
|
900
|
+
}
|
901
|
+
]
|