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,456 @@
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": "uint72",
19
+ "name": "identityId",
20
+ "type": "uint72"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "bytes",
25
+ "name": "nodeId",
26
+ "type": "bytes"
27
+ },
28
+ {
29
+ "indexed": false,
30
+ "internalType": "uint96",
31
+ "name": "oldAccumulatedOperatorFee",
32
+ "type": "uint96"
33
+ },
34
+ {
35
+ "indexed": false,
36
+ "internalType": "uint96",
37
+ "name": "newAccumulatedOperatorFee",
38
+ "type": "uint96"
39
+ }
40
+ ],
41
+ "name": "AccumulatedOperatorFeeIncreased",
42
+ "type": "event"
43
+ },
44
+ {
45
+ "anonymous": false,
46
+ "inputs": [
47
+ {
48
+ "indexed": true,
49
+ "internalType": "uint72",
50
+ "name": "identityId",
51
+ "type": "uint72"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "bytes",
56
+ "name": "nodeId",
57
+ "type": "bytes"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint8",
62
+ "name": "operatorFee",
63
+ "type": "uint8"
64
+ }
65
+ ],
66
+ "name": "OperatorFeeUpdated",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": true,
74
+ "internalType": "uint72",
75
+ "name": "identityId",
76
+ "type": "uint72"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "bytes",
81
+ "name": "nodeId",
82
+ "type": "bytes"
83
+ },
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "staker",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint96",
93
+ "name": "oldStake",
94
+ "type": "uint96"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint96",
99
+ "name": "newStake",
100
+ "type": "uint96"
101
+ }
102
+ ],
103
+ "name": "StakeIncreased",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "anonymous": false,
108
+ "inputs": [
109
+ {
110
+ "indexed": true,
111
+ "internalType": "uint72",
112
+ "name": "identityId",
113
+ "type": "uint72"
114
+ },
115
+ {
116
+ "indexed": false,
117
+ "internalType": "bytes",
118
+ "name": "nodeId",
119
+ "type": "bytes"
120
+ },
121
+ {
122
+ "indexed": true,
123
+ "internalType": "address",
124
+ "name": "staker",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "indexed": false,
129
+ "internalType": "uint96",
130
+ "name": "oldStake",
131
+ "type": "uint96"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "internalType": "uint96",
136
+ "name": "newStake",
137
+ "type": "uint96"
138
+ },
139
+ {
140
+ "indexed": false,
141
+ "internalType": "uint256",
142
+ "name": "withdrawalPeriodEnd",
143
+ "type": "uint256"
144
+ }
145
+ ],
146
+ "name": "StakeWithdrawalStarted",
147
+ "type": "event"
148
+ },
149
+ {
150
+ "anonymous": false,
151
+ "inputs": [
152
+ {
153
+ "indexed": true,
154
+ "internalType": "uint72",
155
+ "name": "identityId",
156
+ "type": "uint72"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "bytes",
161
+ "name": "nodeId",
162
+ "type": "bytes"
163
+ },
164
+ {
165
+ "indexed": true,
166
+ "internalType": "address",
167
+ "name": "staker",
168
+ "type": "address"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint96",
173
+ "name": "withdrawnStakeAmount",
174
+ "type": "uint96"
175
+ }
176
+ ],
177
+ "name": "StakeWithdrawn",
178
+ "type": "event"
179
+ },
180
+ {
181
+ "inputs": [
182
+ {
183
+ "internalType": "bytes32",
184
+ "name": "agreementId",
185
+ "type": "bytes32"
186
+ },
187
+ {
188
+ "internalType": "uint72",
189
+ "name": "identityId",
190
+ "type": "uint72"
191
+ },
192
+ {
193
+ "internalType": "uint96",
194
+ "name": "rewardAmount",
195
+ "type": "uint96"
196
+ }
197
+ ],
198
+ "name": "addReward",
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "sender",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "uint72",
212
+ "name": "identityId",
213
+ "type": "uint72"
214
+ },
215
+ {
216
+ "internalType": "uint96",
217
+ "name": "stakeAmount",
218
+ "type": "uint96"
219
+ }
220
+ ],
221
+ "name": "addStake",
222
+ "outputs": [],
223
+ "stateMutability": "nonpayable",
224
+ "type": "function"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "uint72",
230
+ "name": "identityId",
231
+ "type": "uint72"
232
+ },
233
+ {
234
+ "internalType": "uint96",
235
+ "name": "stakeAmount",
236
+ "type": "uint96"
237
+ }
238
+ ],
239
+ "name": "addStake",
240
+ "outputs": [],
241
+ "stateMutability": "nonpayable",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "hub",
247
+ "outputs": [
248
+ {
249
+ "internalType": "contract Hub",
250
+ "name": "",
251
+ "type": "address"
252
+ }
253
+ ],
254
+ "stateMutability": "view",
255
+ "type": "function"
256
+ },
257
+ {
258
+ "inputs": [],
259
+ "name": "identityStorage",
260
+ "outputs": [
261
+ {
262
+ "internalType": "contract IdentityStorage",
263
+ "name": "",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "stateMutability": "view",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [],
272
+ "name": "initialize",
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [],
279
+ "name": "name",
280
+ "outputs": [
281
+ {
282
+ "internalType": "string",
283
+ "name": "",
284
+ "type": "string"
285
+ }
286
+ ],
287
+ "stateMutability": "pure",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "parametersStorage",
293
+ "outputs": [
294
+ {
295
+ "internalType": "contract ParametersStorage",
296
+ "name": "",
297
+ "type": "address"
298
+ }
299
+ ],
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "profileStorage",
306
+ "outputs": [
307
+ {
308
+ "internalType": "contract ProfileStorage",
309
+ "name": "",
310
+ "type": "address"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "serviceAgreementStorageProxy",
319
+ "outputs": [
320
+ {
321
+ "internalType": "contract ServiceAgreementStorageProxy",
322
+ "name": "",
323
+ "type": "address"
324
+ }
325
+ ],
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "uint72",
333
+ "name": "identityId",
334
+ "type": "uint72"
335
+ },
336
+ {
337
+ "internalType": "uint8",
338
+ "name": "operatorFee",
339
+ "type": "uint8"
340
+ }
341
+ ],
342
+ "name": "setOperatorFee",
343
+ "outputs": [],
344
+ "stateMutability": "nonpayable",
345
+ "type": "function"
346
+ },
347
+ {
348
+ "inputs": [],
349
+ "name": "shardingTableContract",
350
+ "outputs": [
351
+ {
352
+ "internalType": "contract ShardingTable",
353
+ "name": "",
354
+ "type": "address"
355
+ }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "shardingTableStorage",
363
+ "outputs": [
364
+ {
365
+ "internalType": "contract ShardingTableStorage",
366
+ "name": "",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ {
376
+ "internalType": "uint72",
377
+ "name": "identityId",
378
+ "type": "uint72"
379
+ }
380
+ ],
381
+ "name": "slash",
382
+ "outputs": [],
383
+ "stateMutability": "nonpayable",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [],
388
+ "name": "stakingStorage",
389
+ "outputs": [
390
+ {
391
+ "internalType": "contract StakingStorage",
392
+ "name": "",
393
+ "type": "address"
394
+ }
395
+ ],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
401
+ {
402
+ "internalType": "uint72",
403
+ "name": "identityId",
404
+ "type": "uint72"
405
+ },
406
+ {
407
+ "internalType": "uint96",
408
+ "name": "sharesToBurn",
409
+ "type": "uint96"
410
+ }
411
+ ],
412
+ "name": "startStakeWithdrawal",
413
+ "outputs": [],
414
+ "stateMutability": "nonpayable",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [],
419
+ "name": "tokenContract",
420
+ "outputs": [
421
+ {
422
+ "internalType": "contract IERC20",
423
+ "name": "",
424
+ "type": "address"
425
+ }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [],
432
+ "name": "version",
433
+ "outputs": [
434
+ {
435
+ "internalType": "string",
436
+ "name": "",
437
+ "type": "string"
438
+ }
439
+ ],
440
+ "stateMutability": "pure",
441
+ "type": "function"
442
+ },
443
+ {
444
+ "inputs": [
445
+ {
446
+ "internalType": "uint72",
447
+ "name": "identityId",
448
+ "type": "uint72"
449
+ }
450
+ ],
451
+ "name": "withdrawStake",
452
+ "outputs": [],
453
+ "stateMutability": "nonpayable",
454
+ "type": "function"
455
+ }
456
+ ]