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,407 @@
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": "address",
85
+ "name": "staker",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "internalType": "uint96",
90
+ "name": "amount",
91
+ "type": "uint96"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "timestamp",
96
+ "type": "uint256"
97
+ }
98
+ ],
99
+ "name": "createWithdrawalRequest",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "uint72",
108
+ "name": "identityId",
109
+ "type": "uint72"
110
+ },
111
+ {
112
+ "internalType": "address",
113
+ "name": "staker",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "deleteWithdrawalRequest",
118
+ "outputs": [],
119
+ "stateMutability": "nonpayable",
120
+ "type": "function"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "uint72",
126
+ "name": "identityId",
127
+ "type": "uint72"
128
+ },
129
+ {
130
+ "internalType": "address",
131
+ "name": "staker",
132
+ "type": "address"
133
+ }
134
+ ],
135
+ "name": "getWithdrawalRequestAmount",
136
+ "outputs": [
137
+ {
138
+ "internalType": "uint96",
139
+ "name": "",
140
+ "type": "uint96"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "uint72",
150
+ "name": "identityId",
151
+ "type": "uint72"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "staker",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "getWithdrawalRequestTimestamp",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "hub",
173
+ "outputs": [
174
+ {
175
+ "internalType": "contract Hub",
176
+ "name": "",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "initialize",
186
+ "outputs": [],
187
+ "stateMutability": "nonpayable",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "name",
193
+ "outputs": [
194
+ {
195
+ "internalType": "string",
196
+ "name": "",
197
+ "type": "string"
198
+ }
199
+ ],
200
+ "stateMutability": "pure",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "uint72",
207
+ "name": "",
208
+ "type": "uint72"
209
+ }
210
+ ],
211
+ "name": "operatorFees",
212
+ "outputs": [
213
+ {
214
+ "internalType": "uint96",
215
+ "name": "",
216
+ "type": "uint96"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
222
+ {
223
+ "inputs": [
224
+ {
225
+ "internalType": "uint72",
226
+ "name": "identityId",
227
+ "type": "uint72"
228
+ },
229
+ {
230
+ "internalType": "uint96",
231
+ "name": "operatorFee",
232
+ "type": "uint96"
233
+ }
234
+ ],
235
+ "name": "setOperatorFee",
236
+ "outputs": [],
237
+ "stateMutability": "nonpayable",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "uint72",
244
+ "name": "identityId",
245
+ "type": "uint72"
246
+ },
247
+ {
248
+ "internalType": "uint96",
249
+ "name": "newTotalStake",
250
+ "type": "uint96"
251
+ }
252
+ ],
253
+ "name": "setTotalStake",
254
+ "outputs": [],
255
+ "stateMutability": "nonpayable",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "inputs": [],
260
+ "name": "tokenContract",
261
+ "outputs": [
262
+ {
263
+ "internalType": "contract IERC20",
264
+ "name": "",
265
+ "type": "address"
266
+ }
267
+ ],
268
+ "stateMutability": "view",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [
273
+ {
274
+ "internalType": "uint72",
275
+ "name": "",
276
+ "type": "uint72"
277
+ }
278
+ ],
279
+ "name": "totalStakes",
280
+ "outputs": [
281
+ {
282
+ "internalType": "uint96",
283
+ "name": "",
284
+ "type": "uint96"
285
+ }
286
+ ],
287
+ "stateMutability": "view",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ {
293
+ "internalType": "address",
294
+ "name": "receiver",
295
+ "type": "address"
296
+ },
297
+ {
298
+ "internalType": "uint96",
299
+ "name": "stakeAmount",
300
+ "type": "uint96"
301
+ }
302
+ ],
303
+ "name": "transferStake",
304
+ "outputs": [],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "internalType": "address payable",
312
+ "name": "custodian",
313
+ "type": "address"
314
+ }
315
+ ],
316
+ "name": "transferTokens",
317
+ "outputs": [],
318
+ "stateMutability": "nonpayable",
319
+ "type": "function"
320
+ },
321
+ {
322
+ "inputs": [],
323
+ "name": "version",
324
+ "outputs": [
325
+ {
326
+ "internalType": "string",
327
+ "name": "",
328
+ "type": "string"
329
+ }
330
+ ],
331
+ "stateMutability": "pure",
332
+ "type": "function"
333
+ },
334
+ {
335
+ "inputs": [],
336
+ "name": "withdrawMisplacedOTP",
337
+ "outputs": [],
338
+ "stateMutability": "nonpayable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "tokenContractAddress",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "name": "withdrawMisplacedTokens",
350
+ "outputs": [],
351
+ "stateMutability": "nonpayable",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [
356
+ {
357
+ "internalType": "uint72",
358
+ "name": "identityId",
359
+ "type": "uint72"
360
+ },
361
+ {
362
+ "internalType": "address",
363
+ "name": "staker",
364
+ "type": "address"
365
+ }
366
+ ],
367
+ "name": "withdrawalRequestExists",
368
+ "outputs": [
369
+ {
370
+ "internalType": "bool",
371
+ "name": "",
372
+ "type": "bool"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "uint72",
382
+ "name": "",
383
+ "type": "uint72"
384
+ },
385
+ {
386
+ "internalType": "address",
387
+ "name": "",
388
+ "type": "address"
389
+ }
390
+ ],
391
+ "name": "withdrawalRequests",
392
+ "outputs": [
393
+ {
394
+ "internalType": "uint96",
395
+ "name": "amount",
396
+ "type": "uint96"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "timestamp",
401
+ "type": "uint256"
402
+ }
403
+ ],
404
+ "stateMutability": "view",
405
+ "type": "function"
406
+ }
407
+ ]