dkg 0.1.0b6__py3-none-any.whl → 1.0.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 (43) hide show
  1. dkg/asset.py +106 -28
  2. dkg/constants.py +13 -9
  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/main.py +6 -3
  11. dkg/method.py +55 -39
  12. dkg/module.py +1 -0
  13. dkg/network.py +20 -10
  14. dkg/paranet.py +477 -0
  15. dkg/providers/blockchain.py +57 -26
  16. dkg/types/__init__.py +1 -0
  17. dkg/types/general.py +44 -0
  18. dkg/utils/blockchain_request.py +149 -4
  19. dkg/utils/node_request.py +77 -80
  20. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/METADATA +3 -141
  21. dkg-1.0.0.dist-info/NOTICE +9 -0
  22. dkg-1.0.0.dist-info/RECORD +52 -0
  23. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/WHEEL +1 -1
  24. dkg/data/interfaces/Assertion.json +0 -157
  25. dkg/data/interfaces/CommitManagerV1.json +0 -549
  26. dkg/data/interfaces/CommitManagerV1U1.json +0 -735
  27. dkg/data/interfaces/HashingProxy.json +0 -253
  28. dkg/data/interfaces/IdentityStorage.json +0 -342
  29. dkg/data/interfaces/ParametersStorage.json +0 -487
  30. dkg/data/interfaces/Profile.json +0 -318
  31. dkg/data/interfaces/ProfileStorage.json +0 -596
  32. dkg/data/interfaces/ProofManagerV1.json +0 -540
  33. dkg/data/interfaces/ProofManagerV1U1.json +0 -561
  34. dkg/data/interfaces/ScoringProxy.json +0 -268
  35. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
  36. dkg/data/interfaces/ServiceAgreementV1.json +0 -745
  37. dkg/data/interfaces/ShardingTable.json +0 -294
  38. dkg/data/interfaces/ShardingTableStorage.json +0 -317
  39. dkg/data/interfaces/Staking.json +0 -482
  40. dkg/data/interfaces/StakingStorage.json +0 -407
  41. dkg/data/interfaces/WhitelistStorage.json +0 -124
  42. dkg-0.1.0b6.dist-info/RECORD +0 -64
  43. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -1,735 +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
