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,292 @@
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": "ask",
32
+ "type": "uint96"
33
+ }
34
+ ],
35
+ "name": "AskUpdated",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "uint72",
44
+ "name": "identityId",
45
+ "type": "uint72"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "bytes",
50
+ "name": "nodeId",
51
+ "type": "bytes"
52
+ }
53
+ ],
54
+ "name": "ProfileCreated",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": true,
62
+ "internalType": "uint72",
63
+ "name": "identityId",
64
+ "type": "uint72"
65
+ }
66
+ ],
67
+ "name": "ProfileDeleted",
68
+ "type": "event"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "adminWallet",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "internalType": "bytes",
79
+ "name": "nodeId",
80
+ "type": "bytes"
81
+ },
82
+ {
83
+ "internalType": "string",
84
+ "name": "sharesTokenName",
85
+ "type": "string"
86
+ },
87
+ {
88
+ "internalType": "string",
89
+ "name": "sharesTokenSymbol",
90
+ "type": "string"
91
+ }
92
+ ],
93
+ "name": "createProfile",
94
+ "outputs": [],
95
+ "stateMutability": "nonpayable",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "hashingProxy",
101
+ "outputs": [
102
+ {
103
+ "internalType": "contract HashingProxy",
104
+ "name": "",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "stateMutability": "view",
109
+ "type": "function"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "hub",
114
+ "outputs": [
115
+ {
116
+ "internalType": "contract Hub",
117
+ "name": "",
118
+ "type": "address"
119
+ }
120
+ ],
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "identityContract",
127
+ "outputs": [
128
+ {
129
+ "internalType": "contract Identity",
130
+ "name": "",
131
+ "type": "address"
132
+ }
133
+ ],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "identityStorage",
140
+ "outputs": [
141
+ {
142
+ "internalType": "contract IdentityStorage",
143
+ "name": "",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "stateMutability": "view",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "initialize",
153
+ "outputs": [],
154
+ "stateMutability": "nonpayable",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "name",
160
+ "outputs": [
161
+ {
162
+ "internalType": "string",
163
+ "name": "",
164
+ "type": "string"
165
+ }
166
+ ],
167
+ "stateMutability": "pure",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "parametersStorage",
173
+ "outputs": [
174
+ {
175
+ "internalType": "contract ParametersStorage",
176
+ "name": "",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "profileStorage",
186
+ "outputs": [
187
+ {
188
+ "internalType": "contract ProfileStorage",
189
+ "name": "",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [
198
+ {
199
+ "internalType": "uint72",
200
+ "name": "identityId",
201
+ "type": "uint72"
202
+ },
203
+ {
204
+ "internalType": "uint96",
205
+ "name": "ask",
206
+ "type": "uint96"
207
+ }
208
+ ],
209
+ "name": "setAsk",
210
+ "outputs": [],
211
+ "stateMutability": "nonpayable",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "uint72",
218
+ "name": "identityId",
219
+ "type": "uint72"
220
+ }
221
+ ],
222
+ "name": "stakeAccumulatedOperatorFee",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [],
229
+ "name": "stakingContract",
230
+ "outputs": [
231
+ {
232
+ "internalType": "contract Staking",
233
+ "name": "",
234
+ "type": "address"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "uint72",
244
+ "name": "identityId",
245
+ "type": "uint72"
246
+ }
247
+ ],
248
+ "name": "startAccumulatedOperatorFeeWithdrawal",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "version",
256
+ "outputs": [
257
+ {
258
+ "internalType": "string",
259
+ "name": "",
260
+ "type": "string"
261
+ }
262
+ ],
263
+ "stateMutability": "pure",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "whitelistStorage",
269
+ "outputs": [
270
+ {
271
+ "internalType": "contract WhitelistStorage",
272
+ "name": "",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "stateMutability": "view",
277
+ "type": "function"
278
+ },
279
+ {
280
+ "inputs": [
281
+ {
282
+ "internalType": "uint72",
283
+ "name": "identityId",
284
+ "type": "uint72"
285
+ }
286
+ ],
287
+ "name": "withdrawAccumulatedOperatorFee",
288
+ "outputs": [],
289
+ "stateMutability": "nonpayable",
290
+ "type": "function"
291
+ }
292
+ ]