dkg 8.0.0a3__py3-none-any.whl → 8.0.1__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 +1 -1
- dkg/assertion.py +2 -2
- dkg/clients/__init__.py +4 -0
- dkg/clients/async_dkg.py +109 -0
- dkg/{main.py → clients/dkg.py} +42 -21
- dkg/constants.py +117 -6
- dkg/data/interfaces/AskStorage.json +366 -0
- dkg/data/interfaces/Chronos.json +202 -0
- dkg/data/interfaces/Hub.json +294 -2
- dkg/data/interfaces/IdentityStorage.json +58 -0
- dkg/data/interfaces/{ContentAsset.json → KnowledgeCollection.json} +256 -343
- dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
- dkg/data/interfaces/Paranet.json +30 -214
- dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -2
- dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
- dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +7 -7
- dkg/data/interfaces/ParanetsRegistry.json +102 -32
- dkg/data/interfaces/Token.json +146 -17
- dkg/managers/__init__.py +0 -0
- dkg/managers/async_manager.py +69 -0
- dkg/{manager.py → managers/manager.py} +5 -3
- dkg/method.py +5 -2
- dkg/modules/__init__.py +0 -0
- dkg/modules/asset/__init__.py +0 -0
- dkg/modules/asset/asset.py +739 -0
- dkg/modules/asset/async_asset.py +751 -0
- dkg/modules/async_module.py +66 -0
- dkg/modules/graph/__init__.py +0 -0
- dkg/modules/graph/async_graph.py +118 -0
- dkg/modules/graph/graph.py +94 -0
- dkg/{module.py → modules/module.py} +1 -1
- dkg/modules/network/__init__.py +0 -0
- dkg/{network.py → modules/network/network.py} +4 -4
- dkg/modules/node/__init__.py +0 -0
- dkg/modules/node/async_node.py +39 -0
- dkg/{node.py → modules/node/node.py} +2 -2
- dkg/modules/paranet/__init__.py +0 -0
- dkg/{paranet.py → modules/paranet/paranet.py} +2 -2
- dkg/providers/__init__.py +9 -2
- dkg/providers/blockchain/__init__.py +4 -0
- dkg/providers/blockchain/async_blockchain.py +245 -0
- dkg/providers/blockchain/base_blockchain.py +102 -0
- dkg/providers/{blockchain.py → blockchain/blockchain.py} +15 -96
- dkg/providers/node/__init__.py +4 -0
- dkg/providers/node/async_node_http.py +72 -0
- dkg/providers/node/base_node_http.py +25 -0
- dkg/providers/{node_http.py → node/node_http.py} +12 -10
- dkg/services/__init__.py +0 -0
- dkg/services/blockchain_services/__init__.py +0 -0
- dkg/services/blockchain_services/async_blockchain_service.py +180 -0
- dkg/services/blockchain_services/blockchain_service.py +174 -0
- dkg/services/input_service.py +183 -0
- dkg/services/node_services/__init__.py +0 -0
- dkg/services/node_services/async_node_service.py +184 -0
- dkg/services/node_services/node_service.py +167 -0
- dkg/types/__init__.py +11 -11
- dkg/utils/blockchain_request.py +68 -42
- dkg/utils/knowledge_asset_tools.py +5 -0
- dkg/utils/knowledge_collection_tools.py +248 -0
- dkg/utils/node_request.py +59 -13
- dkg/utils/rdf.py +9 -3
- {dkg-8.0.0a3.dist-info → dkg-8.0.1.dist-info}/METADATA +28 -19
- dkg-8.0.1.dist-info/RECORD +82 -0
- {dkg-8.0.0a3.dist-info → dkg-8.0.1.dist-info}/WHEEL +1 -1
- dkg/asset.py +0 -912
- dkg/data/interfaces/AssertionStorage.json +0 -229
- dkg/data/interfaces/ContentAssetStorage.json +0 -706
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
- dkg/graph.py +0 -63
- dkg-8.0.0a3.dist-info/RECORD +0 -52
- {dkg-8.0.0a3.dist-info → dkg-8.0.1.dist-info}/LICENSE +0 -0
- {dkg-8.0.0a3.dist-info → dkg-8.0.1.dist-info}/NOTICE +0 -0
|
@@ -14,355 +14,203 @@
|
|
|
14
14
|
"inputs": [
|
|
15
15
|
{
|
|
16
16
|
"internalType": "uint256",
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "id",
|
|
18
18
|
"type": "uint256"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
|
-
"name": "
|
|
21
|
+
"name": "CannotUpdateImmutableKnowledgeCollection",
|
|
22
22
|
"type": "error"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"inputs": [
|
|
26
|
+
{
|
|
27
|
+
"internalType": "uint72",
|
|
28
|
+
"name": "identityId",
|
|
29
|
+
"type": "uint72"
|
|
30
|
+
},
|
|
26
31
|
{
|
|
27
32
|
"internalType": "bytes32",
|
|
28
|
-
"name": "
|
|
33
|
+
"name": "messageHash",
|
|
29
34
|
"type": "bytes32"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"name": "CommitPhaseOngoing",
|
|
33
|
-
"type": "error"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"inputs": [
|
|
35
|
+
},
|
|
37
36
|
{
|
|
38
37
|
"internalType": "bytes32",
|
|
39
|
-
"name": "
|
|
38
|
+
"name": "r",
|
|
40
39
|
"type": "bytes32"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"name": "CommitPhaseSucceeded",
|
|
44
|
-
"type": "error"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"inputs": [
|
|
40
|
+
},
|
|
48
41
|
{
|
|
49
42
|
"internalType": "bytes32",
|
|
50
|
-
"name": "
|
|
43
|
+
"name": "vs",
|
|
51
44
|
"type": "bytes32"
|
|
52
45
|
}
|
|
53
46
|
],
|
|
54
|
-
"name": "
|
|
47
|
+
"name": "InvalidSignature",
|
|
55
48
|
"type": "error"
|
|
56
49
|
},
|
|
57
50
|
{
|
|
58
51
|
"inputs": [
|
|
59
52
|
{
|
|
60
|
-
"internalType": "
|
|
61
|
-
"name": "
|
|
62
|
-
"type": "
|
|
53
|
+
"internalType": "uint96",
|
|
54
|
+
"name": "expectedTokenAMount",
|
|
55
|
+
"type": "uint96"
|
|
63
56
|
},
|
|
64
57
|
{
|
|
65
|
-
"internalType": "
|
|
66
|
-
"name": "
|
|
67
|
-
"type": "
|
|
58
|
+
"internalType": "uint96",
|
|
59
|
+
"name": "tokenAmount",
|
|
60
|
+
"type": "uint96"
|
|
68
61
|
}
|
|
69
62
|
],
|
|
70
|
-
"name": "
|
|
63
|
+
"name": "InvalidTokenAmount",
|
|
71
64
|
"type": "error"
|
|
72
65
|
},
|
|
73
66
|
{
|
|
74
67
|
"inputs": [
|
|
75
68
|
{
|
|
76
|
-
"internalType": "
|
|
77
|
-
"name": "
|
|
78
|
-
"type": "
|
|
69
|
+
"internalType": "uint256",
|
|
70
|
+
"name": "id",
|
|
71
|
+
"type": "uint256"
|
|
79
72
|
},
|
|
80
73
|
{
|
|
81
74
|
"internalType": "uint256",
|
|
82
|
-
"name": "
|
|
75
|
+
"name": "currentEpoch",
|
|
83
76
|
"type": "uint256"
|
|
84
77
|
},
|
|
85
78
|
{
|
|
86
79
|
"internalType": "uint256",
|
|
87
|
-
"name": "
|
|
80
|
+
"name": "endEpoch",
|
|
88
81
|
"type": "uint256"
|
|
89
82
|
}
|
|
90
83
|
],
|
|
91
|
-
"name": "
|
|
84
|
+
"name": "KnowledgeCollectionExpired",
|
|
92
85
|
"type": "error"
|
|
93
86
|
},
|
|
94
87
|
{
|
|
95
88
|
"inputs": [
|
|
96
|
-
{
|
|
97
|
-
"internalType": "address",
|
|
98
|
-
"name": "assetStorage",
|
|
99
|
-
"type": "address"
|
|
100
|
-
},
|
|
101
89
|
{
|
|
102
90
|
"internalType": "uint256",
|
|
103
|
-
"name": "
|
|
91
|
+
"name": "requiredSignatures",
|
|
104
92
|
"type": "uint256"
|
|
105
93
|
},
|
|
106
94
|
{
|
|
107
|
-
"internalType": "
|
|
108
|
-
"name": "
|
|
109
|
-
"type": "
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "receivedSignatures",
|
|
97
|
+
"type": "uint256"
|
|
110
98
|
}
|
|
111
99
|
],
|
|
112
|
-
"name": "
|
|
100
|
+
"name": "MinSignaturesRequirementNotMet",
|
|
113
101
|
"type": "error"
|
|
114
102
|
},
|
|
115
103
|
{
|
|
116
|
-
"anonymous": false,
|
|
117
104
|
"inputs": [
|
|
118
105
|
{
|
|
119
|
-
"indexed": true,
|
|
120
|
-
"internalType": "address",
|
|
121
|
-
"name": "assetContract",
|
|
122
|
-
"type": "address"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"indexed": true,
|
|
126
106
|
"internalType": "uint256",
|
|
127
|
-
"name": "
|
|
107
|
+
"name": "rAmount",
|
|
128
108
|
"type": "uint256"
|
|
129
109
|
},
|
|
130
110
|
{
|
|
131
|
-
"indexed": false,
|
|
132
|
-
"internalType": "uint96",
|
|
133
|
-
"name": "returnedTokenAmount",
|
|
134
|
-
"type": "uint96"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"name": "AssetBurnt",
|
|
138
|
-
"type": "event"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"anonymous": false,
|
|
142
|
-
"inputs": [
|
|
143
|
-
{
|
|
144
|
-
"indexed": true,
|
|
145
|
-
"internalType": "address",
|
|
146
|
-
"name": "assetContract",
|
|
147
|
-
"type": "address"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"indexed": true,
|
|
151
111
|
"internalType": "uint256",
|
|
152
|
-
"name": "
|
|
112
|
+
"name": "vsAmount",
|
|
153
113
|
"type": "uint256"
|
|
154
114
|
},
|
|
155
115
|
{
|
|
156
|
-
"indexed": true,
|
|
157
|
-
"internalType": "bytes32",
|
|
158
|
-
"name": "state",
|
|
159
|
-
"type": "bytes32"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"name": "AssetMinted",
|
|
163
|
-
"type": "event"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"anonymous": false,
|
|
167
|
-
"inputs": [
|
|
168
|
-
{
|
|
169
|
-
"indexed": true,
|
|
170
|
-
"internalType": "address",
|
|
171
|
-
"name": "assetContract",
|
|
172
|
-
"type": "address"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"indexed": true,
|
|
176
116
|
"internalType": "uint256",
|
|
177
|
-
"name": "
|
|
117
|
+
"name": "identityIdsAmount",
|
|
178
118
|
"type": "uint256"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"indexed": false,
|
|
182
|
-
"internalType": "uint96",
|
|
183
|
-
"name": "tokenAmount",
|
|
184
|
-
"type": "uint96"
|
|
185
119
|
}
|
|
186
120
|
],
|
|
187
|
-
"name": "
|
|
188
|
-
"type": "
|
|
121
|
+
"name": "SignaturesSignersMismatch",
|
|
122
|
+
"type": "error"
|
|
189
123
|
},
|
|
190
124
|
{
|
|
191
|
-
"anonymous": false,
|
|
192
125
|
"inputs": [
|
|
193
126
|
{
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"type": "address"
|
|
127
|
+
"internalType": "uint72",
|
|
128
|
+
"name": "identityId",
|
|
129
|
+
"type": "uint72"
|
|
198
130
|
},
|
|
199
131
|
{
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"type": "uint256"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"indexed": true,
|
|
207
|
-
"internalType": "uint256",
|
|
208
|
-
"name": "stateIndex",
|
|
209
|
-
"type": "uint256"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"indexed": false,
|
|
213
|
-
"internalType": "uint96",
|
|
214
|
-
"name": "returnedTokenAmount",
|
|
215
|
-
"type": "uint96"
|
|
132
|
+
"internalType": "address",
|
|
133
|
+
"name": "signer",
|
|
134
|
+
"type": "address"
|
|
216
135
|
}
|
|
217
136
|
],
|
|
218
|
-
"name": "
|
|
219
|
-
"type": "
|
|
137
|
+
"name": "SignerIsNotNodeOperator",
|
|
138
|
+
"type": "error"
|
|
220
139
|
},
|
|
221
140
|
{
|
|
222
|
-
"anonymous": false,
|
|
223
141
|
"inputs": [
|
|
224
142
|
{
|
|
225
|
-
"indexed": true,
|
|
226
143
|
"internalType": "address",
|
|
227
|
-
"name": "
|
|
144
|
+
"name": "tokenAddress",
|
|
228
145
|
"type": "address"
|
|
229
146
|
},
|
|
230
147
|
{
|
|
231
|
-
"indexed": true,
|
|
232
148
|
"internalType": "uint256",
|
|
233
|
-
"name": "
|
|
149
|
+
"name": "allowance",
|
|
234
150
|
"type": "uint256"
|
|
235
151
|
},
|
|
236
152
|
{
|
|
237
|
-
"indexed": true,
|
|
238
153
|
"internalType": "uint256",
|
|
239
|
-
"name": "
|
|
154
|
+
"name": "expected",
|
|
240
155
|
"type": "uint256"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"indexed": false,
|
|
244
|
-
"internalType": "uint96",
|
|
245
|
-
"name": "updateTokenAmount",
|
|
246
|
-
"type": "uint96"
|
|
247
156
|
}
|
|
248
157
|
],
|
|
249
|
-
"name": "
|
|
250
|
-
"type": "
|
|
158
|
+
"name": "TooLowAllowance",
|
|
159
|
+
"type": "error"
|
|
251
160
|
},
|
|
252
161
|
{
|
|
253
|
-
"anonymous": false,
|
|
254
162
|
"inputs": [
|
|
255
163
|
{
|
|
256
|
-
"indexed": true,
|
|
257
164
|
"internalType": "address",
|
|
258
|
-
"name": "
|
|
165
|
+
"name": "tokenAddress",
|
|
259
166
|
"type": "address"
|
|
260
167
|
},
|
|
261
168
|
{
|
|
262
|
-
"indexed": true,
|
|
263
169
|
"internalType": "uint256",
|
|
264
|
-
"name": "
|
|
170
|
+
"name": "balance",
|
|
265
171
|
"type": "uint256"
|
|
266
172
|
},
|
|
267
173
|
{
|
|
268
|
-
"indexed": false,
|
|
269
|
-
"internalType": "uint16",
|
|
270
|
-
"name": "epochsNumber",
|
|
271
|
-
"type": "uint16"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"indexed": false,
|
|
275
|
-
"internalType": "uint96",
|
|
276
|
-
"name": "tokenAmount",
|
|
277
|
-
"type": "uint96"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"name": "AssetStoringPeriodExtended",
|
|
281
|
-
"type": "event"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"anonymous": false,
|
|
285
|
-
"inputs": [
|
|
286
|
-
{
|
|
287
|
-
"indexed": true,
|
|
288
|
-
"internalType": "address",
|
|
289
|
-
"name": "assetContract",
|
|
290
|
-
"type": "address"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"indexed": true,
|
|
294
174
|
"internalType": "uint256",
|
|
295
|
-
"name": "
|
|
175
|
+
"name": "expected",
|
|
296
176
|
"type": "uint256"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"indexed": false,
|
|
300
|
-
"internalType": "uint96",
|
|
301
|
-
"name": "tokenAmount",
|
|
302
|
-
"type": "uint96"
|
|
303
177
|
}
|
|
304
178
|
],
|
|
305
|
-
"name": "
|
|
306
|
-
"type": "
|
|
179
|
+
"name": "TooLowBalance",
|
|
180
|
+
"type": "error"
|
|
307
181
|
},
|
|
308
182
|
{
|
|
309
183
|
"inputs": [],
|
|
310
|
-
"name": "
|
|
311
|
-
"
|
|
312
|
-
{
|
|
313
|
-
"internalType": "contract Assertion",
|
|
314
|
-
"name": "",
|
|
315
|
-
"type": "address"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"stateMutability": "view",
|
|
319
|
-
"type": "function"
|
|
184
|
+
"name": "TransferFailed",
|
|
185
|
+
"type": "error"
|
|
320
186
|
},
|
|
321
187
|
{
|
|
322
188
|
"inputs": [
|
|
323
189
|
{
|
|
324
|
-
"internalType": "
|
|
325
|
-
"name": "
|
|
326
|
-
"type": "
|
|
190
|
+
"internalType": "string",
|
|
191
|
+
"name": "msg",
|
|
192
|
+
"type": "string"
|
|
327
193
|
}
|
|
328
194
|
],
|
|
329
|
-
"name": "
|
|
330
|
-
"
|
|
331
|
-
"stateMutability": "nonpayable",
|
|
332
|
-
"type": "function"
|
|
195
|
+
"name": "UnauthorizedAccess",
|
|
196
|
+
"type": "error"
|
|
333
197
|
},
|
|
334
198
|
{
|
|
335
|
-
"inputs": [
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
"name": "tokenId",
|
|
339
|
-
"type": "uint256"
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
"name": "cancelAssetStateUpdate",
|
|
343
|
-
"outputs": [],
|
|
344
|
-
"stateMutability": "nonpayable",
|
|
345
|
-
"type": "function"
|
|
199
|
+
"inputs": [],
|
|
200
|
+
"name": "ZeroAddressHub",
|
|
201
|
+
"type": "error"
|
|
346
202
|
},
|
|
347
203
|
{
|
|
348
|
-
"inputs": [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
"name": "tokenId",
|
|
352
|
-
"type": "uint256"
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"name": "clearOldCommitsMetadata",
|
|
356
|
-
"outputs": [],
|
|
357
|
-
"stateMutability": "nonpayable",
|
|
358
|
-
"type": "function"
|
|
204
|
+
"inputs": [],
|
|
205
|
+
"name": "ZeroTokenAmount",
|
|
206
|
+
"type": "error"
|
|
359
207
|
},
|
|
360
208
|
{
|
|
361
209
|
"inputs": [],
|
|
362
|
-
"name": "
|
|
210
|
+
"name": "askStorage",
|
|
363
211
|
"outputs": [
|
|
364
212
|
{
|
|
365
|
-
"internalType": "contract
|
|
213
|
+
"internalType": "contract AskStorage",
|
|
366
214
|
"name": "",
|
|
367
215
|
"type": "address"
|
|
368
216
|
}
|
|
@@ -371,137 +219,149 @@
|
|
|
371
219
|
"type": "function"
|
|
372
220
|
},
|
|
373
221
|
{
|
|
374
|
-
"inputs": [
|
|
222
|
+
"inputs": [],
|
|
223
|
+
"name": "chronos",
|
|
224
|
+
"outputs": [
|
|
375
225
|
{
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
"name": "assertionId",
|
|
380
|
-
"type": "bytes32"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"internalType": "uint128",
|
|
384
|
-
"name": "size",
|
|
385
|
-
"type": "uint128"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"internalType": "uint32",
|
|
389
|
-
"name": "triplesNumber",
|
|
390
|
-
"type": "uint32"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"internalType": "uint96",
|
|
394
|
-
"name": "chunksNumber",
|
|
395
|
-
"type": "uint96"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
"internalType": "uint16",
|
|
399
|
-
"name": "epochsNumber",
|
|
400
|
-
"type": "uint16"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"internalType": "uint96",
|
|
404
|
-
"name": "tokenAmount",
|
|
405
|
-
"type": "uint96"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"internalType": "uint8",
|
|
409
|
-
"name": "scoreFunctionId",
|
|
410
|
-
"type": "uint8"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"internalType": "bool",
|
|
414
|
-
"name": "immutable_",
|
|
415
|
-
"type": "bool"
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
"internalType": "struct ContentAssetStructs.AssetInputArgs",
|
|
419
|
-
"name": "args",
|
|
420
|
-
"type": "tuple"
|
|
226
|
+
"internalType": "contract Chronos",
|
|
227
|
+
"name": "",
|
|
228
|
+
"type": "address"
|
|
421
229
|
}
|
|
422
230
|
],
|
|
423
|
-
"
|
|
424
|
-
"outputs": [],
|
|
425
|
-
"stateMutability": "nonpayable",
|
|
231
|
+
"stateMutability": "view",
|
|
426
232
|
"type": "function"
|
|
427
233
|
},
|
|
428
234
|
{
|
|
429
235
|
"inputs": [
|
|
236
|
+
{
|
|
237
|
+
"internalType": "string",
|
|
238
|
+
"name": "publishOperationId",
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
430
241
|
{
|
|
431
242
|
"internalType": "bytes32",
|
|
432
|
-
"name": "
|
|
243
|
+
"name": "merkleRoot",
|
|
433
244
|
"type": "bytes32"
|
|
434
245
|
},
|
|
435
246
|
{
|
|
436
|
-
"internalType": "
|
|
437
|
-
"name": "
|
|
438
|
-
"type": "
|
|
247
|
+
"internalType": "uint256",
|
|
248
|
+
"name": "knowledgeAssetsAmount",
|
|
249
|
+
"type": "uint256"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"internalType": "uint88",
|
|
253
|
+
"name": "byteSize",
|
|
254
|
+
"type": "uint88"
|
|
439
255
|
},
|
|
440
256
|
{
|
|
441
|
-
"internalType": "
|
|
442
|
-
"name": "
|
|
443
|
-
"type": "
|
|
257
|
+
"internalType": "uint40",
|
|
258
|
+
"name": "epochs",
|
|
259
|
+
"type": "uint40"
|
|
444
260
|
},
|
|
445
261
|
{
|
|
446
262
|
"internalType": "uint96",
|
|
447
|
-
"name": "
|
|
263
|
+
"name": "tokenAmount",
|
|
448
264
|
"type": "uint96"
|
|
449
265
|
},
|
|
450
266
|
{
|
|
451
|
-
"internalType": "
|
|
452
|
-
"name": "
|
|
453
|
-
"type": "
|
|
267
|
+
"internalType": "bool",
|
|
268
|
+
"name": "isImmutable",
|
|
269
|
+
"type": "bool"
|
|
454
270
|
},
|
|
455
271
|
{
|
|
456
|
-
"internalType": "
|
|
457
|
-
"name": "
|
|
458
|
-
"type": "
|
|
272
|
+
"internalType": "address",
|
|
273
|
+
"name": "paymaster",
|
|
274
|
+
"type": "address"
|
|
459
275
|
},
|
|
460
276
|
{
|
|
461
|
-
"internalType": "
|
|
462
|
-
"name": "
|
|
463
|
-
"type": "
|
|
277
|
+
"internalType": "uint72",
|
|
278
|
+
"name": "publisherNodeIdentityId",
|
|
279
|
+
"type": "uint72"
|
|
464
280
|
},
|
|
465
281
|
{
|
|
466
|
-
"internalType": "
|
|
467
|
-
"name": "
|
|
468
|
-
"type": "
|
|
282
|
+
"internalType": "bytes32",
|
|
283
|
+
"name": "publisherNodeR",
|
|
284
|
+
"type": "bytes32"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"internalType": "bytes32",
|
|
288
|
+
"name": "publisherNodeVS",
|
|
289
|
+
"type": "bytes32"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"internalType": "uint72[]",
|
|
293
|
+
"name": "identityIds",
|
|
294
|
+
"type": "uint72[]"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"internalType": "bytes32[]",
|
|
298
|
+
"name": "r",
|
|
299
|
+
"type": "bytes32[]"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"internalType": "bytes32[]",
|
|
303
|
+
"name": "vs",
|
|
304
|
+
"type": "bytes32[]"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"name": "createKnowledgeCollection",
|
|
308
|
+
"outputs": [
|
|
309
|
+
{
|
|
310
|
+
"internalType": "uint256",
|
|
311
|
+
"name": "",
|
|
312
|
+
"type": "uint256"
|
|
469
313
|
}
|
|
470
314
|
],
|
|
471
|
-
"name": "createAssetWithVariables",
|
|
472
|
-
"outputs": [],
|
|
473
315
|
"stateMutability": "nonpayable",
|
|
474
316
|
"type": "function"
|
|
475
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"inputs": [],
|
|
320
|
+
"name": "epochStorage",
|
|
321
|
+
"outputs": [
|
|
322
|
+
{
|
|
323
|
+
"internalType": "contract EpochStorage",
|
|
324
|
+
"name": "",
|
|
325
|
+
"type": "address"
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"stateMutability": "view",
|
|
329
|
+
"type": "function"
|
|
330
|
+
},
|
|
476
331
|
{
|
|
477
332
|
"inputs": [
|
|
478
333
|
{
|
|
479
334
|
"internalType": "uint256",
|
|
480
|
-
"name": "
|
|
335
|
+
"name": "id",
|
|
481
336
|
"type": "uint256"
|
|
482
337
|
},
|
|
483
338
|
{
|
|
484
|
-
"internalType": "
|
|
485
|
-
"name": "
|
|
486
|
-
"type": "
|
|
339
|
+
"internalType": "uint40",
|
|
340
|
+
"name": "epochs",
|
|
341
|
+
"type": "uint40"
|
|
487
342
|
},
|
|
488
343
|
{
|
|
489
344
|
"internalType": "uint96",
|
|
490
345
|
"name": "tokenAmount",
|
|
491
346
|
"type": "uint96"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"internalType": "address",
|
|
350
|
+
"name": "paymaster",
|
|
351
|
+
"type": "address"
|
|
492
352
|
}
|
|
493
353
|
],
|
|
494
|
-
"name": "
|
|
354
|
+
"name": "extendKnowledgeCollectionLifetime",
|
|
495
355
|
"outputs": [],
|
|
496
356
|
"stateMutability": "nonpayable",
|
|
497
357
|
"type": "function"
|
|
498
358
|
},
|
|
499
359
|
{
|
|
500
360
|
"inputs": [],
|
|
501
|
-
"name": "
|
|
361
|
+
"name": "hub",
|
|
502
362
|
"outputs": [
|
|
503
363
|
{
|
|
504
|
-
"internalType": "contract
|
|
364
|
+
"internalType": "contract Hub",
|
|
505
365
|
"name": "",
|
|
506
366
|
"type": "address"
|
|
507
367
|
}
|
|
@@ -511,10 +371,10 @@
|
|
|
511
371
|
},
|
|
512
372
|
{
|
|
513
373
|
"inputs": [],
|
|
514
|
-
"name": "
|
|
374
|
+
"name": "identityStorage",
|
|
515
375
|
"outputs": [
|
|
516
376
|
{
|
|
517
|
-
"internalType": "contract
|
|
377
|
+
"internalType": "contract IdentityStorage",
|
|
518
378
|
"name": "",
|
|
519
379
|
"type": "address"
|
|
520
380
|
}
|
|
@@ -526,34 +386,21 @@
|
|
|
526
386
|
"inputs": [
|
|
527
387
|
{
|
|
528
388
|
"internalType": "uint256",
|
|
529
|
-
"name": "
|
|
389
|
+
"name": "id",
|
|
530
390
|
"type": "uint256"
|
|
531
391
|
},
|
|
532
392
|
{
|
|
533
393
|
"internalType": "uint96",
|
|
534
394
|
"name": "tokenAmount",
|
|
535
395
|
"type": "uint96"
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
"name": "increaseAssetTokenAmount",
|
|
539
|
-
"outputs": [],
|
|
540
|
-
"stateMutability": "nonpayable",
|
|
541
|
-
"type": "function"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"inputs": [
|
|
545
|
-
{
|
|
546
|
-
"internalType": "uint256",
|
|
547
|
-
"name": "tokenId",
|
|
548
|
-
"type": "uint256"
|
|
549
396
|
},
|
|
550
397
|
{
|
|
551
|
-
"internalType": "
|
|
552
|
-
"name": "
|
|
553
|
-
"type": "
|
|
398
|
+
"internalType": "address",
|
|
399
|
+
"name": "paymaster",
|
|
400
|
+
"type": "address"
|
|
554
401
|
}
|
|
555
402
|
],
|
|
556
|
-
"name": "
|
|
403
|
+
"name": "increaseKnowledgeCollectionTokenAmount",
|
|
557
404
|
"outputs": [],
|
|
558
405
|
"stateMutability": "nonpayable",
|
|
559
406
|
"type": "function"
|
|
@@ -565,6 +412,19 @@
|
|
|
565
412
|
"stateMutability": "nonpayable",
|
|
566
413
|
"type": "function"
|
|
567
414
|
},
|
|
415
|
+
{
|
|
416
|
+
"inputs": [],
|
|
417
|
+
"name": "knowledgeCollectionStorage",
|
|
418
|
+
"outputs": [
|
|
419
|
+
{
|
|
420
|
+
"internalType": "contract KnowledgeCollectionStorage",
|
|
421
|
+
"name": "",
|
|
422
|
+
"type": "address"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"stateMutability": "view",
|
|
426
|
+
"type": "function"
|
|
427
|
+
},
|
|
568
428
|
{
|
|
569
429
|
"inputs": [],
|
|
570
430
|
"name": "name",
|
|
@@ -593,10 +453,10 @@
|
|
|
593
453
|
},
|
|
594
454
|
{
|
|
595
455
|
"inputs": [],
|
|
596
|
-
"name": "
|
|
456
|
+
"name": "paymasterManager",
|
|
597
457
|
"outputs": [
|
|
598
458
|
{
|
|
599
|
-
"internalType": "contract
|
|
459
|
+
"internalType": "contract PaymasterManager",
|
|
600
460
|
"name": "",
|
|
601
461
|
"type": "address"
|
|
602
462
|
}
|
|
@@ -604,12 +464,25 @@
|
|
|
604
464
|
"stateMutability": "view",
|
|
605
465
|
"type": "function"
|
|
606
466
|
},
|
|
467
|
+
{
|
|
468
|
+
"inputs": [
|
|
469
|
+
{
|
|
470
|
+
"internalType": "bool",
|
|
471
|
+
"name": "_status",
|
|
472
|
+
"type": "bool"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"name": "setStatus",
|
|
476
|
+
"outputs": [],
|
|
477
|
+
"stateMutability": "nonpayable",
|
|
478
|
+
"type": "function"
|
|
479
|
+
},
|
|
607
480
|
{
|
|
608
481
|
"inputs": [],
|
|
609
|
-
"name": "
|
|
482
|
+
"name": "shardingTableStorage",
|
|
610
483
|
"outputs": [
|
|
611
484
|
{
|
|
612
|
-
"internalType": "contract
|
|
485
|
+
"internalType": "contract ShardingTableStorage",
|
|
613
486
|
"name": "",
|
|
614
487
|
"type": "address"
|
|
615
488
|
}
|
|
@@ -618,24 +491,24 @@
|
|
|
618
491
|
"type": "function"
|
|
619
492
|
},
|
|
620
493
|
{
|
|
621
|
-
"inputs": [
|
|
494
|
+
"inputs": [],
|
|
495
|
+
"name": "status",
|
|
496
|
+
"outputs": [
|
|
622
497
|
{
|
|
623
498
|
"internalType": "bool",
|
|
624
|
-
"name": "
|
|
499
|
+
"name": "",
|
|
625
500
|
"type": "bool"
|
|
626
501
|
}
|
|
627
502
|
],
|
|
628
|
-
"
|
|
629
|
-
"outputs": [],
|
|
630
|
-
"stateMutability": "nonpayable",
|
|
503
|
+
"stateMutability": "view",
|
|
631
504
|
"type": "function"
|
|
632
505
|
},
|
|
633
506
|
{
|
|
634
507
|
"inputs": [],
|
|
635
|
-
"name": "
|
|
508
|
+
"name": "tokenContract",
|
|
636
509
|
"outputs": [
|
|
637
510
|
{
|
|
638
|
-
"internalType": "contract
|
|
511
|
+
"internalType": "contract IERC20",
|
|
639
512
|
"name": "",
|
|
640
513
|
"type": "address"
|
|
641
514
|
}
|
|
@@ -647,36 +520,76 @@
|
|
|
647
520
|
"inputs": [
|
|
648
521
|
{
|
|
649
522
|
"internalType": "uint256",
|
|
650
|
-
"name": "
|
|
523
|
+
"name": "id",
|
|
651
524
|
"type": "uint256"
|
|
652
525
|
},
|
|
526
|
+
{
|
|
527
|
+
"internalType": "string",
|
|
528
|
+
"name": "updateOperationId",
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
653
531
|
{
|
|
654
532
|
"internalType": "bytes32",
|
|
655
|
-
"name": "
|
|
533
|
+
"name": "merkleRoot",
|
|
656
534
|
"type": "bytes32"
|
|
657
535
|
},
|
|
658
536
|
{
|
|
659
|
-
"internalType": "
|
|
660
|
-
"name": "
|
|
661
|
-
"type": "
|
|
537
|
+
"internalType": "uint256",
|
|
538
|
+
"name": "mintKnowledgeAssetsAmount",
|
|
539
|
+
"type": "uint256"
|
|
662
540
|
},
|
|
663
541
|
{
|
|
664
|
-
"internalType": "
|
|
665
|
-
"name": "
|
|
666
|
-
"type": "
|
|
542
|
+
"internalType": "uint256[]",
|
|
543
|
+
"name": "knowledgeAssetsToBurn",
|
|
544
|
+
"type": "uint256[]"
|
|
667
545
|
},
|
|
668
546
|
{
|
|
669
|
-
"internalType": "
|
|
670
|
-
"name": "
|
|
671
|
-
"type": "
|
|
547
|
+
"internalType": "uint88",
|
|
548
|
+
"name": "byteSize",
|
|
549
|
+
"type": "uint88"
|
|
672
550
|
},
|
|
673
551
|
{
|
|
674
552
|
"internalType": "uint96",
|
|
675
|
-
"name": "
|
|
553
|
+
"name": "tokenAmount",
|
|
676
554
|
"type": "uint96"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"internalType": "address",
|
|
558
|
+
"name": "paymaster",
|
|
559
|
+
"type": "address"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"internalType": "uint72",
|
|
563
|
+
"name": "publisherNodeIdentityId",
|
|
564
|
+
"type": "uint72"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"internalType": "bytes32",
|
|
568
|
+
"name": "publisherNodeR",
|
|
569
|
+
"type": "bytes32"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"internalType": "bytes32",
|
|
573
|
+
"name": "publisherNodeVS",
|
|
574
|
+
"type": "bytes32"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"internalType": "uint72[]",
|
|
578
|
+
"name": "identityIds",
|
|
579
|
+
"type": "uint72[]"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"internalType": "bytes32[]",
|
|
583
|
+
"name": "r",
|
|
584
|
+
"type": "bytes32[]"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"internalType": "bytes32[]",
|
|
588
|
+
"name": "vs",
|
|
589
|
+
"type": "bytes32[]"
|
|
677
590
|
}
|
|
678
591
|
],
|
|
679
|
-
"name": "
|
|
592
|
+
"name": "updateKnowledgeCollection",
|
|
680
593
|
"outputs": [],
|
|
681
594
|
"stateMutability": "nonpayable",
|
|
682
595
|
"type": "function"
|