dkg 0.1.0b6__py3-none-any.whl → 1.0.0__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/asset.py +106 -28
- dkg/constants.py +13 -9
- dkg/data/interfaces/ContentAsset.json +133 -3
- dkg/data/interfaces/Paranet.json +821 -0
- dkg/data/interfaces/{Identity.json → ParanetIncentivesPoolFactory.json} +67 -86
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +919 -0
- dkg/data/interfaces/ParanetNeurowebIncentivesPool.json +1102 -0
- dkg/data/interfaces/{ServiceAgreementStorageV1.json → ParanetsRegistry.json} +331 -360
- dkg/dataclasses.py +28 -8
- dkg/main.py +6 -3
- dkg/method.py +55 -39
- dkg/module.py +1 -0
- dkg/network.py +20 -10
- dkg/paranet.py +477 -0
- dkg/providers/blockchain.py +57 -26
- dkg/types/__init__.py +1 -0
- dkg/types/general.py +44 -0
- dkg/utils/blockchain_request.py +149 -4
- dkg/utils/node_request.py +77 -80
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/METADATA +3 -141
- dkg-1.0.0.dist-info/NOTICE +9 -0
- dkg-1.0.0.dist-info/RECORD +52 -0
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/WHEEL +1 -1
- dkg/data/interfaces/Assertion.json +0 -157
- dkg/data/interfaces/CommitManagerV1.json +0 -549
- dkg/data/interfaces/CommitManagerV1U1.json +0 -735
- dkg/data/interfaces/HashingProxy.json +0 -253
- dkg/data/interfaces/IdentityStorage.json +0 -342
- dkg/data/interfaces/ParametersStorage.json +0 -487
- dkg/data/interfaces/Profile.json +0 -318
- dkg/data/interfaces/ProfileStorage.json +0 -596
- dkg/data/interfaces/ProofManagerV1.json +0 -540
- dkg/data/interfaces/ProofManagerV1U1.json +0 -561
- dkg/data/interfaces/ScoringProxy.json +0 -268
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
- dkg/data/interfaces/ServiceAgreementV1.json +0 -745
- dkg/data/interfaces/ShardingTable.json +0 -294
- dkg/data/interfaces/ShardingTableStorage.json +0 -317
- dkg/data/interfaces/Staking.json +0 -482
- dkg/data/interfaces/StakingStorage.json +0 -407
- dkg/data/interfaces/WhitelistStorage.json +0 -124
- dkg-0.1.0b6.dist-info/RECORD +0 -64
- {dkg-0.1.0b6.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -1,294 +0,0 @@
|
|
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
|
-
{
|
232
|
-
"internalType": "bool",
|
233
|
-
"name": "_status",
|
234
|
-
"type": "bool"
|
235
|
-
}
|
236
|
-
],
|
237
|
-
"name": "setStatus",
|
238
|
-
"outputs": [],
|
239
|
-
"stateMutability": "nonpayable",
|
240
|
-
"type": "function"
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"inputs": [],
|
244
|
-
"name": "shardingTableStorage",
|
245
|
-
"outputs": [
|
246
|
-
{
|
247
|
-
"internalType": "contract ShardingTableStorage",
|
248
|
-
"name": "",
|
249
|
-
"type": "address"
|
250
|
-
}
|
251
|
-
],
|
252
|
-
"stateMutability": "view",
|
253
|
-
"type": "function"
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"inputs": [],
|
257
|
-
"name": "stakingStorage",
|
258
|
-
"outputs": [
|
259
|
-
{
|
260
|
-
"internalType": "contract StakingStorage",
|
261
|
-
"name": "",
|
262
|
-
"type": "address"
|
263
|
-
}
|
264
|
-
],
|
265
|
-
"stateMutability": "view",
|
266
|
-
"type": "function"
|
267
|
-
},
|
268
|
-
{
|
269
|
-
"inputs": [],
|
270
|
-
"name": "status",
|
271
|
-
"outputs": [
|
272
|
-
{
|
273
|
-
"internalType": "bool",
|
274
|
-
"name": "",
|
275
|
-
"type": "bool"
|
276
|
-
}
|
277
|
-
],
|
278
|
-
"stateMutability": "view",
|
279
|
-
"type": "function"
|
280
|
-
},
|
281
|
-
{
|
282
|
-
"inputs": [],
|
283
|
-
"name": "version",
|
284
|
-
"outputs": [
|
285
|
-
{
|
286
|
-
"internalType": "string",
|
287
|
-
"name": "",
|
288
|
-
"type": "string"
|
289
|
-
}
|
290
|
-
],
|
291
|
-
"stateMutability": "pure",
|
292
|
-
"type": "function"
|
293
|
-
}
|
294
|
-
]
|
@@ -1,317 +0,0 @@
|
|
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
|
-
]
|