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.
Files changed (62) hide show
  1. dkg/__init__.py +3 -0
  2. dkg/asset.py +781 -0
  3. dkg/constants.py +39 -0
  4. dkg/data/interfaces/Assertion.json +131 -0
  5. dkg/data/interfaces/AssertionStorage.json +229 -0
  6. dkg/data/interfaces/CommitManagerV1.json +534 -0
  7. dkg/data/interfaces/CommitManagerV1U1.json +720 -0
  8. dkg/data/interfaces/ContentAsset.json +671 -0
  9. dkg/data/interfaces/ContentAssetStorage.json +706 -0
  10. dkg/data/interfaces/HashingProxy.json +227 -0
  11. dkg/data/interfaces/Hub.json +356 -0
  12. dkg/data/interfaces/Identity.json +193 -0
  13. dkg/data/interfaces/IdentityStorage.json +342 -0
  14. dkg/data/interfaces/ParametersStorage.json +468 -0
  15. dkg/data/interfaces/Profile.json +292 -0
  16. dkg/data/interfaces/ProfileStorage.json +596 -0
  17. dkg/data/interfaces/ProofManagerV1.json +525 -0
  18. dkg/data/interfaces/ProofManagerV1U1.json +546 -0
  19. dkg/data/interfaces/ScoringProxy.json +242 -0
  20. dkg/data/interfaces/ServiceAgreementStorageProxy.json +1299 -0
  21. dkg/data/interfaces/ServiceAgreementStorageV1.json +901 -0
  22. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +1097 -0
  23. dkg/data/interfaces/ServiceAgreementV1.json +741 -0
  24. dkg/data/interfaces/ShardingTable.json +268 -0
  25. dkg/data/interfaces/ShardingTableStorage.json +317 -0
  26. dkg/data/interfaces/Staking.json +456 -0
  27. dkg/data/interfaces/StakingStorage.json +407 -0
  28. dkg/data/interfaces/Token.json +544 -0
  29. dkg/data/interfaces/UnfinalizedStateStorage.json +171 -0
  30. dkg/data/interfaces/WhitelistStorage.json +124 -0
  31. dkg/dataclasses.py +45 -0
  32. dkg/exceptions.py +161 -0
  33. dkg/graph.py +63 -0
  34. dkg/main.py +74 -0
  35. dkg/manager.py +64 -0
  36. dkg/method.py +131 -0
  37. dkg/module.py +63 -0
  38. dkg/node.py +54 -0
  39. dkg/providers/__init__.py +2 -0
  40. dkg/providers/blockchain.py +181 -0
  41. dkg/providers/node_http.py +62 -0
  42. dkg/types/__init__.py +8 -0
  43. dkg/types/blockchain.py +58 -0
  44. dkg/types/dkg_node.py +20 -0
  45. dkg/types/encoding.py +22 -0
  46. dkg/types/evm.py +25 -0
  47. dkg/types/generics.py +21 -0
  48. dkg/types/network.py +20 -0
  49. dkg/types/rdf.py +21 -0
  50. dkg/utils/__init__.py +0 -0
  51. dkg/utils/blockchain_request.py +159 -0
  52. dkg/utils/decorators.py +46 -0
  53. dkg/utils/merkle.py +173 -0
  54. dkg/utils/metadata.py +50 -0
  55. dkg/utils/node_request.py +197 -0
  56. dkg/utils/rdf.py +51 -0
  57. dkg/utils/string_transformations.py +22 -0
  58. dkg/utils/ual.py +41 -0
  59. dkg-0.1.0b1.dist-info/LICENSE +202 -0
  60. dkg-0.1.0b1.dist-info/METADATA +453 -0
  61. dkg-0.1.0b1.dist-info/RECORD +62 -0
  62. dkg-0.1.0b1.dist-info/WHEEL +4 -0
