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.
- {dkg-0.1.0b3 → dkg-0.1.0b4}/PKG-INFO +1 -1
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/blockchain.py +4 -7
- {dkg-0.1.0b3 → dkg-0.1.0b4}/pyproject.toml +1 -1
- {dkg-0.1.0b3 → dkg-0.1.0b4}/LICENSE +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/README.md +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/__init__.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/assertion.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/asset.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/constants.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Assertion.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/AssertionStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/CommitManagerV1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/CommitManagerV1U1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ContentAsset.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ContentAssetStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/HashingProxy.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Hub.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Identity.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/IdentityStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ParametersStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Profile.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProfileStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProofManagerV1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ProofManagerV1U1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ScoringProxy.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageProxy.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageV1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementStorageV1U1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ServiceAgreementV1.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ShardingTable.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/ShardingTableStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Staking.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/StakingStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/Token.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/UnfinalizedStateStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/data/interfaces/WhitelistStorage.json +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/dataclasses.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/exceptions.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/graph.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/main.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/manager.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/method.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/module.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/network.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/node.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/__init__.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/providers/node_http.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/__init__.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/blockchain.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/dkg_node.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/encoding.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/evm.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/generics.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/network.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/types/rdf.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/__init__.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/blockchain_request.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/decorators.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/merkle.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/metadata.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/node_request.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/rdf.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/string_transformations.py +0 -0
- {dkg-0.1.0b3 → dkg-0.1.0b4}/dkg/utils/ual.py +0 -0
@@ -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("
|
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
|
+
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
|
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
|