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,268 @@
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
+ "indexed": false,
36
+ "internalType": "uint96",
37
+ "name": "stake",
38
+ "type": "uint96"
39
+ }
40
+ ],
41
+ "name": "NodeAdded",
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
+ "name": "NodeRemoved",
61
+ "type": "event"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "getShardingTable",
66
+ "outputs": [
67
+ {
68
+ "components": [
69
+ {
70
+ "internalType": "bytes",
71
+ "name": "nodeId",
72
+ "type": "bytes"
73
+ },
74
+ {
75
+ "internalType": "uint72",
76
+ "name": "identityId",
77
+ "type": "uint72"
78
+ },
79
+ {
80
+ "internalType": "uint96",
81
+ "name": "ask",
82
+ "type": "uint96"
83
+ },
84
+ {
85
+ "internalType": "uint96",
86
+ "name": "stake",
87
+ "type": "uint96"
88
+ }
89
+ ],
90
+ "internalType": "struct ShardingTableStructs.NodeInfo[]",
91
+ "name": "",
92
+ "type": "tuple[]"
93
+ }
94
+ ],
95
+ "stateMutability": "view",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "uint72",
102
+ "name": "startingIdentityId",
103
+ "type": "uint72"
104
+ },
105
+ {
106
+ "internalType": "uint72",
107
+ "name": "nodesNumber",
108
+ "type": "uint72"
109
+ }
110
+ ],
111
+ "name": "getShardingTable",
112
+ "outputs": [
113
+ {
114
+ "components": [
115
+ {
116
+ "internalType": "bytes",
117
+ "name": "nodeId",
118
+ "type": "bytes"
119
+ },
120
+ {
121
+ "internalType": "uint72",
122
+ "name": "identityId",
123
+ "type": "uint72"
124
+ },
125
+ {
126
+ "internalType": "uint96",
127
+ "name": "ask",
128
+ "type": "uint96"
129
+ },
130
+ {
131
+ "internalType": "uint96",
132
+ "name": "stake",
133
+ "type": "uint96"
134
+ }
135
+ ],
136
+ "internalType": "struct ShardingTableStructs.NodeInfo[]",
137
+ "name": "",
138
+ "type": "tuple[]"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "hub",
147
+ "outputs": [
148
+ {
149
+ "internalType": "contract Hub",
150
+ "name": "",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "stateMutability": "view",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "initialize",
160
+ "outputs": [],
161
+ "stateMutability": "nonpayable",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "name",
167
+ "outputs": [
168
+ {
169
+ "internalType": "string",
170
+ "name": "",
171
+ "type": "string"
172
+ }
173
+ ],
174
+ "stateMutability": "pure",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "profileStorage",
180
+ "outputs": [
181
+ {
182
+ "internalType": "contract ProfileStorage",
183
+ "name": "",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "internalType": "uint72",
194
+ "name": "identityId",
195
+ "type": "uint72"
196
+ }
197
+ ],
198
+ "name": "pushBack",
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "uint72",
207
+ "name": "identityId",
208
+ "type": "uint72"
209
+ }
210
+ ],
211
+ "name": "pushFront",
212
+ "outputs": [],
213
+ "stateMutability": "nonpayable",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [
218
+ {
219
+ "internalType": "uint72",
220
+ "name": "identityId",
221
+ "type": "uint72"
222
+ }
223
+ ],
224
+ "name": "removeNode",
225
+ "outputs": [],
226
+ "stateMutability": "nonpayable",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "shardingTableStorage",
232
+ "outputs": [
233
+ {
234
+ "internalType": "contract ShardingTableStorage",
235
+ "name": "",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "stateMutability": "view",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "stakingStorage",
245
+ "outputs": [
246
+ {
247
+ "internalType": "contract StakingStorage",
248
+ "name": "",
249
+ "type": "address"
250
+ }
251
+ ],
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "version",
258
+ "outputs": [
259
+ {
260
+ "internalType": "string",
261
+ "name": "",
262
+ "type": "string"
263
+ }
264
+ ],
265
+ "stateMutability": "pure",
266
+ "type": "function"
267
+ }
268
+ ]
@@ -0,0 +1,317 @@
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": "uint72",
17
+ "name": "identityId",
18
+ "type": "uint72"
19
+ },
20
+ {
21
+ "internalType": "uint72",
22
+ "name": "prevIdentityId",
23
+ "type": "uint72"
24
+ },
25
+ {
26
+ "internalType": "uint72",
27
+ "name": "nextIdentityId",
28
+ "type": "uint72"
29
+ }
30
+ ],
31
+ "name": "createNodeObject",
32
+ "outputs": [],
33
+ "stateMutability": "nonpayable",
34
+ "type": "function"
35
+ },
36
+ {
37
+ "inputs": [],
38
+ "name": "decrementNodesCount",
39
+ "outputs": [],
40
+ "stateMutability": "nonpayable",
41
+ "type": "function"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "uint72",
47
+ "name": "identityId",
48
+ "type": "uint72"
49
+ }
50
+ ],
51
+ "name": "deleteNodeObject",
52
+ "outputs": [],
53
+ "stateMutability": "nonpayable",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "uint72",
60
+ "name": "firstIdentityId",
61
+ "type": "uint72"
62
+ },
63
+ {
64
+ "internalType": "uint16",
65
+ "name": "nodesNumber",
66
+ "type": "uint16"
67
+ }
68
+ ],
69
+ "name": "getMultipleNodes",
70
+ "outputs": [
71
+ {
72
+ "components": [
73
+ {
74
+ "internalType": "uint72",
75
+ "name": "identityId",
76
+ "type": "uint72"
77
+ },
78
+ {
79
+ "internalType": "uint72",
80
+ "name": "prevIdentityId",
81
+ "type": "uint72"
82
+ },
83
+ {
84
+ "internalType": "uint72",
85
+ "name": "nextIdentityId",
86
+ "type": "uint72"
87
+ }
88
+ ],
89
+ "internalType": "struct ShardingTableStructs.Node[]",
90
+ "name": "",
91
+ "type": "tuple[]"
92
+ }
93
+ ],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint72",
101
+ "name": "identityId",
102
+ "type": "uint72"
103
+ }
104
+ ],
105
+ "name": "getNode",
106
+ "outputs": [
107
+ {
108
+ "components": [
109
+ {
110
+ "internalType": "uint72",
111
+ "name": "identityId",
112
+ "type": "uint72"
113
+ },
114
+ {
115
+ "internalType": "uint72",
116
+ "name": "prevIdentityId",
117
+ "type": "uint72"
118
+ },
119
+ {
120
+ "internalType": "uint72",
121
+ "name": "nextIdentityId",
122
+ "type": "uint72"
123
+ }
124
+ ],
125
+ "internalType": "struct ShardingTableStructs.Node",
126
+ "name": "",
127
+ "type": "tuple"
128
+ }
129
+ ],
130
+ "stateMutability": "view",
131
+ "type": "function"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "head",
136
+ "outputs": [
137
+ {
138
+ "internalType": "uint72",
139
+ "name": "",
140
+ "type": "uint72"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [],
148
+ "name": "hub",
149
+ "outputs": [
150
+ {
151
+ "internalType": "contract Hub",
152
+ "name": "",
153
+ "type": "address"
154
+ }
155
+ ],
156
+ "stateMutability": "view",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "incrementNodesCount",
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "uint72",
170
+ "name": "leftNodeIdentityId",
171
+ "type": "uint72"
172
+ },
173
+ {
174
+ "internalType": "uint72",
175
+ "name": "rightNodeIdentityId",
176
+ "type": "uint72"
177
+ }
178
+ ],
179
+ "name": "link",
180
+ "outputs": [],
181
+ "stateMutability": "nonpayable",
182
+ "type": "function"
183
+ },
184
+ {
185
+ "inputs": [],
186
+ "name": "name",
187
+ "outputs": [
188
+ {
189
+ "internalType": "string",
190
+ "name": "",
191
+ "type": "string"
192
+ }
193
+ ],
194
+ "stateMutability": "pure",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "uint72",
201
+ "name": "identityId",
202
+ "type": "uint72"
203
+ }
204
+ ],
205
+ "name": "nodeExists",
206
+ "outputs": [
207
+ {
208
+ "internalType": "bool",
209
+ "name": "",
210
+ "type": "bool"
211
+ }
212
+ ],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "nodesCount",
219
+ "outputs": [
220
+ {
221
+ "internalType": "uint72",
222
+ "name": "",
223
+ "type": "uint72"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [
231
+ {
232
+ "internalType": "uint72",
233
+ "name": "identityId",
234
+ "type": "uint72"
235
+ }
236
+ ],
237
+ "name": "setHead",
238
+ "outputs": [],
239
+ "stateMutability": "nonpayable",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "uint72",
246
+ "name": "identityId",
247
+ "type": "uint72"
248
+ },
249
+ {
250
+ "internalType": "uint72",
251
+ "name": "newNextIdentityId",
252
+ "type": "uint72"
253
+ }
254
+ ],
255
+ "name": "setNextIdentityId",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "uint72",
264
+ "name": "identityId",
265
+ "type": "uint72"
266
+ },
267
+ {
268
+ "internalType": "uint72",
269
+ "name": "newPrevIdentityId",
270
+ "type": "uint72"
271
+ }
272
+ ],
273
+ "name": "setPrevIdentityId",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "uint72",
282
+ "name": "identityId",
283
+ "type": "uint72"
284
+ }
285
+ ],
286
+ "name": "setTail",
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [],
293
+ "name": "tail",
294
+ "outputs": [
295
+ {
296
+ "internalType": "uint72",
297
+ "name": "",
298
+ "type": "uint72"
299
+ }
300
+ ],
301
+ "stateMutability": "view",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "version",
307
+ "outputs": [
308
+ {
309
+ "internalType": "string",
310
+ "name": "",
311
+ "type": "string"
312
+ }
313
+ ],
314
+ "stateMutability": "pure",
315
+ "type": "function"
316
+ }
317
+ ]