@@ -0,0 +1,468 @@
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
+ "inputs": [],
15
+ "name": "commitWindowDurationPerc",
16
+ "outputs": [
17
+ {
18
+ "internalType": "uint8",
19
+ "name": "",
20
+ "type": "uint8"
21
+ }
22
+ ],
23
+ "stateMutability": "view",
24
+ "type": "function"
25
+ },
26
+ {
27
+ "inputs": [],
28
+ "name": "epochLength",
29
+ "outputs": [
30
+ {
31
+ "internalType": "uint128",
32
+ "name": "",
33
+ "type": "uint128"
34
+ }
35
+ ],
36
+ "stateMutability": "view",
37
+ "type": "function"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "finalizationCommitsNumber",
42
+ "outputs": [
43
+ {
44
+ "internalType": "uint8",
45
+ "name": "",
46
+ "type": "uint8"
47
+ }
48
+ ],
49
+ "stateMutability": "view",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "hub",
55
+ "outputs": [
56
+ {
57
+ "internalType": "contract Hub",
58
+ "name": "",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "stateMutability": "view",
63
+ "type": "function"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "maxProofWindowOffsetPerc",
68
+ "outputs": [
69
+ {
70
+ "internalType": "uint8",
71
+ "name": "",
72
+ "type": "uint8"
73
+ }
74
+ ],
75
+ "stateMutability": "view",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "maximumStake",
81
+ "outputs": [
82
+ {
83
+ "internalType": "uint96",
84
+ "name": "",
85
+ "type": "uint96"
86
+ }
87
+ ],
88
+ "stateMutability": "view",
89
+ "type": "function"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "minProofWindowOffsetPerc",
94
+ "outputs": [
95
+ {
96
+ "internalType": "uint8",
97
+ "name": "",
98
+ "type": "uint8"
99
+ }
100
+ ],
101
+ "stateMutability": "view",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "minimumStake",
107
+ "outputs": [
108
+ {
109
+ "internalType": "uint96",
110
+ "name": "",
111
+ "type": "uint96"
112
+ }
113
+ ],
114
+ "stateMutability": "view",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "name",
120
+ "outputs": [
121
+ {
122
+ "internalType": "string",
123
+ "name": "",
124
+ "type": "string"
125
+ }
126
+ ],
127
+ "stateMutability": "pure",
128
+ "type": "function"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "proofWindowDurationPerc",
133
+ "outputs": [
134
+ {
135
+ "internalType": "uint8",
136
+ "name": "",
137
+ "type": "uint8"
138
+ }
139
+ ],
140
+ "stateMutability": "view",
141
+ "type": "function"
142
+ },
143
+ {
144
+ "inputs": [],
145
+ "name": "r0",
146
+ "outputs": [
147
+ {
148
+ "internalType": "uint32",
149
+ "name": "",
150
+ "type": "uint32"
151
+ }
152
+ ],
153
+ "stateMutability": "view",
154
+ "type": "function"
155
+ },
156
+ {
157
+ "inputs": [],
158
+ "name": "r1",
159
+ "outputs": [
160
+ {
161
+ "internalType": "uint32",
162
+ "name": "",
163
+ "type": "uint32"
164
+ }
165
+ ],
166
+ "stateMutability": "view",
167
+ "type": "function"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "r2",
172
+ "outputs": [
173
+ {
174
+ "internalType": "uint48",
175
+ "name": "",
176
+ "type": "uint48"
177
+ }
178
+ ],
179
+ "stateMutability": "view",
180
+ "type": "function"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "replacementWindowDurationPerc",
185
+ "outputs": [
186
+ {
187
+ "internalType": "uint8",
188
+ "name": "",
189
+ "type": "uint8"
190
+ }
191
+ ],
192
+ "stateMutability": "view",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "rewardWithdrawalDelay",
198
+ "outputs": [
199
+ {
200
+ "internalType": "uint24",
201
+ "name": "",
202
+ "type": "uint24"
203
+ }
204
+ ],
205
+ "stateMutability": "view",
206
+ "type": "function"
207
+ },
208
+ {
209
+ "inputs": [
210
+ {
211
+ "internalType": "uint8",
212
+ "name": "newCommitWindowDurationPerc",
213
+ "type": "uint8"
214
+ }
215
+ ],
216
+ "name": "setCommitWindowDurationPerc",
217
+ "outputs": [],
218
+ "stateMutability": "nonpayable",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "uint128",
225
+ "name": "newEpochLength",
226
+ "type": "uint128"
227
+ }
228
+ ],
229
+ "name": "setEpochLength",
230
+ "outputs": [],
231
+ "stateMutability": "nonpayable",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "uint8",
238
+ "name": "newFinalizationCommitsNumber",
239
+ "type": "uint8"
240
+ }
241
+ ],
242
+ "name": "setFinalizationCommitsNumber",
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable",
245
+ "type": "function"
246
+ },
247
+ {
248
+ "inputs": [
249
+ {
250
+ "internalType": "uint8",
251
+ "name": "newMaxProofWindowOffsetPerc",
252
+ "type": "uint8"
253
+ }
254
+ ],
255
+ "name": "setMaxProofWindowOffsetPerc",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "uint96",
264
+ "name": "newMaximumStake",
265
+ "type": "uint96"
266
+ }
267
+ ],
268
+ "name": "setMaximumStake",
269
+ "outputs": [],
270
+ "stateMutability": "nonpayable",
271
+ "type": "function"
272
+ },
273
+ {
274
+ "inputs": [
275
+ {
276
+ "internalType": "uint8",
277
+ "name": "newMinProofWindowOffsetPerc",
278
+ "type": "uint8"
279
+ }
280
+ ],
281
+ "name": "setMinProofWindowOffsetPerc",
282
+ "outputs": [],
283
+ "stateMutability": "nonpayable",
284
+ "type": "function"
285
+ },
286
+ {
287
+ "inputs": [
288
+ {
289
+ "internalType": "uint96",
290
+ "name": "newMinimumStake",
291
+ "type": "uint96"
292
+ }
293
+ ],
294
+ "name": "setMinimumStake",
295
+ "outputs": [],
296
+ "stateMutability": "nonpayable",
297
+ "type": "function"
298
+ },
299
+ {
300
+ "inputs": [
301
+ {
302
+ "internalType": "uint8",
303
+ "name": "newProofWindowDurationPerc",
304
+ "type": "uint8"
305
+ }
306
+ ],
307
+ "name": "setProofWindowDurationPerc",
308
+ "outputs": [],
309
+ "stateMutability": "nonpayable",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "internalType": "uint32",
316
+ "name": "newR0",
317
+ "type": "uint32"
318
+ }
319
+ ],
320
+ "name": "setR0",
321
+ "outputs": [],
322
+ "stateMutability": "nonpayable",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "uint32",
329
+ "name": "newR1",
330
+ "type": "uint32"
331
+ }
332
+ ],
333
+ "name": "setR1",
334
+ "outputs": [],
335
+ "stateMutability": "nonpayable",
336
+ "type": "function"
337
+ },
338
+ {
339
+ "inputs": [
340
+ {
341
+ "internalType": "uint48",
342
+ "name": "newR2",
343
+ "type": "uint48"
344
+ }
345
+ ],
346
+ "name": "setR2",
347
+ "outputs": [],
348
+ "stateMutability": "nonpayable",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [
353
+ {
354
+ "internalType": "uint8",
355
+ "name": "newReplacementWindowDurationPerc",
356
+ "type": "uint8"
357
+ }
358
+ ],
359
+ "name": "setReplacementWindowDurationPerc",
360
+ "outputs": [],
361
+ "stateMutability": "nonpayable",
362
+ "type": "function"
363
+ },
364
+ {
365
+ "inputs": [
366
+ {
367
+ "internalType": "uint24",
368
+ "name": "newRewardWithdrawalDelay",
369
+ "type": "uint24"
370
+ }
371
+ ],
372
+ "name": "setRewardWithdrawalDelay",
373
+ "outputs": [],
374
+ "stateMutability": "nonpayable",
375
+ "type": "function"
376
+ },
377
+ {
378
+ "inputs": [
379
+ {
380
+ "internalType": "uint32",
381
+ "name": "newSlashingFreezeDuration",
382
+ "type": "uint32"
383
+ }
384
+ ],
385
+ "name": "setSlashingFreezeDuration",
386
+ "outputs": [],
387
+ "stateMutability": "nonpayable",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ {
393
+ "internalType": "uint24",
394
+ "name": "newStakeWithdrawalDelay",
395
+ "type": "uint24"
396
+ }
397
+ ],
398
+ "name": "setStakeWithdrawalDelay",
399
+ "outputs": [],
400
+ "stateMutability": "nonpayable",
401
+ "type": "function"
402
+ },
403
+ {
404
+ "inputs": [
405
+ {
406
+ "internalType": "uint16",
407
+ "name": "newUpdateCommitWindowDuration",
408
+ "type": "uint16"
409
+ }
410
+ ],
411
+ "name": "setUpdateCommitWindowDuration",
412
+ "outputs": [],
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [],
418
+ "name": "slashingFreezeDuration",
419
+ "outputs": [
420
+ {
421
+ "internalType": "uint32",
422
+ "name": "",
423
+ "type": "uint32"
424
+ }
425
+ ],
426
+ "stateMutability": "view",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [],
431
+ "name": "stakeWithdrawalDelay",
432
+ "outputs": [
433
+ {
434
+ "internalType": "uint24",
435
+ "name": "",
436
+ "type": "uint24"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [],
444
+ "name": "updateCommitWindowDuration",
445
+ "outputs": [
446
+ {
447
+ "internalType": "uint16",
448
+ "name": "",
449
+ "type": "uint16"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "version",
458
+ "outputs": [
459
+ {
460
+ "internalType": "string",
461
+ "name": "",
462
+ "type": "string"
463
+ }
464
+ ],
465
+ "stateMutability": "pure",
466
+ "type": "function"
467
+ }
468
+ ]