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.
Files changed (45) hide show
  1. dkg/asset.py +589 -683
  2. dkg/constants.py +106 -45
  3. dkg/data/interfaces/AskStorage.json +366 -0
  4. dkg/data/interfaces/Chronos.json +202 -0
  5. dkg/data/interfaces/Hub.json +294 -2
  6. dkg/data/interfaces/IdentityStorage.json +400 -0
  7. dkg/data/interfaces/KnowledgeCollection.json +610 -0
  8. dkg/data/interfaces/KnowledgeCollectionStorage.json +2312 -0
  9. dkg/data/interfaces/Paranet.json +656 -135
  10. dkg/data/interfaces/ParanetIncentivesPoolFactory.json +18 -2
  11. dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +20 -4
  12. dkg/data/interfaces/{ParanetNeurowebIncentivesPool.json → ParanetNeuroIncentivesPool.json} +7 -7
  13. dkg/data/interfaces/ParanetsRegistry.json +844 -36
  14. dkg/data/interfaces/Token.json +146 -17
  15. dkg/dataclasses.py +11 -1
  16. dkg/exceptions.py +1 -0
  17. dkg/graph.py +55 -24
  18. dkg/main.py +18 -2
  19. dkg/network.py +2 -2
  20. dkg/node.py +7 -0
  21. dkg/paranet.py +336 -33
  22. dkg/providers/blockchain.py +23 -24
  23. dkg/providers/node_http.py +11 -9
  24. dkg/services/input_service.py +183 -0
  25. dkg/services/node_service.py +164 -0
  26. dkg/types/__init__.py +15 -3
  27. dkg/types/general.py +15 -8
  28. dkg/utils/blockchain_request.py +189 -64
  29. dkg/utils/knowledge_asset_tools.py +5 -0
  30. dkg/utils/knowledge_collection_tools.py +236 -0
  31. dkg/utils/merkle.py +1 -1
  32. dkg/utils/node_request.py +33 -33
  33. dkg/utils/rdf.py +10 -6
  34. dkg/utils/string_transformations.py +1 -0
  35. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/METADATA +36 -26
  36. dkg-8.0.0.dist-info/RECORD +56 -0
  37. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/WHEEL +1 -1
  38. dkg/data/interfaces/AssertionStorage.json +0 -229
  39. dkg/data/interfaces/ContentAsset.json +0 -801
  40. dkg/data/interfaces/ContentAssetStorage.json +0 -782
  41. dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -1314
  42. dkg/data/interfaces/UnfinalizedStateStorage.json +0 -171
  43. dkg-1.1.1.dist-info/RECORD +0 -52
  44. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/LICENSE +0 -0
  45. {dkg-1.1.1.dist-info → dkg-8.0.0.dist-info}/NOTICE +0 -0
@@ -12,23 +12,172 @@
12
12
  },
13
13
  {
14
14
  "inputs": [
15
+ {
16
+ "internalType": "enum ParanetLib.MinersAccessPolicy[]",
17
+ "name": "expectedAccessPolicies",
18
+ "type": "uint8[]"
19
+ },
20
+ {
21
+ "internalType": "enum ParanetLib.MinersAccessPolicy",
22
+ "name": "actualAccessPolicy",
23
+ "type": "uint8"
24
+ }
25
+ ],
26
+ "name": "InvalidParanetMinersAccessPolicy",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [
31
+ {
32
+ "internalType": "enum ParanetLib.NodesAccessPolicy[]",
33
+ "name": "expectedAccessPolicies",
34
+ "type": "uint8[]"
35
+ },
36
+ {
37
+ "internalType": "enum ParanetLib.NodesAccessPolicy",
38
+ "name": "actualAccessPolicy",
39
+ "type": "uint8"
40
+ }
41
+ ],
42
+ "name": "InvalidParanetNodesAccessPolicy",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "bytes32",
49
+ "name": "paranetId",
50
+ "type": "bytes32"
51
+ },
15
52
  {
16
53
  "internalType": "address",
17
- "name": "paranetKnowledgeAssetStorageContract",
54
+ "name": "miner",
18
55
  "type": "address"
56
+ }
57
+ ],
58
+ "name": "ParanetCuratedMinerAccessRequestDoesntExist",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [
63
+ {
64
+ "internalType": "bytes32",
65
+ "name": "paranetId",
66
+ "type": "bytes32"
19
67
  },
20
68
  {
21
- "internalType": "uint256",
22
- "name": "paranetTokenId",
23
- "type": "uint256"
69
+ "internalType": "address",
70
+ "name": "miner",
71
+ "type": "address"
24
72
  },
73
+ {
74
+ "internalType": "enum ParanetLib.RequestStatus",
75
+ "name": "status",
76
+ "type": "uint8"
77
+ }
78
+ ],
79
+ "name": "ParanetCuratedMinerAccessRequestInvalidStatus",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
25
84
  {
26
85
  "internalType": "bytes32",
27
86
  "name": "paranetId",
28
87
  "type": "bytes32"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "miner",
92
+ "type": "address"
29
93
  }
