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.
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/PKG-INFO +1 -1
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/imageRegistryContract.py +5 -5
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/enums.py +6 -6
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/runner.py +1 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/PKG-INFO +1 -1
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/setup.py +1 -1
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/LICENSE +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/README.md +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/__init__.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/__init__.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/__init__.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/bloxbergAbi.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/imageRegistryAbi.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/abi/polygonAbi.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/__init__.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/bloxbergProtocolContract.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/contract/operation/polygonProtocolContract.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/crypto.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/ipfs.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py/utils.py +0 -0
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/SOURCES.txt +0 -0
- {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
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/ethernity_cloud_runner_py.egg-info/requires.txt +0 -0
- {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
- {ethernity_cloud_runner_py-0.2.2 → ethernity_cloud_runner_py-0.2.3}/setup.cfg +0 -0
|
@@ -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["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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
|
-
"
|
|
64
|
-
"
|
|
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
|
-
"
|
|
70
|
-
"
|
|
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://
|
|
130
|
-
ECAddress.BLOXBERG.TESTNET_ADDRESS: "https://
|
|
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
|
|
@@ -13,7 +13,7 @@ print(this_directory);
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="ethernity-cloud-runner-py",
|
|
16
|
-
version="0.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",
|
|
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
|