dkg 8.0.0a2__py3-none-any.whl → 8.0.1__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/__init__.py +1 -1
- dkg/assertion.py +2 -2
- dkg/clients/__init__.py +4 -0
- dkg/clients/async_dkg.py +109 -0
- dkg/{main.py → clients/dkg.py} +42 -21
- dkg/constants.py +117 -6
- 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 +58 -0
- dkg/data/interfaces/{ContentAsset.json → KnowledgeCollection.json} +256 -343
- dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
- dkg/data/interfaces/Paranet.json +30 -214
- dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -2
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
- dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +7 -7
- dkg/data/interfaces/ParanetsRegistry.json +102 -32
- dkg/data/interfaces/Token.json +146 -17
- dkg/managers/__init__.py +0 -0
- dkg/managers/async_manager.py +69 -0
- dkg/{manager.py → managers/manager.py} +5 -3
- dkg/method.py +5 -2
- dkg/modules/__init__.py +0 -0
- dkg/modules/asset/__init__.py +0 -0
- dkg/modules/asset/asset.py +739 -0
- dkg/modules/asset/async_asset.py +751 -0
- dkg/modules/async_module.py +66 -0
- dkg/modules/graph/__init__.py +0 -0
- dkg/modules/graph/async_graph.py +118 -0
- dkg/modules/graph/graph.py +94 -0
- dkg/{module.py → modules/module.py} +1 -1
- dkg/modules/network/__init__.py +0 -0
- dkg/{network.py → modules/network/network.py} +4 -4
- dkg/modules/node/__init__.py +0 -0
- dkg/modules/node/async_node.py +39 -0
- dkg/{node.py → modules/node/node.py} +2 -2
- dkg/modules/paranet/__init__.py +0 -0
- dkg/{paranet.py → modules/paranet/paranet.py} +2 -2
- dkg/providers/__init__.py +9 -2
- dkg/providers/blockchain/__init__.py +4 -0
- dkg/providers/blockchain/async_blockchain.py +245 -0
- dkg/providers/blockchain/base_blockchain.py +102 -0
- dkg/providers/{blockchain.py → blockchain/blockchain.py} +15 -96
- dkg/providers/node/__init__.py +4 -0
- dkg/providers/node/async_node_http.py +72 -0
- dkg/providers/node/base_node_http.py +25 -0
- dkg/providers/{node_http.py → node/node_http.py} +12 -10
- dkg/services/__init__.py +0 -0
- dkg/services/blockchain_services/__init__.py +0 -0
- dkg/services/blockchain_services/async_blockchain_service.py +180 -0
- dkg/services/blockchain_services/blockchain_service.py +174 -0
- dkg/services/input_service.py +183 -0
- dkg/services/node_services/__init__.py +0 -0
- dkg/services/node_services/async_node_service.py +184 -0
- dkg/services/node_services/node_service.py +167 -0
- dkg/types/__init__.py +11 -11
- dkg/utils/blockchain_request.py +68 -42
- dkg/utils/knowledge_asset_tools.py +5 -0
- dkg/utils/knowledge_collection_tools.py +248 -0
- dkg/utils/node_request.py +60 -13
- dkg/utils/rdf.py +9 -3
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/METADATA +28 -19
- dkg-8.0.1.dist-info/RECORD +82 -0
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/WHEEL +1 -1
- dkg/asset.py +0 -912
- dkg/data/interfaces/AssertionStorage.json +0 -229
- dkg/data/interfaces/ContentAssetStorage.json +0 -706
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
- dkg/graph.py +0 -63
- dkg-8.0.0a2.dist-info/RECORD +0 -52
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/LICENSE +0 -0
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/NOTICE +0 -0
@@ -1,229 +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": "assertionId",
|
18
|
-
"type": "bytes32"
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"name": "assertionExists",
|
22
|
-
"outputs": [
|
23
|
-
{
|
24
|
-
"internalType": "bool",
|
25
|
-
"name": "",
|
26
|
-
"type": "bool"
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"stateMutability": "view",
|
30
|
-
"type": "function"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"inputs": [
|
34
|
-
{
|
35
|
-
"internalType": "bytes32",
|
36
|
-
"name": "assertionId",
|
37
|
-
"type": "bytes32"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"internalType": "uint128",
|
41
|
-
"name": "size",
|
42
|
-
"type": "uint128"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"internalType": "uint32",
|
46
|
-
"name": "triplesNumber",
|
47
|
-
"type": "uint32"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"internalType": "uint96",
|
51
|
-
"name": "chunksNumber",
|
52
|
-
"type": "uint96"
|
53
|
-
}
|
54
|
-
],
|
55
|
-
"name": "createAssertion",
|
56
|
-
"outputs": [],
|
57
|
-
"stateMutability": "nonpayable",
|
58
|
-
"type": "function"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"inputs": [
|
62
|
-
{
|
63
|
-
"internalType": "bytes32",
|
64
|
-
"name": "assertionId",
|
65
|
-
"type": "bytes32"
|
66
|
-
}
|
67
|
-
],
|
68
|
-
"name": "deleteAssertion",
|
69
|
-
"outputs": [],
|
70
|
-
"stateMutability": "nonpayable",
|
71
|
-
"type": "function"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"inputs": [
|
75
|
-
{
|
76
|
-
"internalType": "bytes32",
|
77
|
-
"name": "assertionId",
|
78
|
-
"type": "bytes32"
|
79
|
-
}
|
80
|
-
],
|
81
|
-
"name": "getAssertion",
|
82
|
-
"outputs": [
|
83
|
-
{
|
84
|
-
"components": [
|
85
|
-
{
|
86
|
-
"internalType": "uint256",
|
87
|
-
"name": "timestamp",
|
88
|
-
"type": "uint256"
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"internalType": "uint128",
|
92
|
-
"name": "size",
|
93
|
-
"type": "uint128"
|
94
|
-
},
|
95
|
-
{
|
96
|
-
"internalType": "uint32",
|
97
|
-
"name": "triplesNumber",
|
98
|
-
"type": "uint32"
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"internalType": "uint96",
|
102
|
-
"name": "chunksNumber",
|
103
|
-
"type": "uint96"
|
104
|
-
}
|
105
|
-
],
|
106
|
-
"internalType": "struct AssertionStructs.Assertion",
|
107
|
-
"name": "",
|
108
|
-
"type": "tuple"
|
109
|
-
}
|
110
|
-
],
|
111
|
-
"stateMutability": "view",
|
112
|
-
"type": "function"
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"inputs": [
|
116
|
-
{
|
117
|
-
"internalType": "bytes32",
|
118
|
-
"name": "assertionId",
|
119
|
-
"type": "bytes32"
|
120
|
-
}
|
121
|
-
],
|
122
|
-
"name": "getAssertionChunksNumber",
|
123
|
-
"outputs": [
|
124
|
-
{
|
125
|
-
"internalType": "uint96",
|
126
|
-
"name": "",
|
127
|
-
"type": "uint96"
|
128
|
-
}
|
129
|
-
],
|
130
|
-
"stateMutability": "view",
|
131
|
-
"type": "function"
|
132
|
-
},
|
133
|
-
{
|
134
|
-
"inputs": [
|
135
|
-
{
|
136
|
-
"internalType": "bytes32",
|
137
|
-
"name": "assertionId",
|
138
|
-
"type": "bytes32"
|
139
|
-
}
|
140
|
-
],
|
141
|
-
"name": "getAssertionSize",
|
142
|
-
"outputs": [
|
143
|
-
{
|
144
|
-
"internalType": "uint128",
|
145
|
-
"name": "",
|
146
|
-
"type": "uint128"
|
147
|
-
}
|
148
|
-
],
|
149
|
-
"stateMutability": "view",
|
150
|
-
"type": "function"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"inputs": [
|
154
|
-
{
|
155
|
-
"internalType": "bytes32",
|
156
|
-
"name": "assertionId",
|
157
|
-
"type": "bytes32"
|
158
|
-
}
|
159
|
-
],
|
160
|
-
"name": "getAssertionTimestamp",
|
161
|
-
"outputs": [
|
162
|
-
{
|
163
|
-
"internalType": "uint256",
|
164
|
-
"name": "",
|
165
|
-
"type": "uint256"
|
166
|
-
}
|
167
|
-
],
|
168
|
-
"stateMutability": "view",
|
169
|
-
"type": "function"
|
170
|
-
},
|
171
|
-
{
|
172
|
-
"inputs": [
|
173
|
-
{
|
174
|
-
"internalType": "bytes32",
|
175
|
-
"name": "assertionId",
|
176
|
-
"type": "bytes32"
|
177
|
-
}
|
178
|
-
],
|
179
|
-
"name": "getAssertionTriplesNumber",
|
180
|
-
"outputs": [
|
181
|
-
{
|
182
|
-
"internalType": "uint32",
|
183
|
-
"name": "",
|
184
|
-
"type": "uint32"
|
185
|
-
}
|
186
|
-
],
|
187
|
-
"stateMutability": "view",
|
188
|
-
"type": "function"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"inputs": [],
|
192
|
-
"name": "hub",
|
193
|
-
"outputs": [
|
194
|
-
{
|
195
|
-
"internalType": "contract Hub",
|
196
|
-
"name": "",
|
197
|
-
"type": "address"
|
198
|
-
}
|
199
|
-
],
|
200
|
-
"stateMutability": "view",
|
201
|
-
"type": "function"
|
202
|
-
},
|
203
|
-
{
|
204
|
-
"inputs": [],
|
205
|
-
"name": "name",
|
206
|
-
"outputs": [
|
207
|
-
{
|
208
|
-
"internalType": "string",
|
209
|
-
"name": "",
|
210
|
-
"type": "string"
|
211
|
-
}
|
212
|
-
],
|
213
|
-
"stateMutability": "pure",
|
214
|
-
"type": "function"
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"inputs": [],
|
218
|
-
"name": "version",
|
219
|
-
"outputs": [
|
220
|
-
{
|
221
|
-
"internalType": "string",
|
222
|
-
"name": "",
|
223
|
-
"type": "string"
|
224
|
-
}
|
225
|
-
],
|
226
|
-
"stateMutability": "pure",
|
227
|
-
"type": "function"
|
228
|
-
}
|
229
|
-
]
|