30
94
  ],
31
- "name": "KnowledgeAssetIsAPartOfOtherParanet",
95
+ "name": "ParanetCuratedMinerDoesntExist",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "bytes32",
102
+ "name": "paranetId",
103
+ "type": "bytes32"
104
+ },
105
+ {
106
+ "internalType": "address",
107
+ "name": "miner",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "ParanetCuratedMinerHasAlreadyBeenAdded",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "bytes32",
118
+ "name": "paranetId",
119
+ "type": "bytes32"
120
+ },
121
+ {
122
+ "internalType": "uint72",
123
+ "name": "identityId",
124
+ "type": "uint72"
125
+ }
126
+ ],
127
+ "name": "ParanetCuratedNodeDoesntExist",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "bytes32",
134
+ "name": "paranetId",
135
+ "type": "bytes32"
136
+ },
137
+ {
138
+ "internalType": "uint72",
139
+ "name": "identityId",
140
+ "type": "uint72"
141
+ }
142
+ ],
143
+ "name": "ParanetCuratedNodeHasAlreadyBeenAdded",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "bytes32",
150
+ "name": "paranetId",
151
+ "type": "bytes32"
152
+ },
153
+ {
154
+ "internalType": "uint72",
155
+ "name": "identityId",
156
+ "type": "uint72"
157
+ }
158
+ ],
159
+ "name": "ParanetCuratedNodeJoinRequestDoesntExist",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "bytes32",
166
+ "name": "paranetId",
167
+ "type": "bytes32"
168
+ },
169
+ {
170
+ "internalType": "uint72",
171
+ "name": "identityId",
172
+ "type": "uint72"
173
+ },
174
+ {
175
+ "internalType": "enum ParanetLib.RequestStatus",
176
+ "name": "status",
177
+ "type": "uint8"
178
+ }
179
+ ],
180
+ "name": "ParanetCuratedNodeJoinRequestInvalidStatus",
32
181
  "type": "error"
33
182
  },
34
183
  {
@@ -111,6 +260,33 @@
111
260
  "name": "ParanetServiceHasAlreadyBeenRegistered",
112
261
  "type": "error"
113
262
  },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "uint72",
