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