From 4e72d0b07c571595563833d8078c3cb226a9f82b Mon Sep 17 00:00:00 2001 From: cyberosa Date: Mon, 29 Jul 2024 12:43:05 +0200 Subject: [PATCH] fixing linter checks --- packages/packages.json | 12 ++++++------ packages/valory/agents/trader/aea-config.yaml | 6 +++--- packages/valory/services/trader/service.yaml | 2 +- packages/valory/services/trader_pearl/service.yaml | 2 +- .../valory/skills/decision_maker_abci/skill.yaml | 4 ++-- .../valory/skills/decision_maker_abci/states/base.py | 2 +- .../tests/behaviours/test_base.py | 1 + packages/valory/skills/trader_abci/skill.yaml | 4 ++-- .../skills/tx_settlement_multiplexer_abci/skill.yaml | 2 +- 9 files changed, 18 insertions(+), 17 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index 43c3e4cc1..ce5e184f7 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -16,14 +16,14 @@ "contract/valory/staking_token/0.1.0": "bafybeig4fl35dn7d5gnprux2nwsqbirm7zkiujz3xvrwcjuktz6hkq4as4", "contract/valory/relayer/0.1.0": "bafybeihzgjyvhtorugjw3yldznqsbwo3aqpxowm7k2nrvj6qtwpsc7jl7u", "skill/valory/market_manager_abci/0.1.0": "bafybeig44vtxcq7aarqkg2mskly3zwwnyfc45rtdvorwz6ywspwg3obqn4", - "skill/valory/decision_maker_abci/0.1.0": "bafybeialzpwou72tnuoa7qdx2xzzd7w6e24cqd5jerv52bendaze4h35yq", - "skill/valory/trader_abci/0.1.0": "bafybeia2c3lznvny3z6yglphtxnry7f5dwd3y4ba5gcb2fpfaacmj6hbse", - "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeielzuw7uluosg7x4oqjjlz7kmxwkxy6eo5czjbcmhufmrg5ylk5fi", + "skill/valory/decision_maker_abci/0.1.0": "bafybeih7vgu2or2ef5fkpu357z5qp3ap5otgot3elbe6xztasnqlm2nshe", + "skill/valory/trader_abci/0.1.0": "bafybeieleya2bucd3r3kwldbqw4eaqnnbgegmid5b54wggwxwycpteacqy", + "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeigmghcgyocbhaltyiquk3lxpxyayjqmb7ivfqw4pvgq6gzjim23iq", "skill/valory/staking_abci/0.1.0": "bafybeidubhfvlf6x627t4wetc6ran5sb4pttjphyhv6vefp2a4kcuca2be", "skill/valory/check_stop_trading_abci/0.1.0": "bafybeiboctfgetji6xlzw2buts5zsejnlrrhqkppme2p6fwzu26zznb324", - "agent/valory/trader/0.1.0": "bafybeievyskkjre4n3uwi6pibbb44suqow7jfzvfj5n45pkna547i63sqa", - "service/valory/trader/0.1.0": "bafybeig64jw7vgcy3vzfwphs6thn5selizccvcwnbwhsgrxyc52vz4wnee", - "service/valory/trader_pearl/0.1.0": "bafybeifmkdjnvik7lys2ngph5s6n33ox2aziyitpsjz3ec5wwocgnviw4y" + "agent/valory/trader/0.1.0": "bafybeido2sn5oremj4rsg3cnyhmwckfrnh2byustvo7zibrk2bgm5plcv4", + "service/valory/trader/0.1.0": "bafybeih4uhkxfylwipow4deajpquzkcgfxh3uwcoubjbp7lbqljv625wo4", + "service/valory/trader_pearl/0.1.0": "bafybeigigopjywtdxqmpokx7zsti5uafm5wmzwey2bk53yy7xa5fkrea54" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", diff --git a/packages/valory/agents/trader/aea-config.yaml b/packages/valory/agents/trader/aea-config.yaml index 9f3fe9486..4f5362741 100644 --- a/packages/valory/agents/trader/aea-config.yaml +++ b/packages/valory/agents/trader/aea-config.yaml @@ -47,10 +47,10 @@ skills: - valory/reset_pause_abci:0.1.0:bafybeiameewywqigpupy3u2iwnkfczeiiucue74x2l5lbge74rmw6bgaie - valory/termination_abci:0.1.0:bafybeif2zim2de356eo3sipkmoev5emwadpqqzk3huwqarywh4tmqt3vzq - valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeielzuw7uluosg7x4oqjjlz7kmxwkxy6eo5czjbcmhufmrg5ylk5fi +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeigmghcgyocbhaltyiquk3lxpxyayjqmb7ivfqw4pvgq6gzjim23iq - valory/market_manager_abci:0.1.0:bafybeig44vtxcq7aarqkg2mskly3zwwnyfc45rtdvorwz6ywspwg3obqn4 -- valory/decision_maker_abci:0.1.0:bafybeialzpwou72tnuoa7qdx2xzzd7w6e24cqd5jerv52bendaze4h35yq -- valory/trader_abci:0.1.0:bafybeia2c3lznvny3z6yglphtxnry7f5dwd3y4ba5gcb2fpfaacmj6hbse +- valory/decision_maker_abci:0.1.0:bafybeih7vgu2or2ef5fkpu357z5qp3ap5otgot3elbe6xztasnqlm2nshe +- valory/trader_abci:0.1.0:bafybeieleya2bucd3r3kwldbqw4eaqnnbgegmid5b54wggwxwycpteacqy - valory/staking_abci:0.1.0:bafybeidubhfvlf6x627t4wetc6ran5sb4pttjphyhv6vefp2a4kcuca2be - valory/check_stop_trading_abci:0.1.0:bafybeiboctfgetji6xlzw2buts5zsejnlrrhqkppme2p6fwzu26zznb324 - valory/mech_interact_abci:0.1.0:bafybeih2cck5xu6yaibomwtm5zbcp6llghr3ighdnk56fzwu3ihu5xx35e diff --git a/packages/valory/services/trader/service.yaml b/packages/valory/services/trader/service.yaml index a8cb5616f..ce19a3e5a 100644 --- a/packages/valory/services/trader/service.yaml +++ b/packages/valory/services/trader/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeigtuothskwyvrhfosps2bu6suauycolj67dpuxqvnicdrdu7yhtvq fingerprint_ignore_patterns: [] -agent: valory/trader:0.1.0:bafybeievyskkjre4n3uwi6pibbb44suqow7jfzvfj5n45pkna547i63sqa +agent: valory/trader:0.1.0:bafybeido2sn5oremj4rsg3cnyhmwckfrnh2byustvo7zibrk2bgm5plcv4 number_of_agents: 4 deployment: agent: diff --git a/packages/valory/services/trader_pearl/service.yaml b/packages/valory/services/trader_pearl/service.yaml index 8acb0d03e..d39d0b99e 100644 --- a/packages/valory/services/trader_pearl/service.yaml +++ b/packages/valory/services/trader_pearl/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeibg7bdqpioh4lmvknw3ygnllfku32oca4eq5pqtvdrdsgw6buko7e fingerprint_ignore_patterns: [] -agent: valory/trader:0.1.0:bafybeievyskkjre4n3uwi6pibbb44suqow7jfzvfj5n45pkna547i63sqa +agent: valory/trader:0.1.0:bafybeido2sn5oremj4rsg3cnyhmwckfrnh2byustvo7zibrk2bgm5plcv4 number_of_agents: 1 deployment: agent: diff --git a/packages/valory/skills/decision_maker_abci/skill.yaml b/packages/valory/skills/decision_maker_abci/skill.yaml index f1b876929..2dea2e1c5 100644 --- a/packages/valory/skills/decision_maker_abci/skill.yaml +++ b/packages/valory/skills/decision_maker_abci/skill.yaml @@ -38,7 +38,7 @@ fingerprint: redeem_info.py: bafybeifiiix4gihfo4avraxt34sfw35v6dqq45do2drrssei2shbps63mm rounds.py: bafybeieffmnu3sivnagmhrhcufnh5zun6pxligc6wp26me43u6cjy2y3xi states/__init__.py: bafybeid23llnyp6j257dluxmrnztugo5llsrog7kua53hllyktz4dqhqoy - states/base.py: bafybeicwod74ui6unityonnwoovr2xej5oc4oszoemvsr7cguesbqe5fjq + states/base.py: bafybeiawpbinmdx7thiwfasmwvcxunh2hdfr37gq2nrswy3zyzf53e3q5m states/bet_placement.py: bafybeibalhxhp2c4oljmiwqi6ds3g36fgtabmf42mb5sgq6z22znrcbhda states/blacklisting.py: bafybeiapelgjhbjjn4uq4z5gspyirqzwzgccg5anktrp5kxdwamfnfw5mi states/check_benchmarking.py: bafybeiabv6pq7q45jd3nkor5afmlycqgec5ctuwcfbdukkjjm4imesv4ni @@ -57,7 +57,7 @@ fingerprint: tests/behaviours/data/.gitkeep: bafybeiekl43sjsyqfgl6y27ve5ydo4svcngrptgtffblokmspfezroxvvi tests/behaviours/dummy_strategy/__init__.py: bafybeiep5w5yckjzy724v63qd5cmzfn3uxytmnizynomxggfobbysfcttq tests/behaviours/dummy_strategy/dummy_strategy.py: bafybeig5e3xfr7gxsakfj4stbxqcwdiljl7klvgahkuwe3obzxgkg3qt2e - tests/behaviours/test_base.py: bafybeiagdrveenk62parzchxg2nd2krpzm2pflfv3p4gszjfpnv3r2kpf4 + tests/behaviours/test_base.py: bafybeif6pglmr7pvojylatfzaxtlk65igx6a2omyrbxfihnnft6o7p75p4 tests/conftest.py: bafybeidy5hw56kw5mxudnfbhvogofn6k4rqb4ux2bd45baedrrhmgyrude utils/__init__.py: bafybeiazrfg3kwfdl5q45azwz6b6mobqxngxpf4hazmrnkhinpk4qhbbf4 utils/nevermined.py: bafybeigallaqxhqopznhjhefr6bukh4ojkz5vdtqyzod5dksshrf24fjgi diff --git a/packages/valory/skills/decision_maker_abci/states/base.py b/packages/valory/skills/decision_maker_abci/states/base.py index b504d807f..b77936e13 100644 --- a/packages/valory/skills/decision_maker_abci/states/base.py +++ b/packages/valory/skills/decision_maker_abci/states/base.py @@ -151,7 +151,7 @@ def bet_amount(self) -> int: return int(self.db.get_strict("bet_amount")) @property - def weighted_accuracy(self) -> int: + def weighted_accuracy(self) -> float: """Get the weighted accuracy of the selected tool.""" tool_name = self.mech_tool store_tools = list(self.policy.weighted_accuracy.keys()) diff --git a/packages/valory/skills/decision_maker_abci/tests/behaviours/test_base.py b/packages/valory/skills/decision_maker_abci/tests/behaviours/test_base.py index a1f338aa9..5f48f32e3 100644 --- a/packages/valory/skills/decision_maker_abci/tests/behaviours/test_base.py +++ b/packages/valory/skills/decision_maker_abci/tests/behaviours/test_base.py @@ -262,6 +262,7 @@ def test_get_bet_amount( 0, 0, 0, + 0, ) for _ in range(2): # `download_strategies` and `wait_for_condition_with_sleep` mock calls diff --git a/packages/valory/skills/trader_abci/skill.yaml b/packages/valory/skills/trader_abci/skill.yaml index f84b2b55f..bd9fa6922 100644 --- a/packages/valory/skills/trader_abci/skill.yaml +++ b/packages/valory/skills/trader_abci/skill.yaml @@ -25,8 +25,8 @@ skills: - valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote - valory/termination_abci:0.1.0:bafybeif2zim2de356eo3sipkmoev5emwadpqqzk3huwqarywh4tmqt3vzq - valory/market_manager_abci:0.1.0:bafybeig44vtxcq7aarqkg2mskly3zwwnyfc45rtdvorwz6ywspwg3obqn4 -- valory/decision_maker_abci:0.1.0:bafybeialzpwou72tnuoa7qdx2xzzd7w6e24cqd5jerv52bendaze4h35yq -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeielzuw7uluosg7x4oqjjlz7kmxwkxy6eo5czjbcmhufmrg5ylk5fi +- valory/decision_maker_abci:0.1.0:bafybeih7vgu2or2ef5fkpu357z5qp3ap5otgot3elbe6xztasnqlm2nshe +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeigmghcgyocbhaltyiquk3lxpxyayjqmb7ivfqw4pvgq6gzjim23iq - valory/staking_abci:0.1.0:bafybeidubhfvlf6x627t4wetc6ran5sb4pttjphyhv6vefp2a4kcuca2be - valory/check_stop_trading_abci:0.1.0:bafybeiboctfgetji6xlzw2buts5zsejnlrrhqkppme2p6fwzu26zznb324 - valory/mech_interact_abci:0.1.0:bafybeih2cck5xu6yaibomwtm5zbcp6llghr3ighdnk56fzwu3ihu5xx35e diff --git a/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml b/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml index 2137b7a50..bd9c8b480 100644 --- a/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml +++ b/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml @@ -21,7 +21,7 @@ protocols: - valory/ledger_api:1.0.0:bafybeihdk6psr4guxmbcrc26jr2cbgzpd5aljkqvpwo64bvaz7tdti2oni skills: - valory/abstract_round_abci:0.1.0:bafybeiar2yhzxacfe3qqamqhaihtlcimquwedffctw55sowx6rac3cm3ui -- valory/decision_maker_abci:0.1.0:bafybeialzpwou72tnuoa7qdx2xzzd7w6e24cqd5jerv52bendaze4h35yq +- valory/decision_maker_abci:0.1.0:bafybeih7vgu2or2ef5fkpu357z5qp3ap5otgot3elbe6xztasnqlm2nshe - valory/staking_abci:0.1.0:bafybeidubhfvlf6x627t4wetc6ran5sb4pttjphyhv6vefp2a4kcuca2be - valory/mech_interact_abci:0.1.0:bafybeih2cck5xu6yaibomwtm5zbcp6llghr3ighdnk56fzwu3ihu5xx35e behaviours: