dkg 0.1.0b5__py3-none-any.whl → 1.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 (43) hide show
  1. dkg/asset.py +182 -70
  2. dkg/constants.py +39 -6
  3. dkg/data/interfaces/ContentAsset.json +133 -3
  4. dkg/data/interfaces/Paranet.json +821 -0
  5. dkg/data/interfaces/{Identity.json → ParanetIncentivesPoolFactory.json} +67 -86
  6. dkg/data/interfaces/ParanetKnowledgeMinersRegistry.json +919 -0
  7. dkg/data/interfaces/ParanetNeurowebIncentivesPool.json +1102 -0
  8. dkg/data/interfaces/{ServiceAgreementStorageV1.json → ParanetsRegistry.json} +331 -360
  9. dkg/dataclasses.py +28 -8
  10. dkg/main.py +6 -3
  11. dkg/method.py +55 -39
  12. dkg/module.py +1 -0
  13. dkg/network.py +20 -10
  14. dkg/paranet.py +477 -0
  15. dkg/providers/blockchain.py +83 -60
  16. dkg/types/__init__.py +1 -0
  17. dkg/types/general.py +44 -0
  18. dkg/utils/blockchain_request.py +149 -4
  19. dkg/utils/node_request.py +77 -80
  20. {dkg-0.1.0b5.dist-info → dkg-1.0.0.dist-info}/METADATA +6 -144
  21. dkg-1.0.0.dist-info/NOTICE +9 -0
  22. dkg-1.0.0.dist-info/RECORD +52 -0
  23. {dkg-0.1.0b5.dist-info → dkg-1.0.0.dist-info}/WHEEL +1 -1
  24. dkg/data/interfaces/Assertion.json +0 -157
  25. dkg/data/interfaces/CommitManagerV1.json +0 -549
  26. dkg/data/interfaces/CommitManagerV1U1.json +0 -735
  27. dkg/data/interfaces/HashingProxy.json +0 -253
  28. dkg/data/interfaces/IdentityStorage.json +0 -342
  29. dkg/data/interfaces/ParametersStorage.json +0 -487
  30. dkg/data/interfaces/Profile.json +0 -318
  31. dkg/data/interfaces/ProfileStorage.json +0 -596
  32. dkg/data/interfaces/ProofManagerV1.json +0 -540
  33. dkg/data/interfaces/ProofManagerV1U1.json +0 -561
  34. dkg/data/interfaces/ScoringProxy.json +0 -268
  35. dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -1097
  36. dkg/data/interfaces/ServiceAgreementV1.json +0 -745
  37. dkg/data/interfaces/ShardingTable.json +0 -294
  38. dkg/data/interfaces/ShardingTableStorage.json +0 -317
  39. dkg/data/interfaces/Staking.json +0 -482
  40. dkg/data/interfaces/StakingStorage.json +0 -407
  41. dkg/data/interfaces/WhitelistStorage.json +0 -124
  42. dkg-0.1.0b5.dist-info/RECORD +0 -64
  43. {dkg-0.1.0b5.dist-info → dkg-1.0.0.dist-info}/LICENSE +0 -0
@@ -344,6 +344,19 @@
344
344
  "stateMutability": "nonpayable",
345
345
  "type": "function"
346
346
  },
347
+ {
348
+ "inputs": [
349
+ {
350
+ "internalType": "uint256",
351
+ "name": "tokenId",
352
+ "type": "uint256"
353
+ }
354
+ ],
355
+ "name": "cancelAssetStateUpdateFromContract",
356
+ "outputs": [],
357
+ "stateMutability": "nonpayable",
358
+ "type": "function"
359
+ },
347
360
  {
348
361
  "inputs": [],
349
362
  "name": "contentAssetStorage",
@@ -408,7 +421,79 @@
408
421
  }
409
422
  ],
410
423
  "name": "createAsset",
411
- "outputs": [],
424
+ "outputs": [
425
+ {
426
+ "internalType": "uint256",
427
+ "name": "",
428
+ "type": "uint256"
429
+ }
430
+ ],
431
+ "stateMutability": "nonpayable",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [
436
+ {
437
+ "internalType": "address",
438
+ "name": "originalSender",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "components": [
443
+ {
444
+ "internalType": "bytes32",
445
+ "name": "assertionId",
446
+ "type": "bytes32"
447
+ },
448
+ {
449
+ "internalType": "uint128",
450
+ "name": "size",
451
+ "type": "uint128"
452
+ },
453
+ {
454
+ "internalType": "uint32",
455
+ "name": "triplesNumber",
456
+ "type": "uint32"
457
+ },
458
+ {
459
+ "internalType": "uint96",
460
+ "name": "chunksNumber",
461
+ "type": "uint96"
462
+ },
463
+ {
464
+ "internalType": "uint16",
465
+ "name": "epochsNumber",
466
+ "type": "uint16"
467
+ },
468
+ {
469
+ "internalType": "uint96",
470
+ "name": "tokenAmount",
471
+ "type": "uint96"
472
+ },
473
+ {
474
+ "internalType": "uint8",
475
+ "name": "scoreFunctionId",
476
+ "type": "uint8"
477
+ },
478
+ {
479
+ "internalType": "bool",
480
+ "name": "immutable_",
481
+ "type": "bool"
482
+ }
483
+ ],
484
+ "internalType": "struct ContentAssetStructs.AssetInputArgs",
485
+ "name": "args",
486
+ "type": "tuple"
487
+ }
488
+ ],
489
+ "name": "createAssetFromContract",
490
+ "outputs": [
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "",
494
+ "type": "uint256"
495
+ }
496
+ ],
412
497
  "stateMutability": "nonpayable",
413
498
  "type": "function"
414
499
  },
@@ -456,7 +541,13 @@
456
541
  }
457
542
  ],
458
543
  "name": "createAssetWithVariables",
459
- "outputs": [],
544
+ "outputs": [
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "",
548
+ "type": "uint256"
549
+ }
550
+ ],
460
551
  "stateMutability": "nonpayable",
461
552
  "type": "function"
462
553
  },
@@ -501,7 +592,7 @@
501
592
  "name": "hub",
502
593
  "outputs": [
503
594
  {
504
- "internalType": "contract Hub",
595
+ "internalType": "contract HubV2",
505
596
  "name": "",
506
597
  "type": "address"
507
598
  }
@@ -578,6 +669,45 @@
578
669
  "stateMutability": "view",
579
670
  "type": "function"
580
671
  },
672
+ {
673
+ "inputs": [],
674
+ "name": "paranetKnowledgeAssetsRegistry",
675
+ "outputs": [
676
+ {
677
+ "internalType": "contract ParanetKnowledgeAssetsRegistry",
678
+ "name": "",
679
+ "type": "address"
680
+ }
681
+ ],
682
+ "stateMutability": "view",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [],
687
+ "name": "paranetKnowledgeMinersRegistry",
688
+ "outputs": [
689
+ {
690
+ "internalType": "contract ParanetKnowledgeMinersRegistry",
691
+ "name": "",
692
+ "type": "address"
693
+ }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [],
700
+ "name": "paranetsRegistry",
701
+ "outputs": [
702
+ {
703
+ "internalType": "contract ParanetsRegistry",
704
+ "name": "",
705
+ "type": "address"
706
+ }
707
+ ],
708
+ "stateMutability": "view",
709
+ "type": "function"
710
+ },
581
711
  {
582
712
  "inputs": [],
583
713
  "name": "serviceAgreementStorageProxy",