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