olas-operate-middleware 0.14.1__py3-none-any.whl → 0.14.3__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.
@@ -1,61 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # ------------------------------------------------------------------------------
3
- #
4
- # Copyright 2025 Valory AG
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- # ------------------------------------------------------------------------------
19
-
20
- """This module contains the class to connect to the `RecoveryModule` contract."""
21
-
22
-
23
- from typing import Any, Dict
24
-
25
- from aea.configurations.base import PublicId
26
- from aea.contracts.base import Contract
27
- from aea.crypto.base import LedgerApi
28
-
29
-
30
- PUBLIC_ID = PublicId.from_str("valory/recovery_module:0.1.0")
31
-
32
-
33
- class RecoveryModule(Contract):
34
- """The RecoveryModule contract"""
35
-
36
- contract_id = PUBLIC_ID
37
-
38
- @classmethod
39
- def get_recover_access_transaction(
40
- cls,
41
- ledger_api: LedgerApi,
42
- contract_address: str,
43
- owner: str,
44
- service_id: int,
45
- raise_on_try: bool = False,
46
- ) -> Dict[str, Any]:
47
- """Get the recover access transaction."""
48
-
49
- tx_params = ledger_api.build_transaction(
50
- contract_instance=cls.get_instance(
51
- ledger_api=ledger_api, contract_address=contract_address
52
- ),
53
- method_name="recoverAccess",
54
- method_args={
55
- "serviceId": service_id,
56
- },
57
- tx_args={"sender_address": owner},
58
- raise_on_try=raise_on_try,
59
- )
60
-
61
- return tx_params
@@ -1,23 +0,0 @@
1
- name: recovery_module
2
- author: valory
3
- version: 0.1.0
4
- type: contract
5
- description: Recovery module
6
- license: Apache-2.0
7
- aea_version: '>=2.0.0, <3.0.0'
8
- fingerprint:
9
- __init__.py: bafybeicjlkmxs5ikpgdtgndifstpmmpaixwcbgouvmt6gowuhf5dy3dpgu
10
- build/RecoveryModule.json: bafybeifsyjdbprcp4kxpijlpqfovxcf7cv2ujapt3d5zn34wby26ldv4ky
11
- contract.py: bafybeifihpwb3etbrnn2hqdizsp5zolis3ur23slt3q5zctcykm5nlvv7q
12
- fingerprint_ignore_patterns: []
13
- contracts: []
14
- class_name: RecoveryModule
15
- contract_interface_paths:
16
- ethereum: build/RecoveryModule.json
17
- dependencies:
18
- open-aea-ledger-ethereum:
19
- version: ==1.60.0
20
- open-aea-test-autonomy:
21
- version: ==0.18.3
22
- web3:
23
- version: <7,>=6.0.0