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
@@ -0,0 +1,2312 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "hubAddress",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "_knowledgeCollectionMaxSize",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "string",
16
+ "name": "uri",
17
+ "type": "string"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "ApprovalCallerNotOwnerNorApproved",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "BalanceQueryForZeroAddress",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "BurnFromNonOnwerAddress",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "BurnFromZeroAddress",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "custodian",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "CustodianHasNoOwners",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "custodian",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "CustodianNotAContract",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "address",
69
+ "name": "custodian",
70
+ "type": "address"
71
+ }
72
+ ],
73
+ "name": "CustodianWithoutOwnersFunction",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "EtherTransferFailed",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "id",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "minted",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "requested",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "maxSize",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "ExceededKnowledgeCollectionMaxSize",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "InputLengthMistmatch",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "InvalidQueryRange",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "internalType": "address",
121
+ "name": "tokenContractAddress",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "InvalidTokenContract",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "MintToZeroAddress",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "MintZeroQuantity",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "uint256",
142
+ "name": "id",
143
+ "type": "uint256"
144
+ },
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "tokenId",
148
+ "type": "uint256"
149
+ }
150
+ ],
151
+ "name": "NotPartOfKnowledgeCollection",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "inputs": [],
156
+ "name": "TokenTransferFailed",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "TransferCallerNotOwnerNorApproved",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "TransferFromIncorrectOwnerOrInvalidAmount",
167
+ "type": "error"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "TransferToNonERC1155ReceiverImplementer",
172
+ "type": "error"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "TransferToZeroAddress",
177
+ "type": "error"
178
+ },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "internalType": "string",
183
+ "name": "msg",
184
+ "type": "string"
185
+ }
186
+ ],
187
+ "name": "UnauthorizedAccess",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "ZeroAddressCustodian",
193
+ "type": "error"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "ZeroAddressHub",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "anonymous": false,
202
+ "inputs": [
203
+ {
204
+ "indexed": true,
205
+ "internalType": "address",
206
+ "name": "account",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "indexed": true,
211
+ "internalType": "address",
212
+ "name": "operator",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "indexed": false,
217
+ "internalType": "bool",
218
+ "name": "approved",
219
+ "type": "bool"
220
+ }
221
+ ],
222
+ "name": "ApprovalForAll",
223
+ "type": "event"
224
+ },
225
+ {
226
+ "anonymous": false,
227
+ "inputs": [
228
+ {
229
+ "indexed": true,
230
+ "internalType": "uint256",
231
+ "name": "id",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "indexed": true,
236
+ "internalType": "address",
237
+ "name": "from",
238
+ "type": "address"
239
+ },
240
+ {
241
+ "indexed": false,
242
+ "internalType": "uint256[]",
243
+ "name": "tokenIds",
244
+ "type": "uint256[]"
245
+ }
246
+ ],
247
+ "name": "KnowledgeAssetsBurned",
248
+ "type": "event"
249
+ },
250
+ {
251
+ "anonymous": false,
252
+ "inputs": [
253
+ {
254
+ "indexed": true,
255
+ "internalType": "uint256",
256
+ "name": "id",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "indexed": true,
261
+ "internalType": "address",
262
+ "name": "to",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "indexed": false,
267
+ "internalType": "uint256",
268
+ "name": "startId",
269
+ "type": "uint256"
270
+ },
271
+ {
272
+ "indexed": false,
273
+ "internalType": "uint256",
274
+ "name": "endId",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "name": "KnowledgeAssetsMinted",
279
+ "type": "event"
280
+ },
281
+ {
282
+ "anonymous": false,
283
+ "inputs": [
284
+ {
285
+ "indexed": true,
286
+ "internalType": "uint256",
287
+ "name": "id",
288
+ "type": "uint256"
289
+ },
290
+ {
291
+ "indexed": false,
292
+ "internalType": "uint256[]",
293
+ "name": "burned",
294
+ "type": "uint256[]"
295
+ }
296
+ ],
297
+ "name": "KnowledgeCollectionBurnedUpdated",
298
+ "type": "event"
299
+ },
300
+ {
301
+ "anonymous": false,
302
+ "inputs": [
303
+ {
304
+ "indexed": true,
305
+ "internalType": "uint256",
306
+ "name": "id",
307
+ "type": "uint256"
308
+ },
309
+ {
310
+ "indexed": false,
311
+ "internalType": "uint256",
312
+ "name": "byteSize",
313
+ "type": "uint256"
314
+ }
315
+ ],
316
+ "name": "KnowledgeCollectionByteSizeUpdated",
317
+ "type": "event"
318
+ },
319
+ {
320
+ "anonymous": false,
321
+ "inputs": [
322
+ {
323
+ "indexed": true,
324
+ "internalType": "uint256",
325
+ "name": "id",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "chunksAmount",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "KnowledgeCollectionChunksAmountUpdated",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": true,
343
+ "internalType": "uint256",
344
+ "name": "id",
345
+ "type": "uint256"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "string",
350
+ "name": "publishOperationId",
351
+ "type": "string"
352
+ },
353
+ {
354
+ "indexed": false,
355
+ "internalType": "bytes32",
356
+ "name": "merkleRoot",
357
+ "type": "bytes32"
358
+ },
359
+ {
360
+ "indexed": false,
361
+ "internalType": "uint88",
362
+ "name": "byteSize",
363
+ "type": "uint88"
364
+ },
365
+ {
366
+ "indexed": false,
367
+ "internalType": "uint40",
368
+ "name": "startEpoch",
369
+ "type": "uint40"
370
+ },
371
+ {
372
+ "indexed": false,
373
+ "internalType": "uint40",
374
+ "name": "endEpoch",
375
+ "type": "uint40"
376
+ },
377
+ {
378
+ "indexed": false,
379
+ "internalType": "uint96",
380
+ "name": "tokenAmount",
381
+ "type": "uint96"
382
+ },
383
+ {
384
+ "indexed": false,
385
+ "internalType": "bool",
386
+ "name": "isImmutable",
387
+ "type": "bool"
388
+ }
389
+ ],
390
+ "name": "KnowledgeCollectionCreated",
391
+ "type": "event"
392
+ },
393
+ {
394
+ "anonymous": false,
395
+ "inputs": [
396
+ {
397
+ "indexed": true,
398
+ "internalType": "uint256",
399
+ "name": "id",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "indexed": false,
404
+ "internalType": "uint256",
405
+ "name": "endEpoch",
406
+ "type": "uint256"
407
+ }
408
+ ],
409
+ "name": "KnowledgeCollectionEndEpochUpdated",
410
+ "type": "event"
411
+ },
412
+ {
413
+ "anonymous": false,
414
+ "inputs": [
415
+ {
416
+ "indexed": true,
417
+ "internalType": "uint256",
418
+ "name": "id",
419
+ "type": "uint256"
420
+ },
421
+ {
422
+ "indexed": false,
423
+ "internalType": "bytes32",
424
+ "name": "merkleRoot",
425
+ "type": "bytes32"
426
+ }
427
+ ],
428
+ "name": "KnowledgeCollectionMerkleRootAdded",
429
+ "type": "event"
430
+ },
431
+ {
432
+ "anonymous": false,
433
+ "inputs": [
434
+ {
435
+ "indexed": true,
436
+ "internalType": "uint256",
437
+ "name": "id",
438
+ "type": "uint256"
439
+ },
440
+ {
441
+ "indexed": false,
442
+ "internalType": "bytes32",
443
+ "name": "merkleRoot",
444
+ "type": "bytes32"
445
+ }
446
+ ],
447
+ "name": "KnowledgeCollectionMerkleRootRemoved",
448
+ "type": "event"
449
+ },
450
+ {
451
+ "anonymous": false,
452
+ "inputs": [
453
+ {
454
+ "indexed": true,
455
+ "internalType": "uint256",
456
+ "name": "id",
457
+ "type": "uint256"
458
+ },
459
+ {
460
+ "components": [
461
+ {
462
+ "internalType": "address",
463
+ "name": "publisher",
464
+ "type": "address"
465
+ },
466
+ {
467
+ "internalType": "bytes32",
468
+ "name": "merkleRoot",
469
+ "type": "bytes32"
470
+ },
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "timestamp",
474
+ "type": "uint256"
475
+ }
476
+ ],
477
+ "indexed": false,
478
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot[]",
479
+ "name": "merkleRoots",
480
+ "type": "tuple[]"
481
+ }
482
+ ],
483
+ "name": "KnowledgeCollectionMerkleRootsUpdated",
484
+ "type": "event"
485
+ },
486
+ {
487
+ "anonymous": false,
488
+ "inputs": [
489
+ {
490
+ "indexed": true,
491
+ "internalType": "uint256",
492
+ "name": "id",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "indexed": false,
497
+ "internalType": "uint256",
498
+ "name": "minted",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "name": "KnowledgeCollectionMintedUpdated",
503
+ "type": "event"
504
+ },
505
+ {
506
+ "anonymous": false,
507
+ "inputs": [
508
+ {
509
+ "indexed": true,
510
+ "internalType": "uint256",
511
+ "name": "id",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "indexed": false,
516
+ "internalType": "address",
517
+ "name": "publisher",
518
+ "type": "address"
519
+ }
520
+ ],
521
+ "name": "KnowledgeCollectionPublisherUpdated",
522
+ "type": "event"
523
+ },
524
+ {
525
+ "anonymous": false,
526
+ "inputs": [
527
+ {
528
+ "indexed": true,
529
+ "internalType": "uint256",
530
+ "name": "id",
531
+ "type": "uint256"
532
+ },
533
+ {
534
+ "indexed": false,
535
+ "internalType": "uint256",
536
+ "name": "startEpoch",
537
+ "type": "uint256"
538
+ }
539
+ ],
540
+ "name": "KnowledgeCollectionStartEpochUpdated",
541
+ "type": "event"
542
+ },
543
+ {
544
+ "anonymous": false,
545
+ "inputs": [
546
+ {
547
+ "indexed": true,
548
+ "internalType": "uint256",
549
+ "name": "id",
550
+ "type": "uint256"
551
+ },
552
+ {
553
+ "indexed": false,
554
+ "internalType": "uint256",
555
+ "name": "tokenAmount",
556
+ "type": "uint256"
557
+ }
558
+ ],
559
+ "name": "KnowledgeCollectionTokenAmountUpdated",
560
+ "type": "event"
561
+ },
562
+ {
563
+ "anonymous": false,
564
+ "inputs": [
565
+ {
566
+ "indexed": true,
567
+ "internalType": "uint256",
568
+ "name": "id",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "indexed": false,
573
+ "internalType": "string",
574
+ "name": "updateOperationId",
575
+ "type": "string"
576
+ },
577
+ {
578
+ "indexed": false,
579
+ "internalType": "bytes32",
580
+ "name": "merkleRoot",
581
+ "type": "bytes32"
582
+ },
583
+ {
584
+ "indexed": false,
585
+ "internalType": "uint256",
586
+ "name": "byteSize",
587
+ "type": "uint256"
588
+ },
589
+ {
590
+ "indexed": false,
591
+ "internalType": "uint96",
592
+ "name": "tokenAmount",
593
+ "type": "uint96"
594
+ }
595
+ ],
596
+ "name": "KnowledgeCollectionUpdated",
597
+ "type": "event"
598
+ },
599
+ {
600
+ "anonymous": false,
601
+ "inputs": [
602
+ {
603
+ "indexed": true,
604
+ "internalType": "address",
605
+ "name": "custodian",
606
+ "type": "address"
607
+ },
608
+ {
609
+ "indexed": false,
610
+ "internalType": "address",
611
+ "name": "tokenContract",
612
+ "type": "address"
613
+ },
614
+ {
615
+ "indexed": false,
616
+ "internalType": "uint256",
617
+ "name": "amount",
618
+ "type": "uint256"
619
+ }
620
+ ],
621
+ "name": "MisplacedERC20Withdrawn",
622
+ "type": "event"
623
+ },
624
+ {
625
+ "anonymous": false,
626
+ "inputs": [
627
+ {
628
+ "indexed": true,
629
+ "internalType": "address",
630
+ "name": "custodian",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "indexed": false,
635
+ "internalType": "uint256",
636
+ "name": "amount",
637
+ "type": "uint256"
638
+ }
639
+ ],
640
+ "name": "MisplacedEtherWithdrawn",
641
+ "type": "event"
642
+ },
643
+ {
644
+ "anonymous": false,
645
+ "inputs": [
646
+ {
647
+ "indexed": true,
648
+ "internalType": "address",
649
+ "name": "custodian",
650
+ "type": "address"
651
+ },
652
+ {
653
+ "indexed": false,
654
+ "internalType": "uint256",
655
+ "name": "amount",
656
+ "type": "uint256"
657
+ }
658
+ ],
659
+ "name": "TokenTransferred",
660
+ "type": "event"
661
+ },
662
+ {
663
+ "anonymous": false,
664
+ "inputs": [
665
+ {
666
+ "indexed": true,
667
+ "internalType": "address",
668
+ "name": "operator",
669
+ "type": "address"
670
+ },
671
+ {
672
+ "indexed": true,
673
+ "internalType": "address",
674
+ "name": "from",
675
+ "type": "address"
676
+ },
677
+ {
678
+ "indexed": true,
679
+ "internalType": "address",
680
+ "name": "to",
681
+ "type": "address"
682
+ },
683
+ {
684
+ "indexed": false,
685
+ "internalType": "uint256[]",
686
+ "name": "ids",
687
+ "type": "uint256[]"
688
+ },
689
+ {
690
+ "indexed": false,
691
+ "internalType": "uint256[]",
692
+ "name": "values",
693
+ "type": "uint256[]"
694
+ }
695
+ ],
696
+ "name": "TransferBatch",
697
+ "type": "event"
698
+ },
699
+ {
700
+ "anonymous": false,
701
+ "inputs": [
702
+ {
703
+ "indexed": true,
704
+ "internalType": "address",
705
+ "name": "operator",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "indexed": true,
710
+ "internalType": "address",
711
+ "name": "from",
712
+ "type": "address"
713
+ },
714
+ {
715
+ "indexed": true,
716
+ "internalType": "address",
717
+ "name": "to",
718
+ "type": "address"
719
+ },
720
+ {
721
+ "indexed": false,
722
+ "internalType": "uint256",
723
+ "name": "id",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "indexed": false,
728
+ "internalType": "uint256",
729
+ "name": "value",
730
+ "type": "uint256"
731
+ }
732
+ ],
733
+ "name": "TransferSingle",
734
+ "type": "event"
735
+ },
736
+ {
737
+ "anonymous": false,
738
+ "inputs": [
739
+ {
740
+ "indexed": false,
741
+ "internalType": "string",
742
+ "name": "value",
743
+ "type": "string"
744
+ },
745
+ {
746
+ "indexed": true,
747
+ "internalType": "uint256",
748
+ "name": "id",
749
+ "type": "uint256"
750
+ }
751
+ ],
752
+ "name": "URI",
753
+ "type": "event"
754
+ },
755
+ {
756
+ "anonymous": false,
757
+ "inputs": [
758
+ {
759
+ "indexed": false,
760
+ "internalType": "string",
761
+ "name": "newURI",
762
+ "type": "string"
763
+ }
764
+ ],
765
+ "name": "URIUpdate",
766
+ "type": "event"
767
+ },
768
+ {
769
+ "inputs": [],
770
+ "name": "KNOWLEDGE_COLLECTION_MAX_SIZE",
771
+ "outputs": [
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "",
775
+ "type": "uint256"
776
+ }
777
+ ],
778
+ "stateMutability": "view",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [
783
+ {
784
+ "internalType": "address",
785
+ "name": "account",
786
+ "type": "address"
787
+ },
788
+ {
789
+ "internalType": "uint256",
790
+ "name": "id",
791
+ "type": "uint256"
792
+ }
793
+ ],
794
+ "name": "balanceOf",
795
+ "outputs": [
796
+ {
797
+ "internalType": "uint256",
798
+ "name": "",
799
+ "type": "uint256"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "address",
809
+ "name": "owner",
810
+ "type": "address"
811
+ },
812
+ {
813
+ "internalType": "uint256",
814
+ "name": "start",
815
+ "type": "uint256"
816
+ },
817
+ {
818
+ "internalType": "uint256",
819
+ "name": "stop",
820
+ "type": "uint256"
821
+ }
822
+ ],
823
+ "name": "balanceOf",
824
+ "outputs": [
825
+ {
826
+ "internalType": "uint256",
827
+ "name": "",
828
+ "type": "uint256"
829
+ }
830
+ ],
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [
836
+ {
837
+ "internalType": "address",
838
+ "name": "owner",
839
+ "type": "address"
840
+ }
841
+ ],
842
+ "name": "balanceOf",
843
+ "outputs": [
844
+ {
845
+ "internalType": "uint256",
846
+ "name": "",
847
+ "type": "uint256"
848
+ }
849
+ ],
850
+ "stateMutability": "view",
851
+ "type": "function"
852
+ },
853
+ {
854
+ "inputs": [
855
+ {
856
+ "internalType": "address[]",
857
+ "name": "accounts",
858
+ "type": "address[]"
859
+ },
860
+ {
861
+ "internalType": "uint256[]",
862
+ "name": "ids",
863
+ "type": "uint256[]"
864
+ }
865
+ ],
866
+ "name": "balanceOfBatch",
867
+ "outputs": [
868
+ {
869
+ "internalType": "uint256[]",
870
+ "name": "",
871
+ "type": "uint256[]"
872
+ }
873
+ ],
874
+ "stateMutability": "view",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [
879
+ {
880
+ "internalType": "uint256",
881
+ "name": "id",
882
+ "type": "uint256"
883
+ },
884
+ {
885
+ "internalType": "address",
886
+ "name": "from",
887
+ "type": "address"
888
+ },
889
+ {
890
+ "internalType": "uint256[]",
891
+ "name": "tokenIds",
892
+ "type": "uint256[]"
893
+ }
894
+ ],
895
+ "name": "burnKnowledgeAssetsTokens",
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "address",
904
+ "name": "publisher",
905
+ "type": "address"
906
+ },
907
+ {
908
+ "internalType": "string",
909
+ "name": "publishOperationId",
910
+ "type": "string"
911
+ },
912
+ {
913
+ "internalType": "bytes32",
914
+ "name": "merkleRoot",
915
+ "type": "bytes32"
916
+ },
917
+ {
918
+ "internalType": "uint256",
919
+ "name": "knowledgeAssetsAmount",
920
+ "type": "uint256"
921
+ },
922
+ {
923
+ "internalType": "uint88",
924
+ "name": "byteSize",
925
+ "type": "uint88"
926
+ },
927
+ {
928
+ "internalType": "uint40",
929
+ "name": "startEpoch",
930
+ "type": "uint40"
931
+ },
932
+ {
933
+ "internalType": "uint40",
934
+ "name": "endEpoch",
935
+ "type": "uint40"
936
+ },
937
+ {
938
+ "internalType": "uint96",
939
+ "name": "tokenAmount",
940
+ "type": "uint96"
941
+ },
942
+ {
943
+ "internalType": "bool",
944
+ "name": "isImmutable",
945
+ "type": "bool"
946
+ }
947
+ ],
948
+ "name": "createKnowledgeCollection",
949
+ "outputs": [
950
+ {
951
+ "internalType": "uint256",
952
+ "name": "",
953
+ "type": "uint256"
954
+ }
955
+ ],
956
+ "stateMutability": "nonpayable",
957
+ "type": "function"
958
+ },
959
+ {
960
+ "inputs": [],
961
+ "name": "currentTotalSupply",
962
+ "outputs": [
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "",
966
+ "type": "uint256"
967
+ }
968
+ ],
969
+ "stateMutability": "view",
970
+ "type": "function"
971
+ },
972
+ {
973
+ "inputs": [
974
+ {
975
+ "internalType": "uint256",
976
+ "name": "id",
977
+ "type": "uint256"
978
+ }
979
+ ],
980
+ "name": "getBurned",
981
+ "outputs": [
982
+ {
983
+ "internalType": "uint256[]",
984
+ "name": "",
985
+ "type": "uint256[]"
986
+ }
987
+ ],
988
+ "stateMutability": "view",
989
+ "type": "function"
990
+ },
991
+ {
992
+ "inputs": [
993
+ {
994
+ "internalType": "uint256",
995
+ "name": "id",
996
+ "type": "uint256"
997
+ }
998
+ ],
999
+ "name": "getBurnedAmount",
1000
+ "outputs": [
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "",
1004
+ "type": "uint256"
1005
+ }
1006
+ ],
1007
+ "stateMutability": "view",
1008
+ "type": "function"
1009
+ },
1010
+ {
1011
+ "inputs": [
1012
+ {
1013
+ "internalType": "uint256",
1014
+ "name": "id",
1015
+ "type": "uint256"
1016
+ }
1017
+ ],
1018
+ "name": "getByteSize",
1019
+ "outputs": [
1020
+ {
1021
+ "internalType": "uint88",
1022
+ "name": "",
1023
+ "type": "uint88"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "view",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "internalType": "uint256",
1033
+ "name": "id",
1034
+ "type": "uint256"
1035
+ }
1036
+ ],
1037
+ "name": "getEndEpoch",
1038
+ "outputs": [
1039
+ {
1040
+ "internalType": "uint40",
1041
+ "name": "",
1042
+ "type": "uint40"
1043
+ }
1044
+ ],
1045
+ "stateMutability": "view",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [
1050
+ {
1051
+ "internalType": "uint256",
1052
+ "name": "id",
1053
+ "type": "uint256"
1054
+ }
1055
+ ],
1056
+ "name": "getKnowledgeAssetsAmount",
1057
+ "outputs": [
1058
+ {
1059
+ "internalType": "uint256",
1060
+ "name": "",
1061
+ "type": "uint256"
1062
+ }
1063
+ ],
1064
+ "stateMutability": "view",
1065
+ "type": "function"
1066
+ },
1067
+ {
1068
+ "inputs": [
1069
+ {
1070
+ "internalType": "uint256",
1071
+ "name": "id",
1072
+ "type": "uint256"
1073
+ }
1074
+ ],
1075
+ "name": "getKnowledgeAssetsRange",
1076
+ "outputs": [
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "",
1080
+ "type": "uint256"
1081
+ },
1082
+ {
1083
+ "internalType": "uint256",
1084
+ "name": "",
1085
+ "type": "uint256"
1086
+ },
1087
+ {
1088
+ "internalType": "uint256[]",
1089
+ "name": "",
1090
+ "type": "uint256[]"
1091
+ }
1092
+ ],
1093
+ "stateMutability": "view",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [
1098
+ {
1099
+ "internalType": "uint256",
1100
+ "name": "id",
1101
+ "type": "uint256"
1102
+ }
1103
+ ],
1104
+ "name": "getKnowledgeCollection",
1105
+ "outputs": [
1106
+ {
1107
+ "components": [
1108
+ {
1109
+ "components": [
1110
+ {
1111
+ "internalType": "address",
1112
+ "name": "publisher",
1113
+ "type": "address"
1114
+ },
1115
+ {
1116
+ "internalType": "bytes32",
1117
+ "name": "merkleRoot",
1118
+ "type": "bytes32"
1119
+ },
1120
+ {
1121
+ "internalType": "uint256",
1122
+ "name": "timestamp",
1123
+ "type": "uint256"
1124
+ }
1125
+ ],
1126
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot[]",
1127
+ "name": "merkleRoots",
1128
+ "type": "tuple[]"
1129
+ },
1130
+ {
1131
+ "internalType": "uint256[]",
1132
+ "name": "burned",
1133
+ "type": "uint256[]"
1134
+ },
1135
+ {
1136
+ "internalType": "uint256",
1137
+ "name": "minted",
1138
+ "type": "uint256"
1139
+ },
1140
+ {
1141
+ "internalType": "uint88",
1142
+ "name": "byteSize",
1143
+ "type": "uint88"
1144
+ },
1145
+ {
1146
+ "internalType": "uint40",
1147
+ "name": "startEpoch",
1148
+ "type": "uint40"
1149
+ },
1150
+ {
1151
+ "internalType": "uint40",
1152
+ "name": "endEpoch",
1153
+ "type": "uint40"
1154
+ },
1155
+ {
1156
+ "internalType": "uint96",
1157
+ "name": "tokenAmount",
1158
+ "type": "uint96"
1159
+ },
1160
+ {
1161
+ "internalType": "bool",
1162
+ "name": "isImmutable",
1163
+ "type": "bool"
1164
+ }
1165
+ ],
1166
+ "internalType": "struct KnowledgeCollectionLib.KnowledgeCollection",
1167
+ "name": "",
1168
+ "type": "tuple"
1169
+ }
1170
+ ],
1171
+ "stateMutability": "view",
1172
+ "type": "function"
1173
+ },
1174
+ {
1175
+ "inputs": [
1176
+ {
1177
+ "internalType": "uint256",
1178
+ "name": "tokenId",
1179
+ "type": "uint256"
1180
+ }
1181
+ ],
1182
+ "name": "getKnowledgeCollectionId",
1183
+ "outputs": [
1184
+ {
1185
+ "internalType": "uint256",
1186
+ "name": "",
1187
+ "type": "uint256"
1188
+ }
1189
+ ],
1190
+ "stateMutability": "view",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "uint256",
1197
+ "name": "id",
1198
+ "type": "uint256"
1199
+ }
1200
+ ],
1201
+ "name": "getKnowledgeCollectionMetadata",
1202
+ "outputs": [
1203
+ {
1204
+ "components": [
1205
+ {
1206
+ "internalType": "address",
1207
+ "name": "publisher",
1208
+ "type": "address"
1209
+ },
1210
+ {
1211
+ "internalType": "bytes32",
1212
+ "name": "merkleRoot",
1213
+ "type": "bytes32"
1214
+ },
1215
+ {
1216
+ "internalType": "uint256",
1217
+ "name": "timestamp",
1218
+ "type": "uint256"
1219
+ }
1220
+ ],
1221
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot[]",
1222
+ "name": "",
1223
+ "type": "tuple[]"
1224
+ },
1225
+ {
1226
+ "internalType": "uint256[]",
1227
+ "name": "",
1228
+ "type": "uint256[]"
1229
+ },
1230
+ {
1231
+ "internalType": "uint256",
1232
+ "name": "",
1233
+ "type": "uint256"
1234
+ },
1235
+ {
1236
+ "internalType": "uint88",
1237
+ "name": "",
1238
+ "type": "uint88"
1239
+ },
1240
+ {
1241
+ "internalType": "uint40",
1242
+ "name": "",
1243
+ "type": "uint40"
1244
+ },
1245
+ {
1246
+ "internalType": "uint40",
1247
+ "name": "",
1248
+ "type": "uint40"
1249
+ },
1250
+ {
1251
+ "internalType": "uint96",
1252
+ "name": "",
1253
+ "type": "uint96"
1254
+ },
1255
+ {
1256
+ "internalType": "bool",
1257
+ "name": "",
1258
+ "type": "bool"
1259
+ }
1260
+ ],
1261
+ "stateMutability": "view",
1262
+ "type": "function"
1263
+ },
1264
+ {
1265
+ "inputs": [],
1266
+ "name": "getLatestKnowledgeCollectionId",
1267
+ "outputs": [
1268
+ {
1269
+ "internalType": "uint256",
1270
+ "name": "",
1271
+ "type": "uint256"
1272
+ }
1273
+ ],
1274
+ "stateMutability": "view",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [
1279
+ {
1280
+ "internalType": "uint256",
1281
+ "name": "id",
1282
+ "type": "uint256"
1283
+ }
1284
+ ],
1285
+ "name": "getLatestMerkleRoot",
1286
+ "outputs": [
1287
+ {
1288
+ "internalType": "bytes32",
1289
+ "name": "",
1290
+ "type": "bytes32"
1291
+ }
1292
+ ],
1293
+ "stateMutability": "view",
1294
+ "type": "function"
1295
+ },
1296
+ {
1297
+ "inputs": [
1298
+ {
1299
+ "internalType": "uint256",
1300
+ "name": "id",
1301
+ "type": "uint256"
1302
+ }
1303
+ ],
1304
+ "name": "getLatestMerkleRootObject",
1305
+ "outputs": [
1306
+ {
1307
+ "components": [
1308
+ {
1309
+ "internalType": "address",
1310
+ "name": "publisher",
1311
+ "type": "address"
1312
+ },
1313
+ {
1314
+ "internalType": "bytes32",
1315
+ "name": "merkleRoot",
1316
+ "type": "bytes32"
1317
+ },
1318
+ {
1319
+ "internalType": "uint256",
1320
+ "name": "timestamp",
1321
+ "type": "uint256"
1322
+ }
1323
+ ],
1324
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot",
1325
+ "name": "",
1326
+ "type": "tuple"
1327
+ }
1328
+ ],
1329
+ "stateMutability": "view",
1330
+ "type": "function"
1331
+ },
1332
+ {
1333
+ "inputs": [
1334
+ {
1335
+ "internalType": "uint256",
1336
+ "name": "id",
1337
+ "type": "uint256"
1338
+ }
1339
+ ],
1340
+ "name": "getLatestMerkleRootPublisher",
1341
+ "outputs": [
1342
+ {
1343
+ "internalType": "address",
1344
+ "name": "",
1345
+ "type": "address"
1346
+ }
1347
+ ],
1348
+ "stateMutability": "view",
1349
+ "type": "function"
1350
+ },
1351
+ {
1352
+ "inputs": [
1353
+ {
1354
+ "internalType": "uint256",
1355
+ "name": "id",
1356
+ "type": "uint256"
1357
+ }
1358
+ ],
1359
+ "name": "getLatestMerkleRootTimestamp",
1360
+ "outputs": [
1361
+ {
1362
+ "internalType": "uint256",
1363
+ "name": "",
1364
+ "type": "uint256"
1365
+ }
1366
+ ],
1367
+ "stateMutability": "view",
1368
+ "type": "function"
1369
+ },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "id",
1375
+ "type": "uint256"
1376
+ },
1377
+ {
1378
+ "internalType": "uint256",
1379
+ "name": "index",
1380
+ "type": "uint256"
1381
+ }
1382
+ ],
1383
+ "name": "getMerkleRootByIndex",
1384
+ "outputs": [
1385
+ {
1386
+ "internalType": "bytes32",
1387
+ "name": "",
1388
+ "type": "bytes32"
1389
+ }
1390
+ ],
1391
+ "stateMutability": "view",
1392
+ "type": "function"
1393
+ },
1394
+ {
1395
+ "inputs": [
1396
+ {
1397
+ "internalType": "uint256",
1398
+ "name": "id",
1399
+ "type": "uint256"
1400
+ },
1401
+ {
1402
+ "internalType": "uint256",
1403
+ "name": "index",
1404
+ "type": "uint256"
1405
+ }
1406
+ ],
1407
+ "name": "getMerkleRootObjectByIndex",
1408
+ "outputs": [
1409
+ {
1410
+ "components": [
1411
+ {
1412
+ "internalType": "address",
1413
+ "name": "publisher",
1414
+ "type": "address"
1415
+ },
1416
+ {
1417
+ "internalType": "bytes32",
1418
+ "name": "merkleRoot",
1419
+ "type": "bytes32"
1420
+ },
1421
+ {
1422
+ "internalType": "uint256",
1423
+ "name": "timestamp",
1424
+ "type": "uint256"
1425
+ }
1426
+ ],
1427
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot",
1428
+ "name": "",
1429
+ "type": "tuple"
1430
+ }
1431
+ ],
1432
+ "stateMutability": "view",
1433
+ "type": "function"
1434
+ },
1435
+ {
1436
+ "inputs": [
1437
+ {
1438
+ "internalType": "uint256",
1439
+ "name": "id",
1440
+ "type": "uint256"
1441
+ },
1442
+ {
1443
+ "internalType": "uint256",
1444
+ "name": "index",
1445
+ "type": "uint256"
1446
+ }
1447
+ ],
1448
+ "name": "getMerkleRootPublisherByIndex",
1449
+ "outputs": [
1450
+ {
1451
+ "internalType": "address",
1452
+ "name": "",
1453
+ "type": "address"
1454
+ }
1455
+ ],
1456
+ "stateMutability": "view",
1457
+ "type": "function"
1458
+ },
1459
+ {
1460
+ "inputs": [
1461
+ {
1462
+ "internalType": "uint256",
1463
+ "name": "id",
1464
+ "type": "uint256"
1465
+ },
1466
+ {
1467
+ "internalType": "uint256",
1468
+ "name": "index",
1469
+ "type": "uint256"
1470
+ }
1471
+ ],
1472
+ "name": "getMerkleRootTimestampByIndex",
1473
+ "outputs": [
1474
+ {
1475
+ "internalType": "uint256",
1476
+ "name": "",
1477
+ "type": "uint256"
1478
+ }
1479
+ ],
1480
+ "stateMutability": "view",
1481
+ "type": "function"
1482
+ },
1483
+ {
1484
+ "inputs": [
1485
+ {
1486
+ "internalType": "uint256",
1487
+ "name": "id",
1488
+ "type": "uint256"
1489
+ }
1490
+ ],
1491
+ "name": "getMerkleRoots",
1492
+ "outputs": [
1493
+ {
1494
+ "components": [
1495
+ {
1496
+ "internalType": "address",
1497
+ "name": "publisher",
1498
+ "type": "address"
1499
+ },
1500
+ {
1501
+ "internalType": "bytes32",
1502
+ "name": "merkleRoot",
1503
+ "type": "bytes32"
1504
+ },
1505
+ {
1506
+ "internalType": "uint256",
1507
+ "name": "timestamp",
1508
+ "type": "uint256"
1509
+ }
1510
+ ],
1511
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot[]",
1512
+ "name": "",
1513
+ "type": "tuple[]"
1514
+ }
1515
+ ],
1516
+ "stateMutability": "view",
1517
+ "type": "function"
1518
+ },
1519
+ {
1520
+ "inputs": [
1521
+ {
1522
+ "internalType": "uint256",
1523
+ "name": "id",
1524
+ "type": "uint256"
1525
+ }
1526
+ ],
1527
+ "name": "getMinted",
1528
+ "outputs": [
1529
+ {
1530
+ "internalType": "uint256",
1531
+ "name": "",
1532
+ "type": "uint256"
1533
+ }
1534
+ ],
1535
+ "stateMutability": "view",
1536
+ "type": "function"
1537
+ },
1538
+ {
1539
+ "inputs": [
1540
+ {
1541
+ "internalType": "uint256",
1542
+ "name": "id",
1543
+ "type": "uint256"
1544
+ }
1545
+ ],
1546
+ "name": "getStartEpoch",
1547
+ "outputs": [
1548
+ {
1549
+ "internalType": "uint40",
1550
+ "name": "",
1551
+ "type": "uint40"
1552
+ }
1553
+ ],
1554
+ "stateMutability": "view",
1555
+ "type": "function"
1556
+ },
1557
+ {
1558
+ "inputs": [
1559
+ {
1560
+ "internalType": "uint256",
1561
+ "name": "id",
1562
+ "type": "uint256"
1563
+ }
1564
+ ],
1565
+ "name": "getTokenAmount",
1566
+ "outputs": [
1567
+ {
1568
+ "internalType": "uint96",
1569
+ "name": "",
1570
+ "type": "uint96"
1571
+ }
1572
+ ],
1573
+ "stateMutability": "view",
1574
+ "type": "function"
1575
+ },
1576
+ {
1577
+ "inputs": [],
1578
+ "name": "getTotalTokenAmount",
1579
+ "outputs": [
1580
+ {
1581
+ "internalType": "uint96",
1582
+ "name": "",
1583
+ "type": "uint96"
1584
+ }
1585
+ ],
1586
+ "stateMutability": "view",
1587
+ "type": "function"
1588
+ },
1589
+ {
1590
+ "inputs": [],
1591
+ "name": "hub",
1592
+ "outputs": [
1593
+ {
1594
+ "internalType": "contract Hub",
1595
+ "name": "",
1596
+ "type": "address"
1597
+ }
1598
+ ],
1599
+ "stateMutability": "view",
1600
+ "type": "function"
1601
+ },
1602
+ {
1603
+ "inputs": [],
1604
+ "name": "initialize",
1605
+ "outputs": [],
1606
+ "stateMutability": "nonpayable",
1607
+ "type": "function"
1608
+ },
1609
+ {
1610
+ "inputs": [
1611
+ {
1612
+ "internalType": "address",
1613
+ "name": "account",
1614
+ "type": "address"
1615
+ },
1616
+ {
1617
+ "internalType": "address",
1618
+ "name": "operator",
1619
+ "type": "address"
1620
+ }
1621
+ ],
1622
+ "name": "isApprovedForAll",
1623
+ "outputs": [
1624
+ {
1625
+ "internalType": "bool",
1626
+ "name": "",
1627
+ "type": "bool"
1628
+ }
1629
+ ],
1630
+ "stateMutability": "view",
1631
+ "type": "function"
1632
+ },
1633
+ {
1634
+ "inputs": [
1635
+ {
1636
+ "internalType": "uint256",
1637
+ "name": "",
1638
+ "type": "uint256"
1639
+ }
1640
+ ],
1641
+ "name": "isKnowledgeAssetBurned",
1642
+ "outputs": [
1643
+ {
1644
+ "internalType": "bool",
1645
+ "name": "",
1646
+ "type": "bool"
1647
+ }
1648
+ ],
1649
+ "stateMutability": "view",
1650
+ "type": "function"
1651
+ },
1652
+ {
1653
+ "inputs": [
1654
+ {
1655
+ "internalType": "address",
1656
+ "name": "owner",
1657
+ "type": "address"
1658
+ },
1659
+ {
1660
+ "internalType": "uint256",
1661
+ "name": "id",
1662
+ "type": "uint256"
1663
+ }
1664
+ ],
1665
+ "name": "isKnowledgeCollectionOwner",
1666
+ "outputs": [
1667
+ {
1668
+ "internalType": "bool",
1669
+ "name": "",
1670
+ "type": "bool"
1671
+ }
1672
+ ],
1673
+ "stateMutability": "view",
1674
+ "type": "function"
1675
+ },
1676
+ {
1677
+ "inputs": [
1678
+ {
1679
+ "internalType": "address",
1680
+ "name": "account",
1681
+ "type": "address"
1682
+ },
1683
+ {
1684
+ "internalType": "uint256",
1685
+ "name": "id",
1686
+ "type": "uint256"
1687
+ }
1688
+ ],
1689
+ "name": "isOwnerOf",
1690
+ "outputs": [
1691
+ {
1692
+ "internalType": "bool",
1693
+ "name": "",
1694
+ "type": "bool"
1695
+ }
1696
+ ],
1697
+ "stateMutability": "view",
1698
+ "type": "function"
1699
+ },
1700
+ {
1701
+ "inputs": [
1702
+ {
1703
+ "internalType": "uint256",
1704
+ "name": "id",
1705
+ "type": "uint256"
1706
+ },
1707
+ {
1708
+ "internalType": "uint256",
1709
+ "name": "tokenId",
1710
+ "type": "uint256"
1711
+ }
1712
+ ],
1713
+ "name": "isPartOfKnowledgeCollection",
1714
+ "outputs": [
1715
+ {
1716
+ "internalType": "bool",
1717
+ "name": "",
1718
+ "type": "bool"
1719
+ }
1720
+ ],
1721
+ "stateMutability": "view",
1722
+ "type": "function"
1723
+ },
1724
+ {
1725
+ "inputs": [],
1726
+ "name": "knowledgeCollectionMaxSize",
1727
+ "outputs": [
1728
+ {
1729
+ "internalType": "uint256",
1730
+ "name": "",
1731
+ "type": "uint256"
1732
+ }
1733
+ ],
1734
+ "stateMutability": "view",
1735
+ "type": "function"
1736
+ },
1737
+ {
1738
+ "inputs": [
1739
+ {
1740
+ "internalType": "uint256",
1741
+ "name": "",
1742
+ "type": "uint256"
1743
+ }
1744
+ ],
1745
+ "name": "knowledgeCollections",
1746
+ "outputs": [
1747
+ {
1748
+ "internalType": "uint256",
1749
+ "name": "minted",
1750
+ "type": "uint256"
1751
+ },
1752
+ {
1753
+ "internalType": "uint88",
1754
+ "name": "byteSize",
1755
+ "type": "uint88"
1756
+ },
1757
+ {
1758
+ "internalType": "uint40",
1759
+ "name": "startEpoch",
1760
+ "type": "uint40"
1761
+ },
1762
+ {
1763
+ "internalType": "uint40",
1764
+ "name": "endEpoch",
1765
+ "type": "uint40"
1766
+ },
1767
+ {
1768
+ "internalType": "uint96",
1769
+ "name": "tokenAmount",
1770
+ "type": "uint96"
1771
+ },
1772
+ {
1773
+ "internalType": "bool",
1774
+ "name": "isImmutable",
1775
+ "type": "bool"
1776
+ }
1777
+ ],
1778
+ "stateMutability": "view",
1779
+ "type": "function"
1780
+ },
1781
+ {
1782
+ "inputs": [
1783
+ {
1784
+ "internalType": "uint256",
1785
+ "name": "id",
1786
+ "type": "uint256"
1787
+ },
1788
+ {
1789
+ "internalType": "address",
1790
+ "name": "to",
1791
+ "type": "address"
1792
+ },
1793
+ {
1794
+ "internalType": "uint256",
1795
+ "name": "amount",
1796
+ "type": "uint256"
1797
+ }
1798
+ ],
1799
+ "name": "mintKnowledgeAssetsTokens",
1800
+ "outputs": [],
1801
+ "stateMutability": "nonpayable",
1802
+ "type": "function"
1803
+ },
1804
+ {
1805
+ "inputs": [],
1806
+ "name": "name",
1807
+ "outputs": [
1808
+ {
1809
+ "internalType": "string",
1810
+ "name": "",
1811
+ "type": "string"
1812
+ }
1813
+ ],
1814
+ "stateMutability": "pure",
1815
+ "type": "function"
1816
+ },
1817
+ {
1818
+ "inputs": [
1819
+ {
1820
+ "internalType": "uint256",
1821
+ "name": "id",
1822
+ "type": "uint256"
1823
+ }
1824
+ ],
1825
+ "name": "popMerkleRoot",
1826
+ "outputs": [],
1827
+ "stateMutability": "nonpayable",
1828
+ "type": "function"
1829
+ },
1830
+ {
1831
+ "inputs": [
1832
+ {
1833
+ "internalType": "address",
1834
+ "name": "publisher",
1835
+ "type": "address"
1836
+ },
1837
+ {
1838
+ "internalType": "uint256",
1839
+ "name": "id",
1840
+ "type": "uint256"
1841
+ },
1842
+ {
1843
+ "internalType": "bytes32",
1844
+ "name": "merkleRoot",
1845
+ "type": "bytes32"
1846
+ }
1847
+ ],
1848
+ "name": "pushMerkleRoot",
1849
+ "outputs": [],
1850
+ "stateMutability": "nonpayable",
1851
+ "type": "function"
1852
+ },
1853
+ {
1854
+ "inputs": [
1855
+ {
1856
+ "internalType": "address",
1857
+ "name": "from",
1858
+ "type": "address"
1859
+ },
1860
+ {
1861
+ "internalType": "address",
1862
+ "name": "to",
1863
+ "type": "address"
1864
+ },
1865
+ {
1866
+ "internalType": "uint256[]",
1867
+ "name": "ids",
1868
+ "type": "uint256[]"
1869
+ },
1870
+ {
1871
+ "internalType": "uint256[]",
1872
+ "name": "amounts",
1873
+ "type": "uint256[]"
1874
+ },
1875
+ {
1876
+ "internalType": "bytes",
1877
+ "name": "data",
1878
+ "type": "bytes"
1879
+ }
1880
+ ],
1881
+ "name": "safeBatchTransferFrom",
1882
+ "outputs": [],
1883
+ "stateMutability": "nonpayable",
1884
+ "type": "function"
1885
+ },
1886
+ {
1887
+ "inputs": [
1888
+ {
1889
+ "internalType": "address",
1890
+ "name": "from",
1891
+ "type": "address"
1892
+ },
1893
+ {
1894
+ "internalType": "address",
1895
+ "name": "to",
1896
+ "type": "address"
1897
+ },
1898
+ {
1899
+ "internalType": "uint256",
1900
+ "name": "id",
1901
+ "type": "uint256"
1902
+ },
1903
+ {
1904
+ "internalType": "uint256",
1905
+ "name": "amount",
1906
+ "type": "uint256"
1907
+ },
1908
+ {
1909
+ "internalType": "bytes",
1910
+ "name": "data",
1911
+ "type": "bytes"
1912
+ }
1913
+ ],
1914
+ "name": "safeTransferFrom",
1915
+ "outputs": [],
1916
+ "stateMutability": "nonpayable",
1917
+ "type": "function"
1918
+ },
1919
+ {
1920
+ "inputs": [
1921
+ {
1922
+ "internalType": "address",
1923
+ "name": "operator",
1924
+ "type": "address"
1925
+ },
1926
+ {
1927
+ "internalType": "bool",
1928
+ "name": "approved",
1929
+ "type": "bool"
1930
+ }
1931
+ ],
1932
+ "name": "setApprovalForAll",
1933
+ "outputs": [],
1934
+ "stateMutability": "nonpayable",
1935
+ "type": "function"
1936
+ },
1937
+ {
1938
+ "inputs": [
1939
+ {
1940
+ "internalType": "uint256",
1941
+ "name": "id",
1942
+ "type": "uint256"
1943
+ },
1944
+ {
1945
+ "internalType": "uint256[]",
1946
+ "name": "_burned",
1947
+ "type": "uint256[]"
1948
+ }
1949
+ ],
1950
+ "name": "setBurned",
1951
+ "outputs": [],
1952
+ "stateMutability": "nonpayable",
1953
+ "type": "function"
1954
+ },
1955
+ {
1956
+ "inputs": [
1957
+ {
1958
+ "internalType": "uint256",
1959
+ "name": "id",
1960
+ "type": "uint256"
1961
+ },
1962
+ {
1963
+ "internalType": "uint88",
1964
+ "name": "_byteSize",
1965
+ "type": "uint88"
1966
+ }
1967
+ ],
1968
+ "name": "setByteSize",
1969
+ "outputs": [],
1970
+ "stateMutability": "nonpayable",
1971
+ "type": "function"
1972
+ },
1973
+ {
1974
+ "inputs": [
1975
+ {
1976
+ "internalType": "uint256",
1977
+ "name": "id",
1978
+ "type": "uint256"
1979
+ },
1980
+ {
1981
+ "internalType": "uint40",
1982
+ "name": "_endEpoch",
1983
+ "type": "uint40"
1984
+ }
1985
+ ],
1986
+ "name": "setEndEpoch",
1987
+ "outputs": [],
1988
+ "stateMutability": "nonpayable",
1989
+ "type": "function"
1990
+ },
1991
+ {
1992
+ "inputs": [
1993
+ {
1994
+ "internalType": "uint256",
1995
+ "name": "id",
1996
+ "type": "uint256"
1997
+ },
1998
+ {
1999
+ "components": [
2000
+ {
2001
+ "internalType": "address",
2002
+ "name": "publisher",
2003
+ "type": "address"
2004
+ },
2005
+ {
2006
+ "internalType": "bytes32",
2007
+ "name": "merkleRoot",
2008
+ "type": "bytes32"
2009
+ },
2010
+ {
2011
+ "internalType": "uint256",
2012
+ "name": "timestamp",
2013
+ "type": "uint256"
2014
+ }
2015
+ ],
2016
+ "internalType": "struct KnowledgeCollectionLib.MerkleRoot[]",
2017
+ "name": "_merkleRoots",
2018
+ "type": "tuple[]"
2019
+ }
2020
+ ],
2021
+ "name": "setMerkleRoots",
2022
+ "outputs": [],
2023
+ "stateMutability": "nonpayable",
2024
+ "type": "function"
2025
+ },
2026
+ {
2027
+ "inputs": [
2028
+ {
2029
+ "internalType": "uint256",
2030
+ "name": "id",
2031
+ "type": "uint256"
2032
+ },
2033
+ {
2034
+ "internalType": "uint256",
2035
+ "name": "_minted",
2036
+ "type": "uint256"
2037
+ }
2038
+ ],
2039
+ "name": "setMinted",
2040
+ "outputs": [],
2041
+ "stateMutability": "nonpayable",
2042
+ "type": "function"
2043
+ },
2044
+ {
2045
+ "inputs": [
2046
+ {
2047
+ "internalType": "uint256",
2048
+ "name": "id",
2049
+ "type": "uint256"
2050
+ },
2051
+ {
2052
+ "internalType": "uint40",
2053
+ "name": "_startEpoch",
2054
+ "type": "uint40"
2055
+ }
2056
+ ],
2057
+ "name": "setStartEpoch",
2058
+ "outputs": [],
2059
+ "stateMutability": "nonpayable",
2060
+ "type": "function"
2061
+ },
2062
+ {
2063
+ "inputs": [
2064
+ {
2065
+ "internalType": "uint256",
2066
+ "name": "id",
2067
+ "type": "uint256"
2068
+ },
2069
+ {
2070
+ "internalType": "uint96",
2071
+ "name": "_tokenAmount",
2072
+ "type": "uint96"
2073
+ }
2074
+ ],
2075
+ "name": "setTokenAmount",
2076
+ "outputs": [],
2077
+ "stateMutability": "nonpayable",
2078
+ "type": "function"
2079
+ },
2080
+ {
2081
+ "inputs": [
2082
+ {
2083
+ "internalType": "string",
2084
+ "name": "baseURI",
2085
+ "type": "string"
2086
+ }
2087
+ ],
2088
+ "name": "setURI",
2089
+ "outputs": [],
2090
+ "stateMutability": "nonpayable",
2091
+ "type": "function"
2092
+ },
2093
+ {
2094
+ "inputs": [
2095
+ {
2096
+ "internalType": "bytes4",
2097
+ "name": "interfaceId",
2098
+ "type": "bytes4"
2099
+ }
2100
+ ],
2101
+ "name": "supportsInterface",
2102
+ "outputs": [
2103
+ {
2104
+ "internalType": "bool",
2105
+ "name": "",
2106
+ "type": "bool"
2107
+ }
2108
+ ],
2109
+ "stateMutability": "view",
2110
+ "type": "function"
2111
+ },
2112
+ {
2113
+ "inputs": [],
2114
+ "name": "tokenContract",
2115
+ "outputs": [
2116
+ {
2117
+ "internalType": "contract IERC20",
2118
+ "name": "",
2119
+ "type": "address"
2120
+ }
2121
+ ],
2122
+ "stateMutability": "view",
2123
+ "type": "function"
2124
+ },
2125
+ {
2126
+ "inputs": [
2127
+ {
2128
+ "internalType": "address",
2129
+ "name": "owner",
2130
+ "type": "address"
2131
+ }
2132
+ ],
2133
+ "name": "tokensOfOwner",
2134
+ "outputs": [
2135
+ {
2136
+ "internalType": "uint256[]",
2137
+ "name": "",
2138
+ "type": "uint256[]"
2139
+ }
2140
+ ],
2141
+ "stateMutability": "view",
2142
+ "type": "function"
2143
+ },
2144
+ {
2145
+ "inputs": [
2146
+ {
2147
+ "internalType": "address",
2148
+ "name": "owner",
2149
+ "type": "address"
2150
+ },
2151
+ {
2152
+ "internalType": "uint256",
2153
+ "name": "start",
2154
+ "type": "uint256"
2155
+ },
2156
+ {
2157
+ "internalType": "uint256",
2158
+ "name": "stop",
2159
+ "type": "uint256"
2160
+ }
2161
+ ],
2162
+ "name": "tokensOfOwnerIn",
2163
+ "outputs": [
2164
+ {
2165
+ "internalType": "uint256[]",
2166
+ "name": "",
2167
+ "type": "uint256[]"
2168
+ }
2169
+ ],
2170
+ "stateMutability": "view",
2171
+ "type": "function"
2172
+ },
2173
+ {
2174
+ "inputs": [],
2175
+ "name": "totalBurned",
2176
+ "outputs": [
2177
+ {
2178
+ "internalType": "uint256",
2179
+ "name": "",
2180
+ "type": "uint256"
2181
+ }
2182
+ ],
2183
+ "stateMutability": "view",
2184
+ "type": "function"
2185
+ },
2186
+ {
2187
+ "inputs": [],
2188
+ "name": "totalMinted",
2189
+ "outputs": [
2190
+ {
2191
+ "internalType": "uint256",
2192
+ "name": "",
2193
+ "type": "uint256"
2194
+ }
2195
+ ],
2196
+ "stateMutability": "view",
2197
+ "type": "function"
2198
+ },
2199
+ {
2200
+ "inputs": [
2201
+ {
2202
+ "internalType": "address payable",
2203
+ "name": "custodian",
2204
+ "type": "address"
2205
+ }
2206
+ ],
2207
+ "name": "transferTokens",
2208
+ "outputs": [],
2209
+ "stateMutability": "nonpayable",
2210
+ "type": "function"
2211
+ },
2212
+ {
2213
+ "inputs": [
2214
+ {
2215
+ "internalType": "address",
2216
+ "name": "publisher",
2217
+ "type": "address"
2218
+ },
2219
+ {
2220
+ "internalType": "uint256",
2221
+ "name": "id",
2222
+ "type": "uint256"
2223
+ },
2224
+ {
2225
+ "internalType": "string",
2226
+ "name": "updateOperationId",
2227
+ "type": "string"
2228
+ },
2229
+ {
2230
+ "internalType": "bytes32",
2231
+ "name": "merkleRoot",
2232
+ "type": "bytes32"
2233
+ },
2234
+ {
2235
+ "internalType": "uint256",
2236
+ "name": "mintKnowledgeAssetsAmount",
2237
+ "type": "uint256"
2238
+ },
2239
+ {
2240
+ "internalType": "uint256[]",
2241
+ "name": "knowledgeAssetsToBurn",
2242
+ "type": "uint256[]"
2243
+ },
2244
+ {
2245
+ "internalType": "uint88",
2246
+ "name": "byteSize",
2247
+ "type": "uint88"
2248
+ },
2249
+ {
2250
+ "internalType": "uint96",
2251
+ "name": "tokenAmount",
2252
+ "type": "uint96"
2253
+ }
2254
+ ],
2255
+ "name": "updateKnowledgeCollection",
2256
+ "outputs": [],
2257
+ "stateMutability": "nonpayable",
2258
+ "type": "function"
2259
+ },
2260
+ {
2261
+ "inputs": [
2262
+ {
2263
+ "internalType": "uint256",
2264
+ "name": "",
2265
+ "type": "uint256"
2266
+ }
2267
+ ],
2268
+ "name": "uri",
2269
+ "outputs": [
2270
+ {
2271
+ "internalType": "string",
2272
+ "name": "",
2273
+ "type": "string"
2274
+ }
2275
+ ],
2276
+ "stateMutability": "view",
2277
+ "type": "function"
2278
+ },
2279
+ {
2280
+ "inputs": [],
2281
+ "name": "version",
2282
+ "outputs": [
2283
+ {
2284
+ "internalType": "string",
2285
+ "name": "",
2286
+ "type": "string"
2287
+ }
2288
+ ],
2289
+ "stateMutability": "pure",
2290
+ "type": "function"
2291
+ },
2292
+ {
2293
+ "inputs": [],
2294
+ "name": "withdrawMisplacedEther",
2295
+ "outputs": [],
2296
+ "stateMutability": "nonpayable",
2297
+ "type": "function"
2298
+ },
2299
+ {
2300
+ "inputs": [
2301
+ {
2302
+ "internalType": "address",
2303
+ "name": "tokenContractAddress",
2304
+ "type": "address"
2305
+ }
2306
+ ],
2307
+ "name": "withdrawMisplacedTokens",
2308
+ "outputs": [],
2309
+ "stateMutability": "nonpayable",
2310
+ "type": "function"
2311
+ }
2312
+ ]