dkg 8.0.0a2__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 +60 -13
- dkg/utils/rdf.py +9 -3
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/METADATA +28 -19
- dkg-8.0.1.dist-info/RECORD +82 -0
- {dkg-8.0.0a2.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.0a2.dist-info/RECORD +0 -52
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/LICENSE +0 -0
- {dkg-8.0.0a2.dist-info → dkg-8.0.1.dist-info}/NOTICE +0 -0
dkg/data/interfaces/Hub.json
CHANGED
@@ -1,4 +1,118 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"inputs": [],
|
4
|
+
"stateMutability": "nonpayable",
|
5
|
+
"type": "constructor"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"inputs": [
|
9
|
+
{
|
10
|
+
"internalType": "address",
|
11
|
+
"name": "addr",
|
12
|
+
"type": "address"
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"name": "AddressAlreadyInSet",
|
16
|
+
"type": "error"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"inputs": [
|
20
|
+
{
|
21
|
+
"internalType": "address",
|
22
|
+
"name": "addr",
|
23
|
+
"type": "address"
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"name": "AddressDoesNotExist",
|
27
|
+
"type": "error"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"inputs": [
|
31
|
+
{
|
32
|
+
"internalType": "string",
|
33
|
+
"name": "name",
|
34
|
+
"type": "string"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"name": "ContractAlreadyExists",
|
38
|
+
"type": "error"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"inputs": [
|
42
|
+
{
|
43
|
+
"internalType": "string",
|
44
|
+
"name": "name",
|
45
|
+
"type": "string"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"name": "ContractDoesNotExist",
|
49
|
+
"type": "error"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"inputs": [
|
53
|
+
{
|
54
|
+
"internalType": "string",
|
55
|
+
"name": "contractName",
|
56
|
+
"type": "string"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"name": "ContractNotRegistered",
|
60
|
+
"type": "error"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [],
|
64
|
+
"name": "EmptyName",
|
65
|
+
"type": "error"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"inputs": [
|
69
|
+
{
|
70
|
+
"internalType": "address",
|
71
|
+
"name": "addr",
|
72
|
+
"type": "address"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"name": "InvalidTargetContract",
|
76
|
+
"type": "error"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"inputs": [
|
80
|
+
{
|
81
|
+
"internalType": "address",
|
82
|
+
"name": "owner",
|
83
|
+
"type": "address"
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"name": "OwnableInvalidOwner",
|
87
|
+
"type": "error"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"inputs": [
|
91
|
+
{
|
92
|
+
"internalType": "address",
|
93
|
+
"name": "account",
|
94
|
+
"type": "address"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"name": "OwnableUnauthorizedAccount",
|
98
|
+
"type": "error"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"inputs": [
|
102
|
+
{
|
103
|
+
"internalType": "string",
|
104
|
+
"name": "msg",
|
105
|
+
"type": "string"
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"name": "UnauthorizedAccess",
|
109
|
+
"type": "error"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"inputs": [],
|
113
|
+
"name": "ZeroAddress",
|
114
|
+
"type": "error"
|
115
|
+
},
|
2
116
|
{
|
3
117
|
"anonymous": false,
|
4
118
|
"inputs": [
|
@@ -18,6 +132,25 @@
|
|
18
132
|
"name": "AssetStorageChanged",
|
19
133
|
"type": "event"
|
20
134
|
},
|
135
|
+
{
|
136
|
+
"anonymous": false,
|
137
|
+
"inputs": [
|
138
|
+
{
|
139
|
+
"indexed": false,
|
140
|
+
"internalType": "string",
|
141
|
+
"name": "contractName",
|
142
|
+
"type": "string"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"indexed": false,
|
146
|
+
"internalType": "address",
|
147
|
+
"name": "contractAddress",
|
148
|
+
"type": "address"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"name": "AssetStorageRemoved",
|
152
|
+
"type": "event"
|
153
|
+
},
|
21
154
|
{
|
22
155
|
"anonymous": false,
|
23
156
|
"inputs": [
|
@@ -37,6 +170,25 @@
|
|
37
170
|
"name": "ContractChanged",
|
38
171
|
"type": "event"
|
39
172
|
},
|
173
|
+
{
|
174
|
+
"anonymous": false,
|
175
|
+
"inputs": [
|
176
|
+
{
|
177
|
+
"indexed": false,
|
178
|
+
"internalType": "string",
|
179
|
+
"name": "contractName",
|
180
|
+
"type": "string"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"indexed": false,
|
184
|
+
"internalType": "address",
|
185
|
+
"name": "contractAddress",
|
186
|
+
"type": "address"
|
187
|
+
}
|
188
|
+
],
|
189
|
+
"name": "ContractRemoved",
|
190
|
+
"type": "event"
|
191
|
+
},
|
40
192
|
{
|
41
193
|
"anonymous": false,
|
42
194
|
"inputs": [
|
@@ -94,6 +246,30 @@
|
|
94
246
|
"name": "OwnershipTransferred",
|
95
247
|
"type": "event"
|
96
248
|
},
|
249
|
+
{
|
250
|
+
"inputs": [
|
251
|
+
{
|
252
|
+
"internalType": "address",
|
253
|
+
"name": "target",
|
254
|
+
"type": "address"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"internalType": "bytes",
|
258
|
+
"name": "data",
|
259
|
+
"type": "bytes"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"name": "forwardCall",
|
263
|
+
"outputs": [
|
264
|
+
{
|
265
|
+
"internalType": "bytes",
|
266
|
+
"name": "",
|
267
|
+
"type": "bytes"
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"stateMutability": "nonpayable",
|
271
|
+
"type": "function"
|
272
|
+
},
|
97
273
|
{
|
98
274
|
"inputs": [],
|
99
275
|
"name": "getAllAssetStorages",
|
@@ -111,7 +287,7 @@
|
|
111
287
|
"type": "address"
|
112
288
|
}
|
113
289
|
],
|
114
|
-
"internalType": "struct
|
290
|
+
"internalType": "struct UnorderedNamedContractDynamicSet.Contract[]",
|
115
291
|
"name": "",
|
116
292
|
"type": "tuple[]"
|
117
293
|
}
|
@@ -136,7 +312,7 @@
|
|
136
312
|
"type": "address"
|
137
313
|
}
|
138
314
|
],
|
139
|
-
"internalType": "struct
|
315
|
+
"internalType": "struct UnorderedNamedContractDynamicSet.Contract[]",
|
140
316
|
"name": "",
|
141
317
|
"type": "tuple[]"
|
142
318
|
}
|
@@ -284,6 +460,58 @@
|
|
284
460
|
"stateMutability": "view",
|
285
461
|
"type": "function"
|
286
462
|
},
|
463
|
+
{
|
464
|
+
"inputs": [
|
465
|
+
{
|
466
|
+
"internalType": "address",
|
467
|
+
"name": "assetStorageAddress",
|
468
|
+
"type": "address"
|
469
|
+
}
|
470
|
+
],
|
471
|
+
"name": "removeAssetStorageByAddress",
|
472
|
+
"outputs": [],
|
473
|
+
"stateMutability": "nonpayable",
|
474
|
+
"type": "function"
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"inputs": [
|
478
|
+
{
|
479
|
+
"internalType": "string",
|
480
|
+
"name": "assetStorageName",
|
481
|
+
"type": "string"
|
482
|
+
}
|
483
|
+
],
|
484
|
+
"name": "removeAssetStorageByName",
|
485
|
+
"outputs": [],
|
486
|
+
"stateMutability": "nonpayable",
|
487
|
+
"type": "function"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"inputs": [
|
491
|
+
{
|
492
|
+
"internalType": "address",
|
493
|
+
"name": "contractAddress",
|
494
|
+
"type": "address"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"name": "removeContractByAddress",
|
498
|
+
"outputs": [],
|
499
|
+
"stateMutability": "nonpayable",
|
500
|
+
"type": "function"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"inputs": [
|
504
|
+
{
|
505
|
+
"internalType": "string",
|
506
|
+
"name": "contractName",
|
507
|
+
"type": "string"
|
508
|
+
}
|
509
|
+
],
|
510
|
+
"name": "removeContractByName",
|
511
|
+
"outputs": [],
|
512
|
+
"stateMutability": "nonpayable",
|
513
|
+
"type": "function"
|
514
|
+
},
|
287
515
|
{
|
288
516
|
"inputs": [],
|
289
517
|
"name": "renounceOwnership",
|
@@ -291,6 +519,70 @@
|
|
291
519
|
"stateMutability": "nonpayable",
|
292
520
|
"type": "function"
|
293
521
|
},
|
522
|
+
{
|
523
|
+
"inputs": [
|
524
|
+
{
|
525
|
+
"components": [
|
526
|
+
{
|
527
|
+
"internalType": "string",
|
528
|
+
"name": "name",
|
529
|
+
"type": "string"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"internalType": "address",
|
533
|
+
"name": "addr",
|
534
|
+
"type": "address"
|
535
|
+
}
|
536
|
+
],
|
537
|
+
"internalType": "struct HubLib.Contract[]",
|
538
|
+
"name": "newContracts",
|
539
|
+
"type": "tuple[]"
|
540
|
+
},
|
541
|
+
{
|
542
|
+
"components": [
|
543
|
+
{
|
544
|
+
"internalType": "string",
|
545
|
+
"name": "name",
|
546
|
+
"type": "string"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"internalType": "address",
|
550
|
+
"name": "addr",
|
551
|
+
"type": "address"
|
552
|
+
}
|
553
|
+
],
|
554
|
+
"internalType": "struct HubLib.Contract[]",
|
555
|
+
"name": "newAssetStorageContracts",
|
556
|
+
"type": "tuple[]"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"internalType": "address[]",
|
560
|
+
"name": "contractsToReinitialize",
|
561
|
+
"type": "address[]"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"components": [
|
565
|
+
{
|
566
|
+
"internalType": "string",
|
567
|
+
"name": "contractName",
|
568
|
+
"type": "string"
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"internalType": "bytes[]",
|
572
|
+
"name": "encodedData",
|
573
|
+
"type": "bytes[]"
|
574
|
+
}
|
575
|
+
],
|
576
|
+
"internalType": "struct HubLib.ForwardCallInputArgs[]",
|
577
|
+
"name": "forwardCallsData",
|
578
|
+
"type": "tuple[]"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
"name": "setAndReinitializeContracts",
|
582
|
+
"outputs": [],
|
583
|
+
"stateMutability": "nonpayable",
|
584
|
+
"type": "function"
|
585
|
+
},
|
294
586
|
{
|
295
587
|
"inputs": [
|
296
588
|
{
|
@@ -10,6 +10,38 @@
|
|
10
10
|
"stateMutability": "nonpayable",
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
|
+
{
|
14
|
+
"inputs": [
|
15
|
+
{
|
16
|
+
"internalType": "uint256",
|
17
|
+
"name": "index",
|
18
|
+
"type": "uint256"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"internalType": "uint256",
|
22
|
+
"name": "length",
|
23
|
+
"type": "uint256"
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"name": "IndexOutOfBounds",
|
27
|
+
"type": "error"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"inputs": [
|
31
|
+
{
|
32
|
+
"internalType": "string",
|
33
|
+
"name": "msg",
|
34
|
+
"type": "string"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"name": "UnauthorizedAccess",
|
38
|
+
"type": "error"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"inputs": [],
|
42
|
+
"name": "ZeroAddressHub",
|
43
|
+
"type": "error"
|
44
|
+
},
|
13
45
|
{
|
14
46
|
"anonymous": false,
|
15
47
|
"inputs": [
|
@@ -264,6 +296,19 @@
|
|
264
296
|
"stateMutability": "view",
|
265
297
|
"type": "function"
|
266
298
|
},
|
299
|
+
{
|
300
|
+
"inputs": [],
|
301
|
+
"name": "lastIdentityId",
|
302
|
+
"outputs": [
|
303
|
+
{
|
304
|
+
"internalType": "uint72",
|
305
|
+
"name": "",
|
306
|
+
"type": "uint72"
|
307
|
+
}
|
308
|
+
],
|
309
|
+
"stateMutability": "view",
|
310
|
+
"type": "function"
|
311
|
+
},
|
267
312
|
{
|
268
313
|
"inputs": [],
|
269
314
|
"name": "name",
|
@@ -308,6 +353,19 @@
|
|
308
353
|
"stateMutability": "nonpayable",
|
309
354
|
"type": "function"
|
310
355
|
},
|
356
|
+
{
|
357
|
+
"inputs": [
|
358
|
+
{
|
359
|
+
"internalType": "uint72",
|
360
|
+
"name": "identityId",
|
361
|
+
"type": "uint72"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"name": "setLastIdentityId",
|
365
|
+
"outputs": [],
|
366
|
+
"stateMutability": "nonpayable",
|
367
|
+
"type": "function"
|
368
|
+
},
|
311
369
|
{
|
312
370
|
"inputs": [
|
313
371
|
{
|