dkg 0.1.0b3__tar.gz → 0.1.0b4__tar.gz

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 (64) hide show
  1. {dkg-0.1.0b3 → dkg-0.1.0b4}/PKG-INFO +1 -1
  2. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/blockchain.py +4 -7
  3. {dkg-0.1.0b3 → dkg-0.1.0b4}/pyproject.toml +1 -1
  4. {dkg-0.1.0b3 → dkg-0.1.0b4}/LICENSE +0 -0
  5. {dkg-0.1.0b3 → dkg-0.1.0b4}/README.md +0 -0
  6. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/__init__.py +0 -0
  7. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/assertion.py +0 -0
  8. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/asset.py +0 -0
  9. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/constants.py +0 -0
  10. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Assertion.json +0 -0
  11. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/AssertionStorage.json +0 -0
  12. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/CommitManagerV1.json +0 -0
  13. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/CommitManagerV1U1.json +0 -0
  14. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ContentAsset.json +0 -0
  15. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ContentAssetStorage.json +0 -0
  16. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/HashingProxy.json +0 -0
  17. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Hub.json +0 -0
  18. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Identity.json +0 -0
  19. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/IdentityStorage.json +0 -0
  20. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ParametersStorage.json +0 -0
  21. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Profile.json +0 -0
  22. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProfileStorage.json +0 -0
  23. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProofManagerV1.json +0 -0
  24. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProofManagerV1U1.json +0 -0
  25. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ScoringProxy.json +0 -0
  26. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -0
  27. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageV1.json +0 -0
  28. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -0
  29. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementV1.json +0 -0
  30. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ShardingTable.json +0 -0
  31. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ShardingTableStorage.json +0 -0
  32. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Staking.json +0 -0
  33. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/StakingStorage.json +0 -0
  34. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Token.json +0 -0
  35. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/UnfinalizedStateStorage.json +0 -0
  36. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/WhitelistStorage.json +0 -0
  37. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/dataclasses.py +0 -0
  38. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/exceptions.py +0 -0
  39. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/graph.py +0 -0
  40. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/main.py +0 -0
  41. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/manager.py +0 -0
  42. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/method.py +0 -0
  43. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/module.py +0 -0
  44. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/network.py +0 -0
  45. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/node.py +0 -0
  46. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/__init__.py +0 -0
  47. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/node_http.py +0 -0
  48. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/__init__.py +0 -0
  49. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/blockchain.py +0 -0
  50. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/dkg_node.py +0 -0
  51. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/encoding.py +0 -0
  52. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/evm.py +0 -0
  53. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/generics.py +0 -0
  54. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/network.py +0 -0
  55. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/rdf.py +0 -0
  56. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/__init__.py +0 -0
  57. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/blockchain_request.py +0 -0
  58. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/decorators.py +0 -0
  59. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/merkle.py +0 -0
  60. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/metadata.py +0 -0
  61. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/node_request.py +0 -0
  62. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/rdf.py +0 -0
  63. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/string_transformations.py +0 -0
  64. {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/ual.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dkg
3
- Version: 0.1.0b3
3
+ Version: 0.1.0b4
4
4
  Summary: Python library for interacting with the OriginTrail Decentralized Knowledge Graph
5
5
  License: Apache-2.0
6
6
  Author: Uladzislau Hubar
@@ -117,7 +117,7 @@ class BlockchainProvider:
117
117
  def handle_updated_contract(func):
118
118
  @wraps(func)
119
119
  def wrapper(self, *args, **kwargs):
120
- contract_name = kwargs.get("contract_name") or (args[0] if args else None)
120
+ contract_name = kwargs.get("contract") or (args[0] if args else None)
121
121
 
122
122
  try:
123
123
  return func(self, *args, **kwargs)
@@ -133,6 +133,7 @@ class BlockchainProvider:
133
133
 
134
134
  return wrapper
135
135
 
136
+ @handle_updated_contract
136
137
  def call_function(
137
138
  self,
138
139
  contract: str,
@@ -240,14 +241,10 @@ class BlockchainProvider:
240
241
  self.contracts[contract] = self.w3.eth.contract(
241
242
  address=(
242
243
  self.contracts["Hub"]
243
- .functions.getContractAddress(
244
- contract if contract != "ERC20Token" else "Token"
245
- )
246
- .call()
244
+ .functions.getContractAddress(contract).call()
247
245
  if not contract.endswith("AssetStorage")
248
246
  else self.contracts["Hub"]
249
- .functions.getAssetStorageAddress(contract)
250
- .call()
247
+ .functions.getAssetStorageAddress(contract).call()
251
248
  ),
252
249
  abi=self.abi[contract],
253
250
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dkg"
3
- version = "0.1.0-beta.3"
3
+ version = "0.1.0-beta.4"
4
4
  description = "Python library for interacting with the OriginTrail Decentralized Knowledge Graph"
5
5
  authors = ["Uladzislau Hubar <hubar.uladzislau@gmail.com>"]
6
6
  license = "Apache-2.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes