ethernity-cloud-runner-py 0.2.2__tar.gz → 0.2.3__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 (25) hide show
  1. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/PKG-INFO +1 -1
  2. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/imageRegistryContract.py +5 -5
  3. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/enums.py +6 -6
  4. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/runner.py +1 -0
  5. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/PKG-INFO +1 -1
  6. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/setup.py +1 -1
  7. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/LICENSE +0 -0
  8. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/README.md +0 -0
  9. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/__init__.py +0 -0
  10. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/__init__.py +0 -0
  11. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/__init__.py +0 -0
  12. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/bloxbergAbi.py +0 -0
  13. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/imageRegistryAbi.py +0 -0
  14. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/polygonAbi.py +0 -0
  15. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/__init__.py +0 -0
  16. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/bloxbergProtocolContract.py +0 -0
  17. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/polygonProtocolContract.py +0 -0
  18. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/crypto.py +0 -0
  19. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/ipfs.py +0 -0
  20. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/utils.py +0 -0
  21. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/SOURCES.txt +0 -0
  22. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/dependency_links.txt +0 -0
  23. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/requires.txt +0 -0
  24. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/top_level.txt +0 -0
  25. {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-runner-py
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Ethernity Cloud Runner Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-runner-py
6
6
  Author: Ethernity Cloud Team
@@ -15,7 +15,7 @@ class ImageRegistryContract:
15
15
  def __init__(
16
16
  self,
17
17
  network_address: Address = ECAddress.BLOXBERG.TESTNET_ADDRESS, # type: ignore
18
- runner_type: str = ECRunner.BLOXBERG["PYNITHY_RUNNER"],
18
+ runner_type: str = ECRunner.BLOXBERG["PYNITHY_RUNNER_TESTNET"],
19
19
  signer: Any = None,
20
20
  ):
21
21
  self.signer = signer
@@ -37,14 +37,14 @@ class ImageRegistryContract:
37
37
  abi=contract["abi"],
38
38
  )
39
39
  elif network_address == ECAddress.BLOXBERG.MAINNET_ADDRESS:
40
- if runner_type == ECRunner.BLOXBERG["NODENITHY_RUNNER"]:
40
+ if runner_type == ECRunner.BLOXBERG["NODENITHY_RUNNER_MAINNET"]:
41
41
  self.contract = self.provider.eth.contract(
42
42
  address=to_checksum_address(
43
43
  ECAddress.BLOXBERG.IMAGE_REGISTRY.NODENITHY.MAINNET_ADDRESS
44
44
  ),
45
45
  abi=contract["abi"],
46
46
  )
47
- elif runner_type == ECRunner.BLOXBERG["PYNITHY_RUNNER"]:
47
+ elif runner_type == ECRunner.BLOXBERG["PYNITHY_RUNNER_MAINNET"]:
48
48
  self.contract = self.provider.eth.contract(
49
49
  address=to_checksum_address(
50
50
  ECAddress.BLOXBERG.IMAGE_REGISTRY.PYNITHY.MAINNET_ADDRESS
@@ -52,14 +52,14 @@ class ImageRegistryContract:
52
52
  abi=contract["abi"],
53
53
  )
54
54
  elif network_address == ECAddress.POLYGON.MAINNET_ADDRESS:
55
- if runner_type == ECRunner.POLYGON["NODENITHY_RUNNER"]:
55
+ if runner_type == ECRunner.POLYGON["NODENITHY_RUNNER_MAINNET"]:
56
56
  self.contract = self.provider.eth.contract(
57
57
  address=to_checksum_address(
58
58
  ECAddress.POLYGON.IMAGE_REGISTRY.NODENITHY.MAINNET_ADDRESS
59
59
  ),
60
60
  abi=contract["abi"],
61
61
  )
62
- elif runner_type == ECRunner.POLYGON["PYNITHY_RUNNER"]:
62
+ elif runner_type == ECRunner.POLYGON["PYNITHY_RUNNER_MAINNET"]:
63
63
  self.contract = self.provider.eth.contract(
64
64
  address=to_checksum_address(
65
65
  ECAddress.POLYGON.IMAGE_REGISTRY.PYNITHY.MAINNET_ADDRESS
@@ -60,14 +60,14 @@ class ECRunner:
60
60
  BLOXBERG = {
61
61
  "PYNITHY_RUNNER_TESTNET": "etny-pynithy-testnet",
62
62
  "NODENITHY_RUNNER_TESTNET": "etny-nodenithy-testnet",
63
- "PYNITHY_RUNNER": "etny-pynithy",
64
- "NODENITHY_RUNNER": "etny-nodenithy"
63
+ "PYNITHY_RUNNER_MAINNET": "etny-pynithy",
64
+ "NODENITHY_RUNNER_MAINNET": "etny-nodenithy"
65
65
  }
66
66
  POLYGON = {
67
67
  "PYNITHY_RUNNER_TESTNET": "ecld-pynithy-mumbai",
68
68
  "NODENITHY_RUNNER_TESTNET": "ecld-nodenithy",
69
- "PYNITHY_RUNNER": "ecld-pynithy",
70
- "NODENITHY_RUNNER": "ecld-nodenithy"
69
+ "PYNITHY_RUNNER_MAINNET": "ecld-pynithy",
70
+ "NODENITHY_RUNNER_MAINNET": "ecld-nodenithy"
71
71
  }
72
72
 
73
73
  def __getitem__(self, key):
@@ -126,8 +126,8 @@ ECNetworkName1Dictionary = {
126
126
  }
127
127
 
128
128
  ECNetworkRPCDictionary = {
129
- ECAddress.BLOXBERG.MAINNET_ADDRESS: "https://core.bloxberg.org",
130
- ECAddress.BLOXBERG.TESTNET_ADDRESS: "https://core.bloxberg.org",
129
+ ECAddress.BLOXBERG.MAINNET_ADDRESS: "https://bloxberg.ethernity.cloud",
130
+ ECAddress.BLOXBERG.TESTNET_ADDRESS: "https://bloxberg.ethernity.cloud",
131
131
  ECAddress.POLYGON.TESTNET_ADDRESS: "https://rpc-mumbai.matic.today",
132
132
  ECAddress.POLYGON.MAINNET_ADDRESS: "https://rpc-mainnet.maticvigil.com",
133
133
  }
@@ -83,6 +83,7 @@ class EthernityCloudRunner:
83
83
  def set_network(self, network, type) -> None:
84
84
  self.network = network.lower()+ "_" + type.lower()
85
85
  self.trustedZoneImage = ECRunner()[network.upper()]["PYNITHY_RUNNER_"+type.upper()]
86
+ self.network_address = getattr(getattr(ECAddress, network.upper(), None), f"{type.upper()}_ADDRESS", None)
86
87
 
87
88
  def set_private_key(self, private_key) -> None:
88
89
  self.private_key = private_key
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-runner-py
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Ethernity Cloud Runner Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-runner-py
6
6
  Author: Ethernity Cloud Team
@@ -13,7 +13,7 @@ print(this_directory);
13
13
 
14
14
  setup(
15
15
  name="ethernity-cloud-runner-py",
16
- version="0.2.2",
16
+ version="0.2.3",
17
17
  url="https://github.com/ethernity-cloud/ethernity-cloud-runner-py",
18
18
  author="Ethernity Cloud Team",
19
19
  author_email="contact@ethernity.cloud",