ratio1 3.4.57__py3-none-any.whl → 3.4.59__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.
- ratio1/_ver.py +1 -1
- ratio1/bc/evm.py +7 -2
- ratio1/const/evm_net.py +7 -1
- ratio1/utils/config.py +3 -0
- {ratio1-3.4.57.dist-info → ratio1-3.4.59.dist-info}/METADATA +1 -1
- {ratio1-3.4.57.dist-info → ratio1-3.4.59.dist-info}/RECORD +9 -9
- {ratio1-3.4.57.dist-info → ratio1-3.4.59.dist-info}/WHEEL +0 -0
- {ratio1-3.4.57.dist-info → ratio1-3.4.59.dist-info}/entry_points.txt +0 -0
- {ratio1-3.4.57.dist-info → ratio1-3.4.59.dist-info}/licenses/LICENSE +0 -0
ratio1/_ver.py
CHANGED
ratio1/bc/evm.py
CHANGED
|
@@ -1525,13 +1525,18 @@ class _EVMMixin:
|
|
|
1525
1525
|
|
|
1526
1526
|
def web3_get_unvalidated_job_ids(
|
|
1527
1527
|
self,
|
|
1528
|
+
oracle_address: str,
|
|
1528
1529
|
network: str = None
|
|
1529
1530
|
):
|
|
1530
1531
|
"""
|
|
1531
|
-
Retrieve
|
|
1532
|
+
Retrieve all the jobs that are pending validation and
|
|
1533
|
+
have not been validated by the given oracle.
|
|
1532
1534
|
|
|
1533
1535
|
Parameters
|
|
1534
1536
|
----------
|
|
1537
|
+
oracle_address : str
|
|
1538
|
+
The oracle address to check for.
|
|
1539
|
+
|
|
1535
1540
|
network : str, optional
|
|
1536
1541
|
The network to use. If None, defaults to self.evm_network.
|
|
1537
1542
|
|
|
@@ -1552,7 +1557,7 @@ class _EVMMixin:
|
|
|
1552
1557
|
self.P(f"`getUnvalidatedJobIds` on {network} via {w3vars.rpc_url}", verbosity=2)
|
|
1553
1558
|
|
|
1554
1559
|
# Call the contract function to get unvalidated job IDs.
|
|
1555
|
-
result = contract.functions.getUnvalidatedJobIds().call()
|
|
1560
|
+
result = contract.functions.getUnvalidatedJobIds(oracle_address).call()
|
|
1556
1561
|
|
|
1557
1562
|
self.P(f"Unvalidated Job IDs: {result}", verbosity=2)
|
|
1558
1563
|
|
ratio1/const/evm_net.py
CHANGED
|
@@ -372,7 +372,13 @@ _POAI_MANAGER_ABI = [
|
|
|
372
372
|
"type": "function"
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
|
-
"inputs": [
|
|
375
|
+
"inputs": [
|
|
376
|
+
{
|
|
377
|
+
"internalType": "address",
|
|
378
|
+
"name": "oracle",
|
|
379
|
+
"type": "address"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
376
382
|
"name": "getUnvalidatedJobIds",
|
|
377
383
|
"outputs": [
|
|
378
384
|
{
|
ratio1/utils/config.py
CHANGED
|
@@ -139,6 +139,9 @@ def get_networks(args):
|
|
|
139
139
|
|
|
140
140
|
def get_set_network(args):
|
|
141
141
|
net = args.new or args.set
|
|
142
|
+
if net not in ['mainnet', 'testnet', 'devnet']:
|
|
143
|
+
log_with_color(f"Invalid network: {net}. Use 'mainnet', 'testnet', or 'devnet'.", color='r')
|
|
144
|
+
return
|
|
142
145
|
env_network = get_network()
|
|
143
146
|
if net is None:
|
|
144
147
|
log_with_color(f"Client v{version} on network: {env_network}", color='b')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ratio1
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.59
|
|
4
4
|
Summary: `ratio1` or Ration1 SDK is the Python SDK required for client app development for the Ratio1 ecosystem
|
|
5
5
|
Project-URL: Homepage, https://github.com/Ratio1/ratio1_sdk
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/Ratio1/ratio1_sdk/issues
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
|
2
|
-
ratio1/_ver.py,sha256=
|
|
2
|
+
ratio1/_ver.py,sha256=NoP7f4uoED33fTJ6v2cfVcFoEjcHC5c-P_g38kmhmRk,331
|
|
3
3
|
ratio1/base_decentra_object.py,sha256=iXvAAf6wPnGWzeeiRfwLojVoan-m1e_VsyPzjUQuENo,4492
|
|
4
4
|
ratio1/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
|
|
5
5
|
ratio1/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
|
|
@@ -17,7 +17,7 @@ ratio1/bc/__init__.py,sha256=BI5pcqHdhwnMdbWTYDLW1cVP_844VtLra-lz7xprgsk,171
|
|
|
17
17
|
ratio1/bc/base.py,sha256=g7tARNgi_0N1p9HpvqRDWDVYxuqU7W6S0q3ARC6oxKk,45870
|
|
18
18
|
ratio1/bc/chain.py,sha256=HCTQGnmuKqTvUo95OKdg8rL2jhKfSMwrich2e_7Nyms,2336
|
|
19
19
|
ratio1/bc/ec.py,sha256=FwlkWmJvQ9aHuf_BZX1CWSUAxw6OZ9jBparLIWcs_e4,18933
|
|
20
|
-
ratio1/bc/evm.py,sha256=
|
|
20
|
+
ratio1/bc/evm.py,sha256=pA2kpUOmQiuCVyX0whMc_HwUW0shCh2MR_yxDvvpBjE,51543
|
|
21
21
|
ratio1/certs/51.15.142.167.crt,sha256=rLxkwDIQm-u6Kw570NmdSFgjSChcdSJvXPxr4Mj-EU8,1167
|
|
22
22
|
ratio1/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
ratio1/certs/a0d9818f.ala.eu-central-1.emqxsl.com.crt,sha256=y-6io0tseyx9-a4Pmde1z1gPULtJNSYUpG_YFkYaMKU,1337
|
|
@@ -42,7 +42,7 @@ ratio1/const/apps.py,sha256=0NiuoAPak0HjEULF3fs3xaUH8IRSZ0i4fZw7T2fEd_g,785
|
|
|
42
42
|
ratio1/const/base.py,sha256=kYCV2O1IBiu28a18RnKyq24ie4eJOJivhYrMPRIOG-Y,6022
|
|
43
43
|
ratio1/const/comms.py,sha256=qEYX4ciYg8SYWSDZZTUYxzpR1--2a7UusrWzAq0hxo8,2259
|
|
44
44
|
ratio1/const/environment.py,sha256=632L5GrcNqF3-JhvrC6kXzXwLMcihRgMlOkLurnOwGY,1031
|
|
45
|
-
ratio1/const/evm_net.py,sha256=
|
|
45
|
+
ratio1/const/evm_net.py,sha256=cXET-hYW1-dJVsR8OB5lFD0R99miNAYcKiv3_PJDUm4,15098
|
|
46
46
|
ratio1/const/formatter.py,sha256=AW3bWlqf39uaqV4BBUuW95qKYfF2OkkU4f9hy3kSVhM,200
|
|
47
47
|
ratio1/const/heartbeat.py,sha256=6l3wcpExs1KQE_2lvkJb7q4Q8gqs1KWTThO_uJ1DRa0,2667
|
|
48
48
|
ratio1/const/misc.py,sha256=VDCwwpf5bl9ltx9rzT2WPVP8B3mZFRufU1tSS5MO240,413
|
|
@@ -100,11 +100,11 @@ ratio1/logging/tzlocal/win32.py,sha256=zBoj0vFVrGhnCm_f7xmYzGym4-fV-4Ij29r0QXC_-
|
|
|
100
100
|
ratio1/logging/tzlocal/windows_tz.py,sha256=Sv9okktjZJfRGGUOOppsvQuX_eXyXUxkSKCAFmWT9Hw,34203
|
|
101
101
|
ratio1/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uwpmI,77
|
|
102
102
|
ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
|
|
103
|
-
ratio1/utils/config.py,sha256=
|
|
103
|
+
ratio1/utils/config.py,sha256=Elfkl7W4aDMvB5WZLiYlPXrecBncgTxb4hcKhQedMzI,10111
|
|
104
104
|
ratio1/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
|
105
105
|
ratio1/utils/oracle_sync/oracle_tester.py,sha256=aJOPcZhtbw1XPqsFG4qYpfv2Taj5-qRXbwJzrPyeXDE,27465
|
|
106
|
-
ratio1-3.4.
|
|
107
|
-
ratio1-3.4.
|
|
108
|
-
ratio1-3.4.
|
|
109
|
-
ratio1-3.4.
|
|
110
|
-
ratio1-3.4.
|
|
106
|
+
ratio1-3.4.59.dist-info/METADATA,sha256=eXy1Tdll-iG9qAqzTym6guqpKUxs5YDYBLAUhQXq96Q,12255
|
|
107
|
+
ratio1-3.4.59.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
108
|
+
ratio1-3.4.59.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
|
|
109
|
+
ratio1-3.4.59.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
|
110
|
+
ratio1-3.4.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|