- "inputs": [
15
- {
16
- "internalType": "bytes32",
17
- "name": "agreementId",
18
- "type": "bytes32"
19
- },
20
- {
21
- "internalType": "uint16",
22
- "name": "epoch",
23
- "type": "uint16"
24
- },
25
- {
26
- "internalType": "uint256",
27
- "name": "stateIndex",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "commitWindowOpen",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "commitWindowClose",
38
- "type": "uint256"
39
- },
40
- {
41
- "internalType": "uint256",
42
- "name": "timeNow",
43
- "type": "uint256"
44
- }
45
- ],
46
- "name": "CommitWindowClosed",
47
- "type": "error"
48
- },
49
- {
50
- "inputs": [
51
- {
52
- "internalType": "address",
53
- "name": "assetStorage",
54
- "type": "address"
55
- },
56
- {
57
- "internalType": "uint256",
58
- "name": "tokenId",
59
- "type": "uint256"
60
- }
61
- ],
62
- "name": "NoPendingUpdate",
63
- "type": "error"
64
- },
65
- {
66
- "inputs": [
67
- {
68
- "internalType": "bytes32",
69
- "name": "agreementId",
70
- "type": "bytes32"
71
- },
72
- {
73
- "internalType": "uint16",
74
- "name": "epoch",
75
- "type": "uint16"
76
- },
77
- {
78
- "internalType": "uint256",
79
- "name": "stateIndex",
80
- "type": "uint256"
81
- },
82
- {
83
- "internalType": "uint72",
84
- "name": "identityId",
85
- "type": "uint72"
86
- },
87
- {
88
- "internalType": "bytes",
89
- "name": "nodeId",
90
- "type": "bytes"
91
- }
92
- ],
93
- "name": "NodeAlreadySubmittedCommit",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "bytes32",
100
- "name": "agreementId",
101
- "type": "bytes32"
102
- },
103
- {
104
- "internalType": "uint16",
105
- "name": "epoch",
106
- "type": "uint16"
107
- },
108
- {
109
- "internalType": "uint256",
110
- "name": "stateIndex",
111
- "type": "uint256"
112
- },
113
- {
114
- "internalType": "uint72",
115
- "name": "identityId",
116
- "type": "uint72"
117
- },
118
- {
119
- "internalType": "bytes",
120
- "name": "nodeId",
121
- "type": "bytes"
122
- },
123
- {
124
- "internalType": "uint8",
125
- "name": "rank",
126
- "type": "uint8"
127
- }
128
- ],
129
- "name": "NodeNotAwarded",
130
- "type": "error"
131
- },
132
- {
133
- "inputs": [
134
- {
135
- "internalType": "uint72",
136
- "name": "identityId",
137
- "type": "uint72"
138
- },
139
- {
140
- "internalType": "bytes",
141
- "name": "nodeId",
142
- "type": "bytes"
143
- },
144
- {
145
- "internalType": "uint96",
146
- "name": "ask",
147
- "type": "uint96"
148
- },
149
- {
150
- "internalType": "uint96",
151
- "name": "stake",
152
- "type": "uint96"
153
- }
154
- ],
155
- "name": "NodeNotInShardingTable",
156
- "type": "error"
157
- },
158
- {
159
- "inputs": [
160
- {
161
- "internalType": "bytes32",
162
- "name": "agreementId",
163
- "type": "bytes32"
164
- }
165
- ],
166
- "name": "ServiceAgreementDoesntExist",
167
- "type": "error"
168
- },
169
- {
170
- "inputs": [
171
- {
172
- "internalType": "bytes32",
173
- "name": "agreementId",
174
- "type": "bytes32"
175
- },
176
- {
177
- "internalType": "uint256",
178
- "name": "startTime",
179
- "type": "uint256"
180
- },
181
- {
182
- "internalType": "uint16",
183
- "name": "epochsNumber",
184
- "type": "uint16"
185
- },
186
- {
187
- "internalType": "uint128",
188
- "name": "epochLength",
189
- "type": "uint128"
190
- }
191
- ],
192
- "name": "ServiceAgreementHasBeenExpired",
193
- "type": "error"
194
- },
195
- {
196
- "anonymous": false,
197
- "inputs": [
198
- {
199
- "indexed": true,
200
- "internalType": "address",
201
- "name": "assetContract",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": true,
206
- "internalType": "uint256",
207
- "name": "tokenId",
208
- "type": "uint256"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "bytes",
213
- "name": "keyword",
214
- "type": "bytes"
215
- },
216
- {
217
- "indexed": false,
218
- "internalType": "uint8",
219
- "name": "hashFunctionId",
220
- "type": "uint8"
221
- },
222
- {
223
- "indexed": false,
224
- "internalType": "uint16",
225
- "name": "epoch",
226
- "type": "uint16"
227
- },
228
- {
229
- "indexed": false,
230
- "internalType": "uint256",
231
- "name": "stateIndex",
232
- "type": "uint256"
233
- },
234
- {
235
- "indexed": true,
236
- "internalType": "uint72",
237
- "name": "identityId",
238
- "type": "uint72"
239
- },
240
- {
241
- "indexed": false,
242
- "internalType": "uint40",
243
- "name": "score",
244
- "type": "uint40"
245
- }
246
- ],
247
- "name": "CommitSubmitted",
248
- "type": "event"
249
- },
250
- {
251
- "anonymous": false,
252
- "inputs": [
253
- {
254
- "indexed": true,
255
- "internalType": "address",
256
- "name": "assetContract",
257
- "type": "address"
258
- },
259
- {
260
- "indexed": true,
261
- "internalType": "uint256",
262
- "name": "tokenId",
263
- "type": "uint256"
264
- },
265
- {
266
- "indexed": false,
267
- "internalType": "bytes",
268
- "name": "keyword",
269
- "type": "bytes"
270
- },
271
- {
272
- "indexed": false,
273
- "internalType": "uint8",
274
- "name": "hashFunctionId",
275
- "type": "uint8"
276
- },
277
- {
278
- "indexed": false,
279
- "internalType": "uint16",
280
- "name": "epoch",
281
- "type": "uint16"
282
- },
283
- {
284
- "indexed": false,
285
- "internalType": "uint256",
286
- "name": "stateIndex",
287
- "type": "uint256"
288
- },
289
- {
290
- "indexed": false,
291
- "internalType": "bytes32",
292
- "name": "state",
293
- "type": "bytes32"
294
- }
295
- ],
296
- "name": "StateFinalized",
297
- "type": "event"
298
- },
299
- {
300
- "inputs": [],
301
- "name": "contentAssetStorage",
302
- "outputs": [
303
- {
304
- "internalType": "contract ContentAssetStorage",
305
- "name": "",
306
- "type": "address"
307
- }
308
- ],
309
- "stateMutability": "view",
310
- "type": "function"
311
- },
312
- {
313
- "inputs": [
314
- {
315
- "internalType": "bytes32",
316
- "name": "agreementId",
317
- "type": "bytes32"
318
- },
319
- {
320
- "internalType": "uint16",
321
- "name": "epoch",
322
- "type": "uint16"
323
- },
324
- {
325
- "internalType": "uint256",
326
- "name": "stateIndex",
327
- "type": "uint256"
328
- }
329
- ],
330
- "name": "getTopCommitSubmissions",
331
- "outputs": [
332
- {
333
- "components": [
334
- {
335
- "internalType": "uint72",
336
- "name": "identityId",
337
- "type": "uint72"
338
- },
339
- {
340
- "internalType": "uint72",
341
- "name": "prevIdentityId",
342
- "type": "uint72"
343
- },
344
- {
345
- "internalType": "uint72",
346
- "name": "nextIdentityId",
347
- "type": "uint72"
348
- },
349
- {
350
- "internalType": "uint40",
351
- "name": "score",
352
- "type": "uint40"
353
- }
354
- ],
355
- "internalType": "struct ServiceAgreementStructsV1.CommitSubmission[]",
356
- "name": "",
357
- "type": "tuple[]"
358
- }
359
- ],
360
- "stateMutability": "view",
361
- "type": "function"
362
- },
363
- {
364
- "inputs": [],
365
- "name": "hashingProxy",
366
- "outputs": [
367
- {
368
- "internalType": "contract HashingProxy",
369
- "name": "",
370
- "type": "address"
371
- }
372
- ],
373
- "stateMutability": "view",
374
- "type": "function"
375
- },
376
- {
377
- "inputs": [],
378
- "name": "hub",
379
- "outputs": [
380
- {
381
- "internalType": "contract Hub",
382
- "name": "",
383
- "type": "address"
384
- }
385
- ],
386
- "stateMutability": "view",
387
- "type": "function"
388
- },
389
- {
390
- "inputs": [],
391
- "name": "identityStorage",
392
- "outputs": [
393
- {
394
- "internalType": "contract IdentityStorage",
395
- "name": "",
396
- "type": "address"
397
- }
398
- ],
399
- "stateMutability": "view",
400
- "type": "function"
401
- },
402
- {
403
- "inputs": [],
404
- "name": "initialize",
405
- "outputs": [],
406
- "stateMutability": "nonpayable",
407
- "type": "function"
408
- },
409
- {
410
- "inputs": [
411
- {
412
- "internalType": "bytes32",
413
- "name": "agreementId",
414
- "type": "bytes32"
415
- },
416
- {
417
- "internalType": "uint16",
418
- "name": "epoch",
419
- "type": "uint16"
420
- }
421
- ],
422
- "name": "isCommitWindowOpen",
423
- "outputs": [
424
- {
425
- "internalType": "bool",
426
- "name": "",
427
- "type": "bool"
428
- }
429
- ],
430
- "stateMutability": "view",
431
- "type": "function"
432
- },
433
- {
434
- "inputs": [
435
- {
436
- "internalType": "bytes32",
437
- "name": "agreementId",
438
- "type": "bytes32"
439
- },
440
- {
441
- "internalType": "uint16",
442
- "name": "epoch",
443
- "type": "uint16"
444
- },
445
- {
446
- "internalType": "uint256",
447
- "name": "stateIndex",
448
- "type": "uint256"
449
- }
450
- ],
451
- "name": "isUpdateCommitWindowOpen",
452
- "outputs": [
453
- {
454
- "internalType": "bool",
455
- "name": "",
456
- "type": "bool"
457
- }
458
- ],
459
- "stateMutability": "view",
460
- "type": "function"
461
- },
462
- {
463
- "inputs": [],
464
- "name": "name",
465
- "outputs": [
466
- {
467
- "internalType": "string",
468
- "name": "",
469
- "type": "string"
470
- }
471
- ],
472
- "stateMutability": "pure",
473
- "type": "function"
474
- },
475
- {
476
- "inputs": [],
477
- "name": "parametersStorage",
478
- "outputs": [
479
- {
480
- "internalType": "contract ParametersStorage",
481
- "name": "",
482
- "type": "address"
483
- }
484
- ],
485
- "stateMutability": "view",
486
- "type": "function"
487
- },
488
- {
489
- "inputs": [],
490
- "name": "profileStorage",
491
- "outputs": [
492
- {
493
- "internalType": "contract ProfileStorage",
494
- "name": "",
495
- "type": "address"
496
- }
497
- ],
498
- "stateMutability": "view",
499
- "type": "function"
500
- },
501
- {
502
- "inputs": [
503
- {
504
- "internalType": "uint256",
505
- "name": "",
506
- "type": "uint256"
507
- }
508
- ],
509
- "name": "reqs",
510
- "outputs": [
511
- {
512
- "internalType": "bool",
513
- "name": "",
514
- "type": "bool"
515
- }
516
- ],
517
- "stateMutability": "view",
518
- "type": "function"
519
- },
520
- {
521
- "inputs": [],
522
- "name": "scoringProxy",
523
- "outputs": [
524
- {
525
- "internalType": "contract ScoringProxy",
526
- "name": "",
527
- "type": "address"
528
- }
529
- ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
- {
534
- "inputs": [],
535
- "name": "serviceAgreementStorageProxy",
536
- "outputs": [
537
- {
538
- "internalType": "contract ServiceAgreementStorageProxy",
539
- "name": "",
540
- "type": "address"
541
- }
542
- ],
543
- "stateMutability": "view",
544
- "type": "function"
545
- },
546
- {
547
- "inputs": [
548
- {
549
- "internalType": "uint256",
550
- "name": "index",
551
- "type": "uint256"
552
- },
553
- {
554
- "internalType": "bool",
555
- "name": "req",
556
- "type": "bool"
557
- }
558
- ],
559
- "name": "setReq",
560
- "outputs": [],
561
- "stateMutability": "nonpayable",
562
- "type": "function"
563
- },
564
- {
565
- "inputs": [
566
- {
567
- "internalType": "bool",
568
- "name": "_status",
569
- "type": "bool"
570
- }
571
- ],
572
- "name": "setStatus",
573
- "outputs": [],
574
- "stateMutability": "nonpayable",
575
- "type": "function"
576
- },
577
- {
578
- "inputs": [],
579
- "name": "shardingTableStorage",
580
- "outputs": [
581
- {
582
- "internalType": "contract ShardingTableStorage",
583
- "name": "",
584
- "type": "address"
585
- }
586
- ],
587
- "stateMutability": "view",
588
- "type": "function"
589
- },
590
- {
591
- "inputs": [],
592
- "name": "stakingContract",
593
- "outputs": [
594
- {
595
- "internalType": "contract Staking",
596
- "name": "",
597
- "type": "address"
598
- }
599
- ],
600
- "stateMutability": "view",
601
- "type": "function"
602
- },
603
- {
604
- "inputs": [],
605
- "name": "stakingStorage",
606
- "outputs": [
607
- {
608
- "internalType": "contract StakingStorage",
609
- "name": "",
610
- "type": "address"
611
- }
612
- ],
613
- "stateMutability": "view",
614
- "type": "function"
615
- },
616
- {
617
- "inputs": [],
618
- "name": "status",
619
- "outputs": [
620
- {
621
- "internalType": "bool",
622
- "name": "",
623
- "type": "bool"
624
- }
625
- ],
626
- "stateMutability": "view",
627
- "type": "function"
628
- },
629
- {
630
- "inputs": [
631
- {
632
- "components": [
633
- {
634
- "internalType": "address",
635
- "name": "assetContract",
636
- "type": "address"
637
- },
638
- {
639
- "internalType": "uint256",
640
- "name": "tokenId",
641
- "type": "uint256"
642
- },
643
- {
644
- "internalType": "bytes",
645
- "name": "keyword",
646
- "type": "bytes"
647
- },
648
- {
649
- "internalType": "uint8",
650
- "name": "hashFunctionId",
651
- "type": "uint8"
652
- },
653
- {
654
- "internalType": "uint16",
655
- "name": "epoch",
656
- "type": "uint16"
657
- }
658
- ],
659
- "internalType": "struct ServiceAgreementStructsV1.CommitInputArgs",
660
- "name": "args",
661
- "type": "tuple"
662
- }
663
- ],
664
- "name": "submitCommit",
665
- "outputs": [],
666
- "stateMutability": "nonpayable",
667
- "type": "function"
668
- },
669
- {
670
- "inputs": [
671
- {
672
- "components": [
673
- {
674
- "internalType": "address",
675
- "name": "assetContract",
676
- "type": "address"
677
- },
678
- {
679
- "internalType": "uint256",
680
- "name": "tokenId",
681
- "type": "uint256"
682
- },
683
- {
684
- "internalType": "bytes",
685
- "name": "keyword",
686
- "type": "bytes"
687
- },
688
- {
689
- "internalType": "uint8",
690
- "name": "hashFunctionId",
691
- "type": "uint8"
692
- },
693
- {
694
- "internalType": "uint16",
695
- "name": "epoch",
696
- "type": "uint16"
697
- }
698
- ],
699
- "internalType": "struct ServiceAgreementStructsV1.CommitInputArgs",
700
- "name": "args",
701
- "type": "tuple"
702
- }
703
- ],
704
- "name": "submitUpdateCommit",
705
- "outputs": [],
706
- "stateMutability": "nonpayable",
707
- "type": "function"
708
- },
709
- {
710
- "inputs": [],
711
- "name": "unfinalizedStateStorage",
712
- "outputs": [
713
- {
714
- "internalType": "contract UnfinalizedStateStorage",
715
- "name": "",
716
- "type": "address"
717
- }
718
- ],
719
- "stateMutability": "view",
720
- "type": "function"
721
- },
722
- {
723
- "inputs": [],
724
- "name": "version",
725
- "outputs": [
726
- {
727
- "internalType": "string",
728
- "name": "",
729
- "type": "string"
730
- }
731
- ],
732
- "stateMutability": "pure",
733
- "type": "function"
734
- }
735
- ]