From 5163fb683623d53970c9aaf5581d1864c5c52788 Mon Sep 17 00:00:00 2001 From: Ardian Date: Sat, 2 Sep 2023 03:13:56 +0200 Subject: [PATCH] fix: acn dialogues --- packages/packages.json | 6 +++--- packages/valory/agents/mech/aea-config.yaml | 2 +- packages/valory/services/mech/service.yaml | 2 +- packages/valory/skills/task_execution/behaviours.py | 2 +- packages/valory/skills/task_execution/handlers.py | 1 - packages/valory/skills/task_execution/skill.yaml | 4 ++-- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index f811af09..c207bcf8 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -2,14 +2,14 @@ "dev": { "connection/valory/websocket_client/0.1.0": "bafybeicz53kzs5uvyiod2azntl76zwgmpgr22ven4wl5fnwt2m546j3wsu", "skill/valory/contract_subscription/0.1.0": "bafybeifbgzfrhtdtendqzwmh3o436nyexwkif6mbvsouvk2ktdfk5lhe7y", - "agent/valory/mech/0.1.0": "bafybeiccvl77ouzi6ehjztmydnh5zukg72mntapsh7zkgslhf7475rdq5y", + "agent/valory/mech/0.1.0": "bafybeicgijhvdn7bj6edtbwipvyjzgae72i7ysj7ed5lzlz3oaupphdmo4", "skill/valory/mech_abci/0.1.0": "bafybeigzfa5pr647fg4nflzgie3xla4araotperomibfp2totzpaxwgmje", "contract/valory/agent_mech/0.1.0": "bafybeidl6kwc3sgcxiphgb3osjqlqwylhqetv2nyv2fu6zxcgn5qctv2ju", - "service/valory/mech/0.1.0": "bafybeiedaobns2t46xnbzgfiwp7cueq4mdn6vbrjsmn75f7xvyq245otny", + "service/valory/mech/0.1.0": "bafybeicppsguscj67mqtadyhzzzs6bpseicaafdwgnelrxvxupxka4iw4i", "protocol/valory/acn_data_share/0.1.0": "bafybeieyixetwvz767zekhvg7r6etumyanzys6xbalx2brrfswybinnlhi", "protocol/valory/default/1.0.0": "bafybeiecmut3235aen7wxukllv424f3dysvvlgfmn562kzdunc5hdj3hxu", "skill/valory/task_submission_abci/0.1.0": "bafybeidcjfmhtgwh24sgf3gmk6soiyr2fmaebjvphhz6xob6d5m6aeguce", - "skill/valory/task_execution/0.1.0": "bafybeibrkntfaj4a3zdgolsz7ni7vrtx6wj7s3stoshj2dluhjdoeshgji" + "skill/valory/task_execution/0.1.0": "bafybeia4zlpvutoili4pdqrxtvpnuyhljxu2dyxjqsokw7umuccig5b72m" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeifuxs7gdg2okbn7uofymenjlmnih2wxwkym44lsgwmklgwuckxm2m", diff --git a/packages/valory/agents/mech/aea-config.yaml b/packages/valory/agents/mech/aea-config.yaml index 41d3d6df..b1bc30f3 100644 --- a/packages/valory/agents/mech/aea-config.yaml +++ b/packages/valory/agents/mech/aea-config.yaml @@ -35,7 +35,7 @@ skills: - valory/abstract_round_abci:0.1.0:bafybeigxjcci53vwytymzlhr37436yvenh7jup4astrn7dgyixo24aq2pq - valory/contract_subscription:0.1.0:bafybeifbgzfrhtdtendqzwmh3o436nyexwkif6mbvsouvk2ktdfk5lhe7y - valory/mech_abci:0.1.0:bafybeigzfa5pr647fg4nflzgie3xla4araotperomibfp2totzpaxwgmje -- valory/task_execution:0.1.0:bafybeibrkntfaj4a3zdgolsz7ni7vrtx6wj7s3stoshj2dluhjdoeshgji +- valory/task_execution:0.1.0:bafybeia4zlpvutoili4pdqrxtvpnuyhljxu2dyxjqsokw7umuccig5b72m - valory/registration_abci:0.1.0:bafybeibc4kczqbh23sc6tufrzn3axmhp3vjav7fa3u6cnpvolrbbc2fd7i - valory/reset_pause_abci:0.1.0:bafybeid445uy6wwvugf3byzl7r73c7teu6xr5ezxb4h7cxbenghg3copvy - valory/task_submission_abci:0.1.0:bafybeidcjfmhtgwh24sgf3gmk6soiyr2fmaebjvphhz6xob6d5m6aeguce diff --git a/packages/valory/services/mech/service.yaml b/packages/valory/services/mech/service.yaml index 70b4b475..0b660334 100644 --- a/packages/valory/services/mech/service.yaml +++ b/packages/valory/services/mech/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba fingerprint_ignore_patterns: [] -agent: valory/mech:0.1.0:bafybeiccvl77ouzi6ehjztmydnh5zukg72mntapsh7zkgslhf7475rdq5y +agent: valory/mech:0.1.0:bafybeicgijhvdn7bj6edtbwipvyjzgae72i7ysj7ed5lzlz3oaupphdmo4 number_of_agents: 4 deployment: agent: diff --git a/packages/valory/skills/task_execution/behaviours.py b/packages/valory/skills/task_execution/behaviours.py index e528588b..1de354c0 100644 --- a/packages/valory/skills/task_execution/behaviours.py +++ b/packages/valory/skills/task_execution/behaviours.py @@ -179,7 +179,7 @@ def _check_for_new_reqs(self) -> None: # or if we should not poll yet return - contract_api_msg, _ = self.context.contract_dialogues.create( + contract_api_msg, _ = self.context.contract_api_dialogues.create( performative=ContractApiMessage.Performative.GET_STATE, contract_address=self.params.agent_mech_contract_address, contract_id=str(AgentMechContract.contract_id), diff --git a/packages/valory/skills/task_execution/handlers.py b/packages/valory/skills/task_execution/handlers.py index 1178701c..35ad2053 100644 --- a/packages/valory/skills/task_execution/handlers.py +++ b/packages/valory/skills/task_execution/handlers.py @@ -82,7 +82,6 @@ def handle(self, message: Message) -> None: """Handle the message.""" # we don't respond to ACN messages at this point self.context.logger.info(f"Received message: {message}") - self.context.acn_data_share_dialogues.update(cast(AcnDataShareMessage, message)) self.on_message_handled(message) diff --git a/packages/valory/skills/task_execution/skill.yaml b/packages/valory/skills/task_execution/skill.yaml index 1a0a0ac3..ef5cb2bf 100644 --- a/packages/valory/skills/task_execution/skill.yaml +++ b/packages/valory/skills/task_execution/skill.yaml @@ -7,9 +7,9 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeidqhvvlnthkbnmrdkdeyjyx2f2ab6z4xdgmagh7welqnh2v6wczx4 - behaviours.py: bafybeifcdxzmpj7m642xn27wyogtgmfa4o5pwy6db2bcowh24gs5u3vsxe + behaviours.py: bafybeiebe4qepqayrffaq7dger67svmrv5vo3gejea5yxv73hlkv2ngcca dialogues.py: bafybeihw3nvl2xqxgfgtbhskzxd2awvhiujoi5o7mefokn4ew3o3vo2t4u - handlers.py: bafybeih65i6edwro2fubzbd5romiy2y7rrbb36eqqmo3ohffblfy4vfmmy + handlers.py: bafybeiatb4zd3pg577leguyiqi3cjceu7ibp7fafctm4pte4jckbddmfby models.py: bafybeiauvac5fxeiqxujfl6ocd4u2l2otb2xntygmn2b3k5v7tcj7ptaju utils/__init__.py: bafybeiccdijaigu6e5p2iruwo5mkk224o7ywedc7nr6xeu5fpmhjqgk24e utils/ipfs.py: bafybeicuaj23qrcdv6ly4j7yo6il2r5plozhd6mwvcp5acwqbjxb2t3u2i