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,157 +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": "bytes32",
19
- "name": "assertionId",
20
- "type": "bytes32"
21
- },
22
- {
23
- "indexed": false,
24
- "internalType": "uint128",
25
- "name": "size",
26
- "type": "uint128"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint32",
31
- "name": "triplesNumber",
32
- "type": "uint32"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "uint96",
37
- "name": "chunksNumber",
38
- "type": "uint96"
39
- }
40
- ],
41
- "name": "AssertionCreated",
42
- "type": "event"
43
- },
44
- {
45
- "inputs": [],
46
- "name": "assertionStorage",
47
- "outputs": [
48
- {
49
- "internalType": "contract AssertionStorage",
50
- "name": "",
51
- "type": "address"
52
- }
53
- ],
54
- "stateMutability": "view",
55
- "type": "function"
56
- },
57
- {
58
- "inputs": [
59
- {
60
- "internalType": "bytes32",
61
- "name": "assertionId",
62
- "type": "bytes32"
63
- },
64
- {
65
- "internalType": "uint128",
66
- "name": "size",
67
- "type": "uint128"
68
- },
69
- {
70
- "internalType": "uint32",
71
- "name": "triplesNumber",
72
- "type": "uint32"
73
- },
74
- {
75
- "internalType": "uint96",
76
- "name": "chunksNumber",
77
- "type": "uint96"
78
- }
79
- ],
80
- "name": "createAssertion",
81
- "outputs": [],
82
- "stateMutability": "nonpayable",
83
- "type": "function"
84
- },
85
- {
86
- "inputs": [],
87
- "name": "hub",
88
- "outputs": [
89
- {
90
- "internalType": "contract Hub",
91
- "name": "",
92
- "type": "address"
93
- }
94
- ],
95
- "stateMutability": "view",
96
- "type": "function"
97
- },
98
- {
99
- "inputs": [],
100
- "name": "initialize",
101
- "outputs": [],
102
- "stateMutability": "nonpayable",
103
- "type": "function"
104
- },
105
- {
106
- "inputs": [],
107
- "name": "name",
108
- "outputs": [
109
- {
110
- "internalType": "string",
111
- "name": "",
112
- "type": "string"
113
- }
114
- ],
115
- "stateMutability": "pure",
116
- "type": "function"
117
- },
118
- {
119
- "inputs": [
120
- {
121
- "internalType": "bool",
122
- "name": "_status",
123
- "type": "bool"
124
- }
125
- ],
126
- "name": "setStatus",
127
- "outputs": [],
128
- "stateMutability": "nonpayable",
129
- "type": "function"
130
- },
131
- {
132
- "inputs": [],
133
- "name": "status",
134
- "outputs": [
135
- {
136
- "internalType": "bool",
137
- "name": "",
138
- "type": "bool"
139
- }
140
- ],
141
- "stateMutability": "view",
142
- "type": "function"
143
- },
144
- {
145
- "inputs": [],
146
- "name": "version",
147
- "outputs": [
148
- {
149
- "internalType": "string",
150
- "name": "",
151
- "type": "string"
152
- }
153
- ],
154
- "stateMutability": "pure",
155
- "type": "function"
156
- }
157
- ]
@@ -1,549 +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": "agreementId",
18
- "type": "bytes32"
19
- },
20
- {
21
- "internalType": "uint16",
22
- "name": "epoch",
23
- "type": "uint16"
24
- },
25
- {
26
- "internalType": "uint256",
27
- "name": "commitWindowOpen",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "commitWindowClose",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "timeNow",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "CommitWindowClosed",
42
- "type": "error"
43
- },
44
- {
45
- "inputs": [
46
- {
47
- "internalType": "bytes32",
48
- "name": "agreementId",
49
- "type": "bytes32"
50
- },
51
- {
52
- "internalType": "uint16",
53
- "name": "epoch",
54
- "type": "uint16"
55
- },
56
- {
57
- "internalType": "uint72",
58
- "name": "identityId",
59
- "type": "uint72"
60
- },
61
- {
62
- "internalType": "bytes",
63
- "name": "nodeId",
64
- "type": "bytes"
65
- }
66
- ],
67
- "name": "NodeAlreadySubmittedCommit",
68
- "type": "error"
69
- },
70
- {
71
- "inputs": [
72
- {
73
- "internalType": "bytes32",
74
- "name": "agreementId",
75
- "type": "bytes32"
76
- },
77
- {
78
- "internalType": "uint16",
79
- "name": "epoch",
80
- "type": "uint16"
81
- },
82
- {
83
- "internalType": "uint72",
84
- "name": "identityId",
85
- "type": "uint72"
86
- },
87
- {
88
- "internalType": "bytes",
89
- "name": "nodeId",
90
- "type": "bytes"
91
- },
92
- {
93
- "internalType": "uint8",
94
- "name": "rank",
95
- "type": "uint8"
96
- }
97
- ],
98
- "name": "NodeNotAwarded",
99
- "type": "error"
100
- },
101
- {
102
- "inputs": [
103
- {
104
- "internalType": "uint72",
105
- "name": "identityId",
106
- "type": "uint72"
107
- },
108
- {
109
- "internalType": "bytes",
110
- "name": "nodeId",
111
- "type": "bytes"
112
- },
113
- {
114
- "internalType": "uint96",
115
- "name": "ask",
116
- "type": "uint96"
117
- },
118
- {
119
- "internalType": "uint96",
120
- "name": "stake",
121
- "type": "uint96"
122
- }
123
- ],
124
- "name": "NodeNotInShardingTable",
125
- "type": "error"
126
- },
127
- {
128
- "inputs": [
129
- {
130
- "internalType": "bytes32",
131
- "name": "agreementId",
132
- "type": "bytes32"
133
- }
134
- ],
135
- "name": "ServiceAgreementDoesntExist",
136
- "type": "error"
137
- },
138
- {
139
- "inputs": [
140
- {
141
- "internalType": "bytes32",
142
- "name": "agreementId",
143
- "type": "bytes32"
144
- },
145
- {
146
- "internalType": "uint256",
147
- "name": "startTime",
148
- "type": "uint256"
149
- },
150
- {
151
- "internalType": "uint16",
152
- "name": "epochsNumber",
153
- "type": "uint16"
154
- },
155
- {
156
- "internalType": "uint128",
157
- "name": "epochLength",
158
- "type": "uint128"
159
- }
160
- ],
161
- "name": "ServiceAgreementHasBeenExpired",
162
- "type": "error"
163
- },
164
- {
165
- "anonymous": false,
166
- "inputs": [
167
- {
168
- "indexed": true,
169
- "internalType": "address",
170
- "name": "assetContract",
171
- "type": "address"
172
- },
173
- {
174
- "indexed": true,
175
- "internalType": "uint256",
176
- "name": "tokenId",
177
- "type": "uint256"
178
- },
179
- {
180
- "indexed": false,
181
- "internalType": "bytes",
182
- "name": "keyword",
183
- "type": "bytes"
184
- },
185
- {
186
- "indexed": false,
187
- "internalType": "uint8",
188
- "name": "hashFunctionId",
189
- "type": "uint8"
190
- },
191
- {
192
- "indexed": false,
193
- "internalType": "uint16",
194
- "name": "epoch",
195
- "type": "uint16"
196
- },
197
- {
198
- "indexed": true,
199
- "internalType": "uint72",
200
- "name": "identityId",
201
- "type": "uint72"
202
- },
203
- {
204
- "indexed": false,
205
- "internalType": "uint40",
206
- "name": "score",
207
- "type": "uint40"
208
- }
209
- ],
210
- "name": "CommitSubmitted",
211
- "type": "event"
212
- },
213
- {
214
- "inputs": [
215
- {
216
- "internalType": "bytes32",
217
- "name": "agreementId",
218
- "type": "bytes32"
219
- },
220
- {
221
- "internalType": "uint16",
222
- "name": "epoch",
223
- "type": "uint16"
224
- }
225
- ],
226
- "name": "getTopCommitSubmissions",
227
- "outputs": [
228
- {
229
- "components": [
230
- {
231
- "internalType": "uint72",
232
- "name": "identityId",
233
- "type": "uint72"
234
- },
235
- {
236
- "internalType": "uint72",
237
- "name": "prevIdentityId",
238
- "type": "uint72"
239
- },
240
- {
241
- "internalType": "uint72",
242
- "name": "nextIdentityId",
243
- "type": "uint72"
244
- },
245
- {
246
- "internalType": "uint40",
247
- "name": "score",
248
- "type": "uint40"
249
- }
250
- ],
251
- "internalType": "struct ServiceAgreementStructsV1.CommitSubmission[]",
252
- "name": "",
253
- "type": "tuple[]"
254
- }
255
- ],
256
- "stateMutability": "view",
257
- "type": "function"
258
- },
259
- {
260
- "inputs": [],
261
- "name": "hashingProxy",
262
- "outputs": [
263
- {
264
- "internalType": "contract HashingProxy",
265
- "name": "",
266
- "type": "address"
267
- }
268
- ],
269
- "stateMutability": "view",
270
- "type": "function"
271
- },
272
- {
273
- "inputs": [],
274
- "name": "hub",
275
- "outputs": [
276
- {
277
- "internalType": "contract Hub",
278
- "name": "",
279
- "type": "address"
280
- }
281
- ],
282
- "stateMutability": "view",
283
- "type": "function"
284
- },
285
- {
286
- "inputs": [],
287
- "name": "identityStorage",
288
- "outputs": [
289
- {
290
- "internalType": "contract IdentityStorage",
291
- "name": "",
292
- "type": "address"
293
- }
294
- ],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [],
300
- "name": "initialize",
301
- "outputs": [],
302
- "stateMutability": "nonpayable",
303
- "type": "function"
304
- },
305
- {
306
- "inputs": [
307
- {
308
- "internalType": "bytes32",
309
- "name": "agreementId",
310
- "type": "bytes32"
311
- },
312
- {
313
- "internalType": "uint16",
314
- "name": "epoch",
315
- "type": "uint16"
316
- }
317
- ],
318
- "name": "isCommitWindowOpen",
319
- "outputs": [
320
- {
321
- "internalType": "bool",
322
- "name": "",
323
- "type": "bool"
324
- }
325
- ],
326
- "stateMutability": "view",
327
- "type": "function"
328
- },
329
- {
330
- "inputs": [],
331
- "name": "name",
332
- "outputs": [
333
- {
334
- "internalType": "string",
335
- "name": "",
336
- "type": "string"
337
- }
338
- ],
339
- "stateMutability": "pure",
340
- "type": "function"
341
- },
342
- {
343
- "inputs": [],
344
- "name": "parametersStorage",
345
- "outputs": [
346
- {
347
- "internalType": "contract ParametersStorage",
348
- "name": "",
349
- "type": "address"
350
- }
351
- ],
352
- "stateMutability": "view",
353
- "type": "function"
354
- },
355
- {
356
- "inputs": [],
357
- "name": "profileStorage",
358
- "outputs": [
359
- {
360
- "internalType": "contract ProfileStorage",
361
- "name": "",
362
- "type": "address"
363
- }
364
- ],
365
- "stateMutability": "view",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [
370
- {
371
- "internalType": "uint256",
372
- "name": "",
373
- "type": "uint256"
374
- }
375
- ],
376
- "name": "reqs",
377
- "outputs": [
378
- {
379
- "internalType": "bool",
380
- "name": "",
381
- "type": "bool"
382
- }
383
- ],
384
- "stateMutability": "view",
385
- "type": "function"
386
- },
387
- {
388
- "inputs": [],
389
- "name": "scoringProxy",
390
- "outputs": [
391
- {
392
- "internalType": "contract ScoringProxy",
393
- "name": "",
394
- "type": "address"
395
- }
396
- ],
397
- "stateMutability": "view",
398
- "type": "function"
399
- },
400
- {
401
- "inputs": [],
402
- "name": "serviceAgreementStorageProxy",
403
- "outputs": [
404
- {
405
- "internalType": "contract ServiceAgreementStorageProxy",
406
- "name": "",
407
- "type": "address"
408
- }
409
- ],
410
- "stateMutability": "view",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [
415
- {
416
- "internalType": "uint256",
417
- "name": "index",
418
- "type": "uint256"
419
- },
420
- {
421
- "internalType": "bool",
422
- "name": "req",
423
- "type": "bool"
424
- }
425
- ],
426
- "name": "setReq",
427
- "outputs": [],
428
- "stateMutability": "nonpayable",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [
433
- {
434
- "internalType": "bool",
435
- "name": "_status",
436
- "type": "bool"
437
- }
438
- ],
439
- "name": "setStatus",
440
- "outputs": [],
441
- "stateMutability": "nonpayable",
442
- "type": "function"
443
- },
444
- {
445
- "inputs": [],
446
- "name": "shardingTableStorage",
447
- "outputs": [
448
- {
449
- "internalType": "contract ShardingTableStorage",
450
- "name": "",
451
- "type": "address"
452
- }
453
- ],
454
- "stateMutability": "view",
455
- "type": "function"
456
- },
457
- {
458
- "inputs": [],
459
- "name": "stakingContract",
460
- "outputs": [
461
- {
462
- "internalType": "contract Staking",
463
- "name": "",
464
- "type": "address"
465
- }
466
- ],
467
- "stateMutability": "view",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [],
472
- "name": "stakingStorage",
473
- "outputs": [
474
- {
475
- "internalType": "contract StakingStorage",
476
- "name": "",
477
- "type": "address"
478
- }
479
- ],
480
- "stateMutability": "view",
481
- "type": "function"
482
- },
483
- {
484
- "inputs": [],
485
- "name": "status",
486
- "outputs": [
487
- {
488
- "internalType": "bool",
489
- "name": "",
490
- "type": "bool"
491
- }
492
- ],
493
- "stateMutability": "view",
494
- "type": "function"
495
- },
496
- {
497
- "inputs": [
498
- {
499
- "components": [
500
- {
501
- "internalType": "address",
502
- "name": "assetContract",
503
- "type": "address"
504
- },
505
- {
506
- "internalType": "uint256",
507
- "name": "tokenId",
508
- "type": "uint256"
509
- },
510
- {
511
- "internalType": "bytes",
512
- "name": "keyword",
513
- "type": "bytes"
514
- },
515
- {
516
- "internalType": "uint8",
517
- "name": "hashFunctionId",
518
- "type": "uint8"
519
- },
520
- {
521
- "internalType": "uint16",
522
- "name": "epoch",
523
- "type": "uint16"
524
- }
525
- ],
526
- "internalType": "struct ServiceAgreementStructsV1.CommitInputArgs",
527
- "name": "args",
528
- "type": "tuple"
529
- }
530
- ],
531
- "name": "submitCommit",
532
- "outputs": [],
533
- "stateMutability": "nonpayable",
534
- "type": "function"
535
- },
536
- {
537
- "inputs": [],
538
- "name": "version",
539
- "outputs": [
540
- {
541
- "internalType": "string",
542
- "name": "",
543
- "type": "string"
544
- }
545
- ],
546
- "stateMutability": "pure",
547
- "type": "function"
548
- }
549
- ]