dkg 0.1.0b5__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 +182 -70
  2. dkg/constants.py +39 -6
  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 +83 -60
  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.0b5.dist-info → dkg-1.0.0.dist-info}/METADATA +6 -144
  21. dkg-1.0.0.dist-info/NOTICE +9 -0
  22. dkg-1.0.0.dist-info/RECORD +52 -0
  23. {dkg-0.1.0b5.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.0b5.dist-info/RECORD +0 -64
  43. {dkg-0.1.0b5.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -1,596 +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": "address",
19
- "name": "custodian",
20
- "type": "address"
21
- },
22
- {
23
- "indexed": false,
24
- "internalType": "uint256",
25
- "name": "amount",
26
- "type": "uint256"
27
- }
28
- ],
29
- "name": "MisplacedOTPWithdrawn",
30
- "type": "event"
31
- },
32
- {
33
- "anonymous": false,
34
- "inputs": [
35
- {
36
- "indexed": true,
37
- "internalType": "address",
38
- "name": "custodian",
39
- "type": "address"
40
- },
41
- {
42
- "indexed": false,
43
- "internalType": "address",
44
- "name": "tokenContract",
45
- "type": "address"
46
- },
47
- {
48
- "indexed": false,
49
- "internalType": "uint256",
50
- "name": "amount",
51
- "type": "uint256"
52
- }
53
- ],
54
- "name": "MisplacedTokensWithdrawn",
55
- "type": "event"
56
- },
57
- {
58
- "anonymous": false,
59
- "inputs": [
60
- {
61
- "indexed": true,
62
- "internalType": "address",
63
- "name": "custodian",
64
- "type": "address"
65
- },
66
- {
67
- "indexed": false,
68
- "internalType": "uint256",
69
- "name": "amount",
70
- "type": "uint256"
71
- }
72
- ],
73
- "name": "TokenTransferred",
74
- "type": "event"
75
- },
76
- {
77
- "inputs": [
78
- {
79
- "internalType": "uint72",
80
- "name": "identityId",
81
- "type": "uint72"
82
- },
83
- {
84
- "internalType": "bytes",
85
- "name": "nodeId",
86
- "type": "bytes"
87
- },
88
- {
89
- "internalType": "address",
90
- "name": "sharesContractAddress",
91
- "type": "address"
92
- }
93
- ],
94
- "name": "createProfile",
95
- "outputs": [],
96
- "stateMutability": "nonpayable",
97
- "type": "function"
98
- },
99
- {
100
- "inputs": [
101
- {
102
- "internalType": "uint72",
103
- "name": "identityId",
104
- "type": "uint72"
105
- }
106
- ],
107
- "name": "deleteProfile",
108
- "outputs": [],
109
- "stateMutability": "nonpayable",
110
- "type": "function"
111
- },
112
- {
113
- "inputs": [
114
- {
115
- "internalType": "uint72",
116
- "name": "identityId",
117
- "type": "uint72"
118
- }
119
- ],
120
- "name": "getAccumulatedOperatorFee",
121
- "outputs": [
122
- {
123
- "internalType": "uint96",
124
- "name": "",
125
- "type": "uint96"
126
- }
127
- ],
128
- "stateMutability": "view",
129
- "type": "function"
130
- },
131
- {
132
- "inputs": [
133
- {
134
- "internalType": "uint72",
135
- "name": "identityId",
136
- "type": "uint72"
137
- }
138
- ],
139
- "name": "getAccumulatedOperatorFeeWithdrawalAmount",
140
- "outputs": [
141
- {
142
- "internalType": "uint96",
143
- "name": "",
144
- "type": "uint96"
145
- }
146
- ],
147
- "stateMutability": "view",
148
- "type": "function"
149
- },
150
- {
151
- "inputs": [
152
- {
153
- "internalType": "uint72",
154
- "name": "identityId",
155
- "type": "uint72"
156
- }
157
- ],
158
- "name": "getAccumulatedOperatorFeeWithdrawalTimestamp",
159
- "outputs": [
160
- {
161
- "internalType": "uint256",
162
- "name": "",
163
- "type": "uint256"
164
- }
165
- ],
166
- "stateMutability": "view",
167
- "type": "function"
168
- },
169
- {
170
- "inputs": [
171
- {
172
- "internalType": "uint72",
173
- "name": "identityId",
174
- "type": "uint72"
175
- }
176
- ],
177
- "name": "getAsk",
178
- "outputs": [
179
- {
180
- "internalType": "uint96",
181
- "name": "",
182
- "type": "uint96"
183
- }
184
- ],
185
- "stateMutability": "view",
186
- "type": "function"
187
- },
188
- {
189
- "inputs": [
190
- {
191
- "internalType": "uint72",
192
- "name": "identityId",
193
- "type": "uint72"
194
- },
195
- {
196
- "internalType": "uint8",
197
- "name": "hashFunctionId",
198
- "type": "uint8"
199
- }
200
- ],
201
- "name": "getNodeAddress",
202
- "outputs": [
203
- {
204
- "internalType": "bytes32",
205
- "name": "",
206
- "type": "bytes32"
207
- }
208
- ],
209
- "stateMutability": "view",
210
- "type": "function"
211
- },
212
- {
213
- "inputs": [
214
- {
215
- "internalType": "uint72",
216
- "name": "identityId",
217
- "type": "uint72"
218
- }
219
- ],
220
- "name": "getNodeId",
221
- "outputs": [
222
- {
223
- "internalType": "bytes",
224
- "name": "",
225
- "type": "bytes"
226
- }
227
- ],
228
- "stateMutability": "view",
229
- "type": "function"
230
- },
231
- {
232
- "inputs": [
233
- {
234
- "internalType": "uint72",
235
- "name": "identityId",
236
- "type": "uint72"
237
- }
238
- ],
239
- "name": "getProfile",
240
- "outputs": [
241
- {
242
- "internalType": "bytes",
243
- "name": "nodeId",
244
- "type": "bytes"
245
- },
246
- {
247
- "internalType": "uint96[2]",
248
- "name": "profileSettings",
249
- "type": "uint96[2]"
250
- },
251
- {
252
- "internalType": "address",
253
- "name": "sharesContractAddress",
254
- "type": "address"
255
- }
256
- ],
257
- "stateMutability": "view",
258
- "type": "function"
259
- },
260
- {
261
- "inputs": [
262
- {
263
- "internalType": "uint72",
264
- "name": "identityId",
265
- "type": "uint72"
266
- }
267
- ],
268
- "name": "getSharesContractAddress",
269
- "outputs": [
270
- {
271
- "internalType": "address",
272
- "name": "",
273
- "type": "address"
274
- }
275
- ],
276
- "stateMutability": "view",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [],
281
- "name": "hub",
282
- "outputs": [
283
- {
284
- "internalType": "contract Hub",
285
- "name": "",
286
- "type": "address"
287
- }
288
- ],
289
- "stateMutability": "view",
290
- "type": "function"
291
- },
292
- {
293
- "inputs": [],
294
- "name": "initialize",
295
- "outputs": [],
296
- "stateMutability": "nonpayable",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [],
301
- "name": "name",
302
- "outputs": [
303
- {
304
- "internalType": "string",
305
- "name": "",
306
- "type": "string"
307
- }
308
- ],
309
- "stateMutability": "pure",
310
- "type": "function"
311
- },
312
- {
313
- "inputs": [
314
- {
315
- "internalType": "bytes",
316
- "name": "",
317
- "type": "bytes"
318
- }
319
- ],
320
- "name": "nodeIdsList",
321
- "outputs": [
322
- {
323
- "internalType": "bool",
324
- "name": "",
325
- "type": "bool"
326
- }
327
- ],
328
- "stateMutability": "view",
329
- "type": "function"
330
- },
331
- {
332
- "inputs": [
333
- {
334
- "internalType": "uint72",
335
- "name": "identityId",
336
- "type": "uint72"
337
- }
338
- ],
339
- "name": "profileExists",
340
- "outputs": [
341
- {
342
- "internalType": "bool",
343
- "name": "",
344
- "type": "bool"
345
- }
346
- ],
347
- "stateMutability": "view",
348
- "type": "function"
349
- },
350
- {
351
- "inputs": [
352
- {
353
- "internalType": "uint72",
354
- "name": "identityId",
355
- "type": "uint72"
356
- },
357
- {
358
- "internalType": "uint96",
359
- "name": "newOperatorFeeAmount",
360
- "type": "uint96"
361
- }
362
- ],
363
- "name": "setAccumulatedOperatorFee",
364
- "outputs": [],
365
- "stateMutability": "nonpayable",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [
370
- {
371
- "internalType": "uint72",
372
- "name": "identityId",
373
- "type": "uint72"
374
- },
375
- {
376
- "internalType": "uint96",
377
- "name": "accumulatedOperatorFeeWithdrawalAmount",
378
- "type": "uint96"
379
- }
380
- ],
381
- "name": "setAccumulatedOperatorFeeWithdrawalAmount",
382
- "outputs": [],
383
- "stateMutability": "nonpayable",
384
- "type": "function"
385
- },
386
- {
387
- "inputs": [
388
- {
389
- "internalType": "uint72",
390
- "name": "identityId",
391
- "type": "uint72"
392
- },
393
- {
394
- "internalType": "uint256",
395
- "name": "operatorFeeWithdrawalTimestamp",
396
- "type": "uint256"
397
- }
398
- ],
399
- "name": "setAccumulatedOperatorFeeWithdrawalTimestamp",
400
- "outputs": [],
401
- "stateMutability": "nonpayable",
402
- "type": "function"
403
- },
404
- {
405
- "inputs": [
406
- {
407
- "internalType": "uint72",
408
- "name": "identityId",
409
- "type": "uint72"
410
- },
411
- {
412
- "internalType": "uint96",
413
- "name": "ask",
414
- "type": "uint96"
415
- }
416
- ],
417
- "name": "setAsk",
418
- "outputs": [],
419
- "stateMutability": "nonpayable",
420
- "type": "function"
421
- },
422
- {
423
- "inputs": [
424
- {
425
- "internalType": "uint72",
426
- "name": "identityId",
427
- "type": "uint72"
428
- },
429
- {
430
- "internalType": "uint8",
431
- "name": "hashFunctionId",
432
- "type": "uint8"
433
- },
434
- {
435
- "internalType": "bytes32",
436
- "name": "nodeAddress",
437
- "type": "bytes32"
438
- }
439
- ],
440
- "name": "setNodeAddress",
441
- "outputs": [],
442
- "stateMutability": "nonpayable",
443
- "type": "function"
444
- },
445
- {
446
- "inputs": [
447
- {
448
- "internalType": "uint72",
449
- "name": "identityId",
450
- "type": "uint72"
451
- },
452
- {
453
- "internalType": "bytes",
454
- "name": "nodeId",
455
- "type": "bytes"
456
- }
457
- ],
458
- "name": "setNodeId",
459
- "outputs": [],
460
- "stateMutability": "nonpayable",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [
465
- {
466
- "internalType": "uint72",
467
- "name": "identityId",
468
- "type": "uint72"
469
- },
470
- {
471
- "internalType": "address",
472
- "name": "sharesContractAddress",
473
- "type": "address"
474
- }
475
- ],
476
- "name": "setSharesContractAddress",
477
- "outputs": [],
478
- "stateMutability": "nonpayable",
479
- "type": "function"
480
- },
481
- {
482
- "inputs": [
483
- {
484
- "internalType": "string",
485
- "name": "",
486
- "type": "string"
487
- }
488
- ],
489
- "name": "sharesNames",
490
- "outputs": [
491
- {
492
- "internalType": "bool",
493
- "name": "",
494
- "type": "bool"
495
- }
496
- ],
497
- "stateMutability": "view",
498
- "type": "function"
499
- },
500
- {
501
- "inputs": [
502
- {
503
- "internalType": "string",
504
- "name": "",
505
- "type": "string"
506
- }
507
- ],
508
- "name": "sharesSymbols",
509
- "outputs": [
510
- {
511
- "internalType": "bool",
512
- "name": "",
513
- "type": "bool"
514
- }
515
- ],
516
- "stateMutability": "view",
517
- "type": "function"
518
- },
519
- {
520
- "inputs": [],
521
- "name": "tokenContract",
522
- "outputs": [
523
- {
524
- "internalType": "contract IERC20",
525
- "name": "",
526
- "type": "address"
527
- }
528
- ],
529
- "stateMutability": "view",
530
- "type": "function"
531
- },
532
- {
533
- "inputs": [
534
- {
535
- "internalType": "address",
536
- "name": "receiver",
537
- "type": "address"
538
- },
539
- {
540
- "internalType": "uint96",
541
- "name": "amount",
542
- "type": "uint96"
543
- }
544
- ],
545
- "name": "transferAccumulatedOperatorFee",
546
- "outputs": [],
547
- "stateMutability": "nonpayable",
548
- "type": "function"
549
- },
550
- {
551
- "inputs": [
552
- {
553
- "internalType": "address payable",
554
- "name": "custodian",
555
- "type": "address"
556
- }
557
- ],
558
- "name": "transferTokens",
559
- "outputs": [],
560
- "stateMutability": "nonpayable",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [],
565
- "name": "version",
566
- "outputs": [
567
- {
568
- "internalType": "string",
569
- "name": "",
570
- "type": "string"
571
- }
572
- ],
573
- "stateMutability": "pure",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [],
578
- "name": "withdrawMisplacedOTP",
579
- "outputs": [],
580
- "stateMutability": "nonpayable",
581
- "type": "function"
582
- },
583
- {
584
- "inputs": [
585
- {
586
- "internalType": "address",
587
- "name": "tokenContractAddress",
588
- "type": "address"
589
- }
590
- ],
591
- "name": "withdrawMisplacedTokens",
592
- "outputs": [],
593
- "stateMutability": "nonpayable",
594
- "type": "function"
595
- }
596
- ]