ratio1 3.4.57__py3-none-any.whl → 3.4.58__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 CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "3.4.57"
1
+ __VER__ = "3.4.58"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
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 unvalidated job IDs using getUnvalidatedJobIds().
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
  {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ratio1
3
- Version: 3.4.57
3
+ Version: 3.4.58
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=0BwJVM5pg2jaZHbA_wTjSMTi23Ubh-O__b0NTly-S5w,331
2
+ ratio1/_ver.py,sha256=-1bpHkcHSJIfYUdlfHvP8bieK9XPXG_940Lf3A61dyk,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=X6F6emFexc5UmOjrU7NkoGVL0m95R3cPXcKIG7c_cNk,51375
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=HEzXWDg-Em2IUeah9__lINyYhU2NDkTw7zIlmBXhIR8,14990
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
@@ -103,8 +103,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
103
103
  ratio1/utils/config.py,sha256=IMXAN9bpHePKEuTFGRRqFJXz_vBa-wi7s9gLhFEheRY,9953
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.57.dist-info/METADATA,sha256=I2Oj2VxqRf9HYNKdERf5L1oyVErT72L38PNImY8He-w,12255
107
- ratio1-3.4.57.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
- ratio1-3.4.57.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
- ratio1-3.4.57.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
- ratio1-3.4.57.dist-info/RECORD,,
106
+ ratio1-3.4.58.dist-info/METADATA,sha256=QWbJum3yw6lJh1Ocyg2Jzaf3yLlB_0s2afOe9l7Uids,12255
107
+ ratio1-3.4.58.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
+ ratio1-3.4.58.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
+ ratio1-3.4.58.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
+ ratio1-3.4.58.dist-info/RECORD,,