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,242 @@
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": "uint8",
19
+ "name": "scoreFunctionId",
20
+ "type": "uint8"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "address",
25
+ "name": "newContractAddress",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "name": "NewScoringFunctionContract",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": true,
37
+ "internalType": "uint8",
38
+ "name": "scoreFunctionId",
39
+ "type": "uint8"
40
+ },
41
+ {
42
+ "indexed": false,
43
+ "internalType": "address",
44
+ "name": "newContractAddress",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "name": "ScoringFunctionContractUpdated",
49
+ "type": "event"
50
+ },
51
+ {
52
+ "inputs": [
53
+ {
54
+ "internalType": "uint8",
55
+ "name": "scoreFunctionId",
56
+ "type": "uint8"
57
+ },
58
+ {
59
+ "internalType": "uint8",
60
+ "name": "hashFunctionId",
61
+ "type": "uint8"
62
+ },
63
+ {
64
+ "internalType": "bytes",
65
+ "name": "nodeId",
66
+ "type": "bytes"
67
+ },
68
+ {
69
+ "internalType": "bytes",
70
+ "name": "keyword",
71
+ "type": "bytes"
72
+ },
73
+ {
74
+ "internalType": "uint96",
75
+ "name": "stake",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "callScoreFunction",
80
+ "outputs": [
81
+ {
82
+ "internalType": "uint40",
83
+ "name": "",
84
+ "type": "uint40"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "getAllScoreFunctions",
93
+ "outputs": [
94
+ {
95
+ "components": [
96
+ {
97
+ "internalType": "uint8",
98
+ "name": "id",
99
+ "type": "uint8"
100
+ },
101
+ {
102
+ "internalType": "address",
103
+ "name": "addr",
104
+ "type": "address"
105
+ }
106
+ ],
107
+ "internalType": "struct UnorderedIndexableContractDynamicSetLib.Contract[]",
108
+ "name": "",
109
+ "type": "tuple[]"
110
+ }
111
+ ],
112
+ "stateMutability": "view",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "uint8",
119
+ "name": "scoreFunctionId",
120
+ "type": "uint8"
121
+ }
122
+ ],
123
+ "name": "getScoreFunctionContractAddress",
124
+ "outputs": [
125
+ {
126
+ "internalType": "address",
127
+ "name": "",
128
+ "type": "address"
129
+ }
130
+ ],
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "inputs": [
136
+ {
137
+ "internalType": "uint8",
138
+ "name": "scoreFunctionId",
139
+ "type": "uint8"
140
+ }
141
+ ],
142
+ "name": "getScoreFunctionName",
143
+ "outputs": [
144
+ {
145
+ "internalType": "string",
146
+ "name": "",
147
+ "type": "string"
148
+ }
149
+ ],
150
+ "stateMutability": "view",
151
+ "type": "function"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "hub",
156
+ "outputs": [
157
+ {
158
+ "internalType": "contract Hub",
159
+ "name": "",
160
+ "type": "address"
161
+ }
162
+ ],
163
+ "stateMutability": "view",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "uint8",
170
+ "name": "scoreFunctionId",
171
+ "type": "uint8"
172
+ }
173
+ ],
174
+ "name": "isScoreFunction",
175
+ "outputs": [
176
+ {
177
+ "internalType": "bool",
178
+ "name": "",
179
+ "type": "bool"
180
+ }
181
+ ],
182
+ "stateMutability": "view",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "name",
188
+ "outputs": [
189
+ {
190
+ "internalType": "string",
191
+ "name": "",
192
+ "type": "string"
193
+ }
194
+ ],
195
+ "stateMutability": "pure",
196
+ "type": "function"
197
+ },
198
+ {
199
+ "inputs": [
200
+ {
201
+ "internalType": "uint8",
202
+ "name": "scoreFunctionId",
203
+ "type": "uint8"
204
+ }
205
+ ],
206
+ "name": "removeContract",
207
+ "outputs": [],
208
+ "stateMutability": "nonpayable",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [
213
+ {
214
+ "internalType": "uint8",
215
+ "name": "scoreFunctionId",
216
+ "type": "uint8"
217
+ },
218
+ {
219
+ "internalType": "address",
220
+ "name": "scoringContractAddress",
221
+ "type": "address"
222
+ }
223
+ ],
224
+ "name": "setContractAddress",
225
+ "outputs": [],
226
+ "stateMutability": "nonpayable",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "version",
232
+ "outputs": [
233
+ {
234
+ "internalType": "string",
235
+ "name": "",
236
+ "type": "string"
237
+ }
238
+ ],
239
+ "stateMutability": "pure",
240
+ "type": "function"
241
+ }
242
+ ]