ratio1 3.4.74__py3-none-any.whl → 3.4.76__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/base/generic_session.py +17 -4
- ratio1/const/evm_net.py +7 -0
- ratio1/const/heartbeat.py +3 -0
- {ratio1-3.4.74.dist-info → ratio1-3.4.76.dist-info}/METADATA +1 -1
- {ratio1-3.4.74.dist-info → ratio1-3.4.76.dist-info}/RECORD +9 -9
- {ratio1-3.4.74.dist-info → ratio1-3.4.76.dist-info}/WHEEL +0 -0
- {ratio1-3.4.74.dist-info → ratio1-3.4.76.dist-info}/entry_points.txt +0 -0
- {ratio1-3.4.74.dist-info → ratio1-3.4.76.dist-info}/licenses/LICENSE +0 -0
ratio1/_ver.py
CHANGED
ratio1/base/generic_session.py
CHANGED
|
@@ -4701,6 +4701,7 @@ class GenericSession(BaseDecentrAIObject):
|
|
|
4701
4701
|
best_super = supervisor
|
|
4702
4702
|
best_super_alias = None
|
|
4703
4703
|
# done found best supervisor
|
|
4704
|
+
nodes_for_eth = []
|
|
4704
4705
|
for _, node_info in best_info.items():
|
|
4705
4706
|
is_online = node_info.get(PAYLOAD_DATA.NETMON_STATUS_KEY, None) == PAYLOAD_DATA.NETMON_STATUS_ONLINE
|
|
4706
4707
|
is_supervisor = node_info.get(PAYLOAD_DATA.NETMON_IS_SUPERVISOR, False)
|
|
@@ -4745,17 +4746,29 @@ class GenericSession(BaseDecentrAIObject):
|
|
|
4745
4746
|
eth_addr = val
|
|
4746
4747
|
add_balance = True
|
|
4747
4748
|
if add_balance:
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
res['
|
|
4749
|
+
nodes_for_eth.append(eth_addr)
|
|
4750
|
+
# eth_balance = self.bc_engine.web3_get_balance_eth(eth_addr)
|
|
4751
|
+
# r1_balance = self.bc_engine.web3_get_balance_r1(eth_addr)
|
|
4752
|
+
# res['ETH'].append(round(eth_balance,4))
|
|
4753
|
+
# res['$R1'].append(round(r1_balance,4))
|
|
4752
4754
|
elif key == PAYLOAD_DATA.NETMON_WHITELIST:
|
|
4753
4755
|
val = client_is_allowed
|
|
4754
4756
|
elif key in [PAYLOAD_DATA.NETMON_STATUS_KEY, PAYLOAD_DATA.NETMON_NODE_VERSION]:
|
|
4755
4757
|
val = val.split(' ')[0]
|
|
4756
4758
|
res[column].append(val)
|
|
4757
4759
|
# end for
|
|
4760
|
+
if len(nodes_for_eth) > 0:
|
|
4761
|
+
balances = self.bc_engine.web3_get_addresses_balances(nodes_for_eth)
|
|
4762
|
+
self.P("Executed web3_get_addresses_balances: {}".format(balances))
|
|
4763
|
+
for _addr in nodes_for_eth:
|
|
4764
|
+
eth_balance = balances[_addr]['ethBalance']
|
|
4765
|
+
r1_balance = balances[_addr]['r1Balance']
|
|
4766
|
+
res['ETH'].append(round(eth_balance,4))
|
|
4767
|
+
res['$R1'].append(round(r1_balance,4))
|
|
4768
|
+
# end for
|
|
4769
|
+
# end if
|
|
4758
4770
|
# end if
|
|
4771
|
+
|
|
4759
4772
|
pd.options.display.float_format = '{:.1f}'.format
|
|
4760
4773
|
df_res = pd.DataFrame(res)
|
|
4761
4774
|
if alias_filter is not None:
|
ratio1/const/evm_net.py
CHANGED
|
@@ -22,6 +22,10 @@ class EvmNetData:
|
|
|
22
22
|
|
|
23
23
|
EE_ORACLE_API_URL_KEY = 'EE_ORACLE_API_URL'
|
|
24
24
|
EE_DEEPLOY_API_URL_KEY = 'EE_DEEPLOY_API_URL'
|
|
25
|
+
EE_DAPP_API_URL_KEY = 'EE_DAPP_API_URL_KEY'
|
|
26
|
+
|
|
27
|
+
# Node tags constants.
|
|
28
|
+
EE_NODETAG_KYB='EE_NODETAG_KYB'
|
|
25
29
|
# endclass EvmNetData
|
|
26
30
|
|
|
27
31
|
|
|
@@ -433,6 +437,7 @@ EVM_NET_DATA = {
|
|
|
433
437
|
EvmNetData.EE_SUPERVISOR_MIN_AVAIL_PRC_KEY : 0.90,
|
|
434
438
|
EvmNetData.EE_ORACLE_API_URL_KEY : "https://oracle.ratio1.ai",
|
|
435
439
|
EvmNetData.EE_DEEPLOY_API_URL_KEY : "https://deeploy-api.ratio1.ai",
|
|
440
|
+
EvmNetData.EE_DAPP_API_URL_KEY : "https://dapp-api.ratio1.ai",
|
|
436
441
|
EvmNetData.DAUTH_GET_ORACLES_ABI : _DAUTH_ABI_GET_ORACLES,
|
|
437
442
|
},
|
|
438
443
|
|
|
@@ -451,6 +456,7 @@ EVM_NET_DATA = {
|
|
|
451
456
|
EvmNetData.EE_SUPERVISOR_MIN_AVAIL_PRC_KEY : 0.6,
|
|
452
457
|
EvmNetData.EE_ORACLE_API_URL_KEY : "https://testnet-oracle.ratio1.ai",
|
|
453
458
|
EvmNetData.EE_DEEPLOY_API_URL_KEY : "https://testnet-deeploy-api.ratio1.ai",
|
|
459
|
+
EvmNetData.EE_DAPP_API_URL_KEY : "https://testnet-dapp-api.ratio1.ai",
|
|
454
460
|
EvmNetData.DAUTH_GET_ORACLES_ABI : _DAUTH_ABI_GET_ORACLES,
|
|
455
461
|
},
|
|
456
462
|
|
|
@@ -470,6 +476,7 @@ EVM_NET_DATA = {
|
|
|
470
476
|
EvmNetData.EE_SUPERVISOR_MIN_AVAIL_PRC_KEY : 0.6,
|
|
471
477
|
EvmNetData.EE_ORACLE_API_URL_KEY : "https://devnet-oracle.ratio1.ai",
|
|
472
478
|
EvmNetData.EE_DEEPLOY_API_URL_KEY : "https://devnet-deeploy-api.ratio1.ai",
|
|
479
|
+
EvmNetData.EE_DAPP_API_URL_KEY : "https://devnet-dapp-api.ratio1.ai",
|
|
473
480
|
EvmNetData.DAUTH_GET_ORACLES_ABI : _DAUTH_ABI_GET_ORACLES,
|
|
474
481
|
},
|
|
475
482
|
}
|
ratio1/const/heartbeat.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ratio1
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.76
|
|
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,10 +1,10 @@
|
|
|
1
1
|
ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
|
2
|
-
ratio1/_ver.py,sha256=
|
|
2
|
+
ratio1/_ver.py,sha256=HyseIDqovx1D_Ktrv_ENGahjhCJw0IQQMCc2suqhSyU,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
|
|
6
6
|
ratio1/base/distributed_custom_code_presets.py,sha256=cvz5R88P6Z5V61Ce1vHVVh8bOkgXd6gve_vdESDNAsg,2544
|
|
7
|
-
ratio1/base/generic_session.py,sha256=
|
|
7
|
+
ratio1/base/generic_session.py,sha256=T_ZY8ifZkrEwYGPFytfAfB_1YfScT7xiqJhomNBJDP8,187405
|
|
8
8
|
ratio1/base/instance.py,sha256=oQvwzzRvir7851wyhDx_BwN6y_VgsNWwYo53vN33QI4,21914
|
|
9
9
|
ratio1/base/pipeline.py,sha256=szoHrk1qBdY6NKPUk3tUTsJx3XzYp5C2GTOlzRiQi48,62489
|
|
10
10
|
ratio1/base/plugin_template.py,sha256=Gs438cSkhvxPujE4CRH_32pcuZaVwI9kia8E4VDRpSU,138794
|
|
@@ -42,9 +42,9 @@ ratio1/const/apps.py,sha256=0NiuoAPak0HjEULF3fs3xaUH8IRSZ0i4fZw7T2fEd_g,785
|
|
|
42
42
|
ratio1/const/base.py,sha256=QIeRH6X-u8DbezQCGipI3isL1LGComBQC5hLedO1jrQ,6042
|
|
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=pnEEz9roA-03mL4K-rHyW-36-Lmd8y2tgY3Sa7K9z7g,16192
|
|
46
46
|
ratio1/const/formatter.py,sha256=AW3bWlqf39uaqV4BBUuW95qKYfF2OkkU4f9hy3kSVhM,200
|
|
47
|
-
ratio1/const/heartbeat.py,sha256
|
|
47
|
+
ratio1/const/heartbeat.py,sha256=-O5TeVPEhJ5BnJubqu0QgiTWQLmYZWG64b9GZ8zgIOw,2731
|
|
48
48
|
ratio1/const/misc.py,sha256=VDCwwpf5bl9ltx9rzT2WPVP8B3mZFRufU1tSS5MO240,413
|
|
49
49
|
ratio1/const/payload.py,sha256=0rzfC__amwAIeTA8WIVteohMDN5zbBg4txis57Qh0PM,6844
|
|
50
50
|
ratio1/const/plugins/deeploy_const.py,sha256=8QcIf7zo_gSC6SdHqQVecn4yOUKCPMXzHC9zgGW5-3E,13314
|
|
@@ -103,8 +103,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
|
|
|
103
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.76.dist-info/METADATA,sha256=s8KIonsU9LO_Jg9jORNpj2VYO3PmjJrASPRns6z0clc,12255
|
|
107
|
+
ratio1-3.4.76.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
108
|
+
ratio1-3.4.76.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
|
|
109
|
+
ratio1-3.4.76.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
|
110
|
+
ratio1-3.4.76.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|