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.
- dkg/asset.py +106 -28
- dkg/constants.py +13 -9
- dkg/data/interfaces/ContentAsset.json +133 -3
- dkg/data/interfaces/Paranet.json +821 -0
- dkg/data/interfaces/{Identity.json → ParanetIncentivesPoolFactory.json} +67 -86
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +919 -0
- dkg/data/interfaces/ParanetNeurowebIncentivesPool.json +1102 -0
- dkg/data/interfaces/{ServiceAgreementStorageV1.json → ParanetsRegistry.json} +331 -360
- dkg/dataclasses.py +28 -8
- dkg/main.py +6 -3
- dkg/method.py +55 -39
- dkg/module.py +1 -0
- dkg/network.py +20 -10
- dkg/paranet.py +477 -0
- dkg/providers/blockchain.py +57 -26
- dkg/types/__init__.py +1 -0
- dkg/types/general.py +44 -0
- dkg/utils/blockchain_request.py +149 -4
- dkg/utils/node_request.py +77 -80
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/METADATA +3 -141
- dkg-1.0.0.dist-info/NOTICE +9 -0
- dkg-1.0.0.dist-info/RECORD +52 -0
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/WHEEL +1 -1
- dkg/data/interfaces/Assertion.json +0 -157
- dkg/data/interfaces/CommitManagerV1.json +0 -549
- dkg/data/interfaces/CommitManagerV1U1.json +0 -735
- dkg/data/interfaces/HashingProxy.json +0 -253
- dkg/data/interfaces/IdentityStorage.json +0 -342
- dkg/data/interfaces/ParametersStorage.json +0 -487
- dkg/data/interfaces/Profile.json +0 -318
- dkg/data/interfaces/ProfileStorage.json +0 -596
- dkg/data/interfaces/ProofManagerV1.json +0 -540
- dkg/data/interfaces/ProofManagerV1U1.json +0 -561
- dkg/data/interfaces/ScoringProxy.json +0 -268
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
- dkg/data/interfaces/ServiceAgreementV1.json +0 -745
- dkg/data/interfaces/ShardingTable.json +0 -294
- dkg/data/interfaces/ShardingTableStorage.json +0 -317
- dkg/data/interfaces/Staking.json +0 -482
- dkg/data/interfaces/StakingStorage.json +0 -407
- dkg/data/interfaces/WhitelistStorage.json +0 -124
- dkg-0.1.0b6.dist-info/RECORD +0 -64
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -1,268 +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": true,
|
18
|
-
"internalType": "uint8",
|
19
|
-
"name": "scoreFunctionId",
|
20
|
-
"type": "uint8"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"indexed": false,
|
24
|
-
"internalType": "address",
|
25
|
-
"name": "newContractAddress",
|
26
|
-
"type": "address"
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"name": "NewScoringFunctionContract",
|
30
|
-
"type": "event"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"anonymous": false,
|
34
|
-
"inputs": [
|
35
|
-
{
|
36
|
-
"indexed": true,
|
37
|
-
"internalType": "uint8",
|
38
|
-
"name": "scoreFunctionId",
|
39
|
-
"type": "uint8"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"indexed": false,
|
43
|
-
"internalType": "address",
|
44
|
-
"name": "newContractAddress",
|
45
|
-
"type": "address"
|
46
|
-
}
|
47
|
-
],
|
48
|
-
"name": "ScoringFunctionContractUpdated",
|
49
|
-
"type": "event"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"inputs": [
|
53
|
-
{
|
54
|
-
"internalType": "uint8",
|
55
|
-
"name": "scoreFunctionId",
|
56
|
-
"type": "uint8"
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"internalType": "uint8",
|
60
|
-
"name": "hashFunctionId",
|
61
|
-
"type": "uint8"
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"internalType": "bytes",
|
65
|
-
"name": "nodeId",
|
66
|
-
"type": "bytes"
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"internalType": "bytes",
|
70
|
-
"name": "keyword",
|
71
|
-
"type": "bytes"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"internalType": "uint96",
|
75
|
-
"name": "stake",
|
76
|
-
"type": "uint96"
|
77
|
-
}
|
78
|
-
],
|
79
|
-
"name": "callScoreFunction",
|
80
|
-
"outputs": [
|
81
|
-
{
|
82
|
-
"internalType": "uint40",
|
83
|
-
"name": "",
|
84
|
-
"type": "uint40"
|
85
|
-
}
|
86
|
-
],
|
87
|
-
"stateMutability": "view",
|
88
|
-
"type": "function"
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"inputs": [],
|
92
|
-
"name": "getAllScoreFunctions",
|
93
|
-
"outputs": [
|
94
|
-
{
|
95
|
-
"components": [
|
96
|
-
{
|
97
|
-
"internalType": "uint8",
|
98
|
-
"name": "id",
|
99
|
-
"type": "uint8"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "address",
|
103
|
-
"name": "addr",
|
104
|
-
"type": "address"
|
105
|
-
}
|
106
|
-
],
|
107
|
-
"internalType": "struct UnorderedIndexableContractDynamicSetLib.Contract[]",
|
108
|
-
"name": "",
|
109
|
-
"type": "tuple[]"
|
110
|
-
}
|
111
|
-
],
|
112
|
-
"stateMutability": "view",
|
113
|
-
"type": "function"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"inputs": [
|
117
|
-
{
|
118
|
-
"internalType": "uint8",
|
119
|
-
"name": "scoreFunctionId",
|
120
|
-
"type": "uint8"
|
121
|
-
}
|
122
|
-
],
|
123
|
-
"name": "getScoreFunctionContractAddress",
|
124
|
-
"outputs": [
|
125
|
-
{
|
126
|
-
"internalType": "address",
|
127
|
-
"name": "",
|
128
|
-
"type": "address"
|
129
|
-
}
|
130
|
-
],
|
131
|
-
"stateMutability": "view",
|
132
|
-
"type": "function"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
"inputs": [
|
136
|
-
{
|
137
|
-
"internalType": "uint8",
|
138
|
-
"name": "scoreFunctionId",
|
139
|
-
"type": "uint8"
|
140
|
-
}
|
141
|
-
],
|
142
|
-
"name": "getScoreFunctionName",
|
143
|
-
"outputs": [
|
144
|
-
{
|
145
|
-
"internalType": "string",
|
146
|
-
"name": "",
|
147
|
-
"type": "string"
|
148
|
-
}
|
149
|
-
],
|
150
|
-
"stateMutability": "view",
|
151
|
-
"type": "function"
|
152
|
-
},
|
153
|
-
{
|
154
|
-
"inputs": [],
|
155
|
-
"name": "hub",
|
156
|
-
"outputs": [
|
157
|
-
{
|
158
|
-
"internalType": "contract Hub",
|
159
|
-
"name": "",
|
160
|
-
"type": "address"
|
161
|
-
}
|
162
|
-
],
|
163
|
-
"stateMutability": "view",
|
164
|
-
"type": "function"
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"inputs": [
|
168
|
-
{
|
169
|
-
"internalType": "uint8",
|
170
|
-
"name": "scoreFunctionId",
|
171
|
-
"type": "uint8"
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"name": "isScoreFunction",
|
175
|
-
"outputs": [
|
176
|
-
{
|
177
|
-
"internalType": "bool",
|
178
|
-
"name": "",
|
179
|
-
"type": "bool"
|
180
|
-
}
|
181
|
-
],
|
182
|
-
"stateMutability": "view",
|
183
|
-
"type": "function"
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"inputs": [],
|
187
|
-
"name": "name",
|
188
|
-
"outputs": [
|
189
|
-
{
|
190
|
-
"internalType": "string",
|
191
|
-
"name": "",
|
192
|
-
"type": "string"
|
193
|
-
}
|
194
|
-
],
|
195
|
-
"stateMutability": "pure",
|
196
|
-
"type": "function"
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"inputs": [
|
200
|
-
{
|
201
|
-
"internalType": "uint8",
|
202
|
-
"name": "scoreFunctionId",
|
203
|
-
"type": "uint8"
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"name": "removeContract",
|
207
|
-
"outputs": [],
|
208
|
-
"stateMutability": "nonpayable",
|
209
|
-
"type": "function"
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"inputs": [
|
213
|
-
{
|
214
|
-
"internalType": "uint8",
|
215
|
-
"name": "scoreFunctionId",
|
216
|
-
"type": "uint8"
|
217
|
-
},
|
218
|
-
{
|
219
|
-
"internalType": "address",
|
220
|
-
"name": "scoringContractAddress",
|
221
|
-
"type": "address"
|
222
|
-
}
|
223
|
-
],
|
224
|
-
"name": "setContractAddress",
|
225
|
-
"outputs": [],
|
226
|
-
"stateMutability": "nonpayable",
|
227
|
-
"type": "function"
|
228
|
-
},
|
229
|
-
{
|
230
|
-
"inputs": [
|
231
|
-
{
|
232
|
-
"internalType": "bool",
|
233
|
-
"name": "_status",
|
234
|
-
"type": "bool"
|
235
|
-
}
|
236
|
-
],
|
237
|
-
"name": "setStatus",
|
238
|
-
"outputs": [],
|
239
|
-
"stateMutability": "nonpayable",
|
240
|
-
"type": "function"
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"inputs": [],
|
244
|
-
"name": "status",
|
245
|
-
"outputs": [
|
246
|
-
{
|
247
|
-
"internalType": "bool",
|
248
|
-
"name": "",
|
249
|
-
"type": "bool"
|
250
|
-
}
|
251
|
-
],
|
252
|
-
"stateMutability": "view",
|
253
|
-
"type": "function"
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"inputs": [],
|
257
|
-
"name": "version",
|
258
|
-
"outputs": [
|
259
|
-
{
|
260
|
-
"internalType": "string",
|
261
|
-
"name": "",
|
262
|
-
"type": "string"
|
263
|
-
}
|
264
|
-
],
|
265
|
-
"stateMutability": "pure",
|
266
|
-
"type": "function"
|
267
|
-
}
|
268
|
-
]
|