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.
- dkg/__init__.py +3 -0
- dkg/asset.py +781 -0
- dkg/constants.py +39 -0
- dkg/data/interfaces/Assertion.json +131 -0
- dkg/data/interfaces/AssertionStorage.json +229 -0
- dkg/data/interfaces/CommitManagerV1.json +534 -0
- dkg/data/interfaces/CommitManagerV1U1.json +720 -0
- dkg/data/interfaces/ContentAsset.json +671 -0
- dkg/data/interfaces/ContentAssetStorage.json +706 -0
- dkg/data/interfaces/HashingProxy.json +227 -0
- dkg/data/interfaces/Hub.json +356 -0
- dkg/data/interfaces/Identity.json +193 -0
- dkg/data/interfaces/IdentityStorage.json +342 -0
- dkg/data/interfaces/ParametersStorage.json +468 -0
- dkg/data/interfaces/Profile.json +292 -0
- dkg/data/interfaces/ProfileStorage.json +596 -0
- dkg/data/interfaces/ProofManagerV1.json +525 -0
- dkg/data/interfaces/ProofManagerV1U1.json +546 -0
- dkg/data/interfaces/ScoringProxy.json +242 -0
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +1299 -0
- dkg/data/interfaces/ServiceAgreementStorageV1.json +901 -0
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +1097 -0
- dkg/data/interfaces/ServiceAgreementV1.json +741 -0
- dkg/data/interfaces/ShardingTable.json +268 -0
- dkg/data/interfaces/ShardingTableStorage.json +317 -0
- dkg/data/interfaces/Staking.json +456 -0
- dkg/data/interfaces/StakingStorage.json +407 -0
- dkg/data/interfaces/Token.json +544 -0
- dkg/data/interfaces/UnfinalizedStateStorage.json +171 -0
- dkg/data/interfaces/WhitelistStorage.json +124 -0
- dkg/dataclasses.py +45 -0
- dkg/exceptions.py +161 -0
- dkg/graph.py +63 -0
- dkg/main.py +74 -0
- dkg/manager.py +64 -0
- dkg/method.py +131 -0
- dkg/module.py +63 -0
- dkg/node.py +54 -0
- dkg/providers/__init__.py +2 -0
- dkg/providers/blockchain.py +181 -0
- dkg/providers/node_http.py +62 -0
- dkg/types/__init__.py +8 -0
- dkg/types/blockchain.py +58 -0
- dkg/types/dkg_node.py +20 -0
- dkg/types/encoding.py +22 -0
- dkg/types/evm.py +25 -0
- dkg/types/generics.py +21 -0
- dkg/types/network.py +20 -0
- dkg/types/rdf.py +21 -0
- dkg/utils/__init__.py +0 -0
- dkg/utils/blockchain_request.py +159 -0
- dkg/utils/decorators.py +46 -0
- dkg/utils/merkle.py +173 -0
- dkg/utils/metadata.py +50 -0
- dkg/utils/node_request.py +197 -0
- dkg/utils/rdf.py +51 -0
- dkg/utils/string_transformations.py +22 -0
- dkg/utils/ual.py +41 -0
- dkg-0.1.0b1.dist-info/LICENSE +202 -0
- dkg-0.1.0b1.dist-info/METADATA +453 -0
- dkg-0.1.0b1.dist-info/RECORD +62 -0
- dkg-0.1.0b1.dist-info/WHEEL +4 -0
@@ -0,0 +1,227 @@
|
|
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": "hashFunctionId",
|
20
|
+
"type": "uint8"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"indexed": false,
|
24
|
+
"internalType": "address",
|
25
|
+
"name": "newContractAddress",
|
26
|
+
"type": "address"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "HashFunctionContractChanged",
|
30
|
+
"type": "event"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"anonymous": false,
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"indexed": true,
|
37
|
+
"internalType": "uint8",
|
38
|
+
"name": "hashFunctionId",
|
39
|
+
"type": "uint8"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"indexed": false,
|
43
|
+
"internalType": "address",
|
44
|
+
"name": "newContractAddress",
|
45
|
+
"type": "address"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"name": "NewHashFunctionContract",
|
49
|
+
"type": "event"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"inputs": [
|
53
|
+
{
|
54
|
+
"internalType": "uint8",
|
55
|
+
"name": "hashFunctionId",
|
56
|
+
"type": "uint8"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"internalType": "bytes",
|
60
|
+
"name": "data",
|
61
|
+
"type": "bytes"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"name": "callHashFunction",
|
65
|
+
"outputs": [
|
66
|
+
{
|
67
|
+
"internalType": "bytes32",
|
68
|
+
"name": "",
|
69
|
+
"type": "bytes32"
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"stateMutability": "view",
|
73
|
+
"type": "function"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"inputs": [],
|
77
|
+
"name": "getAllHashFunctions",
|
78
|
+
"outputs": [
|
79
|
+
{
|
80
|
+
"components": [
|
81
|
+
{
|
82
|
+
"internalType": "uint8",
|
83
|
+
"name": "id",
|
84
|
+
"type": "uint8"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"internalType": "address",
|
88
|
+
"name": "addr",
|
89
|
+
"type": "address"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"internalType": "struct UnorderedIndexableContractDynamicSetLib.Contract[]",
|
93
|
+
"name": "",
|
94
|
+
"type": "tuple[]"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"stateMutability": "view",
|
98
|
+
"type": "function"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"inputs": [
|
102
|
+
{
|
103
|
+
"internalType": "uint8",
|
104
|
+
"name": "hashFunctionId",
|
105
|
+
"type": "uint8"
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"name": "getHashFunctionContractAddress",
|
109
|
+
"outputs": [
|
110
|
+
{
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "",
|
113
|
+
"type": "address"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"stateMutability": "view",
|
117
|
+
"type": "function"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"inputs": [
|
121
|
+
{
|
122
|
+
"internalType": "uint8",
|
123
|
+
"name": "hashFunctionId",
|
124
|
+
"type": "uint8"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "getHashFunctionName",
|
128
|
+
"outputs": [
|
129
|
+
{
|
130
|
+
"internalType": "string",
|
131
|
+
"name": "",
|
132
|
+
"type": "string"
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"stateMutability": "view",
|
136
|
+
"type": "function"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"inputs": [],
|
140
|
+
"name": "hub",
|
141
|
+
"outputs": [
|
142
|
+
{
|
143
|
+
"internalType": "contract Hub",
|
144
|
+
"name": "",
|
145
|
+
"type": "address"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"stateMutability": "view",
|
149
|
+
"type": "function"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [
|
153
|
+
{
|
154
|
+
"internalType": "uint8",
|
155
|
+
"name": "hashFunctionId",
|
156
|
+
"type": "uint8"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"name": "isHashFunction",
|
160
|
+
"outputs": [
|
161
|
+
{
|
162
|
+
"internalType": "bool",
|
163
|
+
"name": "",
|
164
|
+
"type": "bool"
|
165
|
+
}
|
166
|
+
],
|
167
|
+
"stateMutability": "view",
|
168
|
+
"type": "function"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"inputs": [],
|
172
|
+
"name": "name",
|
173
|
+
"outputs": [
|
174
|
+
{
|
175
|
+
"internalType": "string",
|
176
|
+
"name": "",
|
177
|
+
"type": "string"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"stateMutability": "pure",
|
181
|
+
"type": "function"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [
|
185
|
+
{
|
186
|
+
"internalType": "uint8",
|
187
|
+
"name": "hashFunctionId",
|
188
|
+
"type": "uint8"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
"name": "removeContract",
|
192
|
+
"outputs": [],
|
193
|
+
"stateMutability": "nonpayable",
|
194
|
+
"type": "function"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"inputs": [
|
198
|
+
{
|
199
|
+
"internalType": "uint8",
|
200
|
+
"name": "hashFunctionId",
|
201
|
+
"type": "uint8"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "address",
|
205
|
+
"name": "hashingContractAddress",
|
206
|
+
"type": "address"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"name": "setContractAddress",
|
210
|
+
"outputs": [],
|
211
|
+
"stateMutability": "nonpayable",
|
212
|
+
"type": "function"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"inputs": [],
|
216
|
+
"name": "version",
|
217
|
+
"outputs": [
|
218
|
+
{
|
219
|
+
"internalType": "string",
|
220
|
+
"name": "",
|
221
|
+
"type": "string"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"stateMutability": "pure",
|
225
|
+
"type": "function"
|
226
|
+
}
|
227
|
+
]
|
@@ -0,0 +1,356 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"anonymous": false,
|
4
|
+
"inputs": [
|
5
|
+
{
|
6
|
+
"indexed": false,
|
7
|
+
"internalType": "string",
|
8
|
+
"name": "contractName",
|
9
|
+
"type": "string"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"indexed": false,
|
13
|
+
"internalType": "address",
|
14
|
+
"name": "newContractAddress",
|
15
|
+
"type": "address"
|
16
|
+
}
|
17
|
+
],
|
18
|
+
"name": "AssetStorageChanged",
|
19
|
+
"type": "event"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"anonymous": false,
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"indexed": false,
|
26
|
+
"internalType": "string",
|
27
|
+
"name": "contractName",
|
28
|
+
"type": "string"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"indexed": false,
|
32
|
+
"internalType": "address",
|
33
|
+
"name": "newContractAddress",
|
34
|
+
"type": "address"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"name": "ContractChanged",
|
38
|
+
"type": "event"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"anonymous": false,
|
42
|
+
"inputs": [
|
43
|
+
{
|
44
|
+
"indexed": false,
|
45
|
+
"internalType": "string",
|
46
|
+
"name": "contractName",
|
47
|
+
"type": "string"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"indexed": false,
|
51
|
+
"internalType": "address",
|
52
|
+
"name": "newContractAddress",
|
53
|
+
"type": "address"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"name": "NewAssetStorage",
|
57
|
+
"type": "event"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"anonymous": false,
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"indexed": false,
|
64
|
+
"internalType": "string",
|
65
|
+
"name": "contractName",
|
66
|
+
"type": "string"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"indexed": false,
|
70
|
+
"internalType": "address",
|
71
|
+
"name": "newContractAddress",
|
72
|
+
"type": "address"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"name": "NewContract",
|
76
|
+
"type": "event"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"anonymous": false,
|
80
|
+
"inputs": [
|
81
|
+
{
|
82
|
+
"indexed": true,
|
83
|
+
"internalType": "address",
|
84
|
+
"name": "previousOwner",
|
85
|
+
"type": "address"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"indexed": true,
|
89
|
+
"internalType": "address",
|
90
|
+
"name": "newOwner",
|
91
|
+
"type": "address"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"name": "OwnershipTransferred",
|
95
|
+
"type": "event"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"inputs": [],
|
99
|
+
"name": "getAllAssetStorages",
|
100
|
+
"outputs": [
|
101
|
+
{
|
102
|
+
"components": [
|
103
|
+
{
|
104
|
+
"internalType": "string",
|
105
|
+
"name": "name",
|
106
|
+
"type": "string"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"internalType": "address",
|
110
|
+
"name": "addr",
|
111
|
+
"type": "address"
|
112
|
+
}
|
113
|
+
],
|
114
|
+
"internalType": "struct UnorderedNamedContractDynamicSetLib.Contract[]",
|
115
|
+
"name": "",
|
116
|
+
"type": "tuple[]"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"stateMutability": "view",
|
120
|
+
"type": "function"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"inputs": [],
|
124
|
+
"name": "getAllContracts",
|
125
|
+
"outputs": [
|
126
|
+
{
|
127
|
+
"components": [
|
128
|
+
{
|
129
|
+
"internalType": "string",
|
130
|
+
"name": "name",
|
131
|
+
"type": "string"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"internalType": "address",
|
135
|
+
"name": "addr",
|
136
|
+
"type": "address"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"internalType": "struct UnorderedNamedContractDynamicSetLib.Contract[]",
|
140
|
+
"name": "",
|
141
|
+
"type": "tuple[]"
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"stateMutability": "view",
|
145
|
+
"type": "function"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"inputs": [
|
149
|
+
{
|
150
|
+
"internalType": "string",
|
151
|
+
"name": "assetStorageName",
|
152
|
+
"type": "string"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"name": "getAssetStorageAddress",
|
156
|
+
"outputs": [
|
157
|
+
{
|
158
|
+
"internalType": "address",
|
159
|
+
"name": "",
|
160
|
+
"type": "address"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"stateMutability": "view",
|
164
|
+
"type": "function"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"inputs": [
|
168
|
+
{
|
169
|
+
"internalType": "string",
|
170
|
+
"name": "contractName",
|
171
|
+
"type": "string"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"name": "getContractAddress",
|
175
|
+
"outputs": [
|
176
|
+
{
|
177
|
+
"internalType": "address",
|
178
|
+
"name": "",
|
179
|
+
"type": "address"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"stateMutability": "view",
|
183
|
+
"type": "function"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"inputs": [
|
187
|
+
{
|
188
|
+
"internalType": "address",
|
189
|
+
"name": "assetStorageAddress",
|
190
|
+
"type": "address"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"name": "isAssetStorage",
|
194
|
+
"outputs": [
|
195
|
+
{
|
196
|
+
"internalType": "bool",
|
197
|
+
"name": "",
|
198
|
+
"type": "bool"
|
199
|
+
}
|
200
|
+
],
|
201
|
+
"stateMutability": "view",
|
202
|
+
"type": "function"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"inputs": [
|
206
|
+
{
|
207
|
+
"internalType": "string",
|
208
|
+
"name": "assetStorageName",
|
209
|
+
"type": "string"
|
210
|
+
}
|
211
|
+
],
|
212
|
+
"name": "isAssetStorage",
|
213
|
+
"outputs": [
|
214
|
+
{
|
215
|
+
"internalType": "bool",
|
216
|
+
"name": "",
|
217
|
+
"type": "bool"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
"stateMutability": "view",
|
221
|
+
"type": "function"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"inputs": [
|
225
|
+
{
|
226
|
+
"internalType": "address",
|
227
|
+
"name": "selectedContractAddress",
|
228
|
+
"type": "address"
|
229
|
+
}
|
230
|
+
],
|
231
|
+
"name": "isContract",
|
232
|
+
"outputs": [
|
233
|
+
{
|
234
|
+
"internalType": "bool",
|
235
|
+
"name": "",
|
236
|
+
"type": "bool"
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"stateMutability": "view",
|
240
|
+
"type": "function"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"inputs": [
|
244
|
+
{
|
245
|
+
"internalType": "string",
|
246
|
+
"name": "contractName",
|
247
|
+
"type": "string"
|
248
|
+
}
|
249
|
+
],
|
250
|
+
"name": "isContract",
|
251
|
+
"outputs": [
|
252
|
+
{
|
253
|
+
"internalType": "bool",
|
254
|
+
"name": "",
|
255
|
+
"type": "bool"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"stateMutability": "view",
|
259
|
+
"type": "function"
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"inputs": [],
|
263
|
+
"name": "name",
|
264
|
+
"outputs": [
|
265
|
+
{
|
266
|
+
"internalType": "string",
|
267
|
+
"name": "",
|
268
|
+
"type": "string"
|
269
|
+
}
|
270
|
+
],
|
271
|
+
"stateMutability": "pure",
|
272
|
+
"type": "function"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"inputs": [],
|
276
|
+
"name": "owner",
|
277
|
+
"outputs": [
|
278
|
+
{
|
279
|
+
"internalType": "address",
|
280
|
+
"name": "",
|
281
|
+
"type": "address"
|
282
|
+
}
|
283
|
+
],
|
284
|
+
"stateMutability": "view",
|
285
|
+
"type": "function"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"inputs": [],
|
289
|
+
"name": "renounceOwnership",
|
290
|
+
"outputs": [],
|
291
|
+
"stateMutability": "nonpayable",
|
292
|
+
"type": "function"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"inputs": [
|
296
|
+
{
|
297
|
+
"internalType": "string",
|
298
|
+
"name": "assetStorageName",
|
299
|
+
"type": "string"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"internalType": "address",
|
303
|
+
"name": "assetStorageAddress",
|
304
|
+
"type": "address"
|
305
|
+
}
|
306
|
+
],
|
307
|
+
"name": "setAssetStorageAddress",
|
308
|
+
"outputs": [],
|
309
|
+
"stateMutability": "nonpayable",
|
310
|
+
"type": "function"
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"inputs": [
|
314
|
+
{
|
315
|
+
"internalType": "string",
|
316
|
+
"name": "contractName",
|
317
|
+
"type": "string"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "address",
|
321
|
+
"name": "newContractAddress",
|
322
|
+
"type": "address"
|
323
|
+
}
|
324
|
+
],
|
325
|
+
"name": "setContractAddress",
|
326
|
+
"outputs": [],
|
327
|
+
"stateMutability": "nonpayable",
|
328
|
+
"type": "function"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"inputs": [
|
332
|
+
{
|
333
|
+
"internalType": "address",
|
334
|
+
"name": "newOwner",
|
335
|
+
"type": "address"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"name": "transferOwnership",
|
339
|
+
"outputs": [],
|
340
|
+
"stateMutability": "nonpayable",
|
341
|
+
"type": "function"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"inputs": [],
|
345
|
+
"name": "version",
|
346
|
+
"outputs": [
|
347
|
+
{
|
348
|
+
"internalType": "string",
|
349
|
+
"name": "",
|
350
|
+
"type": "string"
|
351
|
+
}
|
352
|
+
],
|
353
|
+
"stateMutability": "pure",
|
354
|
+
"type": "function"
|
355
|
+
}
|
356
|
+
]
|