dkg 0.1.0b6__py3-none-any.whl → 1.1.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 (44) hide show
  1. dkg/asset.py +106 -28
  2. dkg/constants.py +18 -10
  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/exceptions.py +1 -1
  11. dkg/main.py +6 -3
  12. dkg/method.py +55 -39
  13. dkg/module.py +1 -0
  14. dkg/network.py +20 -10
  15. dkg/paranet.py +476 -0
  16. dkg/providers/blockchain.py +57 -26
  17. dkg/types/__init__.py +1 -0
  18. dkg/types/general.py +44 -0
  19. dkg/utils/blockchain_request.py +149 -4
  20. dkg/utils/node_request.py +77 -80
  21. {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/METADATA +3 -141
  22. dkg-1.1.0.dist-info/NOTICE +9 -0
  23. dkg-1.1.0.dist-info/RECORD +52 -0
  24. {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/WHEEL +1 -1
  25. dkg/data/interfaces/Assertion.json +0 -157
  26. dkg/data/interfaces/CommitManagerV1.json +0 -549
  27. dkg/data/interfaces/CommitManagerV1U1.json +0 -735
  28. dkg/data/interfaces/HashingProxy.json +0 -253
  29. dkg/data/interfaces/IdentityStorage.json +0 -342
  30. dkg/data/interfaces/ParametersStorage.json +0 -487
  31. dkg/data/interfaces/Profile.json +0 -318
  32. dkg/data/interfaces/ProfileStorage.json +0 -596
  33. dkg/data/interfaces/ProofManagerV1.json +0 -540
  34. dkg/data/interfaces/ProofManagerV1U1.json +0 -561
  35. dkg/data/interfaces/ScoringProxy.json +0 -268
  36. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
  37. dkg/data/interfaces/ServiceAgreementV1.json +0 -745
  38. dkg/data/interfaces/ShardingTable.json +0 -294
  39. dkg/data/interfaces/ShardingTableStorage.json +0 -317
  40. dkg/data/interfaces/Staking.json +0 -482
  41. dkg/data/interfaces/StakingStorage.json +0 -407
  42. dkg/data/interfaces/WhitelistStorage.json +0 -124
  43. dkg-0.1.0b6.dist-info/RECORD +0 -64
  44. {dkg-0.1.0b6.dist-info → dkg-1.1.0.dist-info}/LICENSE +0 -0
@@ -1,253 +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": "hashFunctionId",
20
- "type": "uint8"
21
- },
22
- {
23
- "indexed": false,
24
- "internalType": "address",
25
- "name": "newContractAddress",
26
- "type": "address"
27
- }
28
- ],
29
- "name": "HashFunctionContractChanged",
30
- "type": "event"
31
- },
32
- {
33
- "anonymous": false,
34
- "inputs": [
35
- {
36
- "indexed": true,
37
- "internalType": "uint8",
38
- "name": "hashFunctionId",
39
- "type": "uint8"
40
- },
41
- {
42
- "indexed": false,
43
- "internalType": "address",
44
- "name": "newContractAddress",
45
- "type": "address"
46
- }
47
- ],
48
- "name": "NewHashFunctionContract",
49
- "type": "event"
50
- },
51
- {
52
- "inputs": [
53
- {
54
- "internalType": "uint8",
55
- "name": "hashFunctionId",
56
- "type": "uint8"
57
- },
58
- {
59
- "internalType": "bytes",
60
- "name": "data",
61
- "type": "bytes"
62
- }
63
- ],
64
- "name": "callHashFunction",
65
- "outputs": [
66
- {
67
- "internalType": "bytes32",
68
- "name": "",
69
- "type": "bytes32"
70
- }
71
- ],
72
- "stateMutability": "view",
73
- "type": "function"
74
- },
75
- {
76
- "inputs": [],
77
- "name": "getAllHashFunctions",
78
- "outputs": [
79
- {
80
- "components": [
81
- {
82
- "internalType": "uint8",
83
- "name": "id",
84
- "type": "uint8"
85
- },
86
- {
87
- "internalType": "address",
88
- "name": "addr",
89
- "type": "address"
90
- }
91
- ],
92
- "internalType": "struct UnorderedIndexableContractDynamicSetLib.Contract[]",
93
- "name": "",
94
- "type": "tuple[]"
95
- }
96
- ],
97
- "stateMutability": "view",
98
- "type": "function"
99
- },
100
- {
101
- "inputs": [
102
- {
103
- "internalType": "uint8",
104
- "name": "hashFunctionId",
105
- "type": "uint8"
106
- }
107
- ],
108
- "name": "getHashFunctionContractAddress",
109
- "outputs": [
110
- {
111
- "internalType": "address",
112
- "name": "",
113
- "type": "address"
114
- }
115
- ],
116
- "stateMutability": "view",
117
- "type": "function"
118
- },
119
- {
120
- "inputs": [
121
- {
122
- "internalType": "uint8",
123
- "name": "hashFunctionId",
124
- "type": "uint8"
125
- }
126
- ],
127
- "name": "getHashFunctionName",
128
- "outputs": [
129
- {
130
- "internalType": "string",
131
- "name": "",
132
- "type": "string"
133
- }
134
- ],
135
- "stateMutability": "view",
136
- "type": "function"
137
- },
138
- {
139
- "inputs": [],
140
- "name": "hub",
141
- "outputs": [
142
- {
143
- "internalType": "contract Hub",
144
- "name": "",
145
- "type": "address"
146
- }
147
- ],
148
- "stateMutability": "view",
149
- "type": "function"
150
- },
151
- {
152
- "inputs": [
153
- {
154
- "internalType": "uint8",
155
- "name": "hashFunctionId",
156
- "type": "uint8"
157
- }
158
- ],
159
- "name": "isHashFunction",
160
- "outputs": [
161
- {
162
- "internalType": "bool",
163
- "name": "",
164
- "type": "bool"
165
- }
166
- ],
167
- "stateMutability": "view",
168
- "type": "function"
169
- },
170
- {
171
- "inputs": [],
172
- "name": "name",
173
- "outputs": [
174
- {
175
- "internalType": "string",
176
- "name": "",
177
- "type": "string"
178
- }
179
- ],
180
- "stateMutability": "pure",
181
- "type": "function"
182
- },
183
- {
184
- "inputs": [
185
- {
186
- "internalType": "uint8",
187
- "name": "hashFunctionId",
188
- "type": "uint8"
189
- }
190
- ],
191
- "name": "removeContract",
192
- "outputs": [],
193
- "stateMutability": "nonpayable",
194
- "type": "function"
195
- },
196
- {
197
- "inputs": [
198
- {
199
- "internalType": "uint8",
200
- "name": "hashFunctionId",
201
- "type": "uint8"
202
- },
203
- {
204
- "internalType": "address",
205
- "name": "hashingContractAddress",
206
- "type": "address"
207
- }
208
- ],
209
- "name": "setContractAddress",
210
- "outputs": [],
211
- "stateMutability": "nonpayable",
212
- "type": "function"
213
- },
214
- {
215
- "inputs": [
216
- {
217
- "internalType": "bool",
218
- "name": "_status",
219
- "type": "bool"
220
- }
221
- ],
222
- "name": "setStatus",
223
- "outputs": [],
224
- "stateMutability": "nonpayable",
225
- "type": "function"
226
- },
227
- {
228
- "inputs": [],
229
- "name": "status",
230
- "outputs": [
231
- {
232
- "internalType": "bool",
233
- "name": "",
234
- "type": "bool"
235
- }
236
- ],
237
- "stateMutability": "view",
238
- "type": "function"
239
- },
240
- {
241
- "inputs": [],
242
- "name": "version",
243
- "outputs": [
244
- {
245
- "internalType": "string",
246
- "name": "",
247
- "type": "string"
248
- }
249
- ],
250
- "stateMutability": "pure",
251
- "type": "function"
252
- }
253
- ]
@@ -1,342 +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": "uint72",
19
- "name": "identityId",
20
- "type": "uint72"
21
- },
22
- {
23
- "indexed": true,
24
- "internalType": "bytes32",
25
- "name": "key",
26
- "type": "bytes32"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint256",
31
- "name": "purpose",
32
- "type": "uint256"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "uint256",
37
- "name": "keyType",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "KeyAdded",
42
- "type": "event"
43
- },
44
- {
45
- "anonymous": false,
46
- "inputs": [
47
- {
48
- "indexed": true,
49
- "internalType": "uint72",
50
- "name": "identityId",
51
- "type": "uint72"
52
- },
53
- {
54
- "indexed": true,
55
- "internalType": "bytes32",
56
- "name": "key",
57
- "type": "bytes32"
58
- },
59
- {
60
- "indexed": false,
61
- "internalType": "uint256",
62
- "name": "purpose",
63
- "type": "uint256"
64
- },
65
- {
66
- "indexed": false,
67
- "internalType": "uint256",
68
- "name": "keyType",
69
- "type": "uint256"
70
- }
71
- ],
72
- "name": "KeyRemoved",
73
- "type": "event"
74
- },
75
- {
76
- "inputs": [
77
- {
78
- "internalType": "uint72",
79
- "name": "identityId",
80
- "type": "uint72"
81
- },
82
- {
83
- "internalType": "bytes32",
84
- "name": "_key",
85
- "type": "bytes32"
86
- },
87
- {
88
- "internalType": "uint256",
89
- "name": "_purpose",
90
- "type": "uint256"
91
- },
92
- {
93
- "internalType": "uint256",
94
- "name": "_type",
95
- "type": "uint256"
96
- }
97
- ],
98
- "name": "addKey",
99
- "outputs": [],
100
- "stateMutability": "nonpayable",
101
- "type": "function"
102
- },
103
- {
104
- "inputs": [
105
- {
106
- "internalType": "uint72",
107
- "name": "identityId",
108
- "type": "uint72"
109
- }
110
- ],
111
- "name": "deleteIdentity",
112
- "outputs": [],
113
- "stateMutability": "nonpayable",
114
- "type": "function"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "generateIdentityId",
119
- "outputs": [
120
- {
121
- "internalType": "uint72",
122
- "name": "",
123
- "type": "uint72"
124
- }
125
- ],
126
- "stateMutability": "nonpayable",
127
- "type": "function"
128
- },
129
- {
130
- "inputs": [
131
- {
132
- "internalType": "address",
133
- "name": "operational",
134
- "type": "address"
135
- }
136
- ],
137
- "name": "getIdentityId",
138
- "outputs": [
139
- {
140
- "internalType": "uint72",
141
- "name": "",
142
- "type": "uint72"
143
- }
144
- ],
145
- "stateMutability": "view",
146
- "type": "function"
147
- },
148
- {
149
- "inputs": [
150
- {
151
- "internalType": "uint72",
152
- "name": "identityId",
153
- "type": "uint72"
154
- },
155
- {
156
- "internalType": "bytes32",
157
- "name": "_key",
158
- "type": "bytes32"
159
- }
160
- ],
161
- "name": "getKey",
162
- "outputs": [
163
- {
164
- "internalType": "uint256",
165
- "name": "",
166
- "type": "uint256"
167
- },
168
- {
169
- "internalType": "uint256",
170
- "name": "",
171
- "type": "uint256"
172
- },
173
- {
174
- "internalType": "bytes32",
175
- "name": "",
176
- "type": "bytes32"
177
- }
178
- ],
179
- "stateMutability": "view",
180
- "type": "function"
181
- },
182
- {
183
- "inputs": [
184
- {
185
- "internalType": "uint72",
186
- "name": "identityId",
187
- "type": "uint72"
188
- },
189
- {
190
- "internalType": "uint256",
191
- "name": "_purpose",
192
- "type": "uint256"
193
- }
194
- ],
195
- "name": "getKeysByPurpose",
196
- "outputs": [
197
- {
198
- "internalType": "bytes32[]",
199
- "name": "",
200
- "type": "bytes32[]"
201
- }
202
- ],
203
- "stateMutability": "view",
204
- "type": "function"
205
- },
206
- {
207
- "inputs": [],
208
- "name": "hub",
209
- "outputs": [
210
- {
211
- "internalType": "contract Hub",
212
- "name": "",
213
- "type": "address"
214
- }
215
- ],
216
- "stateMutability": "view",
217
- "type": "function"
218
- },
219
- {
220
- "inputs": [
221
- {
222
- "internalType": "bytes32",
223
- "name": "",
224
- "type": "bytes32"
225
- }
226
- ],
227
- "name": "identityIds",
228
- "outputs": [
229
- {
230
- "internalType": "uint72",
231
- "name": "",
232
- "type": "uint72"
233
- }
234
- ],
235
- "stateMutability": "view",
236
- "type": "function"
237
- },
238
- {
239
- "inputs": [
240
- {
241
- "internalType": "uint72",
242
- "name": "identityId",
243
- "type": "uint72"
244
- },
245
- {
246
- "internalType": "bytes32",
247
- "name": "_key",
248
- "type": "bytes32"
249
- },
250
- {
251
- "internalType": "uint256",
252
- "name": "_purpose",
253
- "type": "uint256"
254
- }
255
- ],
256
- "name": "keyHasPurpose",
257
- "outputs": [
258
- {
259
- "internalType": "bool",
260
- "name": "",
261
- "type": "bool"
262
- }
263
- ],
264
- "stateMutability": "view",
265
- "type": "function"
266
- },
267
- {
268
- "inputs": [],
269
- "name": "name",
270
- "outputs": [
271
- {
272
- "internalType": "string",
273
- "name": "",
274
- "type": "string"
275
- }
276
- ],
277
- "stateMutability": "pure",
278
- "type": "function"
279
- },
280
- {
281
- "inputs": [
282
- {
283
- "internalType": "uint72",
284
- "name": "identityId",
285
- "type": "uint72"
286
- },
287
- {
288
- "internalType": "bytes32",
289
- "name": "_key",
290
- "type": "bytes32"
291
- }
292
- ],
293
- "name": "removeKey",
294
- "outputs": [],
295
- "stateMutability": "nonpayable",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [
300
- {
301
- "internalType": "bytes32",
302
- "name": "operationalKey",
303
- "type": "bytes32"
304
- }
305
- ],
306
- "name": "removeOperationalKeyIdentityId",
307
- "outputs": [],
308
- "stateMutability": "nonpayable",
309
- "type": "function"
310
- },
311
- {
312
- "inputs": [
313
- {
314
- "internalType": "bytes32",
315
- "name": "operationalKey",
316
- "type": "bytes32"
317
- },
318
- {
319
- "internalType": "uint72",
320
- "name": "identityId",
321
- "type": "uint72"
322
- }
323
- ],
324
- "name": "setOperationalKeyIdentityId",
325
- "outputs": [],
326
- "stateMutability": "nonpayable",
327
- "type": "function"
328
- },
329
- {
330
- "inputs": [],
331
- "name": "version",
332
- "outputs": [
333
- {
334
- "internalType": "string",
335
- "name": "",
336
- "type": "string"
337
- }
338
- ],
339
- "stateMutability": "pure",
340
- "type": "function"
341
- }
342
- ]