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.
Files changed (43) hide show
  1. dkg/asset.py +106 -28
  2. dkg/constants.py +13 -9
  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/main.py +6 -3
  11. dkg/method.py +55 -39
  12. dkg/module.py +1 -0
  13. dkg/network.py +20 -10
  14. dkg/paranet.py +477 -0
  15. dkg/providers/blockchain.py +57 -26
  16. dkg/types/__init__.py +1 -0
  17. dkg/types/general.py +44 -0
  18. dkg/utils/blockchain_request.py +149 -4
  19. dkg/utils/node_request.py +77 -80
  20. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/METADATA +3 -141
  21. dkg-1.0.0.dist-info/NOTICE +9 -0
  22. dkg-1.0.0.dist-info/RECORD +52 -0
  23. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/WHEEL +1 -1
  24. dkg/data/interfaces/Assertion.json +0 -157
  25. dkg/data/interfaces/CommitManagerV1.json +0 -549
  26. dkg/data/interfaces/CommitManagerV1U1.json +0 -735
  27. dkg/data/interfaces/HashingProxy.json +0 -253
  28. dkg/data/interfaces/IdentityStorage.json +0 -342
  29. dkg/data/interfaces/ParametersStorage.json +0 -487
  30. dkg/data/interfaces/Profile.json +0 -318
  31. dkg/data/interfaces/ProfileStorage.json +0 -596
  32. dkg/data/interfaces/ProofManagerV1.json +0 -540
  33. dkg/data/interfaces/ProofManagerV1U1.json +0 -561
  34. dkg/data/interfaces/ScoringProxy.json +0 -268
  35. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
  36. dkg/data/interfaces/ServiceAgreementV1.json +0 -745
  37. dkg/data/interfaces/ShardingTable.json +0 -294
  38. dkg/data/interfaces/ShardingTableStorage.json +0 -317
  39. dkg/data/interfaces/Staking.json +0 -482
  40. dkg/data/interfaces/StakingStorage.json +0 -407
  41. dkg/data/interfaces/WhitelistStorage.json +0 -124
  42. dkg-0.1.0b6.dist-info/RECORD +0 -64
  43. {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -1,318 +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": false,
24
- "internalType": "bytes",
25
- "name": "nodeId",
26
- "type": "bytes"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint96",
31
- "name": "ask",
32
- "type": "uint96"
33
- }
34
- ],
35
- "name": "AskUpdated",
36
- "type": "event"
37
- },
38
- {
39
- "anonymous": false,
40
- "inputs": [
41
- {
42
- "indexed": true,
43
- "internalType": "uint72",
44
- "name": "identityId",
45
- "type": "uint72"
46
- },
47
- {
48
- "indexed": false,
49
- "internalType": "bytes",
50
- "name": "nodeId",
51
- "type": "bytes"
52
- }
53
- ],
54
- "name": "ProfileCreated",
55
- "type": "event"
56
- },
57
- {
58
- "anonymous": false,
59
- "inputs": [
60
- {
61
- "indexed": true,
62
- "internalType": "uint72",
63
- "name": "identityId",
64
- "type": "uint72"
65
- }
66
- ],
67
- "name": "ProfileDeleted",
68
- "type": "event"
69
- },
70
- {
71
- "inputs": [
72
- {
73
- "internalType": "address",
74
- "name": "adminWallet",
75
- "type": "address"
76
- },
77
- {
78
- "internalType": "bytes",
79
- "name": "nodeId",
80
- "type": "bytes"
81
- },
82
- {
83
- "internalType": "string",
84
- "name": "sharesTokenName",
85
- "type": "string"
86
- },
87
- {
88
- "internalType": "string",
89
- "name": "sharesTokenSymbol",
90
- "type": "string"
91
- }
92
- ],
93
- "name": "createProfile",
94
- "outputs": [],
95
- "stateMutability": "nonpayable",
96
- "type": "function"
97
- },
98
- {
99
- "inputs": [],
100
- "name": "hashingProxy",
101
- "outputs": [
102
- {
103
- "internalType": "contract HashingProxy",
104
- "name": "",
105
- "type": "address"
106
- }
107
- ],
108
- "stateMutability": "view",
109
- "type": "function"
110
- },
111
- {
112
- "inputs": [],
113
- "name": "hub",
114
- "outputs": [
115
- {
116
- "internalType": "contract Hub",
117
- "name": "",
118
- "type": "address"
119
- }
120
- ],
121
- "stateMutability": "view",
122
- "type": "function"
123
- },
124
- {
125
- "inputs": [],
126
- "name": "identityContract",
127
- "outputs": [
128
- {
129
- "internalType": "contract Identity",
130
- "name": "",
131
- "type": "address"
132
- }
133
- ],
134
- "stateMutability": "view",
135
- "type": "function"
136
- },
137
- {
138
- "inputs": [],
139
- "name": "identityStorage",
140
- "outputs": [
141
- {
142
- "internalType": "contract IdentityStorage",
143
- "name": "",
144
- "type": "address"
145
- }
146
- ],
147
- "stateMutability": "view",
148
- "type": "function"
149
- },
150
- {
151
- "inputs": [],
152
- "name": "initialize",
153
- "outputs": [],
154
- "stateMutability": "nonpayable",
155
- "type": "function"
156
- },
157
- {
158
- "inputs": [],
159
- "name": "name",
160
- "outputs": [
161
- {
162
- "internalType": "string",
163
- "name": "",
164
- "type": "string"
165
- }
166
- ],
167
- "stateMutability": "pure",
168
- "type": "function"
169
- },
170
- {
171
- "inputs": [],
172
- "name": "parametersStorage",
173
- "outputs": [
174
- {
175
- "internalType": "contract ParametersStorage",
176
- "name": "",
177
- "type": "address"
178
- }
179
- ],
180
- "stateMutability": "view",
181
- "type": "function"
182
- },
183
- {
184
- "inputs": [],
185
- "name": "profileStorage",
186
- "outputs": [
187
- {
188
- "internalType": "contract ProfileStorage",
189
- "name": "",
190
- "type": "address"
191
- }
192
- ],
193
- "stateMutability": "view",
194
- "type": "function"
195
- },
196
- {
197
- "inputs": [
198
- {
199
- "internalType": "uint72",
200
- "name": "identityId",
201
- "type": "uint72"
202
- },
203
- {
204
- "internalType": "uint96",
205
- "name": "ask",
206
- "type": "uint96"
207
- }
208
- ],
209
- "name": "setAsk",
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
- {
230
- "internalType": "uint72",
231
- "name": "identityId",
232
- "type": "uint72"
233
- }
234
- ],
235
- "name": "stakeAccumulatedOperatorFee",
236
- "outputs": [],
237
- "stateMutability": "nonpayable",
238
- "type": "function"
239
- },
240
- {
241
- "inputs": [],
242
- "name": "stakingContract",
243
- "outputs": [
244
- {
245
- "internalType": "contract Staking",
246
- "name": "",
247
- "type": "address"
248
- }
249
- ],
250
- "stateMutability": "view",
251
- "type": "function"
252
- },
253
- {
254
- "inputs": [
255
- {
256
- "internalType": "uint72",
257
- "name": "identityId",
258
- "type": "uint72"
259
- }
260
- ],
261
- "name": "startAccumulatedOperatorFeeWithdrawal",
262
- "outputs": [],
263
- "stateMutability": "nonpayable",
264
- "type": "function"
265
- },
266
- {
267
- "inputs": [],
268
- "name": "status",
269
- "outputs": [
270
- {
271
- "internalType": "bool",
272
- "name": "",
273
- "type": "bool"
274
- }
275
- ],
276
- "stateMutability": "view",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [],
281
- "name": "version",
282
- "outputs": [
283
- {
284
- "internalType": "string",
285
- "name": "",
286
- "type": "string"
287
- }
288
- ],
289
- "stateMutability": "pure",
290
- "type": "function"
291
- },
292
- {
293
- "inputs": [],
294
- "name": "whitelistStorage",
295
- "outputs": [
296
- {
297
- "internalType": "contract WhitelistStorage",
298
- "name": "",
299
- "type": "address"
300
- }
301
- ],
302
- "stateMutability": "view",
303
- "type": "function"
304
- },
305
- {
306
- "inputs": [
307
- {
308
- "internalType": "uint72",
309
- "name": "identityId",
310
- "type": "uint72"
311
- }
312
- ],
313
- "name": "withdrawAccumulatedOperatorFee",
314
- "outputs": [],
315
- "stateMutability": "nonpayable",
316
- "type": "function"
317
- }
318
- ]