267
+ "name": "identityId",
268
+ "type": "uint72"
269
+ }
270
+ ],
271
+ "name": "ProfileDoesntExist",
272
+ "type": "error"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "string",
278
+ "name": "msg",
279
+ "type": "string"
280
+ }
281
+ ],
282
+ "name": "UnauthorizedAccess",
283
+ "type": "error"
284
+ },
285
+ {
286
+ "inputs": [],
287
+ "name": "ZeroAddressHub",
288
+ "type": "error"
289
+ },
114
290
  {
115
291
  "anonymous": false,
116
292
  "inputs": [
@@ -142,6 +318,256 @@
142
318
  "name": "KnowledgeAssetSubmittedToParanet",
143
319
  "type": "event"
144
320
  },
321
+ {
322
+ "anonymous": false,
323
+ "inputs": [
324
+ {
325
+ "indexed": true,
326
+ "internalType": "address",
327
+ "name": "paranetKAStorageContract",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "indexed": true,
332
+ "internalType": "uint256",
333
+ "name": "paranetKATokenId",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "address",
339
+ "name": "minerAddress",
340
+ "type": "address"
341
+ }
342
+ ],
343
+ "name": "ParanetCuratedMinerAccessRequestAccepted",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "anonymous": false,
348
+ "inputs": [
349
+ {
350
+ "indexed": true,
351
+ "internalType": "address",
352
+ "name": "paranetKAStorageContract",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "indexed": true,
357
+ "internalType": "uint256",
358
+ "name": "paranetKATokenId",
359
+ "type": "uint256"
360
+ },
361
+ {
362
+ "indexed": false,
363
+ "internalType": "address",
364
+ "name": "minerAddress",
365
+ "type": "address"
366
+ }
367
+ ],
368
+ "name": "ParanetCuratedMinerAccessRequestCreated",
369
+ "type": "event"
370
+ },
371
+ {
372
+ "anonymous": false,
373
+ "inputs": [
374
+ {
375
+ "indexed": true,
376
+ "internalType": "address",
377
+ "name": "paranetKAStorageContract",
378
+ "type": "address"
379
+ },
380
+ {
381
+ "indexed": true,
382
+ "internalType": "uint256",
383
+ "name": "paranetKATokenId",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "indexed": false,
388
+ "internalType": "address",
389
+ "name": "minerAddress",
390
+ "type": "address"
391
+ }
392
+ ],
393
+ "name": "ParanetCuratedMinerAccessRequestRejected",
394
+ "type": "event"
395
+ },
396
+ {
397
+ "anonymous": false,
398
+ "inputs": [
399
+ {
400
+ "indexed": true,
401
+ "internalType": "address",
402
+ "name": "paranetKAStorageContract",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "indexed": true,
407
+ "internalType": "uint256",
408
+ "name": "paranetKATokenId",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "indexed": false,
413
+ "internalType": "address",
414
+ "name": "minerAddress",
415
+ "type": "address"
416
+ }
417
+ ],
418
+ "name": "ParanetCuratedMinerAdded",
419
+ "type": "event"
420
+ },
421
+ {
422
+ "anonymous": false,
423
+ "inputs": [
424
+ {
425
+ "indexed": true,
426
+ "internalType": "address",
427
+ "name": "paranetKAStorageContract",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "indexed": true,
432
+ "internalType": "uint256",
433
+ "name": "paranetKATokenId",
434
+ "type": "uint256"
435
+ },
436
+ {
437
+ "indexed": false,
438
+ "internalType": "address",
439
+ "name": "minerAddress",
440
+ "type": "address"
441
+ }
442
+ ],
443
+ "name": "ParanetCuratedMinerRemoved",
444
+ "type": "event"
445
+ },
446
+ {
447
+ "anonymous": false,
448
+ "inputs": [
449
+ {
450
+ "indexed": true,
451
+ "internalType": "address",
452
+ "name": "paranetKAStorageContract",
453
+ "type": "address"
454
+ },
455
+ {
456
+ "indexed": true,
457
+ "internalType": "uint256",
458
+ "name": "paranetKATokenId",
459
+ "type": "uint256"
460
+ },
461
+ {
462
+ "indexed": false,
463
+ "internalType": "uint72",
464
+ "name": "identityId",
465
+ "type": "uint72"
466
+ }
467
+ ],
468
+ "name": "ParanetCuratedNodeAdded",
469
+ "type": "event"
470
+ },
471
+ {
472
+ "anonymous": false,
473
+ "inputs": [
474
+ {
475
+ "indexed": true,
476
+ "internalType": "address",
477
+ "name": "paranetKAStorageContract",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "indexed": true,
482
+ "internalType": "uint256",
483
+ "name": "paranetKATokenId",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "indexed": false,
488
+ "internalType": "uint72",
489
+ "name": "identityId",
490
+ "type": "uint72"
491
+ }
492
+ ],
493
+ "name": "ParanetCuratedNodeJoinRequestAccepted",
494
+ "type": "event"
495
+ },
496
+ {
497
+ "anonymous": false,
498
+ "inputs": [
499
+ {
500
+ "indexed": true,
501
+ "internalType": "address",
502
+ "name": "paranetKAStorageContract",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "indexed": true,
507
+ "internalType": "uint256",
508
+ "name": "paranetKATokenId",
509
+ "type": "uint256"
510
+ },
511
+ {
512
+ "indexed": false,
513
+ "internalType": "uint72",
514
+ "name": "identityId",
515
+ "type": "uint72"
516
+ }
517
+ ],
518
+ "name": "ParanetCuratedNodeJoinRequestCreated",
519
+ "type": "event"
520
+ },
521
+ {
522
+ "anonymous": false,
523
+ "inputs": [
524
+ {
525
+ "indexed": true,
526
+ "internalType": "address",
527
+ "name": "paranetKAStorageContract",
528
+ "type": "address"
529
+ },
530
+ {
531
+ "indexed": true,
532
+ "internalType": "uint256",
533
+ "name": "paranetKATokenId",
534
+ "type": "uint256"
535
+ },
536
+ {
537
+ "indexed": false,
538
+ "internalType": "uint72",
539
+ "name": "identityId",
540
+ "type": "uint72"
541
+ }
542
+ ],
543
+ "name": "ParanetCuratedNodeJoinRequestRejected",
544
+ "type": "event"
545
+ },
546
+ {
547
+ "anonymous": false,
548
+ "inputs": [
549
+ {
550
+ "indexed": true,
551
+ "internalType": "address",
552
+ "name": "paranetKAStorageContract",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "indexed": true,
557
+ "internalType": "uint256",
558
+ "name": "paranetKATokenId",
559
+ "type": "uint256"
560
+ },
561
+ {
562
+ "indexed": false,
563
+ "internalType": "uint72",
564
+ "name": "identityId",
565
+ "type": "uint72"
566
+ }
567
+ ],
568
+ "name": "ParanetCuratedNodeRemoved",
569
+ "type": "event"
570
+ },
145
571
  {
146
572
  "anonymous": false,
147
573
  "inputs": [
@@ -171,7 +597,7 @@
171
597
  }
172
598
  ],
173
599
  "indexed": false,
174
- "internalType": "struct ParanetStructs.IncentivesPool",
600
+ "internalType": "struct ParanetLib.IncentivesPool",
175
601
  "name": "incentivesPool",
176
602
  "type": "tuple"
177
603
  }
