dkg 1.1.2__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.
- dkg/asset.py +589 -683
- dkg/constants.py +102 -40
- dkg/data/interfaces/AskStorage.json +366 -0
- dkg/data/interfaces/Chronos.json +202 -0
- dkg/data/interfaces/Hub.json +294 -2
- dkg/data/interfaces/IdentityStorage.json +400 -0
- dkg/data/interfaces/KnowledgeCollection.json +610 -0
- dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
- dkg/data/interfaces/Paranet.json +656 -135
- dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -7
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
- dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +27 -58
- dkg/data/interfaces/ParanetsRegistry.json +844 -36
- dkg/data/interfaces/Token.json +146 -17
- dkg/dataclasses.py +13 -4
- dkg/exceptions.py +1 -0
- dkg/graph.py +55 -24
- dkg/main.py +18 -2
- dkg/network.py +2 -2
- dkg/node.py +7 -0
- dkg/paranet.py +356 -111
- dkg/providers/blockchain.py +23 -24
- dkg/providers/node_http.py +6 -13
- dkg/services/input_service.py +183 -0
- dkg/services/node_service.py +164 -0
- dkg/types/__init__.py +15 -3
- dkg/types/general.py +15 -8
- dkg/utils/blockchain_request.py +188 -64
- dkg/utils/knowledge_asset_tools.py +5 -0
- dkg/utils/knowledge_collection_tools.py +236 -0
- dkg/utils/merkle.py +1 -1
- dkg/utils/node_request.py +33 -33
- dkg/utils/rdf.py +10 -6
- dkg/utils/string_transformations.py +1 -0
- {dkg-1.1.2.dist-info → dkg-8.0.0.dist-info}/METADATA +36 -26
- dkg-8.0.0.dist-info/RECORD +56 -0
- {dkg-1.1.2.dist-info → dkg-8.0.0.dist-info}/WHEEL +1 -1
- dkg/data/interfaces/AssertionStorage.json +0 -229
- dkg/data/interfaces/ContentAsset.json +0 -801
- dkg/data/interfaces/ContentAssetStorage.json +0 -782
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
- dkg/data/interfaces/UnfinalizedStateStorage.json +0 -171
- dkg-1.1.2.dist-info/RECORD +0 -52
- {dkg-1.1.2.dist-info → dkg-8.0.0.dist-info}/LICENSE +0 -0
- {dkg-1.1.2.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
|
84
|
+
"internalType": "struct ParanetLib.IncentivesPool",
|
69
85
|
"name": "incentivesPool",
|
70
86
|
"type": "tuple"
|
71
87
|
}
|
@@ -75,11 +91,6 @@
|
|
75
91
|
},
|
76
92
|
{
|
77
93
|
"inputs": [
|
78
|
-
{
|
79
|
-
"internalType": "bool",
|
80
|
-
"name": "isNativeReward",
|
81
|
-
"type": "bool"
|
82
|
-
},
|
83
94
|
{
|
84
95
|
"internalType": "address",
|
85
96
|
"name": "paranetKAStorageContract",
|
@@ -122,7 +133,7 @@
|
|
122
133
|
"name": "hub",
|
123
134
|
"outputs": [
|
124
135
|
{
|
125
|
-
"internalType": "contract
|
136
|
+
"internalType": "contract Hub",
|
126
137
|
"name": "",
|
127
138
|
"type": "address"
|
128
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
|
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
|
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
|
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
|
542
|
+
"internalType": "contract Hub",
|
527
543
|
"name": "",
|
528
544
|
"type": "address"
|
529
545
|
}
|
@@ -6,11 +6,6 @@
|
|
6
6
|
"name": "hubAddress",
|
7
7
|
"type": "address"
|
8
8
|
},
|
9
|
-
{
|
10
|
-
"internalType": "address",
|
11
|
-
"name": "rewardTokenAddress",
|
12
|
-
"type": "address"
|
13
|
-
},
|
14
9
|
{
|
15
10
|
"internalType": "address",
|
16
11
|
"name": "paranetsRegistryAddress",
|
@@ -82,25 +77,6 @@
|
|
82
77
|
"name": "NoRewardAvailable",
|
83
78
|
"type": "error"
|
84
79
|
},
|
85
|
-
{
|
86
|
-
"anonymous": false,
|
87
|
-
"inputs": [
|
88
|
-
{
|
89
|
-
"indexed": true,
|
90
|
-
"internalType": "address",
|
91
|
-
"name": "sender",
|
92
|
-
"type": "address"
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"indexed": false,
|
96
|
-
"internalType": "uint256",
|
97
|
-
"name": "amount",
|
98
|
-
"type": "uint256"
|
99
|
-
}
|
100
|
-
],
|
101
|
-
"name": "NativeNeuroRewardDeposit",
|
102
|
-
"type": "event"
|
103
|
-
},
|
104
80
|
{
|
105
81
|
"anonymous": false,
|
106
82
|
"inputs": [
|
@@ -145,6 +121,25 @@
|
|
145
121
|
"name": "NeuroEmissionMultiplierUpdateInitiated",
|
146
122
|
"type": "event"
|
147
123
|
},
|
124
|
+
{
|
125
|
+
"anonymous": false,
|
126
|
+
"inputs": [
|
127
|
+
{
|
128
|
+
"indexed": true,
|
129
|
+
"internalType": "address",
|
130
|
+
"name": "sender",
|
131
|
+
"type": "address"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"indexed": false,
|
135
|
+
"internalType": "uint256",
|
136
|
+
"name": "amount",
|
137
|
+
"type": "uint256"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "NeuroRewardDeposit",
|
141
|
+
"type": "event"
|
142
|
+
},
|
148
143
|
{
|
149
144
|
"anonymous": false,
|
150
145
|
"inputs": [
|
@@ -217,8 +212,8 @@
|
|
217
212
|
"type": "uint96"
|
218
213
|
}
|
219
214
|
],
|
220
|
-
"internalType": "struct
|
221
|
-
"name": "
|
215
|
+
"internalType": "struct ParanetLib.ParanetIncentivizationProposalVoterInput[]",
|
216
|
+
"name": "voters_",
|
222
217
|
"type": "tuple[]"
|
223
218
|
}
|
224
219
|
],
|
@@ -371,7 +366,7 @@
|
|
371
366
|
"type": "uint256"
|
372
367
|
}
|
373
368
|
],
|
374
|
-
"internalType": "struct
|
369
|
+
"internalType": "struct ParanetLib.ParanetIncentivesPoolClaimedRewardsProfile[]",
|
375
370
|
"name": "",
|
376
371
|
"type": "tuple[]"
|
377
372
|
}
|
@@ -396,7 +391,7 @@
|
|
396
391
|
"type": "uint256"
|
397
392
|
}
|
398
393
|
],
|
399
|
-
"internalType": "struct
|
394
|
+
"internalType": "struct ParanetLib.ParanetIncentivesPoolClaimedRewardsProfile[]",
|
400
395
|
"name": "",
|
401
396
|
"type": "tuple[]"
|
402
397
|
}
|
@@ -523,7 +518,7 @@
|
|
523
518
|
"type": "bool"
|
524
519
|
}
|
525
520
|
],
|
526
|
-
"internalType": "struct
|
521
|
+
"internalType": "struct ParanetLib.NeuroEmissionMultiplier[]",
|
527
522
|
"name": "",
|
528
523
|
"type": "tuple[]"
|
529
524
|
}
|
@@ -624,7 +619,7 @@
|
|
624
619
|
"type": "uint256"
|
625
620
|
}
|
626
621
|
],
|
627
|
-
"internalType": "struct
|
622
|
+
"internalType": "struct ParanetLib.ParanetIncentivizationProposalVoter",
|
628
623
|
"name": "",
|
629
624
|
"type": "tuple"
|
630
625
|
}
|
@@ -654,7 +649,7 @@
|
|
654
649
|
"type": "uint256"
|
655
650
|
}
|
656
651
|
],
|
657
|
-
"internalType": "struct
|
652
|
+
"internalType": "struct ParanetLib.ParanetIncentivizationProposalVoter[]",
|
658
653
|
"name": "",
|
659
654
|
"type": "tuple[]"
|
660
655
|
}
|
@@ -680,7 +675,7 @@
|
|
680
675
|
"name": "hub",
|
681
676
|
"outputs": [
|
682
677
|
{
|
683
|
-
"internalType": "contract
|
678
|
+
"internalType": "contract Hub",
|
684
679
|
"name": "",
|
685
680
|
"type": "address"
|
686
681
|
}
|
@@ -720,19 +715,6 @@
|
|
720
715
|
"stateMutability": "view",
|
721
716
|
"type": "function"
|
722
717
|
},
|
723
|
-
{
|
724
|
-
"inputs": [],
|
725
|
-
"name": "isNativeNeuro",
|
726
|
-
"outputs": [
|
727
|
-
{
|
728
|
-
"internalType": "bool",
|
729
|
-
"name": "",
|
730
|
-
"type": "bool"
|
731
|
-
}
|
732
|
-
],
|
733
|
-
"stateMutability": "view",
|
734
|
-
"type": "function"
|
735
|
-
},
|
736
718
|
{
|
737
719
|
"inputs": [
|
738
720
|
{
|
@@ -942,19 +924,6 @@
|
|
942
924
|
"stateMutability": "nonpayable",
|
943
925
|
"type": "function"
|
944
926
|
},
|
945
|
-
{
|
946
|
-
"inputs": [],
|
947
|
-
"name": "token",
|
948
|
-
"outputs": [
|
949
|
-
{
|
950
|
-
"internalType": "contract IERC20",
|
951
|
-
"name": "",
|
952
|
-
"type": "address"
|
953
|
-
}
|
954
|
-
],
|
955
|
-
"stateMutability": "view",
|
956
|
-
"type": "function"
|
957
|
-
},
|
958
927
|
{
|
959
928
|
"inputs": [],
|
960
929
|
"name": "totalMinersClaimedNeuro",
|