dkg 8.0.0a1__py3-none-any.whl → 8.0.0a2__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 +131 -13
- dkg/constants.py +3 -7
- dkg/data/interfaces/ContentAsset.json +15 -119
- dkg/data/interfaces/ContentAssetStorage.json +0 -76
- dkg/data/interfaces/Hub.json +2 -2
- dkg/data/interfaces/IdentityStorage.json +342 -0
- dkg/data/interfaces/Paranet.json +721 -16
- dkg/data/interfaces/ParanetsRegistry.json +771 -33
- dkg/dataclasses.py +11 -1
- dkg/exceptions.py +1 -0
- dkg/node.py +7 -0
- dkg/paranet.py +336 -2
- dkg/providers/blockchain.py +6 -4
- dkg/types/__init__.py +15 -3
- dkg/types/general.py +15 -8
- dkg/utils/blockchain_request.py +121 -1
- dkg/utils/merkle.py +1 -1
- dkg/utils/node_request.py +1 -1
- dkg/utils/rdf.py +1 -3
- dkg/utils/string_transformations.py +1 -0
- {dkg-8.0.0a1.dist-info → dkg-8.0.0a2.dist-info}/METADATA +8 -7
- {dkg-8.0.0a1.dist-info → dkg-8.0.0a2.dist-info}/RECORD +25 -24
- {dkg-8.0.0a1.dist-info → dkg-8.0.0a2.dist-info}/LICENSE +0 -0
- {dkg-8.0.0a1.dist-info → dkg-8.0.0a2.dist-info}/NOTICE +0 -0
- {dkg-8.0.0a1.dist-info → dkg-8.0.0a2.dist-info}/WHEEL +0 -0
@@ -28,6 +28,29 @@
|
|
28
28
|
"stateMutability": "nonpayable",
|
29
29
|
"type": "function"
|
30
30
|
},
|
31
|
+
{
|
32
|
+
"inputs": [
|
33
|
+
{
|
34
|
+
"internalType": "bytes32",
|
35
|
+
"name": "paranetId",
|
36
|
+
"type": "bytes32"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"internalType": "uint72",
|
40
|
+
"name": "identityId",
|
41
|
+
"type": "uint72"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"internalType": "bytes",
|
45
|
+
"name": "nodeId",
|
46
|
+
"type": "bytes"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"name": "addCuratedNode",
|
50
|
+
"outputs": [],
|
51
|
+
"stateMutability": "nonpayable",
|
52
|
+
"type": "function"
|
53
|
+
},
|
31
54
|
{
|
32
55
|
"inputs": [
|
33
56
|
{
|
@@ -64,6 +87,52 @@
|
|
64
87
|
"stateMutability": "nonpayable",
|
65
88
|
"type": "function"
|
66
89
|
},
|
90
|
+
{
|
91
|
+
"inputs": [
|
92
|
+
{
|
93
|
+
"internalType": "bytes32",
|
94
|
+
"name": "paranetId",
|
95
|
+
"type": "bytes32"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"internalType": "address",
|
99
|
+
"name": "miner",
|
100
|
+
"type": "address"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
104
|
+
"name": "status",
|
105
|
+
"type": "uint8"
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"name": "addKnowledgeMinerAccessRequest",
|
109
|
+
"outputs": [],
|
110
|
+
"stateMutability": "nonpayable",
|
111
|
+
"type": "function"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "bytes32",
|
117
|
+
"name": "paranetId",
|
118
|
+
"type": "bytes32"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "uint72",
|
122
|
+
"name": "identityId",
|
123
|
+
"type": "uint72"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
127
|
+
"name": "status",
|
128
|
+
"type": "uint8"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"name": "addNodeJoinRequest",
|
132
|
+
"outputs": [],
|
133
|
+
"stateMutability": "nonpayable",
|
134
|
+
"type": "function"
|
135
|
+
},
|
67
136
|
{
|
68
137
|
"inputs": [
|
69
138
|
{
|
@@ -145,6 +214,56 @@
|
|
145
214
|
"stateMutability": "view",
|
146
215
|
"type": "function"
|
147
216
|
},
|
217
|
+
{
|
218
|
+
"inputs": [
|
219
|
+
{
|
220
|
+
"internalType": "bytes32",
|
221
|
+
"name": "paranetId",
|
222
|
+
"type": "bytes32"
|
223
|
+
}
|
224
|
+
],
|
225
|
+
"name": "getCuratedNodes",
|
226
|
+
"outputs": [
|
227
|
+
{
|
228
|
+
"components": [
|
229
|
+
{
|
230
|
+
"internalType": "uint72",
|
231
|
+
"name": "identityId",
|
232
|
+
"type": "uint72"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"internalType": "bytes",
|
236
|
+
"name": "nodeId",
|
237
|
+
"type": "bytes"
|
238
|
+
}
|
239
|
+
],
|
240
|
+
"internalType": "struct ParanetStructs.Node[]",
|
241
|
+
"name": "",
|
242
|
+
"type": "tuple[]"
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"stateMutability": "view",
|
246
|
+
"type": "function"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"inputs": [
|
250
|
+
{
|
251
|
+
"internalType": "bytes32",
|
252
|
+
"name": "paranetId",
|
253
|
+
"type": "bytes32"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"name": "getCuratedNodesCount",
|
257
|
+
"outputs": [
|
258
|
+
{
|
259
|
+
"internalType": "uint256",
|
260
|
+
"name": "",
|
261
|
+
"type": "uint256"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"stateMutability": "view",
|
265
|
+
"type": "function"
|
266
|
+
},
|
148
267
|
{
|
149
268
|
"inputs": [
|
150
269
|
{
|
@@ -196,12 +315,359 @@
|
|
196
315
|
"type": "bytes32"
|
197
316
|
}
|
198
317
|
],
|
199
|
-
"name": "getKnowledgeAssets",
|
318
|
+
"name": "getKnowledgeAssets",
|
319
|
+
"outputs": [
|
320
|
+
{
|
321
|
+
"internalType": "bytes32[]",
|
322
|
+
"name": "",
|
323
|
+
"type": "bytes32[]"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"stateMutability": "view",
|
327
|
+
"type": "function"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"inputs": [
|
331
|
+
{
|
332
|
+
"internalType": "bytes32",
|
333
|
+
"name": "paranetId",
|
334
|
+
"type": "bytes32"
|
335
|
+
}
|
336
|
+
],
|
337
|
+
"name": "getKnowledgeAssetsAccessPolicy",
|
338
|
+
"outputs": [
|
339
|
+
{
|
340
|
+
"internalType": "enum ParanetStructs.KnowledgeAssetsAccessPolicy",
|
341
|
+
"name": "",
|
342
|
+
"type": "uint8"
|
343
|
+
}
|
344
|
+
],
|
345
|
+
"stateMutability": "view",
|
346
|
+
"type": "function"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"inputs": [
|
350
|
+
{
|
351
|
+
"internalType": "bytes32",
|
352
|
+
"name": "paranetId",
|
353
|
+
"type": "bytes32"
|
354
|
+
}
|
355
|
+
],
|
356
|
+
"name": "getKnowledgeAssetsCount",
|
357
|
+
"outputs": [
|
358
|
+
{
|
359
|
+
"internalType": "uint256",
|
360
|
+
"name": "",
|
361
|
+
"type": "uint256"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"stateMutability": "view",
|
365
|
+
"type": "function"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"inputs": [
|
369
|
+
{
|
370
|
+
"internalType": "bytes32",
|
371
|
+
"name": "paranetId",
|
372
|
+
"type": "bytes32"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"internalType": "bytes32",
|
376
|
+
"name": "knowledgeAssetId",
|
377
|
+
"type": "bytes32"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"internalType": "uint256",
|
381
|
+
"name": "limit",
|
382
|
+
"type": "uint256"
|
383
|
+
}
|
384
|
+
],
|
385
|
+
"name": "getKnowledgeAssetsStartingFromKnowledgeAssetId",
|
386
|
+
"outputs": [
|
387
|
+
{
|
388
|
+
"internalType": "bytes32[]",
|
389
|
+
"name": "",
|
390
|
+
"type": "bytes32[]"
|
391
|
+
}
|
392
|
+
],
|
393
|
+
"stateMutability": "view",
|
394
|
+
"type": "function"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"inputs": [
|
398
|
+
{
|
399
|
+
"internalType": "bytes32",
|
400
|
+
"name": "paranetId",
|
401
|
+
"type": "bytes32"
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"internalType": "uint256",
|
405
|
+
"name": "offset",
|
406
|
+
"type": "uint256"
|
407
|
+
},
|
408
|
+
{
|
409
|
+
"internalType": "uint256",
|
410
|
+
"name": "limit",
|
411
|
+
"type": "uint256"
|
412
|
+
}
|
413
|
+
],
|
414
|
+
"name": "getKnowledgeAssetsWithPagination",
|
415
|
+
"outputs": [
|
416
|
+
{
|
417
|
+
"internalType": "bytes32[]",
|
418
|
+
"name": "",
|
419
|
+
"type": "bytes32[]"
|
420
|
+
}
|
421
|
+
],
|
422
|
+
"stateMutability": "view",
|
423
|
+
"type": "function"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"inputs": [
|
427
|
+
{
|
428
|
+
"internalType": "bytes32",
|
429
|
+
"name": "paranetId",
|
430
|
+
"type": "bytes32"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"internalType": "address",
|
434
|
+
"name": "miner",
|
435
|
+
"type": "address"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"internalType": "uint256",
|
439
|
+
"name": "index",
|
440
|
+
"type": "uint256"
|
441
|
+
}
|
442
|
+
],
|
443
|
+
"name": "getKnowledgeMinerAccessRequest",
|
444
|
+
"outputs": [
|
445
|
+
{
|
446
|
+
"components": [
|
447
|
+
{
|
448
|
+
"internalType": "uint256",
|
449
|
+
"name": "createdAt",
|
450
|
+
"type": "uint256"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"internalType": "uint256",
|
454
|
+
"name": "updatedAt",
|
455
|
+
"type": "uint256"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"internalType": "address",
|
459
|
+
"name": "miner",
|
460
|
+
"type": "address"
|
461
|
+
},
|
462
|
+
{
|
463
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
464
|
+
"name": "status",
|
465
|
+
"type": "uint8"
|
466
|
+
}
|
467
|
+
],
|
468
|
+
"internalType": "struct ParanetStructs.ParanetKnowledgeMinerAccessRequest",
|
469
|
+
"name": "",
|
470
|
+
"type": "tuple"
|
471
|
+
}
|
472
|
+
],
|
473
|
+
"stateMutability": "view",
|
474
|
+
"type": "function"
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"inputs": [
|
478
|
+
{
|
479
|
+
"internalType": "bytes32",
|
480
|
+
"name": "paranetId",
|
481
|
+
"type": "bytes32"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"internalType": "address",
|
485
|
+
"name": "miner",
|
486
|
+
"type": "address"
|
487
|
+
}
|
488
|
+
],
|
489
|
+
"name": "getKnowledgeMinerAccessRequests",
|
490
|
+
"outputs": [
|
491
|
+
{
|
492
|
+
"components": [
|
493
|
+
{
|
494
|
+
"internalType": "uint256",
|
495
|
+
"name": "createdAt",
|
496
|
+
"type": "uint256"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"internalType": "uint256",
|
500
|
+
"name": "updatedAt",
|
501
|
+
"type": "uint256"
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"internalType": "address",
|
505
|
+
"name": "miner",
|
506
|
+
"type": "address"
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
510
|
+
"name": "status",
|
511
|
+
"type": "uint8"
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"internalType": "struct ParanetStructs.ParanetKnowledgeMinerAccessRequest[]",
|
515
|
+
"name": "",
|
516
|
+
"type": "tuple[]"
|
517
|
+
}
|
518
|
+
],
|
519
|
+
"stateMutability": "view",
|
520
|
+
"type": "function"
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"inputs": [
|
524
|
+
{
|
525
|
+
"internalType": "bytes32",
|
526
|
+
"name": "paranetId",
|
527
|
+
"type": "bytes32"
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"internalType": "address",
|
531
|
+
"name": "miner",
|
532
|
+
"type": "address"
|
533
|
+
}
|
534
|
+
],
|
535
|
+
"name": "getKnowledgeMinerAccessRequestsCount",
|
536
|
+
"outputs": [
|
537
|
+
{
|
538
|
+
"internalType": "uint256",
|
539
|
+
"name": "",
|
540
|
+
"type": "uint256"
|
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
|
+
"name": "getKnowledgeMiners",
|
555
|
+
"outputs": [
|
556
|
+
{
|
557
|
+
"internalType": "address[]",
|
558
|
+
"name": "",
|
559
|
+
"type": "address[]"
|
560
|
+
}
|
561
|
+
],
|
562
|
+
"stateMutability": "view",
|
563
|
+
"type": "function"
|
564
|
+
},
|
565
|
+
{
|
566
|
+
"inputs": [
|
567
|
+
{
|
568
|
+
"internalType": "bytes32",
|
569
|
+
"name": "paranetId",
|
570
|
+
"type": "bytes32"
|
571
|
+
}
|
572
|
+
],
|
573
|
+
"name": "getKnowledgeMinersCount",
|
574
|
+
"outputs": [
|
575
|
+
{
|
576
|
+
"internalType": "uint256",
|
577
|
+
"name": "",
|
578
|
+
"type": "uint256"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
"stateMutability": "view",
|
582
|
+
"type": "function"
|
583
|
+
},
|
584
|
+
{
|
585
|
+
"inputs": [
|
586
|
+
{
|
587
|
+
"internalType": "bytes32",
|
588
|
+
"name": "paranetId",
|
589
|
+
"type": "bytes32"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"internalType": "address",
|
593
|
+
"name": "miner",
|
594
|
+
"type": "address"
|
595
|
+
}
|
596
|
+
],
|
597
|
+
"name": "getLatestKnowledgeMinerAccessRequest",
|
598
|
+
"outputs": [
|
599
|
+
{
|
600
|
+
"components": [
|
601
|
+
{
|
602
|
+
"internalType": "uint256",
|
603
|
+
"name": "createdAt",
|
604
|
+
"type": "uint256"
|
605
|
+
},
|
606
|
+
{
|
607
|
+
"internalType": "uint256",
|
608
|
+
"name": "updatedAt",
|
609
|
+
"type": "uint256"
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"internalType": "address",
|
613
|
+
"name": "miner",
|
614
|
+
"type": "address"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
618
|
+
"name": "status",
|
619
|
+
"type": "uint8"
|
620
|
+
}
|
621
|
+
],
|
622
|
+
"internalType": "struct ParanetStructs.ParanetKnowledgeMinerAccessRequest",
|
623
|
+
"name": "",
|
624
|
+
"type": "tuple"
|
625
|
+
}
|
626
|
+
],
|
627
|
+
"stateMutability": "view",
|
628
|
+
"type": "function"
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"inputs": [
|
632
|
+
{
|
633
|
+
"internalType": "bytes32",
|
634
|
+
"name": "paranetId",
|
635
|
+
"type": "bytes32"
|
636
|
+
},
|
637
|
+
{
|
638
|
+
"internalType": "uint72",
|
639
|
+
"name": "identityId",
|
640
|
+
"type": "uint72"
|
641
|
+
}
|
642
|
+
],
|
643
|
+
"name": "getLatestNodeJoinRequest",
|
200
644
|
"outputs": [
|
201
645
|
{
|
202
|
-
"
|
646
|
+
"components": [
|
647
|
+
{
|
648
|
+
"internalType": "uint256",
|
649
|
+
"name": "createdAt",
|
650
|
+
"type": "uint256"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"internalType": "uint256",
|
654
|
+
"name": "updatedAt",
|
655
|
+
"type": "uint256"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"internalType": "uint72",
|
659
|
+
"name": "identityId",
|
660
|
+
"type": "uint72"
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
664
|
+
"name": "status",
|
665
|
+
"type": "uint8"
|
666
|
+
}
|
667
|
+
],
|
668
|
+
"internalType": "struct ParanetStructs.ParanetNodeJoinRequest",
|
203
669
|
"name": "",
|
204
|
-
"type": "
|
670
|
+
"type": "tuple"
|
205
671
|
}
|
206
672
|
],
|
207
673
|
"stateMutability": "view",
|
@@ -215,12 +681,12 @@
|
|
215
681
|
"type": "bytes32"
|
216
682
|
}
|
217
683
|
],
|
218
|
-
"name": "
|
684
|
+
"name": "getMinersAccessPolicy",
|
219
685
|
"outputs": [
|
220
686
|
{
|
221
|
-
"internalType": "
|
687
|
+
"internalType": "enum ParanetStructs.MinersAccessPolicy",
|
222
688
|
"name": "",
|
223
|
-
"type": "
|
689
|
+
"type": "uint8"
|
224
690
|
}
|
225
691
|
],
|
226
692
|
"stateMutability": "view",
|
@@ -232,24 +698,14 @@
|
|
232
698
|
"internalType": "bytes32",
|
233
699
|
"name": "paranetId",
|
234
700
|
"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
701
|
}
|
246
702
|
],
|
247
|
-
"name": "
|
703
|
+
"name": "getName",
|
248
704
|
"outputs": [
|
249
705
|
{
|
250
|
-
"internalType": "
|
706
|
+
"internalType": "string",
|
251
707
|
"name": "",
|
252
|
-
"type": "
|
708
|
+
"type": "string"
|
253
709
|
}
|
254
710
|
],
|
255
711
|
"stateMutability": "view",
|
@@ -263,22 +719,44 @@
|
|
263
719
|
"type": "bytes32"
|
264
720
|
},
|
265
721
|
{
|
266
|
-
"internalType": "
|
267
|
-
"name": "
|
268
|
-
"type": "
|
722
|
+
"internalType": "uint72",
|
723
|
+
"name": "identityId",
|
724
|
+
"type": "uint72"
|
269
725
|
},
|
270
726
|
{
|
271
727
|
"internalType": "uint256",
|
272
|
-
"name": "
|
728
|
+
"name": "index",
|
273
729
|
"type": "uint256"
|
274
730
|
}
|
275
731
|
],
|
276
|
-
"name": "
|
732
|
+
"name": "getNodeJoinRequest",
|
277
733
|
"outputs": [
|
278
734
|
{
|
279
|
-
"
|
735
|
+
"components": [
|
736
|
+
{
|
737
|
+
"internalType": "uint256",
|
738
|
+
"name": "createdAt",
|
739
|
+
"type": "uint256"
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"internalType": "uint256",
|
743
|
+
"name": "updatedAt",
|
744
|
+
"type": "uint256"
|
745
|
+
},
|
746
|
+
{
|
747
|
+
"internalType": "uint72",
|
748
|
+
"name": "identityId",
|
749
|
+
"type": "uint72"
|
750
|
+
},
|
751
|
+
{
|
752
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
753
|
+
"name": "status",
|
754
|
+
"type": "uint8"
|
755
|
+
}
|
756
|
+
],
|
757
|
+
"internalType": "struct ParanetStructs.ParanetNodeJoinRequest",
|
280
758
|
"name": "",
|
281
|
-
"type": "
|
759
|
+
"type": "tuple"
|
282
760
|
}
|
283
761
|
],
|
284
762
|
"stateMutability": "view",
|
@@ -290,14 +768,41 @@
|
|
290
768
|
"internalType": "bytes32",
|
291
769
|
"name": "paranetId",
|
292
770
|
"type": "bytes32"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"internalType": "uint72",
|
774
|
+
"name": "identityId",
|
775
|
+
"type": "uint72"
|
293
776
|
}
|
294
777
|
],
|
295
|
-
"name": "
|
778
|
+
"name": "getNodeJoinRequests",
|
296
779
|
"outputs": [
|
297
780
|
{
|
298
|
-
"
|
781
|
+
"components": [
|
782
|
+
{
|
783
|
+
"internalType": "uint256",
|
784
|
+
"name": "createdAt",
|
785
|
+
"type": "uint256"
|
786
|
+
},
|
787
|
+
{
|
788
|
+
"internalType": "uint256",
|
789
|
+
"name": "updatedAt",
|
790
|
+
"type": "uint256"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"internalType": "uint72",
|
794
|
+
"name": "identityId",
|
795
|
+
"type": "uint72"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
799
|
+
"name": "status",
|
800
|
+
"type": "uint8"
|
801
|
+
}
|
802
|
+
],
|
803
|
+
"internalType": "struct ParanetStructs.ParanetNodeJoinRequest[]",
|
299
804
|
"name": "",
|
300
|
-
"type": "
|
805
|
+
"type": "tuple[]"
|
301
806
|
}
|
302
807
|
],
|
303
808
|
"stateMutability": "view",
|
@@ -309,9 +814,14 @@
|
|
309
814
|
"internalType": "bytes32",
|
310
815
|
"name": "paranetId",
|
311
816
|
"type": "bytes32"
|
817
|
+
},
|
818
|
+
{
|
819
|
+
"internalType": "uint72",
|
820
|
+
"name": "identityId",
|
821
|
+
"type": "uint72"
|
312
822
|
}
|
313
823
|
],
|
314
|
-
"name": "
|
824
|
+
"name": "getNodeJoinRequestsCount",
|
315
825
|
"outputs": [
|
316
826
|
{
|
317
827
|
"internalType": "uint256",
|
@@ -330,12 +840,12 @@
|
|
330
840
|
"type": "bytes32"
|
331
841
|
}
|
332
842
|
],
|
333
|
-
"name": "
|
843
|
+
"name": "getNodesAccessPolicy",
|
334
844
|
"outputs": [
|
335
845
|
{
|
336
|
-
"internalType": "
|
846
|
+
"internalType": "enum ParanetStructs.NodesAccessPolicy",
|
337
847
|
"name": "",
|
338
|
-
"type": "
|
848
|
+
"type": "uint8"
|
339
849
|
}
|
340
850
|
],
|
341
851
|
"stateMutability": "view",
|
@@ -397,6 +907,21 @@
|
|
397
907
|
"name": "description",
|
398
908
|
"type": "string"
|
399
909
|
},
|
910
|
+
{
|
911
|
+
"internalType": "enum ParanetStructs.NodesAccessPolicy",
|
912
|
+
"name": "nodesAccessPolicy",
|
913
|
+
"type": "uint8"
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"internalType": "enum ParanetStructs.MinersAccessPolicy",
|
917
|
+
"name": "minersAccessPolicy",
|
918
|
+
"type": "uint8"
|
919
|
+
},
|
920
|
+
{
|
921
|
+
"internalType": "enum ParanetStructs.KnowledgeAssetsAccessPolicy",
|
922
|
+
"name": "knowledgeAssetsAccessPolicy",
|
923
|
+
"type": "uint8"
|
924
|
+
},
|
400
925
|
{
|
401
926
|
"internalType": "uint96",
|
402
927
|
"name": "cumulativeKnowledgeValue",
|
@@ -510,6 +1035,30 @@
|
|
510
1035
|
"stateMutability": "view",
|
511
1036
|
"type": "function"
|
512
1037
|
},
|
1038
|
+
{
|
1039
|
+
"inputs": [
|
1040
|
+
{
|
1041
|
+
"internalType": "bytes32",
|
1042
|
+
"name": "paranetId",
|
1043
|
+
"type": "bytes32"
|
1044
|
+
},
|
1045
|
+
{
|
1046
|
+
"internalType": "uint72",
|
1047
|
+
"name": "identityId",
|
1048
|
+
"type": "uint72"
|
1049
|
+
}
|
1050
|
+
],
|
1051
|
+
"name": "isCuratedNode",
|
1052
|
+
"outputs": [
|
1053
|
+
{
|
1054
|
+
"internalType": "bool",
|
1055
|
+
"name": "",
|
1056
|
+
"type": "bool"
|
1057
|
+
}
|
1058
|
+
],
|
1059
|
+
"stateMutability": "view",
|
1060
|
+
"type": "function"
|
1061
|
+
},
|
513
1062
|
{
|
514
1063
|
"inputs": [
|
515
1064
|
{
|
@@ -635,6 +1184,21 @@
|
|
635
1184
|
"internalType": "string",
|
636
1185
|
"name": "paranetDescription",
|
637
1186
|
"type": "string"
|
1187
|
+
},
|
1188
|
+
{
|
1189
|
+
"internalType": "enum ParanetStructs.NodesAccessPolicy",
|
1190
|
+
"name": "nodesAccessPolicy",
|
1191
|
+
"type": "uint8"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"internalType": "enum ParanetStructs.MinersAccessPolicy",
|
1195
|
+
"name": "minersAccessPolicy",
|
1196
|
+
"type": "uint8"
|
1197
|
+
},
|
1198
|
+
{
|
1199
|
+
"internalType": "enum ParanetStructs.KnowledgeAssetsAccessPolicy",
|
1200
|
+
"name": "knowledgeAssetsAccessPolicy",
|
1201
|
+
"type": "uint8"
|
638
1202
|
}
|
639
1203
|
],
|
640
1204
|
"name": "registerParanet",
|
@@ -648,6 +1212,24 @@
|
|
648
1212
|
"stateMutability": "nonpayable",
|
649
1213
|
"type": "function"
|
650
1214
|
},
|
1215
|
+
{
|
1216
|
+
"inputs": [
|
1217
|
+
{
|
1218
|
+
"internalType": "bytes32",
|
1219
|
+
"name": "paranetId",
|
1220
|
+
"type": "bytes32"
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
"internalType": "uint72",
|
1224
|
+
"name": "identityId",
|
1225
|
+
"type": "uint72"
|
1226
|
+
}
|
1227
|
+
],
|
1228
|
+
"name": "removeCuratedNode",
|
1229
|
+
"outputs": [],
|
1230
|
+
"stateMutability": "nonpayable",
|
1231
|
+
"type": "function"
|
1232
|
+
},
|
651
1233
|
{
|
652
1234
|
"inputs": [
|
653
1235
|
{
|
@@ -720,6 +1302,52 @@
|
|
720
1302
|
"stateMutability": "nonpayable",
|
721
1303
|
"type": "function"
|
722
1304
|
},
|
1305
|
+
{
|
1306
|
+
"inputs": [
|
1307
|
+
{
|
1308
|
+
"internalType": "bytes32",
|
1309
|
+
"name": "paranetId",
|
1310
|
+
"type": "bytes32"
|
1311
|
+
},
|
1312
|
+
{
|
1313
|
+
"internalType": "address",
|
1314
|
+
"name": "miner",
|
1315
|
+
"type": "address"
|
1316
|
+
},
|
1317
|
+
{
|
1318
|
+
"internalType": "uint256",
|
1319
|
+
"name": "index",
|
1320
|
+
"type": "uint256"
|
1321
|
+
}
|
1322
|
+
],
|
1323
|
+
"name": "removeKnowledgeMinerAccessRequest",
|
1324
|
+
"outputs": [],
|
1325
|
+
"stateMutability": "nonpayable",
|
1326
|
+
"type": "function"
|
1327
|
+
},
|
1328
|
+
{
|
1329
|
+
"inputs": [
|
1330
|
+
{
|
1331
|
+
"internalType": "bytes32",
|
1332
|
+
"name": "paranetId",
|
1333
|
+
"type": "bytes32"
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
"internalType": "uint72",
|
1337
|
+
"name": "identityId",
|
1338
|
+
"type": "uint72"
|
1339
|
+
},
|
1340
|
+
{
|
1341
|
+
"internalType": "uint256",
|
1342
|
+
"name": "index",
|
1343
|
+
"type": "uint256"
|
1344
|
+
}
|
1345
|
+
],
|
1346
|
+
"name": "removeNodeJoinRequest",
|
1347
|
+
"outputs": [],
|
1348
|
+
"stateMutability": "nonpayable",
|
1349
|
+
"type": "function"
|
1350
|
+
},
|
723
1351
|
{
|
724
1352
|
"inputs": [
|
725
1353
|
{
|
@@ -797,6 +1425,42 @@
|
|
797
1425
|
"stateMutability": "nonpayable",
|
798
1426
|
"type": "function"
|
799
1427
|
},
|
1428
|
+
{
|
1429
|
+
"inputs": [
|
1430
|
+
{
|
1431
|
+
"internalType": "bytes32",
|
1432
|
+
"name": "paranetId",
|
1433
|
+
"type": "bytes32"
|
1434
|
+
},
|
1435
|
+
{
|
1436
|
+
"internalType": "enum ParanetStructs.KnowledgeAssetsAccessPolicy",
|
1437
|
+
"name": "knowledgeAssetsAccessPolicy",
|
1438
|
+
"type": "uint8"
|
1439
|
+
}
|
1440
|
+
],
|
1441
|
+
"name": "setKnowledgeAssetsAccessPolicy",
|
1442
|
+
"outputs": [],
|
1443
|
+
"stateMutability": "nonpayable",
|
1444
|
+
"type": "function"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"inputs": [
|
1448
|
+
{
|
1449
|
+
"internalType": "bytes32",
|
1450
|
+
"name": "paranetId",
|
1451
|
+
"type": "bytes32"
|
1452
|
+
},
|
1453
|
+
{
|
1454
|
+
"internalType": "enum ParanetStructs.MinersAccessPolicy",
|
1455
|
+
"name": "minersAccessPolicy",
|
1456
|
+
"type": "uint8"
|
1457
|
+
}
|
1458
|
+
],
|
1459
|
+
"name": "setMinersAccessPolicy",
|
1460
|
+
"outputs": [],
|
1461
|
+
"stateMutability": "nonpayable",
|
1462
|
+
"type": "function"
|
1463
|
+
},
|
800
1464
|
{
|
801
1465
|
"inputs": [
|
802
1466
|
{
|
@@ -815,6 +1479,24 @@
|
|
815
1479
|
"stateMutability": "nonpayable",
|
816
1480
|
"type": "function"
|
817
1481
|
},
|
1482
|
+
{
|
1483
|
+
"inputs": [
|
1484
|
+
{
|
1485
|
+
"internalType": "bytes32",
|
1486
|
+
"name": "paranetId",
|
1487
|
+
"type": "bytes32"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"internalType": "enum ParanetStructs.NodesAccessPolicy",
|
1491
|
+
"name": "nodesAccessPolicy",
|
1492
|
+
"type": "uint8"
|
1493
|
+
}
|
1494
|
+
],
|
1495
|
+
"name": "setNodesAccessPolicy",
|
1496
|
+
"outputs": [],
|
1497
|
+
"stateMutability": "nonpayable",
|
1498
|
+
"type": "function"
|
1499
|
+
},
|
818
1500
|
{
|
819
1501
|
"inputs": [
|
820
1502
|
{
|
@@ -856,6 +1538,62 @@
|
|
856
1538
|
"stateMutability": "nonpayable",
|
857
1539
|
"type": "function"
|
858
1540
|
},
|
1541
|
+
{
|
1542
|
+
"inputs": [
|
1543
|
+
{
|
1544
|
+
"internalType": "bytes32",
|
1545
|
+
"name": "paranetId",
|
1546
|
+
"type": "bytes32"
|
1547
|
+
},
|
1548
|
+
{
|
1549
|
+
"internalType": "address",
|
1550
|
+
"name": "miner",
|
1551
|
+
"type": "address"
|
1552
|
+
},
|
1553
|
+
{
|
1554
|
+
"internalType": "uint256",
|
1555
|
+
"name": "index",
|
1556
|
+
"type": "uint256"
|
1557
|
+
},
|
1558
|
+
{
|
1559
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
1560
|
+
"name": "status",
|
1561
|
+
"type": "uint8"
|
1562
|
+
}
|
1563
|
+
],
|
1564
|
+
"name": "updateKnowledgeMinerAccessRequestStatus",
|
1565
|
+
"outputs": [],
|
1566
|
+
"stateMutability": "nonpayable",
|
1567
|
+
"type": "function"
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"inputs": [
|
1571
|
+
{
|
1572
|
+
"internalType": "bytes32",
|
1573
|
+
"name": "paranetId",
|
1574
|
+
"type": "bytes32"
|
1575
|
+
},
|
1576
|
+
{
|
1577
|
+
"internalType": "uint72",
|
1578
|
+
"name": "identityId",
|
1579
|
+
"type": "uint72"
|
1580
|
+
},
|
1581
|
+
{
|
1582
|
+
"internalType": "uint256",
|
1583
|
+
"name": "index",
|
1584
|
+
"type": "uint256"
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"internalType": "enum ParanetStructs.RequestStatus",
|
1588
|
+
"name": "status",
|
1589
|
+
"type": "uint8"
|
1590
|
+
}
|
1591
|
+
],
|
1592
|
+
"name": "updateNodeJoinRequestStatus",
|
1593
|
+
"outputs": [],
|
1594
|
+
"stateMutability": "nonpayable",
|
1595
|
+
"type": "function"
|
1596
|
+
},
|
859
1597
|
{
|
860
1598
|
"inputs": [],
|
861
1599
|
"name": "version",
|