From 4d1ade0e81becec31e9ed8391e4d49983da26f55 Mon Sep 17 00:00:00 2001 From: dvilela Date: Sat, 8 Jun 2024 13:42:29 +0200 Subject: [PATCH] fix: logging --- packages/dvilela/agents/tsunami/aea-config.yaml | 4 ++-- packages/dvilela/services/tsunami/service.yaml | 2 +- packages/dvilela/skills/tsunami_abci/behaviours.py | 5 ++++- packages/dvilela/skills/tsunami_abci/skill.yaml | 2 +- packages/dvilela/skills/tsunami_chained_abci/skill.yaml | 2 +- packages/packages.json | 8 ++++---- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/dvilela/agents/tsunami/aea-config.yaml b/packages/dvilela/agents/tsunami/aea-config.yaml index 2e13ee0..5e495a7 100644 --- a/packages/dvilela/agents/tsunami/aea-config.yaml +++ b/packages/dvilela/agents/tsunami/aea-config.yaml @@ -45,8 +45,8 @@ skills: - valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote - valory/registration_abci:0.1.0:bafybeieu7vq3pyns4t5ty6u3sbmpkd7yznpg3rmqifoz3jhy7pmqyg3w6q - valory/reset_pause_abci:0.1.0:bafybeiameewywqigpupy3u2iwnkfczeiiucue74x2l5lbge74rmw6bgaie -- dvilela/tsunami_abci:0.1.0:bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4 -- dvilela/tsunami_chained_abci:0.1.0:bafybeihwlur5s3sqa5zd7oz3r26rht6olczm67tjefxwuljqw7grglw3fy +- dvilela/tsunami_abci:0.1.0:bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy +- dvilela/tsunami_chained_abci:0.1.0:bafybeicajtkm4ywt2odt6r45koxek2nqji647t53lqwqxcvrevdd5lvmda default_ledger: ethereum required_ledgers: - ethereum diff --git a/packages/dvilela/services/tsunami/service.yaml b/packages/dvilela/services/tsunami/service.yaml index 381f994..56487b0 100644 --- a/packages/dvilela/services/tsunami/service.yaml +++ b/packages/dvilela/services/tsunami/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeibh5bgshii5oqjfuhwmiivfvfqy7fw5pzvarxkpe4qrgivxtc3xym fingerprint_ignore_patterns: [] -agent: dvilela/tsunami:0.1.0:bafybeicsw3ufvtrsj7hekjdahx5vf7zund4bhakwphzv2vvizmv55uescm +agent: dvilela/tsunami:0.1.0:bafybeicxcfnfjcvvlhc3vetjsdk6opi7xtgdo3mw3qlbump74lo3hgso4q number_of_agents: 1 deployment: agent: diff --git a/packages/dvilela/skills/tsunami_abci/behaviours.py b/packages/dvilela/skills/tsunami_abci/behaviours.py index e1ec34e..d4562bd 100644 --- a/packages/dvilela/skills/tsunami_abci/behaviours.py +++ b/packages/dvilela/skills/tsunami_abci/behaviours.py @@ -1363,7 +1363,7 @@ def get_governance_tweets( # pylint: disable=too-many-locals,too-many-return-st headers = { "Accept": "application/json", } - parameters = {"key": self.params.boardroom_api_key, "status": "active"} + parameters = {"key": self.params.boardroom_api_key, "status": "pending"} response = yield from self.get_http_response( # type: ignore method="GET", url=url, headers=headers, parameters=parameters @@ -1391,6 +1391,9 @@ def get_governance_tweets( # pylint: disable=too-many-locals,too-many-return-st closed_proposals = { k: v for k, v in governance_proposals.items() if k not in active_proposals } + self.context.logger.info( + f"Got {len(new_proposals)} new proposals and {len(closed_proposals)} closed proposals" + ) # Prepare tweets (new proposals) for proposal_id, proposal in new_proposals.items(): diff --git a/packages/dvilela/skills/tsunami_abci/skill.yaml b/packages/dvilela/skills/tsunami_abci/skill.yaml index d222aba..2bdcaf2 100644 --- a/packages/dvilela/skills/tsunami_abci/skill.yaml +++ b/packages/dvilela/skills/tsunami_abci/skill.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeiaicsttkv5xapta2eqove7si2pyv3zmshkqolluxpnrh3hkulqsqu - behaviours.py: bafybeibjl4ybyheshh6nrmzszxbedfyszrhkpw3nhadm5epnzkdu5yu3ee + behaviours.py: bafybeibxncsrvjjwasc26jlei7cmalk6hver73cnwe6q2girzloqdtngzq dialogues.py: bafybeidmgjji6zw6wcvhijrxb74batj2kc2lskfuqxv76duv2j7azcqwra fsm_specification.yaml: bafybeidlfuabsldhezjaovupkvzrtydpcimzz6r56phsi2psrtdzougu4u handlers.py: bafybeigjy73h3uaroovfuuo3ugffrm3oq6pntz5me7nrbsbiwwjceztj5m diff --git a/packages/dvilela/skills/tsunami_chained_abci/skill.yaml b/packages/dvilela/skills/tsunami_chained_abci/skill.yaml index 0c28ee0..c4cff2e 100644 --- a/packages/dvilela/skills/tsunami_chained_abci/skill.yaml +++ b/packages/dvilela/skills/tsunami_chained_abci/skill.yaml @@ -23,7 +23,7 @@ skills: - valory/reset_pause_abci:0.1.0:bafybeiameewywqigpupy3u2iwnkfczeiiucue74x2l5lbge74rmw6bgaie - valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote - valory/termination_abci:0.1.0:bafybeif2zim2de356eo3sipkmoev5emwadpqqzk3huwqarywh4tmqt3vzq -- dvilela/tsunami_abci:0.1.0:bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4 +- dvilela/tsunami_abci:0.1.0:bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy behaviours: main: args: {} diff --git a/packages/packages.json b/packages/packages.json index 57ed754..ef5e057 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -6,10 +6,10 @@ "connection/dvilela/llama/0.1.0": "bafybeiauzzq2pxmn4brdqgdyxrrikbc5ywjpmetlajyohute5qtnn37aqq", "connection/valory/twitter/0.1.0": "bafybeihotqawulig3g4a7fosi4pljsjii2neiqxtepd42e2neemhqecfcq", "connection/dvilela/suno/0.1.0": "bafybeihy2phtjwbz27ntv55wxfk754kp5tjceujzsdbppjafljoydjflhi", - "skill/dvilela/tsunami_abci/0.1.0": "bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4", - "skill/dvilela/tsunami_chained_abci/0.1.0": "bafybeihwlur5s3sqa5zd7oz3r26rht6olczm67tjefxwuljqw7grglw3fy", - "agent/dvilela/tsunami/0.1.0": "bafybeicsw3ufvtrsj7hekjdahx5vf7zund4bhakwphzv2vvizmv55uescm", - "service/dvilela/tsunami/0.1.0": "bafybeic62sab5qchojuznbcf3mtjffqo7id7jvowon743o5jwpsx6de4yi" + "skill/dvilela/tsunami_abci/0.1.0": "bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy", + "skill/dvilela/tsunami_chained_abci/0.1.0": "bafybeicajtkm4ywt2odt6r45koxek2nqji647t53lqwqxcvrevdd5lvmda", + "agent/dvilela/tsunami/0.1.0": "bafybeicxcfnfjcvvlhc3vetjsdk6opi7xtgdo3mw3qlbump74lo3hgso4q", + "service/dvilela/tsunami/0.1.0": "bafybeieqafdt7zkghqtjnvgi6mbaysmcwym7k6xuhamfktea6ug4scxh34" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",