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