dkg 0.1.0b1__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 (62) hide show
  1. dkg/__init__.py +3 -0
  2. dkg/asset.py +781 -0
  3. dkg/constants.py +39 -0
  4. dkg/data/interfaces/Assertion.json +131 -0
  5. dkg/data/interfaces/AssertionStorage.json +229 -0
  6. dkg/data/interfaces/CommitManagerV1.json +534 -0
  7. dkg/data/interfaces/CommitManagerV1U1.json +720 -0
  8. dkg/data/interfaces/ContentAsset.json +671 -0
  9. dkg/data/interfaces/ContentAssetStorage.json +706 -0
  10. dkg/data/interfaces/HashingProxy.json +227 -0
  11. dkg/data/interfaces/Hub.json +356 -0
  12. dkg/data/interfaces/Identity.json +193 -0
  13. dkg/data/interfaces/IdentityStorage.json +342 -0
  14. dkg/data/interfaces/ParametersStorage.json +468 -0
  15. dkg/data/interfaces/Profile.json +292 -0
  16. dkg/data/interfaces/ProfileStorage.json +596 -0
  17. dkg/data/interfaces/ProofManagerV1.json +525 -0
  18. dkg/data/interfaces/ProofManagerV1U1.json +546 -0
  19. dkg/data/interfaces/ScoringProxy.json +242 -0
  20. dkg/data/interfaces/ServiceAgreementStorageProxy.json +1299 -0
  21. dkg/data/interfaces/ServiceAgreementStorageV1.json +901 -0
  22. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +1097 -0
  23. dkg/data/interfaces/ServiceAgreementV1.json +741 -0
  24. dkg/data/interfaces/ShardingTable.json +268 -0
  25. dkg/data/interfaces/ShardingTableStorage.json +317 -0
  26. dkg/data/interfaces/Staking.json +456 -0
  27. dkg/data/interfaces/StakingStorage.json +407 -0
  28. dkg/data/interfaces/Token.json +544 -0
  29. dkg/data/interfaces/UnfinalizedStateStorage.json +171 -0
  30. dkg/data/interfaces/WhitelistStorage.json +124 -0
  31. dkg/dataclasses.py +45 -0
  32. dkg/exceptions.py +161 -0
  33. dkg/graph.py +63 -0
  34. dkg/main.py +74 -0
  35. dkg/manager.py +64 -0
  36. dkg/method.py +131 -0
  37. dkg/module.py +63 -0
  38. dkg/node.py +54 -0
  39. dkg/providers/__init__.py +2 -0
  40. dkg/providers/blockchain.py +181 -0
  41. dkg/providers/node_http.py +62 -0
  42. dkg/types/__init__.py +8 -0
  43. dkg/types/blockchain.py +58 -0
  44. dkg/types/dkg_node.py +20 -0
  45. dkg/types/encoding.py +22 -0
  46. dkg/types/evm.py +25 -0
  47. dkg/types/generics.py +21 -0
  48. dkg/types/network.py +20 -0
  49. dkg/types/rdf.py +21 -0
  50. dkg/utils/__init__.py +0 -0
  51. dkg/utils/blockchain_request.py +159 -0
  52. dkg/utils/decorators.py +46 -0
  53. dkg/utils/merkle.py +173 -0
  54. dkg/utils/metadata.py +50 -0
  55. dkg/utils/node_request.py +197 -0
  56. dkg/utils/rdf.py +51 -0
  57. dkg/utils/string_transformations.py +22 -0
  58. dkg/utils/ual.py +41 -0
  59. dkg-0.1.0b1.dist-info/LICENSE +202 -0
  60. dkg-0.1.0b1.dist-info/METADATA +453 -0
  61. dkg-0.1.0b1.dist-info/RECORD +62 -0
  62. dkg-0.1.0b1.dist-info/WHEEL +4 -0
@@ -0,0 +1,596 @@
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": "",
244
+ "type": "bytes"
245
+ },
246
+ {
247
+ "internalType": "uint96[2]",
248
+ "name": "",
249
+ "type": "uint96[2]"
250
+ },
251
+ {
252
+ "internalType": "address",
253
+ "name": "",
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
+ ]