dkg 1.1.1__py3-none-any.whl → 8.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 +589 -683
- dkg/constants.py +106 -45
- 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 +400 -0
- dkg/data/interfaces/KnowledgeCollection.json +610 -0
- dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
- dkg/data/interfaces/Paranet.json +656 -135
- 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 +844 -36
- dkg/data/interfaces/Token.json +146 -17
- dkg/dataclasses.py +11 -1
- dkg/exceptions.py +1 -0
- dkg/graph.py +55 -24
- dkg/main.py +18 -2
- dkg/network.py +2 -2
- dkg/node.py +7 -0
- dkg/paranet.py +336 -33
- dkg/providers/blockchain.py +23 -24
- dkg/providers/node_http.py +11 -9
- dkg/services/input_service.py +183 -0
- dkg/services/node_service.py +164 -0
- dkg/types/__init__.py +15 -3
- dkg/types/general.py +15 -8
- dkg/utils/blockchain_request.py +189 -64
- dkg/utils/knowledge_asset_tools.py +5 -0
- dkg/utils/knowledge_collection_tools.py +236 -0
- dkg/utils/merkle.py +1 -1
- dkg/utils/node_request.py +33 -33
- dkg/utils/rdf.py +10 -6
- dkg/utils/string_transformations.py +1 -0
- {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/METADATA +36 -26
- dkg-8.0.0.dist-info/RECORD +56 -0
- {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/WHEEL +1 -1
- dkg/data/interfaces/AssertionStorage.json +0 -229
- dkg/data/interfaces/ContentAsset.json +0 -801
- dkg/data/interfaces/ContentAssetStorage.json +0 -782
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
- dkg/data/interfaces/UnfinalizedStateStorage.json +0 -171
- dkg-1.1.1.dist-info/RECORD +0 -52
- {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/LICENSE +0 -0
- {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/NOTICE +0 -0
@@ -10,6 +10,76 @@
|
|
10
10
|
"stateMutability": "nonpayable",
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
|
+
{
|
14
|
+
"inputs": [
|
15
|
+
{
|
16
|
+
"internalType": "address",
|
17
|
+
"name": "addr",
|
18
|
+
"type": "address"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"name": "AddressAlreadyInSet",
|
22
|
+
"type": "error"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"inputs": [
|
26
|
+
{
|
27
|
+
"internalType": "address",
|
28
|
+
"name": "addr",
|
29
|
+
"type": "address"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"name": "AddressDoesNotExist",
|
33
|
+
"type": "error"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"inputs": [
|
37
|
+
{
|
38
|
+
"internalType": "string",
|
39
|
+
"name": "name",
|
40
|
+
"type": "string"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"name": "ContractAlreadyExists",
|
44
|
+
"type": "error"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"inputs": [
|
48
|
+
{
|
49
|
+
"internalType": "string",
|
50
|
+
"name": "name",
|
51
|
+
"type": "string"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"name": "ContractDoesNotExist",
|
55
|
+
"type": "error"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"inputs": [],
|
59
|
+
"name": "EmptyName",
|
60
|
+
"type": "error"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [
|
64
|
+
{
|
65
|
+
"internalType": "string",
|
66
|
+
"name": "msg",
|
67
|
+
"type": "string"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "UnauthorizedAccess",
|
71
|
+
"type": "error"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"inputs": [],
|
75
|
+
"name": "ZeroAddress",
|
76
|
+
"type": "error"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"inputs": [],
|
80
|
+
"name": "ZeroAddressHub",
|
81
|
+
"type": "error"
|
82
|
+
},
|
13
83
|
{
|
14
84
|
"inputs": [
|
15
85
|
{
|
@@ -28,6 +98,29 @@
|
|
28
98
|
"stateMutability": "nonpayable",
|
29
99
|
"type": "function"
|
30
100
|
},
|
101
|
+
{
|
102
|
+
"inputs": [
|
103
|
+
{
|
104
|
+
"internalType": "bytes32",
|
105
|
+
"name": "paranetId",
|
106
|
+
"type": "bytes32"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"internalType": "uint72",
|
110
|
+
"name": "identityId",
|
111
|
+
"type": "uint72"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"internalType": "bytes",
|
115
|
+
"name": "nodeId",
|
116
|
+
"type": "bytes"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"name": "addCuratedNode",
|
120
|
+
"outputs": [],
|
121
|
+
"stateMutability": "nonpayable",
|
122
|
+
"type": "function"
|
123
|
+
},
|
31
124
|
{
|
32
125
|
"inputs": [
|
33
126
|
{
|
@@ -64,6 +157,52 @@
|
|
64
157
|
"stateMutability": "nonpayable",
|
65
158
|
"type": "function"
|
66
159
|
},
|
160
|
+
{
|
161
|
+
"inputs": [
|
162
|
+
{
|
163
|
+
"internalType": "bytes32",
|
164
|
+
"name": "paranetId",
|
165
|
+
"type": "bytes32"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"internalType": "address",
|
169
|
+
"name": "miner",
|
170
|
+
"type": "address"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
174
|
+
"name": "status",
|
175
|
+
"type": "uint8"
|
176
|
+
}
|
177
|
+
],
|
178
|
+
"name": "addKnowledgeMinerAccessRequest",
|
179
|
+
"outputs": [],
|
180
|
+
"stateMutability": "nonpayable",
|
181
|
+
"type": "function"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [
|
185
|
+
{
|
186
|
+
"internalType": "bytes32",
|
187
|
+
"name": "paranetId",
|
188
|
+
"type": "bytes32"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"internalType": "uint72",
|
192
|
+
"name": "identityId",
|
193
|
+
"type": "uint72"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
197
|
+
"name": "status",
|
198
|
+
"type": "uint8"
|
199
|
+
}
|
200
|
+
],
|
201
|
+
"name": "addNodeJoinRequest",
|
202
|
+
"outputs": [],
|
203
|
+
"stateMutability": "nonpayable",
|
204
|
+
"type": "function"
|
205
|
+
},
|
67
206
|
{
|
68
207
|
"inputs": [
|
69
208
|
{
|
@@ -118,7 +257,7 @@
|
|
118
257
|
"type": "address"
|
119
258
|
}
|
120
259
|
],
|
121
|
-
"internalType": "struct
|
260
|
+
"internalType": "struct UnorderedNamedContractDynamicSet.Contract[]",
|
122
261
|
"name": "",
|
123
262
|
"type": "tuple[]"
|
124
263
|
}
|
@@ -145,6 +284,56 @@
|
|
145
284
|
"stateMutability": "view",
|
146
285
|
"type": "function"
|
147
286
|
},
|
287
|
+
{
|
288
|
+
"inputs": [
|
289
|
+
{
|
290
|
+
"internalType": "bytes32",
|
291
|
+
"name": "paranetId",
|
292
|
+
"type": "bytes32"
|
293
|
+
}
|
294
|
+
],
|
295
|
+
"name": "getCuratedNodes",
|
296
|
+
"outputs": [
|
297
|
+
{
|
298
|
+
"components": [
|
299
|
+
{
|
300
|
+
"internalType": "uint72",
|
301
|
+
"name": "identityId",
|
302
|
+
"type": "uint72"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "bytes",
|
306
|
+
"name": "nodeId",
|
307
|
+
"type": "bytes"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"internalType": "struct ParanetLib.Node[]",
|
311
|
+
"name": "",
|
312
|
+
"type": "tuple[]"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"stateMutability": "view",
|
316
|
+
"type": "function"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"inputs": [
|
320
|
+
{
|
321
|
+
"internalType": "bytes32",
|
322
|
+
"name": "paranetId",
|
323
|
+
"type": "bytes32"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"name": "getCuratedNodesCount",
|
327
|
+
"outputs": [
|
328
|
+
{
|
329
|
+
"internalType": "uint256",
|
330
|
+
"name": "",
|
331
|
+
"type": "uint256"
|
332
|
+
}
|
333
|
+
],
|
334
|
+
"stateMutability": "view",
|
335
|
+
"type": "function"
|
336
|
+
},
|
148
337
|
{
|
149
338
|
"inputs": [
|
150
339
|
{
|
@@ -196,12 +385,359 @@
|
|
196
385
|
"type": "bytes32"
|
197
386
|
}
|
198
387
|
],
|
199
|
-
"name": "getKnowledgeAssets",
|
388
|
+
"name": "getKnowledgeAssets",
|
389
|
+
"outputs": [
|
390
|
+
{
|
391
|
+
"internalType": "bytes32[]",
|
392
|
+
"name": "",
|
393
|
+
"type": "bytes32[]"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"stateMutability": "view",
|
397
|
+
"type": "function"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"inputs": [
|
401
|
+
{
|
402
|
+
"internalType": "bytes32",
|
403
|
+
"name": "paranetId",
|
404
|
+
"type": "bytes32"
|
405
|
+
}
|
406
|
+
],
|
407
|
+
"name": "getKnowledgeAssetsAccessPolicy",
|
408
|
+
"outputs": [
|
409
|
+
{
|
410
|
+
"internalType": "enum ParanetLib.KnowledgeAssetsAccessPolicy",
|
411
|
+
"name": "",
|
412
|
+
"type": "uint8"
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"stateMutability": "view",
|
416
|
+
"type": "function"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"inputs": [
|
420
|
+
{
|
421
|
+
"internalType": "bytes32",
|
422
|
+
"name": "paranetId",
|
423
|
+
"type": "bytes32"
|
424
|
+
}
|
425
|
+
],
|
426
|
+
"name": "getKnowledgeAssetsCount",
|
427
|
+
"outputs": [
|
428
|
+
{
|
429
|
+
"internalType": "uint256",
|
430
|
+
"name": "",
|
431
|
+
"type": "uint256"
|
432
|
+
}
|
433
|
+
],
|
434
|
+
"stateMutability": "view",
|
435
|
+
"type": "function"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"inputs": [
|
439
|
+
{
|
440
|
+
"internalType": "bytes32",
|
441
|
+
"name": "paranetId",
|
442
|
+
"type": "bytes32"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"internalType": "bytes32",
|
446
|
+
"name": "knowledgeAssetId",
|
447
|
+
"type": "bytes32"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"internalType": "uint256",
|
451
|
+
"name": "limit",
|
452
|
+
"type": "uint256"
|
453
|
+
}
|
454
|
+
],
|
455
|
+
"name": "getKnowledgeAssetsStartingFromKnowledgeAssetId",
|
456
|
+
"outputs": [
|
457
|
+
{
|
458
|
+
"internalType": "bytes32[]",
|
459
|
+
"name": "",
|
460
|
+
"type": "bytes32[]"
|
461
|
+
}
|
462
|
+
],
|
463
|
+
"stateMutability": "view",
|
464
|
+
"type": "function"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"inputs": [
|
468
|
+
{
|
469
|
+
"internalType": "bytes32",
|
470
|
+
"name": "paranetId",
|
471
|
+
"type": "bytes32"
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"internalType": "uint256",
|
475
|
+
"name": "offset",
|
476
|
+
"type": "uint256"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"internalType": "uint256",
|
480
|
+
"name": "limit",
|
481
|
+
"type": "uint256"
|
482
|
+
}
|
483
|
+
],
|
484
|
+
"name": "getKnowledgeAssetsWithPagination",
|
485
|
+
"outputs": [
|
486
|
+
{
|
487
|
+
"internalType": "bytes32[]",
|
488
|
+
"name": "",
|
489
|
+
"type": "bytes32[]"
|
490
|
+
}
|
491
|
+
],
|
492
|
+
"stateMutability": "view",
|
493
|
+
"type": "function"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"inputs": [
|
497
|
+
{
|
498
|
+
"internalType": "bytes32",
|
499
|
+
"name": "paranetId",
|
500
|
+
"type": "bytes32"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"internalType": "address",
|
504
|
+
"name": "miner",
|
505
|
+
"type": "address"
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"internalType": "uint256",
|
509
|
+
"name": "index",
|
510
|
+
"type": "uint256"
|
511
|
+
}
|
512
|
+
],
|
513
|
+
"name": "getKnowledgeMinerAccessRequest",
|
514
|
+
"outputs": [
|
515
|
+
{
|
516
|
+
"components": [
|
517
|
+
{
|
518
|
+
"internalType": "uint256",
|
519
|
+
"name": "createdAt",
|
520
|
+
"type": "uint256"
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"internalType": "uint256",
|
524
|
+
"name": "updatedAt",
|
525
|
+
"type": "uint256"
|
526
|
+
},
|
527
|
+
{
|
528
|
+
"internalType": "address",
|
529
|
+
"name": "miner",
|
530
|
+
"type": "address"
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
534
|
+
"name": "status",
|
535
|
+
"type": "uint8"
|
536
|
+
}
|
537
|
+
],
|
538
|
+
"internalType": "struct ParanetLib.ParanetKnowledgeMinerAccessRequest",
|
539
|
+
"name": "",
|
540
|
+
"type": "tuple"
|
541
|
+
}
|
542
|
+
],
|
543
|
+
"stateMutability": "view",
|
544
|
+
"type": "function"
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"inputs": [
|
548
|
+
{
|
549
|
+
"internalType": "bytes32",
|
550
|
+
"name": "paranetId",
|
551
|
+
"type": "bytes32"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"internalType": "address",
|
555
|
+
"name": "miner",
|
556
|
+
"type": "address"
|
557
|
+
}
|
558
|
+
],
|
559
|
+
"name": "getKnowledgeMinerAccessRequests",
|
560
|
+
"outputs": [
|
561
|
+
{
|
562
|
+
"components": [
|
563
|
+
{
|
564
|
+
"internalType": "uint256",
|
565
|
+
"name": "createdAt",
|
566
|
+
"type": "uint256"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"internalType": "uint256",
|
570
|
+
"name": "updatedAt",
|
571
|
+
"type": "uint256"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"internalType": "address",
|
575
|
+
"name": "miner",
|
576
|
+
"type": "address"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
580
|
+
"name": "status",
|
581
|
+
"type": "uint8"
|
582
|
+
}
|
583
|
+
],
|
584
|
+
"internalType": "struct ParanetLib.ParanetKnowledgeMinerAccessRequest[]",
|
585
|
+
"name": "",
|
586
|
+
"type": "tuple[]"
|
587
|
+
}
|
588
|
+
],
|
589
|
+
"stateMutability": "view",
|
590
|
+
"type": "function"
|
591
|
+
},
|
592
|
+
{
|
593
|
+
"inputs": [
|
594
|
+
{
|
595
|
+
"internalType": "bytes32",
|
596
|
+
"name": "paranetId",
|
597
|
+
"type": "bytes32"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"internalType": "address",
|
601
|
+
"name": "miner",
|
602
|
+
"type": "address"
|
603
|
+
}
|
604
|
+
],
|
605
|
+
"name": "getKnowledgeMinerAccessRequestsCount",
|
606
|
+
"outputs": [
|
607
|
+
{
|
608
|
+
"internalType": "uint256",
|
609
|
+
"name": "",
|
610
|
+
"type": "uint256"
|
611
|
+
}
|
612
|
+
],
|
613
|
+
"stateMutability": "view",
|
614
|
+
"type": "function"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"inputs": [
|
618
|
+
{
|
619
|
+
"internalType": "bytes32",
|
620
|
+
"name": "paranetId",
|
621
|
+
"type": "bytes32"
|
622
|
+
}
|
623
|
+
],
|
624
|
+
"name": "getKnowledgeMiners",
|
625
|
+
"outputs": [
|
626
|
+
{
|
627
|
+
"internalType": "address[]",
|
628
|
+
"name": "",
|
629
|
+
"type": "address[]"
|
630
|
+
}
|
631
|
+
],
|
632
|
+
"stateMutability": "view",
|
633
|
+
"type": "function"
|
634
|
+
},
|
635
|
+
{
|
636
|
+
"inputs": [
|
637
|
+
{
|
638
|
+
"internalType": "bytes32",
|
639
|
+
"name": "paranetId",
|
640
|
+
"type": "bytes32"
|
641
|
+
}
|
642
|
+
],
|
643
|
+
"name": "getKnowledgeMinersCount",
|
644
|
+
"outputs": [
|
645
|
+
{
|
646
|
+
"internalType": "uint256",
|
647
|
+
"name": "",
|
648
|
+
"type": "uint256"
|
649
|
+
}
|
650
|
+
],
|
651
|
+
"stateMutability": "view",
|
652
|
+
"type": "function"
|
653
|
+
},
|
654
|
+
{
|
655
|
+
"inputs": [
|
656
|
+
{
|
657
|
+
"internalType": "bytes32",
|
658
|
+
"name": "paranetId",
|
659
|
+
"type": "bytes32"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"internalType": "address",
|
663
|
+
"name": "miner",
|
664
|
+
"type": "address"
|
665
|
+
}
|
666
|
+
],
|
667
|
+
"name": "getLatestKnowledgeMinerAccessRequest",
|
668
|
+
"outputs": [
|
669
|
+
{
|
670
|
+
"components": [
|
671
|
+
{
|
672
|
+
"internalType": "uint256",
|
673
|
+
"name": "createdAt",
|
674
|
+
"type": "uint256"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "uint256",
|
678
|
+
"name": "updatedAt",
|
679
|
+
"type": "uint256"
|
680
|
+
},
|
681
|
+
{
|
682
|
+
"internalType": "address",
|
683
|
+
"name": "miner",
|
684
|
+
"type": "address"
|
685
|
+
},
|
686
|
+
{
|
687
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
688
|
+
"name": "status",
|
689
|
+
"type": "uint8"
|
690
|
+
}
|
691
|
+
],
|
692
|
+
"internalType": "struct ParanetLib.ParanetKnowledgeMinerAccessRequest",
|
693
|
+
"name": "",
|
694
|
+
"type": "tuple"
|
695
|
+
}
|
696
|
+
],
|
697
|
+
"stateMutability": "view",
|
698
|
+
"type": "function"
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"inputs": [
|
702
|
+
{
|
703
|
+
"internalType": "bytes32",
|
704
|
+
"name": "paranetId",
|
705
|
+
"type": "bytes32"
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"internalType": "uint72",
|
709
|
+
"name": "identityId",
|
710
|
+
"type": "uint72"
|
711
|
+
}
|
712
|
+
],
|
713
|
+
"name": "getLatestNodeJoinRequest",
|
200
714
|
"outputs": [
|
201
715
|
{
|
202
|
-
"
|
716
|
+
"components": [
|
717
|
+
{
|
718
|
+
"internalType": "uint256",
|
719
|
+
"name": "createdAt",
|
720
|
+
"type": "uint256"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"internalType": "uint256",
|
724
|
+
"name": "updatedAt",
|
725
|
+
"type": "uint256"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "uint72",
|
729
|
+
"name": "identityId",
|
730
|
+
"type": "uint72"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
734
|
+
"name": "status",
|
735
|
+
"type": "uint8"
|
736
|
+
}
|
737
|
+
],
|
738
|
+
"internalType": "struct ParanetLib.ParanetNodeJoinRequest",
|
203
739
|
"name": "",
|
204
|
-
"type": "
|
740
|
+
"type": "tuple"
|
205
741
|
}
|
206
742
|
],
|
207
743
|
"stateMutability": "view",
|
@@ -215,12 +751,12 @@
|
|
215
751
|
"type": "bytes32"
|
216
752
|
}
|
217
753
|
],
|
218
|
-
"name": "
|
754
|
+
"name": "getMinersAccessPolicy",
|
219
755
|
"outputs": [
|
220
756
|
{
|
221
|
-
"internalType": "
|
757
|
+
"internalType": "enum ParanetLib.MinersAccessPolicy",
|
222
758
|
"name": "",
|
223
|
-
"type": "
|
759
|
+
"type": "uint8"
|
224
760
|
}
|
225
761
|
],
|
226
762
|
"stateMutability": "view",
|
@@ -232,24 +768,14 @@
|
|
232
768
|
"internalType": "bytes32",
|
233
769
|
"name": "paranetId",
|
234
770
|
"type": "bytes32"
|
235
|
-
},
|
236
|
-
{
|
237
|
-
"internalType": "bytes32",
|
238
|
-
"name": "knowledgeAssetId",
|
239
|
-
"type": "bytes32"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"internalType": "uint256",
|
243
|
-
"name": "limit",
|
244
|
-
"type": "uint256"
|
245
771
|
}
|
246
772
|
],
|
247
|
-
"name": "
|
773
|
+
"name": "getName",
|
248
774
|
"outputs": [
|
249
775
|
{
|
250
|
-
"internalType": "
|
776
|
+
"internalType": "string",
|
251
777
|
"name": "",
|
252
|
-
"type": "
|
778
|
+
"type": "string"
|
253
779
|
}
|
254
780
|
],
|
255
781
|
"stateMutability": "view",
|
@@ -263,22 +789,44 @@
|
|
263
789
|
"type": "bytes32"
|
264
790
|
},
|
265
791
|
{
|
266
|
-
"internalType": "
|
267
|
-
"name": "
|
268
|
-
"type": "
|
792
|
+
"internalType": "uint72",
|
793
|
+
"name": "identityId",
|
794
|
+
"type": "uint72"
|
269
795
|
},
|
270
796
|
{
|
271
797
|
"internalType": "uint256",
|
272
|
-
"name": "
|
798
|
+
"name": "index",
|
273
799
|
"type": "uint256"
|
274
800
|
}
|
275
801
|
],
|
276
|
-
"name": "
|
802
|
+
"name": "getNodeJoinRequest",
|
277
803
|
"outputs": [
|
278
804
|
{
|
279
|
-
"
|
805
|
+
"components": [
|
806
|
+
{
|
807
|
+
"internalType": "uint256",
|
808
|
+
"name": "createdAt",
|
809
|
+
"type": "uint256"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"internalType": "uint256",
|
813
|
+
"name": "updatedAt",
|
814
|
+
"type": "uint256"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"internalType": "uint72",
|
818
|
+
"name": "identityId",
|
819
|
+
"type": "uint72"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
823
|
+
"name": "status",
|
824
|
+
"type": "uint8"
|
825
|
+
}
|
826
|
+
],
|
827
|
+
"internalType": "struct ParanetLib.ParanetNodeJoinRequest",
|
280
828
|
"name": "",
|
281
|
-
"type": "
|
829
|
+
"type": "tuple"
|
282
830
|
}
|
283
831
|
],
|
284
832
|
"stateMutability": "view",
|
@@ -290,14 +838,41 @@
|
|
290
838
|
"internalType": "bytes32",
|
291
839
|
"name": "paranetId",
|
292
840
|
"type": "bytes32"
|
841
|
+
},
|
842
|
+
{
|
843
|
+
"internalType": "uint72",
|
844
|
+
"name": "identityId",
|
845
|
+
"type": "uint72"
|
293
846
|
}
|
294
847
|
],
|
295
|
-
"name": "
|
848
|
+
"name": "getNodeJoinRequests",
|
296
849
|
"outputs": [
|
297
850
|
{
|
298
|
-
"
|
851
|
+
"components": [
|
852
|
+
{
|
853
|
+
"internalType": "uint256",
|
854
|
+
"name": "createdAt",
|
855
|
+
"type": "uint256"
|
856
|
+
},
|
857
|
+
{
|
858
|
+
"internalType": "uint256",
|
859
|
+
"name": "updatedAt",
|
860
|
+
"type": "uint256"
|
861
|
+
},
|
862
|
+
{
|
863
|
+
"internalType": "uint72",
|
864
|
+
"name": "identityId",
|
865
|
+
"type": "uint72"
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
869
|
+
"name": "status",
|
870
|
+
"type": "uint8"
|
871
|
+
}
|
872
|
+
],
|
873
|
+
"internalType": "struct ParanetLib.ParanetNodeJoinRequest[]",
|
299
874
|
"name": "",
|
300
|
-
"type": "
|
875
|
+
"type": "tuple[]"
|
301
876
|
}
|
302
877
|
],
|
303
878
|
"stateMutability": "view",
|
@@ -309,9 +884,14 @@
|
|
309
884
|
"internalType": "bytes32",
|
310
885
|
"name": "paranetId",
|
311
886
|
"type": "bytes32"
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"internalType": "uint72",
|
890
|
+
"name": "identityId",
|
891
|
+
"type": "uint72"
|
312
892
|
}
|
313
893
|
],
|
314
|
-
"name": "
|
894
|
+
"name": "getNodeJoinRequestsCount",
|
315
895
|
"outputs": [
|
316
896
|
{
|
317
897
|
"internalType": "uint256",
|
@@ -330,12 +910,12 @@
|
|
330
910
|
"type": "bytes32"
|
331
911
|
}
|
332
912
|
],
|
333
|
-
"name": "
|
913
|
+
"name": "getNodesAccessPolicy",
|
334
914
|
"outputs": [
|
335
915
|
{
|
336
|
-
"internalType": "
|
916
|
+
"internalType": "enum ParanetLib.NodesAccessPolicy",
|
337
917
|
"name": "",
|
338
|
-
"type": "
|
918
|
+
"type": "uint8"
|
339
919
|
}
|
340
920
|
],
|
341
921
|
"stateMutability": "view",
|
@@ -397,13 +977,28 @@
|
|
397
977
|
"name": "description",
|
398
978
|
"type": "string"
|
399
979
|
},
|
980
|
+
{
|
981
|
+
"internalType": "enum ParanetLib.NodesAccessPolicy",
|
982
|
+
"name": "nodesAccessPolicy",
|
983
|
+
"type": "uint8"
|
984
|
+
},
|
985
|
+
{
|
986
|
+
"internalType": "enum ParanetLib.MinersAccessPolicy",
|
987
|
+
"name": "minersAccessPolicy",
|
988
|
+
"type": "uint8"
|
989
|
+
},
|
990
|
+
{
|
991
|
+
"internalType": "enum ParanetLib.KnowledgeAssetsAccessPolicy",
|
992
|
+
"name": "knowledgeAssetsAccessPolicy",
|
993
|
+
"type": "uint8"
|
994
|
+
},
|
400
995
|
{
|
401
996
|
"internalType": "uint96",
|
402
997
|
"name": "cumulativeKnowledgeValue",
|
403
998
|
"type": "uint96"
|
404
999
|
}
|
405
1000
|
],
|
406
|
-
"internalType": "struct
|
1001
|
+
"internalType": "struct ParanetLib.ParanetMetadata",
|
407
1002
|
"name": "",
|
408
1003
|
"type": "tuple"
|
409
1004
|
}
|
@@ -502,7 +1097,7 @@
|
|
502
1097
|
"name": "hub",
|
503
1098
|
"outputs": [
|
504
1099
|
{
|
505
|
-
"internalType": "contract
|
1100
|
+
"internalType": "contract Hub",
|
506
1101
|
"name": "",
|
507
1102
|
"type": "address"
|
508
1103
|
}
|
@@ -510,6 +1105,30 @@
|
|
510
1105
|
"stateMutability": "view",
|
511
1106
|
"type": "function"
|
512
1107
|
},
|
1108
|
+
{
|
1109
|
+
"inputs": [
|
1110
|
+
{
|
1111
|
+
"internalType": "bytes32",
|
1112
|
+
"name": "paranetId",
|
1113
|
+
"type": "bytes32"
|
1114
|
+
},
|
1115
|
+
{
|
1116
|
+
"internalType": "uint72",
|
1117
|
+
"name": "identityId",
|
1118
|
+
"type": "uint72"
|
1119
|
+
}
|
1120
|
+
],
|
1121
|
+
"name": "isCuratedNode",
|
1122
|
+
"outputs": [
|
1123
|
+
{
|
1124
|
+
"internalType": "bool",
|
1125
|
+
"name": "",
|
1126
|
+
"type": "bool"
|
1127
|
+
}
|
1128
|
+
],
|
1129
|
+
"stateMutability": "view",
|
1130
|
+
"type": "function"
|
1131
|
+
},
|
513
1132
|
{
|
514
1133
|
"inputs": [
|
515
1134
|
{
|
@@ -635,6 +1254,21 @@
|
|
635
1254
|
"internalType": "string",
|
636
1255
|
"name": "paranetDescription",
|
637
1256
|
"type": "string"
|
1257
|
+
},
|
1258
|
+
{
|
1259
|
+
"internalType": "enum ParanetLib.NodesAccessPolicy",
|
1260
|
+
"name": "nodesAccessPolicy",
|
1261
|
+
"type": "uint8"
|
1262
|
+
},
|
1263
|
+
{
|
1264
|
+
"internalType": "enum ParanetLib.MinersAccessPolicy",
|
1265
|
+
"name": "minersAccessPolicy",
|
1266
|
+
"type": "uint8"
|
1267
|
+
},
|
1268
|
+
{
|
1269
|
+
"internalType": "enum ParanetLib.KnowledgeAssetsAccessPolicy",
|
1270
|
+
"name": "knowledgeAssetsAccessPolicy",
|
1271
|
+
"type": "uint8"
|
638
1272
|
}
|
639
1273
|
],
|
640
1274
|
"name": "registerParanet",
|
@@ -648,6 +1282,24 @@
|
|
648
1282
|
"stateMutability": "nonpayable",
|
649
1283
|
"type": "function"
|
650
1284
|
},
|
1285
|
+
{
|
1286
|
+
"inputs": [
|
1287
|
+
{
|
1288
|
+
"internalType": "bytes32",
|
1289
|
+
"name": "paranetId",
|
1290
|
+
"type": "bytes32"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"internalType": "uint72",
|
1294
|
+
"name": "identityId",
|
1295
|
+
"type": "uint72"
|
1296
|
+
}
|
1297
|
+
],
|
1298
|
+
"name": "removeCuratedNode",
|
1299
|
+
"outputs": [],
|
1300
|
+
"stateMutability": "nonpayable",
|
1301
|
+
"type": "function"
|
1302
|
+
},
|
651
1303
|
{
|
652
1304
|
"inputs": [
|
653
1305
|
{
|
@@ -720,6 +1372,52 @@
|
|
720
1372
|
"stateMutability": "nonpayable",
|
721
1373
|
"type": "function"
|
722
1374
|
},
|
1375
|
+
{
|
1376
|
+
"inputs": [
|
1377
|
+
{
|
1378
|
+
"internalType": "bytes32",
|
1379
|
+
"name": "paranetId",
|
1380
|
+
"type": "bytes32"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"internalType": "address",
|
1384
|
+
"name": "miner",
|
1385
|
+
"type": "address"
|
1386
|
+
},
|
1387
|
+
{
|
1388
|
+
"internalType": "uint256",
|
1389
|
+
"name": "index",
|
1390
|
+
"type": "uint256"
|
1391
|
+
}
|
1392
|
+
],
|
1393
|
+
"name": "removeKnowledgeMinerAccessRequest",
|
1394
|
+
"outputs": [],
|
1395
|
+
"stateMutability": "nonpayable",
|
1396
|
+
"type": "function"
|
1397
|
+
},
|
1398
|
+
{
|
1399
|
+
"inputs": [
|
1400
|
+
{
|
1401
|
+
"internalType": "bytes32",
|
1402
|
+
"name": "paranetId",
|
1403
|
+
"type": "bytes32"
|
1404
|
+
},
|
1405
|
+
{
|
1406
|
+
"internalType": "uint72",
|
1407
|
+
"name": "identityId",
|
1408
|
+
"type": "uint72"
|
1409
|
+
},
|
1410
|
+
{
|
1411
|
+
"internalType": "uint256",
|
1412
|
+
"name": "index",
|
1413
|
+
"type": "uint256"
|
1414
|
+
}
|
1415
|
+
],
|
1416
|
+
"name": "removeNodeJoinRequest",
|
1417
|
+
"outputs": [],
|
1418
|
+
"stateMutability": "nonpayable",
|
1419
|
+
"type": "function"
|
1420
|
+
},
|
723
1421
|
{
|
724
1422
|
"inputs": [
|
725
1423
|
{
|
@@ -797,6 +1495,42 @@
|
|
797
1495
|
"stateMutability": "nonpayable",
|
798
1496
|
"type": "function"
|
799
1497
|
},
|
1498
|
+
{
|
1499
|
+
"inputs": [
|
1500
|
+
{
|
1501
|
+
"internalType": "bytes32",
|
1502
|
+
"name": "paranetId",
|
1503
|
+
"type": "bytes32"
|
1504
|
+
},
|
1505
|
+
{
|
1506
|
+
"internalType": "enum ParanetLib.KnowledgeAssetsAccessPolicy",
|
1507
|
+
"name": "knowledgeAssetsAccessPolicy",
|
1508
|
+
"type": "uint8"
|
1509
|
+
}
|
1510
|
+
],
|
1511
|
+
"name": "setKnowledgeAssetsAccessPolicy",
|
1512
|
+
"outputs": [],
|
1513
|
+
"stateMutability": "nonpayable",
|
1514
|
+
"type": "function"
|
1515
|
+
},
|
1516
|
+
{
|
1517
|
+
"inputs": [
|
1518
|
+
{
|
1519
|
+
"internalType": "bytes32",
|
1520
|
+
"name": "paranetId",
|
1521
|
+
"type": "bytes32"
|
1522
|
+
},
|
1523
|
+
{
|
1524
|
+
"internalType": "enum ParanetLib.MinersAccessPolicy",
|
1525
|
+
"name": "minersAccessPolicy",
|
1526
|
+
"type": "uint8"
|
1527
|
+
}
|
1528
|
+
],
|
1529
|
+
"name": "setMinersAccessPolicy",
|
1530
|
+
"outputs": [],
|
1531
|
+
"stateMutability": "nonpayable",
|
1532
|
+
"type": "function"
|
1533
|
+
},
|
800
1534
|
{
|
801
1535
|
"inputs": [
|
802
1536
|
{
|
@@ -815,6 +1549,24 @@
|
|
815
1549
|
"stateMutability": "nonpayable",
|
816
1550
|
"type": "function"
|
817
1551
|
},
|
1552
|
+
{
|
1553
|
+
"inputs": [
|
1554
|
+
{
|
1555
|
+
"internalType": "bytes32",
|
1556
|
+
"name": "paranetId",
|
1557
|
+
"type": "bytes32"
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"internalType": "enum ParanetLib.NodesAccessPolicy",
|
1561
|
+
"name": "nodesAccessPolicy",
|
1562
|
+
"type": "uint8"
|
1563
|
+
}
|
1564
|
+
],
|
1565
|
+
"name": "setNodesAccessPolicy",
|
1566
|
+
"outputs": [],
|
1567
|
+
"stateMutability": "nonpayable",
|
1568
|
+
"type": "function"
|
1569
|
+
},
|
818
1570
|
{
|
819
1571
|
"inputs": [
|
820
1572
|
{
|
@@ -856,6 +1608,62 @@
|
|
856
1608
|
"stateMutability": "nonpayable",
|
857
1609
|
"type": "function"
|
858
1610
|
},
|
1611
|
+
{
|
1612
|
+
"inputs": [
|
1613
|
+
{
|
1614
|
+
"internalType": "bytes32",
|
1615
|
+
"name": "paranetId",
|
1616
|
+
"type": "bytes32"
|
1617
|
+
},
|
1618
|
+
{
|
1619
|
+
"internalType": "address",
|
1620
|
+
"name": "miner",
|
1621
|
+
"type": "address"
|
1622
|
+
},
|
1623
|
+
{
|
1624
|
+
"internalType": "uint256",
|
1625
|
+
"name": "index",
|
1626
|
+
"type": "uint256"
|
1627
|
+
},
|
1628
|
+
{
|
1629
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
1630
|
+
"name": "status",
|
1631
|
+
"type": "uint8"
|
1632
|
+
}
|
1633
|
+
],
|
1634
|
+
"name": "updateKnowledgeMinerAccessRequestStatus",
|
1635
|
+
"outputs": [],
|
1636
|
+
"stateMutability": "nonpayable",
|
1637
|
+
"type": "function"
|
1638
|
+
},
|
1639
|
+
{
|
1640
|
+
"inputs": [
|
1641
|
+
{
|
1642
|
+
"internalType": "bytes32",
|
1643
|
+
"name": "paranetId",
|
1644
|
+
"type": "bytes32"
|
1645
|
+
},
|
1646
|
+
{
|
1647
|
+
"internalType": "uint72",
|
1648
|
+
"name": "identityId",
|
1649
|
+
"type": "uint72"
|
1650
|
+
},
|
1651
|
+
{
|
1652
|
+
"internalType": "uint256",
|
1653
|
+
"name": "index",
|
1654
|
+
"type": "uint256"
|
1655
|
+
},
|
1656
|
+
{
|
1657
|
+
"internalType": "enum ParanetLib.RequestStatus",
|
1658
|
+
"name": "status",
|
1659
|
+
"type": "uint8"
|
1660
|
+
}
|
1661
|
+
],
|
1662
|
+
"name": "updateNodeJoinRequestStatus",
|
1663
|
+
"outputs": [],
|
1664
|
+
"stateMutability": "nonpayable",
|
1665
|
+
"type": "function"
|
1666
|
+
},
|
859
1667
|
{
|
860
1668
|
"inputs": [],
|
861
1669
|
"name": "version",
|