From 5c90aca2a8cf88a3947a6ea8f6f80404d23d82d3 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 23 May 2024 17:12:48 +0200 Subject: [PATCH] fix: time as integer --- 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 | 2 +- packages/valory/skills/learning_abci/skill.yaml | 2 +- packages/valory/skills/learning_chained_abci/skill.yaml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index e8b8e5e..0b49ff2 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,9 +1,9 @@ { "dev": { - "skill/valory/learning_abci/0.1.0": "bafybeieaerwdlpbdz5il7wltmrm7rbgjfwgtobryd725pwptotjbaqobfm", - "skill/valory/learning_chained_abci/0.1.0": "bafybeicuz5a4ury2rjp7z2tjnq3zwohaszmduhh25e6kx6ho4zdarayb5m", - "agent/valory/learning_agent/0.1.0": "bafybeiheatm4agpny32dxfw6xx5dgjx4axgdfkm3psfxoqxl3secmkxzza", - "service/valory/learning_service/0.1.0": "bafybeiadh7xltxryqpthpkxjfmj5n3r7vwlhc5g6kqtcctz3deq2bqs2ze" + "skill/valory/learning_abci/0.1.0": "bafybeifynnxdic2avwf3sbj3yvtklrveomqpofnumzua7deb3ikskcapya", + "skill/valory/learning_chained_abci/0.1.0": "bafybeigega4ri347jppyi4rs2fkzmbzwpsnrn3h7che3wjbezfpqttkz5a", + "agent/valory/learning_agent/0.1.0": "bafybeibhiqzdjcm5s7thbvd2uceymj7tolu4her73fufqqpewmujkffjeu", + "service/valory/learning_service/0.1.0": "bafybeifgyljnsua5jgl5mupdwei4onh4i2ooxaye5ow3rk2vjkiud34ycm" }, "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 26664de..3a049fd 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:bafybeieaerwdlpbdz5il7wltmrm7rbgjfwgtobryd725pwptotjbaqobfm -- valory/learning_chained_abci:0.1.0:bafybeicuz5a4ury2rjp7z2tjnq3zwohaszmduhh25e6kx6ho4zdarayb5m +- valory/learning_abci:0.1.0:bafybeifynnxdic2avwf3sbj3yvtklrveomqpofnumzua7deb3ikskcapya +- valory/learning_chained_abci:0.1.0:bafybeigega4ri347jppyi4rs2fkzmbzwpsnrn3h7che3wjbezfpqttkz5a - 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 f5602f1..87923db 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:bafybeiheatm4agpny32dxfw6xx5dgjx4axgdfkm3psfxoqxl3secmkxzza +agent: valory/learning_agent:0.1.0:bafybeibhiqzdjcm5s7thbvd2uceymj7tolu4her73fufqqpewmujkffjeu 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 a08f889..b93e40c 100644 --- a/packages/valory/skills/learning_abci/behaviours.py +++ b/packages/valory/skills/learning_abci/behaviours.py @@ -164,7 +164,7 @@ def get_next_event(self) -> Generator[None, None, str]: now = self.get_sync_timestamp() self.context.logger.info(f"Timestamp is {now}") - if now % 5 != 0: + if int(now) % 5 != 0: self.context.logger.info( "Timestamp does not end in 0. Sending the DONE event..." ) diff --git a/packages/valory/skills/learning_abci/skill.yaml b/packages/valory/skills/learning_abci/skill.yaml index 43dbf59..5714bdb 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: bafybeiccrtpgbzfnhjkaloe56qgmzzsi6wcmkwr6cztueaopzz6nynyhoe + behaviours.py: bafybeifqotfk6amsmxixlsc4cf7fm6rf35yuaheoy5zsytmhyctpt7al6i dialogues.py: bafybeifqjbumctlffx2xvpga2kcenezhe47qhksvgmaylyp5ypwqgfar5u fsm_specification.yaml: bafybeicxvornc7gpvpotob6z46fl7qmataxydn22fr22qnb4ausfg6vppe handlers.py: bafybeigjadr4thz6hfpfx5abezbwnqhbxmachf4efasrn4z2vqhsqgnyvi diff --git a/packages/valory/skills/learning_chained_abci/skill.yaml b/packages/valory/skills/learning_chained_abci/skill.yaml index 38e83f9..dea1a1e 100644 --- a/packages/valory/skills/learning_chained_abci/skill.yaml +++ b/packages/valory/skills/learning_chained_abci/skill.yaml @@ -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:bafybeieaerwdlpbdz5il7wltmrm7rbgjfwgtobryd725pwptotjbaqobfm +- valory/learning_abci:0.1.0:bafybeifynnxdic2avwf3sbj3yvtklrveomqpofnumzua7deb3ikskcapya - valory/transaction_settlement_abci:0.1.0:bafybeigtzlk4uakmd54rxnznorcrstsr52kta474lgrnvx5ovr546vj7sq behaviours: main: