dkg 1.1.1__py3-none-any.whl → 8.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 (45) hide show
  1. dkg/asset.py +589 -683
  2. dkg/constants.py +106 -45
  3. dkg/data/interfaces/AskStorage.json +366 -0
  4. dkg/data/interfaces/Chronos.json +202 -0
  5. dkg/data/interfaces/Hub.json +294 -2
  6. dkg/data/interfaces/IdentityStorage.json +400 -0
  7. dkg/data/interfaces/KnowledgeCollection.json +610 -0
  8. dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
  9. dkg/data/interfaces/Paranet.json +656 -135
  10. dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -2
  11. dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
  12. dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +7 -7
  13. dkg/data/interfaces/ParanetsRegistry.json +844 -36
  14. dkg/data/interfaces/Token.json +146 -17
  15. dkg/dataclasses.py +11 -1
  16. dkg/exceptions.py +1 -0
  17. dkg/graph.py +55 -24
  18. dkg/main.py +18 -2
  19. dkg/network.py +2 -2
  20. dkg/node.py +7 -0
  21. dkg/paranet.py +336 -33
  22. dkg/providers/blockchain.py +23 -24
  23. dkg/providers/node_http.py +11 -9
  24. dkg/services/input_service.py +183 -0
  25. dkg/services/node_service.py +164 -0
  26. dkg/types/__init__.py +15 -3
  27. dkg/types/general.py +15 -8
  28. dkg/utils/blockchain_request.py +189 -64
  29. dkg/utils/knowledge_asset_tools.py +5 -0
  30. dkg/utils/knowledge_collection_tools.py +236 -0
  31. dkg/utils/merkle.py +1 -1
  32. dkg/utils/node_request.py +33 -33
  33. dkg/utils/rdf.py +10 -6
  34. dkg/utils/string_transformations.py +1 -0
  35. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/METADATA +36 -26
  36. dkg-8.0.0.dist-info/RECORD +56 -0
  37. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/WHEEL +1 -1
  38. dkg/data/interfaces/AssertionStorage.json +0 -229
  39. dkg/data/interfaces/ContentAsset.json +0 -801
  40. dkg/data/interfaces/ContentAssetStorage.json +0 -782
  41. dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
  42. dkg/data/interfaces/UnfinalizedStateStorage.json +0 -171
  43. dkg-1.1.1.dist-info/RECORD +0 -52
  44. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/LICENSE +0 -0
  45. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/NOTICE +0 -0
@@ -36,6 +36,22 @@
36
36
  "name": "ParanetIncentivesPoolAlreadyExists",
37
37
  "type": "error"
38
38
  },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "string",
43
+ "name": "msg",
44
+ "type": "string"
45
+ }
46
+ ],
47
+ "name": "UnauthorizedAccess",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [],
52
+ "name": "ZeroAddressHub",
53
+ "type": "error"
54
+ },
39
55
  {
40
56
  "anonymous": false,
41
57
  "inputs": [
@@ -65,7 +81,7 @@
65
81
  }
66
82
  ],
67
83
  "indexed": false,
68
- "internalType": "struct ParanetStructs.IncentivesPool",
84
+ "internalType": "struct ParanetLib.IncentivesPool",
69
85
  "name": "incentivesPool",
70
86
  "type": "tuple"
71
87
  }
@@ -117,7 +133,7 @@
117
133
  "name": "hub",
118
134
  "outputs": [
119
135
  {
120
- "internalType": "contract HubV2",
136
+ "internalType": "contract Hub",
121
137
  "name": "",
122
138
  "type": "address"
123
139
  }
@@ -10,6 +10,22 @@
10
10
  "stateMutability": "nonpayable",
11
11
  "type": "constructor"
12
12
  },
13
+ {
14
+ "inputs": [
15
+ {
16
+ "internalType": "string",
17
+ "name": "msg",
18
+ "type": "string"
19
+ }
20
+ ],
21
+ "name": "UnauthorizedAccess",
22
+ "type": "error"
23
+ },
24
+ {
25
+ "inputs": [],
26
+ "name": "ZeroAddressHub",
27
+ "type": "error"
28
+ },
13
29
  {
14
30
  "inputs": [
15
31
  {
@@ -288,7 +304,7 @@
288
304
  "type": "uint256"
289
305
  }
290
306
  ],
291
- "internalType": "struct ParanetStructs.KnowledgeMinerMetadata",
307
+ "internalType": "struct ParanetLib.KnowledgeMinerMetadata",
292
308
  "name": "",
293
309
  "type": "tuple"
294
310
  }
@@ -464,7 +480,7 @@
464
480
  "type": "uint96"
465
481
  }
466
482
  ],
467
- "internalType": "struct ParanetStructs.UpdatingKnowledgeAssetState[]",
483
+ "internalType": "struct ParanetLib.UpdatingKnowledgeAssetState[]",
468
484
  "name": "",
469
485
  "type": "tuple[]"
470
486
  }
@@ -510,7 +526,7 @@
510
526
  "type": "uint96"
511
527
  }
512
528
  ],
513
- "internalType": "struct ParanetStructs.UpdatingKnowledgeAssetState[]",
529
+ "internalType": "struct ParanetLib.UpdatingKnowledgeAssetState[]",
514
530
  "name": "",
515
531
  "type": "tuple[]"
516
532
  }
@@ -523,7 +539,7 @@
523
539
  "name": "hub",
524
540
  "outputs": [
525
541
  {
526
- "internalType": "contract HubV2",
542
+ "internalType": "contract Hub",
527
543
  "name": "",
528
544
  "type": "address"
529
545
  }
@@ -212,7 +212,7 @@
212
212
  "type": "uint96"
213
213
  }
214
214
  ],
215
- "internalType": "struct ParanetStructs.ParanetIncentivizationProposalVoterInput[]",
215
+ "internalType": "struct ParanetLib.ParanetIncentivizationProposalVoterInput[]",
216
216
  "name": "voters_",
217
217
  "type": "tuple[]"
218
218
  }
@@ -366,7 +366,7 @@
366
366
  "type": "uint256"
367
367
  }
368
368
  ],
369
- "internalType": "struct ParanetStructs.ParanetIncentivesPoolClaimedRewardsProfile[]",
369
+ "internalType": "struct ParanetLib.ParanetIncentivesPoolClaimedRewardsProfile[]",
370
370
  "name": "",
371
371
  "type": "tuple[]"
372
372
  }
@@ -391,7 +391,7 @@
391
391
  "type": "uint256"
392
392
  }
393
393
  ],
394
- "internalType": "struct ParanetStructs.ParanetIncentivesPoolClaimedRewardsProfile[]",
394
+ "internalType": "struct ParanetLib.ParanetIncentivesPoolClaimedRewardsProfile[]",
395
395
  "name": "",
396
396
  "type": "tuple[]"
397
397
  }
@@ -518,7 +518,7 @@
518
518
  "type": "bool"
519
519
  }
520
520
  ],
521
- "internalType": "struct ParanetStructs.NeuroEmissionMultiplier[]",
521
+ "internalType": "struct ParanetLib.NeuroEmissionMultiplier[]",
522
522
  "name": "",
523
523
  "type": "tuple[]"
524
524
  }
@@ -619,7 +619,7 @@
619
619
  "type": "uint256"
620
620
  }
621
621
  ],
622
- "internalType": "struct ParanetStructs.ParanetIncentivizationProposalVoter",
622
+ "internalType": "struct ParanetLib.ParanetIncentivizationProposalVoter",
623
623
  "name": "",
624
624
  "type": "tuple"
625
625
  }
@@ -649,7 +649,7 @@
649
649
  "type": "uint256"
650
650
  }
651
651
  ],
652
- "internalType": "struct ParanetStructs.ParanetIncentivizationProposalVoter[]",
652
+ "internalType": "struct ParanetLib.ParanetIncentivizationProposalVoter[]",
653
653
  "name": "",
654
654
  "type": "tuple[]"
655
655
  }
@@ -675,7 +675,7 @@
675
675
  "name": "hub",
676
676
  "outputs": [
677
677
  {
678
- "internalType": "contract HubV2",
678
+ "internalType": "contract Hub",
679
679
  "name": "",
680
680
  "type": "address"
681
681
  }