@@ -236,6 +662,24 @@
236
662
  "internalType": "string",
237
663
  "name": "paranetDescription",
238
664
  "type": "string"
665
+ },
666
+ {
667
+ "indexed": false,
668
+ "internalType": "enum ParanetLib.NodesAccessPolicy",
669
+ "name": "nodesAccessPolicy",
670
+ "type": "uint8"
671
+ },
672
+ {
673
+ "indexed": false,
674
+ "internalType": "enum ParanetLib.MinersAccessPolicy",
675
+ "name": "minersAccessPolicy",
676
+ "type": "uint8"
677
+ },
678
+ {
679
+ "indexed": false,
680
+ "internalType": "enum ParanetLib.KnowledgeAssetsAccessPolicy",
681
+ "name": "knowledgeAssetsAccessPolicy",
682
+ "type": "uint8"
239
683
  }
240
684
  ],
241
685
  "name": "ParanetRegistered",
@@ -346,6 +790,52 @@
346
790
  "name": "ParanetServiceRegistered",
347
791
  "type": "event"
348
792
  },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "address",
797
+ "name": "paranetKAStorageContract",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "uint256",
802
+ "name": "paranetKATokenId",
803
+ "type": "uint256"
804
+ },
805
+ {
806
+ "internalType": "address[]",
807
+ "name": "minerAddresses",
808
+ "type": "address[]"
809
+ }
810
+ ],
811
+ "name": "addParanetCuratedMiners",
812
+ "outputs": [],
813
+ "stateMutability": "nonpayable",
814
+ "type": "function"
815
+ },
816
+ {
817
+ "inputs": [
818
+ {
819
+ "internalType": "address",
820
+ "name": "paranetKAStorageContract",
821
+ "type": "address"
822
+ },
823
+ {
824
+ "internalType": "uint256",
825
+ "name": "paranetKATokenId",
826
+ "type": "uint256"
827
+ },
828
+ {
829
+ "internalType": "uint72[]",
830
+ "name": "identityIds",
831
+ "type": "uint72[]"
832
+ }
833
+ ],
834
+ "name": "addParanetCuratedNodes",
835
+ "outputs": [],
836
+ "stateMutability": "nonpayable",
837
+ "type": "function"
838
+ },
349
839
  {
350
840
  "inputs": [
351
841
  {
@@ -371,7 +861,7 @@
371
861
  "type": "uint256"
372
862
  }
373
863
  ],
374
- "internalType": "struct ParanetStructs.UniversalAssetLocator[]",
864
+ "internalType": "struct ParanetLib.UniversalAssetLocator[]",
375
865
  "name": "services",
376
866
  "type": "tuple[]"
377
867
  }
