From 03b5d47b9895bd1c24ef8992f15f9468574ad1e8 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 30 May 2024 11:33:53 +0200 Subject: [PATCH] fix: missing payload param --- packages/packages.json | 8 ++++---- packages/valory/agents/learning_agent/aea-config.yaml | 4 ++-- packages/valory/services/learning_service/service.yaml | 2 +- packages/valory/skills/learning_abci/behaviours.py | 4 +++- packages/valory/skills/learning_abci/skill.yaml | 2 +- .../valory/skills/learning_chained_abci/composition.py | 2 +- packages/valory/skills/learning_chained_abci/skill.yaml | 4 ++-- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index b372313..1eebdd2 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,9 +1,9 @@ { "dev": { - "skill/valory/learning_abci/0.1.0": "bafybeig5mgcdi3qdyt3ljaf4c6xurcvoc5w642zbojz2m33dcvuw56iise", - "skill/valory/learning_chained_abci/0.1.0": "bafybeihoefvvdyiagqdclojyguvxxgqsvgdiqwaynpvkr4ftdtfduce6yq", - "agent/valory/learning_agent/0.1.0": "bafybeidmvo2hfjxtuahxnmnopuphpyxanyn33mkhhaxavcauhthibgwzp4", - "service/valory/learning_service/0.1.0": "bafybeiemxpflw66nnxra62ytbsutj6rz4bvjcaegmcux347v6nmxefpwiq" + "skill/valory/learning_abci/0.1.0": "bafybeibi6v6vaou6u5j7kooafizrimhmwvh3n75nqrbakpe52fyxjskm34", + "skill/valory/learning_chained_abci/0.1.0": "bafybeiaz7cn2eticnlxes2znoqejlaheyfac56htjkm5eimv2abd4xpjha", + "agent/valory/learning_agent/0.1.0": "bafybeico5mpeulwq355lf7xsvnjnwbokpkw4qyh3ha3d52v2ouv47oeuye", + "service/valory/learning_service/0.1.0": "bafybeifjdwtaobz4whccymuqq5mdpdbi4vp4jov3xh3dlp7uaj5nfhya74" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", diff --git a/packages/valory/agents/learning_agent/aea-config.yaml b/packages/valory/agents/learning_agent/aea-config.yaml index 40c8be0..74374de 100644 --- a/packages/valory/agents/learning_agent/aea-config.yaml +++ b/packages/valory/agents/learning_agent/aea-config.yaml @@ -31,8 +31,8 @@ protocols: skills: - valory/abstract_abci:0.1.0:bafybeihat4giyc4bz6zopvahcj4iw53356pbtwfn7p4d5yflwly2qhahum - valory/abstract_round_abci:0.1.0:bafybeih3enhagoql7kzpeyzzu2scpkif6y3ubakpralfnwxcvxexdyvy5i -- valory/learning_abci:0.1.0:bafybeig5mgcdi3qdyt3ljaf4c6xurcvoc5w642zbojz2m33dcvuw56iise -- valory/learning_chained_abci:0.1.0:bafybeihoefvvdyiagqdclojyguvxxgqsvgdiqwaynpvkr4ftdtfduce6yq +- valory/learning_abci:0.1.0:bafybeibi6v6vaou6u5j7kooafizrimhmwvh3n75nqrbakpe52fyxjskm34 +- valory/learning_chained_abci:0.1.0:bafybeiaz7cn2eticnlxes2znoqejlaheyfac56htjkm5eimv2abd4xpjha - valory/registration_abci:0.1.0:bafybeiek7zcsxbucjwzgqfftafhfrocvc7q4yxllh2q44jeemsjxg3rcfm - valory/reset_pause_abci:0.1.0:bafybeidw4mbx3os3hmv7ley7b3g3gja7ydpitr7mxbjpwzxin2mzyt5yam - valory/termination_abci:0.1.0:bafybeihq6qtbwt6i53ayqym63vhjexkcppy26gguzhhjqywfmiuqghvv44 diff --git a/packages/valory/services/learning_service/service.yaml b/packages/valory/services/learning_service/service.yaml index 2459db2..4764732 100644 --- a/packages/valory/services/learning_service/service.yaml +++ b/packages/valory/services/learning_service/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeid42pdrf6qrohedylj4ijrss236ai6geqgf3he44huowiuf7pl464 fingerprint_ignore_patterns: [] -agent: valory/learning_agent:0.1.0:bafybeidmvo2hfjxtuahxnmnopuphpyxanyn33mkhhaxavcauhthibgwzp4 +agent: valory/learning_agent:0.1.0:bafybeico5mpeulwq355lf7xsvnjnwbokpkw4qyh3ha3d52v2ouv47oeuye number_of_agents: 4 deployment: agent: diff --git a/packages/valory/skills/learning_abci/behaviours.py b/packages/valory/skills/learning_abci/behaviours.py index 0f45739..0beba90 100644 --- a/packages/valory/skills/learning_abci/behaviours.py +++ b/packages/valory/skills/learning_abci/behaviours.py @@ -218,7 +218,9 @@ def async_act(self) -> Generator: with self.context.benchmark_tool.measure(self.behaviour_id).local(): sender = self.context.agent_address tx_hash = yield from self.get_tx_hash() - payload = TxPreparationPayload(sender=sender, tx_hash=tx_hash) + payload = TxPreparationPayload( + sender=sender, tx_submitter=self.auto_behaviour_id(), tx_hash=tx_hash + ) with self.context.benchmark_tool.measure(self.behaviour_id).consensus(): yield from self.send_a2a_transaction(payload) diff --git a/packages/valory/skills/learning_abci/skill.yaml b/packages/valory/skills/learning_abci/skill.yaml index 9f44732..3f75891 100644 --- a/packages/valory/skills/learning_abci/skill.yaml +++ b/packages/valory/skills/learning_abci/skill.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeiho3lkochqpmes4f235chq26oggmwnol3vjuvhosleoubbjirbwaq - behaviours.py: bafybeifycatas4627hu5fsa7kre6nlhlkywulkdf3zqvpwzqa2tws4bnvq + behaviours.py: bafybeic36u3qcbzfnxgsohwv5cvnfjr4b2kgfvu43czxoh2shsykqb2cqm dialogues.py: bafybeifqjbumctlffx2xvpga2kcenezhe47qhksvgmaylyp5ypwqgfar5u fsm_specification.yaml: bafybeicxvornc7gpvpotob6z46fl7qmataxydn22fr22qnb4ausfg6vppe handlers.py: bafybeigjadr4thz6hfpfx5abezbwnqhbxmachf4efasrn4z2vqhsqgnyvi diff --git a/packages/valory/skills/learning_chained_abci/composition.py b/packages/valory/skills/learning_chained_abci/composition.py index d50ddee..95200c4 100644 --- a/packages/valory/skills/learning_chained_abci/composition.py +++ b/packages/valory/skills/learning_chained_abci/composition.py @@ -42,7 +42,7 @@ TxSettlementAbci.FinishedTransactionSubmissionRound: ResetAndPauseAbci.ResetAndPauseRound, TxSettlementAbci.FailedRound: TxSettlementAbci.RandomnessTransactionSubmissionRound, ResetAndPauseAbci.FinishedResetAndPauseRound: LearningAbci.APICheckRound, - ResetAndPauseAbci.FinishedResetAndPauseErrorRound: ResetAndPauseAbci.ResetAndPauseRound, + ResetAndPauseAbci.FinishedResetAndPauseErrorRound: RegistrationAbci.RegistrationRound, } termination_config = BackgroundAppConfig( diff --git a/packages/valory/skills/learning_chained_abci/skill.yaml b/packages/valory/skills/learning_chained_abci/skill.yaml index fd8e541..6fa6fe1 100644 --- a/packages/valory/skills/learning_chained_abci/skill.yaml +++ b/packages/valory/skills/learning_chained_abci/skill.yaml @@ -8,7 +8,7 @@ aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeihu5y5llhaefw32jodf2nc2x5tig7cfo2fallbodv6vodczunpbve behaviours.py: bafybeiagipms5gfebqysx5sl4dhydppceqv4aga64ibqgygqczbh4imyxu - composition.py: bafybeib5fsdxueapcuygpfs23omf7o3rx6ghzkzhjvc7x6gvfe2juteipi + composition.py: bafybeif4oiwvj6bzhmch6jvi4vbw3wglvirwyi7hriuddudrrw5uyglrcq dialogues.py: bafybeiakqfqcpg7yrxt4bsyernhy5p77tci4qhmgqqjqi3ttx7zk6sklca fsm_specification.yaml: bafybeidbyj5gvzc3ezwrqyzlwc4njvczrbtrrldkr4h7zwlgy2unbsfxlu handlers.py: bafybeicru4lanvektcppxpecul4zwjfuaxseopxtsxrfzmbfaz5qk4m67q @@ -22,7 +22,7 @@ skills: - valory/registration_abci:0.1.0:bafybeiek7zcsxbucjwzgqfftafhfrocvc7q4yxllh2q44jeemsjxg3rcfm - valory/reset_pause_abci:0.1.0:bafybeidw4mbx3os3hmv7ley7b3g3gja7ydpitr7mxbjpwzxin2mzyt5yam - valory/termination_abci:0.1.0:bafybeihq6qtbwt6i53ayqym63vhjexkcppy26gguzhhjqywfmiuqghvv44 -- valory/learning_abci:0.1.0:bafybeig5mgcdi3qdyt3ljaf4c6xurcvoc5w642zbojz2m33dcvuw56iise +- valory/learning_abci:0.1.0:bafybeibi6v6vaou6u5j7kooafizrimhmwvh3n75nqrbakpe52fyxjskm34 - valory/transaction_settlement_abci:0.1.0:bafybeigtzlk4uakmd54rxnznorcrstsr52kta474lgrnvx5ovr546vj7sq behaviours: main: