olas-operate-middleware 0.13.3__py3-none-any.whl → 0.13.4__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.
- {olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/METADATA +1 -1
- {olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/RECORD +6 -6
- operate/services/protocol.py +7 -33
- {olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/WHEEL +0 -0
- {olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/entry_points.txt +0 -0
- {olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/licenses/LICENSE +0 -0
{olas_operate_middleware-0.13.3.dist-info → olas_operate_middleware-0.13.4.dist-info}/RECORD
RENAMED
|
@@ -81,7 +81,7 @@ operate/services/deployment_runner.py,sha256=7A94QpZu100BwIk1Q9Cr0SVK5Sj7nTWx2GR
|
|
|
81
81
|
operate/services/funding_manager.py,sha256=S9jYnRQe2m6QDVrkvGS11KFYkbTPrZc0zNygahukHVs,38621
|
|
82
82
|
operate/services/health_checker.py,sha256=dARikrgzU1jEuK4NUqlZ7N0DQq4Ah1ZiRKHmrlh8v-A,11472
|
|
83
83
|
operate/services/manage.py,sha256=el0PPSu2g994qQXmaVdjd47Ut9KDhNPJB2B6_i0yoGI,113640
|
|
84
|
-
operate/services/protocol.py,sha256=
|
|
84
|
+
operate/services/protocol.py,sha256=ZRnY-irel11jgVL4G1jVE_sZUi1hQUXEClYsmmvamJg,71134
|
|
85
85
|
operate/services/service.py,sha256=GqeS8Fm-iA8UPb4QdDWSHa5uZ-Or0G7po7qT0WfUJWI,45348
|
|
86
86
|
operate/services/utils/__init__.py,sha256=TvioaZ1mfTRUSCtrQoLNAp4WMVXyqEJqFJM4PxSQCRU,24
|
|
87
87
|
operate/services/utils/mech.py,sha256=98gNw8pMNvv_O34V1blr7JUwenqxFeeyFuXLuSYv10w,3864
|
|
@@ -94,8 +94,8 @@ operate/utils/ssl.py,sha256=O5DrDoZD4T4qQuHP8GLwWUVxQ-1qXeefGp6uDJiF2lM,4308
|
|
|
94
94
|
operate/wallet/__init__.py,sha256=NGiozD3XhvkBi7_FaOWQ8x1thZPK4uGpokJaeDY_o2w,813
|
|
95
95
|
operate/wallet/master.py,sha256=zzEODjWOoqKB0XJQU3sAznOdsmvWEzQkaYLzGe2Lx5o,33515
|
|
96
96
|
operate/wallet/wallet_recovery_manager.py,sha256=Dn0QmOYmmNj4p1X1TVQOrua3fysR3XJ99m6Z3H7tJQI,19792
|
|
97
|
-
olas_operate_middleware-0.13.
|
|
98
|
-
olas_operate_middleware-0.13.
|
|
99
|
-
olas_operate_middleware-0.13.
|
|
100
|
-
olas_operate_middleware-0.13.
|
|
101
|
-
olas_operate_middleware-0.13.
|
|
97
|
+
olas_operate_middleware-0.13.4.dist-info/METADATA,sha256=i-85usgWmFaUH-7Kv_CasSJ8hGJ9Hyv6cbq2T2-gHHo,1492
|
|
98
|
+
olas_operate_middleware-0.13.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
99
|
+
olas_operate_middleware-0.13.4.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
|
|
100
|
+
olas_operate_middleware-0.13.4.dist-info/licenses/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
|
|
101
|
+
olas_operate_middleware-0.13.4.dist-info/RECORD,,
|
operate/services/protocol.py
CHANGED
|
@@ -762,15 +762,9 @@ class _ChainUtil:
|
|
|
762
762
|
)
|
|
763
763
|
|
|
764
764
|
@cached_property
|
|
765
|
-
def service_manager_address(self) -> str:
|
|
765
|
+
def service_manager_address(self) -> str:
|
|
766
766
|
"""Get service manager contract address."""
|
|
767
|
-
|
|
768
|
-
ledger_api=self.ledger_api,
|
|
769
|
-
contract_address=CONTRACTS[OperateChain(self.chain_type.value)][
|
|
770
|
-
"service_registry"
|
|
771
|
-
],
|
|
772
|
-
)
|
|
773
|
-
return service_registry.functions.manager().call()
|
|
767
|
+
return ContractConfigs.service_manager.contracts[self.chain_type]
|
|
774
768
|
|
|
775
769
|
@property
|
|
776
770
|
def service_manager_instance(self) -> Contract:
|
|
@@ -1356,11 +1350,7 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1356
1350
|
|
|
1357
1351
|
def get_activate_data(self, service_id: int, cost_of_bond: int) -> t.Dict:
|
|
1358
1352
|
"""Get activate tx data."""
|
|
1359
|
-
|
|
1360
|
-
ledger_api=self.ledger_api,
|
|
1361
|
-
contract_address=self.service_manager_address,
|
|
1362
|
-
)
|
|
1363
|
-
txd = instance.encode_abi(
|
|
1353
|
+
txd = self.service_manager_instance.encode_abi(
|
|
1364
1354
|
abi_element_identifier="activateRegistration",
|
|
1365
1355
|
args=[service_id],
|
|
1366
1356
|
)
|
|
@@ -1380,11 +1370,7 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1380
1370
|
cost_of_bond: int,
|
|
1381
1371
|
) -> t.Dict:
|
|
1382
1372
|
"""Get register instances tx data."""
|
|
1383
|
-
|
|
1384
|
-
ledger_api=self.ledger_api,
|
|
1385
|
-
contract_address=self.service_manager_address,
|
|
1386
|
-
)
|
|
1387
|
-
txd = instance.encode_abi(
|
|
1373
|
+
txd = self.service_manager_instance.encode_abi(
|
|
1388
1374
|
abi_element_identifier="registerAgents",
|
|
1389
1375
|
args=[
|
|
1390
1376
|
service_id,
|
|
@@ -1408,10 +1394,6 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1408
1394
|
use_recovery_module: bool = True,
|
|
1409
1395
|
) -> t.List[t.Dict[str, t.Any]]:
|
|
1410
1396
|
"""Get the deploy data instructions for a safe"""
|
|
1411
|
-
registry_instance = registry_contracts.service_manager.get_instance(
|
|
1412
|
-
ledger_api=self.ledger_api,
|
|
1413
|
-
contract_address=self.service_manager_address,
|
|
1414
|
-
)
|
|
1415
1397
|
approve_hash_message = None
|
|
1416
1398
|
if reuse_multisig:
|
|
1417
1399
|
if not use_recovery_module:
|
|
@@ -1459,7 +1441,7 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1459
1441
|
SAFE_MULTISIG_WITH_RECOVERY_MODULE_CONTRACT.name
|
|
1460
1442
|
).contracts[self.chain_type]
|
|
1461
1443
|
|
|
1462
|
-
deploy_data =
|
|
1444
|
+
deploy_data = self.service_manager_instance.encode_abi(
|
|
1463
1445
|
abi_element_identifier="deploy",
|
|
1464
1446
|
args=[
|
|
1465
1447
|
service_id,
|
|
@@ -1655,11 +1637,7 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1655
1637
|
|
|
1656
1638
|
def get_terminate_data(self, service_id: int) -> t.Dict:
|
|
1657
1639
|
"""Get terminate tx data."""
|
|
1658
|
-
|
|
1659
|
-
ledger_api=self.ledger_api,
|
|
1660
|
-
contract_address=self.service_manager_address,
|
|
1661
|
-
)
|
|
1662
|
-
txd = instance.encode_abi(
|
|
1640
|
+
txd = self.service_manager_instance.encode_abi(
|
|
1663
1641
|
abi_element_identifier="terminate",
|
|
1664
1642
|
args=[service_id],
|
|
1665
1643
|
)
|
|
@@ -1672,11 +1650,7 @@ class EthSafeTxBuilder(_ChainUtil):
|
|
|
1672
1650
|
|
|
1673
1651
|
def get_unbond_data(self, service_id: int) -> t.Dict:
|
|
1674
1652
|
"""Get unbond tx data."""
|
|
1675
|
-
|
|
1676
|
-
ledger_api=self.ledger_api,
|
|
1677
|
-
contract_address=self.service_manager_address,
|
|
1678
|
-
)
|
|
1679
|
-
txd = instance.encode_abi(
|
|
1653
|
+
txd = self.service_manager_instance.encode_abi(
|
|
1680
1654
|
abi_element_identifier="unbond",
|
|
1681
1655
|
args=[service_id],
|
|
1682
1656
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|