@@ -382,37 +872,57 @@
382
872
  "type": "function"
383
873
  },
384
874
  {
385
- "inputs": [],
386
- "name": "contentAsset",
387
- "outputs": [
875
+ "inputs": [
388
876
  {
389
- "internalType": "contract ContentAssetV2",
390
- "name": "",
877
+ "internalType": "address",
878
+ "name": "paranetKAStorageContract",
879
+ "type": "address"
880
+ },
881
+ {
882
+ "internalType": "uint256",
883
+ "name": "paranetKATokenId",
884
+ "type": "uint256"
885
+ },
886
+ {
887
+ "internalType": "address",
888
+ "name": "minerAddress",
391
889
  "type": "address"
392
890
  }
393
891
  ],
394
- "stateMutability": "view",
892
+ "name": "approveCuratedMiner",
893
+ "outputs": [],
894
+ "stateMutability": "nonpayable",
395
895
  "type": "function"
396
896
  },
397
897
  {
398
- "inputs": [],
399
- "name": "contentAssetStorage",
400
- "outputs": [
898
+ "inputs": [
401
899
  {
402
- "internalType": "contract ContentAssetStorageV2",
403
- "name": "",
900
+ "internalType": "address",
901
+ "name": "paranetKAStorageContract",
404
902
  "type": "address"
903
+ },
904
+ {
905
+ "internalType": "uint256",
906
+ "name": "paranetKATokenId",
907
+ "type": "uint256"
908
+ },
909
+ {
910
+ "internalType": "uint72",
911
+ "name": "identityId",
912
+ "type": "uint72"
405
913
  }
406
914
  ],
407
- "stateMutability": "view",
915
+ "name": "approveCuratedNode",
916
+ "outputs": [],
917
+ "stateMutability": "nonpayable",
408
918
  "type": "function"
409
919
  },
410
920
  {
411
921
  "inputs": [],
412
- "name": "hashingProxy",
922
+ "name": "hub",
413
923
  "outputs": [
414
924
  {
415
- "internalType": "contract HashingProxy",
925
+ "internalType": "contract Hub",
416
926
  "name": "",
417
927
  "type": "address"
418
928
  }
@@ -422,10 +932,10 @@
422
932
  },
423
933
  {
424
934
  "inputs": [],
425
- "name": "hub",
935
+ "name": "identityStorage",
426
936
  "outputs": [
427
937
  {
428
- "internalType": "contract HubV2",
938
+ "internalType": "contract IdentityStorage",
429
939
  "name": "",
430
940
  "type": "address"
431
941
  }
@@ -440,77 +950,6 @@
440
950
  "stateMutability": "nonpayable",
441
951
  "type": "function"
442
952
  },
443
- {
444
- "inputs": [
445
- {
446
- "internalType": "address",
447
- "name": "paranetKAStorageContract",
448
- "type": "address"
449
- },
450
- {
451
- "internalType": "uint256",
452
- "name": "paranetKATokenId",
453
- "type": "uint256"
454
- },
455
- {
456
- "components": [
457
- {
458
- "internalType": "bytes32",
459
- "name": "assertionId",
460
- "type": "bytes32"
461
- },
462
- {
463
- "internalType": "uint128",
464
- "name": "size",
465
- "type": "uint128"
466
- },
467
- {
468
- "internalType": "uint32",
469
- "name": "triplesNumber",
470
- "type": "uint32"
471
- },
472
- {
473
- "internalType": "uint96",
474
- "name": "chunksNumber",
475
- "type": "uint96"
476
- },
477
- {
478
- "internalType": "uint16",
479
- "name": "epochsNumber",
480
- "type": "uint16"
481
- },
482
- {
483
- "internalType": "uint96",
484
- "name": "tokenAmount",
485
- "type": "uint96"
486
- },
487
- {
488
- "internalType": "uint8",
489
- "name": "scoreFunctionId",
490
- "type": "uint8"
491
- },
492
- {
493
- "internalType": "bool",
494
- "name": "immutable_",
495
- "type": "bool"
496
- }
497
- ],
498
- "internalType": "struct ContentAssetStructs.AssetInputArgs",
499
- "name": "knowledgeAssetArgs",
500
- "type": "tuple"
501
- }
502
- ],
503
- "name": "mintKnowledgeAsset",
504
- "outputs": [
505
- {
506
- "internalType": "uint256",
507
- "name": "",
508
- "type": "uint256"
509
- }
510
- ],
511
- "stateMutability": "nonpayable",
512
- "type": "function"
513
- },
514
953
  {
515
954
  "inputs": [],
516
955
  "name": "name",
@@ -577,31 +1016,16 @@
577
1016
  "type": "function"
578
1017
  },
579
1018
  {
580
- "inputs": [
1019
+ "inputs": [],
1020
+ "name": "profileStorage",
1021
+ "outputs": [
581
1022
  {
582
- "internalType": "address",
583
- "name": "paranetKAStorageContract",
1023
+ "internalType": "contract ProfileStorage",
1024
+ "name": "",
584
1025
  "type": "address"
585
- },
586
- {
587
- "internalType": "uint256",
588
- "name": "paranetKATokenId",
589
- "type": "uint256"
590
- },
591
- {
592
- "internalType": "uint256",
593
- "name": "start",
594
- "type": "uint256"
595
- },
596
- {
597
- "internalType": "uint256",
598
- "name": "end",
599
- "type": "uint256"
600
1026
  }
601
1027
  ],
602
- "name": "processUpdatedKnowledgeAssetStatesMetadata",
603
- "outputs": [],
604
- "stateMutability": "nonpayable",
1028
+ "stateMutability": "view",
605
1029
  "type": "function"
606
1030
  },
607
1031
  {
@@ -625,6 +1049,16 @@
625
1049
  "internalType": "string",
626
1050
  "name": "paranetDescription",
627
1051
  "type": "string"
1052
+ },
1053
+ {
1054
+ "internalType": "enum ParanetLib.NodesAccessPolicy",
1055
+ "name": "nodesAccessPolicy",
1056
+ "type": "uint8"
1057
+ },
1058
+ {
1059
+ "internalType": "enum ParanetLib.MinersAccessPolicy",
1060
+ "name": "minersAccessPolicy",
1061
+ "type": "uint8"
628
1062
  }
629
1063
  ],
630
1064
  "name": "registerParanet",
@@ -678,42 +1112,72 @@
678
1112
  "type": "function"
679
1113
  },
680
1114
  {
681
- "inputs": [],
682
- "name": "serviceAgreementStorageProxy",
683
- "outputs": [
1115
+ "inputs": [
684
1116
  {
685
- "internalType": "contract ServiceAgreementStorageProxy",
686
- "name": "",
1117
+ "internalType": "address",
1118
+ "name": "paranetKAStorageContract",
1119
+ "type": "address"
1120
+ },
1121
+ {
1122
+ "internalType": "uint256",
1123
+ "name": "paranetKATokenId",
1124
+ "type": "uint256"
1125
+ },
1126
+ {
1127
+ "internalType": "address",
1128
+ "name": "minerAddress",
687
1129
  "type": "address"
688
1130
  }
689
1131
  ],
690
- "stateMutability": "view",
1132
+ "name": "rejectCuratedMiner",
1133
+ "outputs": [],
1134
+ "stateMutability": "nonpayable",
691
1135
  "type": "function"
692
1136
  },
693
1137
  {
694
1138
  "inputs": [
695
1139
  {
696
- "internalType": "bool",
697
- "name": "_status",
698
- "type": "bool"
1140
+ "internalType": "address",
1141
+ "name": "paranetKAStorageContract",
1142
+ "type": "address"
1143
+ },
1144
+ {
1145
+ "internalType": "uint256",
1146
+ "name": "paranetKATokenId",
1147
+ "type": "uint256"
1148
+ },
1149
+ {
1150
+ "internalType": "uint72",
1151
+ "name": "identityId",
1152
+ "type": "uint72"
699
1153
  }
700
1154
  ],
701
- "name": "setStatus",
1155
+ "name": "rejectCuratedNode",
702
1156
  "outputs": [],
703
1157
  "stateMutability": "nonpayable",
704
1158
  "type": "function"
705
1159
  },
706
1160
  {
707
- "inputs": [],
708
- "name": "status",
709
- "outputs": [
1161
+ "inputs": [
710
1162
  {
711
- "internalType": "bool",
712
- "name": "",
713
- "type": "bool"
1163
+ "internalType": "address",
1164
+ "name": "paranetKAStorageContract",
1165
+ "type": "address"
1166
+ },
1167
+ {
1168
+ "internalType": "uint256",
1169
+ "name": "paranetKATokenId",
1170
+ "type": "uint256"
1171
+ },
1172
+ {
1173
+ "internalType": "address[]",
1174
+ "name": "minerAddresses",
1175
+ "type": "address[]"
714
1176
  }
715
1177
  ],
716
- "stateMutability": "view",
1178
+ "name": "removeParanetCuratedMiners",
1179
+ "outputs": [],
1180
+ "stateMutability": "nonpayable",
717
1181
  "type": "function"
718
1182
  },
719
1183
  {
@@ -728,22 +1192,79 @@
728
1192
  "name": "paranetKATokenId",
729
1193
  "type": "uint256"
730
1194
  },
1195
+ {
1196
+ "internalType": "uint72[]",
1197
+ "name": "identityIds",
1198
+ "type": "uint72[]"
1199
+ }
1200
+ ],
1201
+ "name": "removeParanetCuratedNodes",
1202
+ "outputs": [],
1203
+ "stateMutability": "nonpayable",
1204
+ "type": "function"
1205
+ },
1206
+ {
1207
+ "inputs": [
731
1208
  {
732
1209
  "internalType": "address",
733
- "name": "knowledgeAssetStorageContract",
1210
+ "name": "paranetKAStorageContract",
734
1211
  "type": "address"
735
1212
  },
736
1213
  {
737
1214
  "internalType": "uint256",
738
- "name": "knowledgeAssetTokenId",
1215
+ "name": "paranetKATokenId",
1216
+ "type": "uint256"
1217
+ }
1218
+ ],
1219
+ "name": "requestParanetCuratedMinerAccess",
1220
+ "outputs": [],
1221
+ "stateMutability": "nonpayable",
1222
+ "type": "function"
1223
+ },
1224
+ {
1225
+ "inputs": [
1226
+ {
1227
+ "internalType": "address",
1228
+ "name": "paranetKAStorageContract",
1229
+ "type": "address"
1230
+ },
1231
+ {
1232
+ "internalType": "uint256",
1233
+ "name": "paranetKATokenId",
739
1234
  "type": "uint256"
740
1235
  }
741
1236
  ],
742
- "name": "submitKnowledgeAsset",
1237
+ "name": "requestParanetCuratedNodeAccess",
1238
+ "outputs": [],
1239
+ "stateMutability": "nonpayable",
1240
+ "type": "function"
1241
+ },
1242
+ {
1243
+ "inputs": [
1244
+ {
1245
+ "internalType": "bool",
1246
+ "name": "_status",
1247
+ "type": "bool"
1248
+ }
1249
+ ],
1250
+ "name": "setStatus",
743
1251
  "outputs": [],
744
1252
  "stateMutability": "nonpayable",
745
1253
  "type": "function"
746
1254
  },
1255
+ {
1256
+ "inputs": [],
1257
+ "name": "status",
1258
+ "outputs": [
1259
+ {
1260
+ "internalType": "bool",
1261
+ "name": "",
1262
+ "type": "bool"
1263
+ }
1264
+ ],
1265
+ "stateMutability": "view",
1266
+ "type": "function"
1267
+ },
747
1268
  {
748
1269
  "inputs": [
749
1270
  {