From 7132eb2cb63a1d86ffd147a37a46542768a3e35a Mon Sep 17 00:00:00 2001 From: Anna Sambrook Date: Thu, 19 Dec 2024 12:13:21 +0000 Subject: [PATCH] fix: check stop trading payload test --- packages/packages.json | 10 +++++----- packages/valory/agents/trader/aea-config.yaml | 4 ++-- packages/valory/services/trader/service.yaml | 2 +- packages/valory/services/trader_pearl/service.yaml | 2 +- .../valory/skills/check_stop_trading_abci/skill.yaml | 2 +- .../check_stop_trading_abci/tests/test_payloads.py | 4 ++-- packages/valory/skills/trader_abci/skill.yaml | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index e1d55afa..82fea2f1 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -17,13 +17,13 @@ "contract/valory/relayer/0.1.0": "bafybeicawmds6czx7db2lcktvexwrp245jpekgulndtos5s5zdid3ilvq4", "skill/valory/market_manager_abci/0.1.0": "bafybeih5r5dstwiouiv2ue3pezu6mf77b5n64rge6vm3y3cvy336lu7kyq", "skill/valory/decision_maker_abci/0.1.0": "bafybeicqgue6mens3colokwycsmznlk5fobheteqghmzczbkmlpwm45c7q", - "skill/valory/trader_abci/0.1.0": "bafybeib32d3jg3wymbuhu27iocasrrmwmb2cwbcn7tbfph4j2r6ovxqa3i", + "skill/valory/trader_abci/0.1.0": "bafybeifrwvcbjb5l4aeidod3liqpjki7unvxj2muntsjgk3bklfpnuq6e4", "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeichwngeh3wiqxxp34zdbx77gzw2bhc5dkovsmwogtppenn3kyk4ym", "skill/valory/staking_abci/0.1.0": "bafybeif2cwf2bcjczbj4fykzyogtvfbfwo3u3ot2gfmeh4cygdenzvt2d4", - "skill/valory/check_stop_trading_abci/0.1.0": "bafybeiggs243oehh736f3j4lwuahgperjfnkv6clxdmqdqjbt62g46q254", - "agent/valory/trader/0.1.0": "bafybeie6dxxvszzrkcqv44fzdektifeuadoekwflxllepxocyuuot3tbpu", - "service/valory/trader/0.1.0": "bafybeiclcbbpbkmx62w4emtdwfbxzg7jvk2up47g4d3j734tbpobc7g7jm", - "service/valory/trader_pearl/0.1.0": "bafybeig2mwuisvaa5ddcxio65twqp5rezucv3e4tmkv3ssltizx62adbuy" + "skill/valory/check_stop_trading_abci/0.1.0": "bafybeia5uldu4na4qtrli7sbahrsdc56egagltvtrrvaiivvsceljd5uje", + "agent/valory/trader/0.1.0": "bafybeibokakryadwpryl6byoet2u7rhz2danebgf5mxx3rh6ybyoqbdouq", + "service/valory/trader/0.1.0": "bafybeibxojlj4pviipsgqttkmpt5k4izjsug554pn5yy4lses3ppxlgtxi", + "service/valory/trader_pearl/0.1.0": "bafybeiggxhsjbcpmz26kju7ifujr4st2z2k2qry62zs3zoyoyrdzq7jvau" }, "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 dd45b61d..a5633b2d 100644 --- a/packages/valory/agents/trader/aea-config.yaml +++ b/packages/valory/agents/trader/aea-config.yaml @@ -49,9 +49,9 @@ skills: - valory/tx_settlement_multiplexer_abci:0.1.0:bafybeichwngeh3wiqxxp34zdbx77gzw2bhc5dkovsmwogtppenn3kyk4ym - valory/market_manager_abci:0.1.0:bafybeih5r5dstwiouiv2ue3pezu6mf77b5n64rge6vm3y3cvy336lu7kyq - valory/decision_maker_abci:0.1.0:bafybeicqgue6mens3colokwycsmznlk5fobheteqghmzczbkmlpwm45c7q -- valory/trader_abci:0.1.0:bafybeib32d3jg3wymbuhu27iocasrrmwmb2cwbcn7tbfph4j2r6ovxqa3i +- valory/trader_abci:0.1.0:bafybeifrwvcbjb5l4aeidod3liqpjki7unvxj2muntsjgk3bklfpnuq6e4 - valory/staking_abci:0.1.0:bafybeif2cwf2bcjczbj4fykzyogtvfbfwo3u3ot2gfmeh4cygdenzvt2d4 -- valory/check_stop_trading_abci:0.1.0:bafybeiggs243oehh736f3j4lwuahgperjfnkv6clxdmqdqjbt62g46q254 +- valory/check_stop_trading_abci:0.1.0:bafybeia5uldu4na4qtrli7sbahrsdc56egagltvtrrvaiivvsceljd5uje - valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm customs: - valory/mike_strat:0.1.0:bafybeihjiol7f4ch4piwfikurdtfwzsh6qydkbsztpbwbwb2yrqdqf726m diff --git a/packages/valory/services/trader/service.yaml b/packages/valory/services/trader/service.yaml index c21e5ef6..22877972 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:bafybeie6dxxvszzrkcqv44fzdektifeuadoekwflxllepxocyuuot3tbpu +agent: valory/trader:0.1.0:bafybeibokakryadwpryl6byoet2u7rhz2danebgf5mxx3rh6ybyoqbdouq 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 e2df8eb9..37ee42b3 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:bafybeie6dxxvszzrkcqv44fzdektifeuadoekwflxllepxocyuuot3tbpu +agent: valory/trader:0.1.0:bafybeibokakryadwpryl6byoet2u7rhz2danebgf5mxx3rh6ybyoqbdouq number_of_agents: 1 deployment: agent: diff --git a/packages/valory/skills/check_stop_trading_abci/skill.yaml b/packages/valory/skills/check_stop_trading_abci/skill.yaml index 4cd027b9..88d86ca1 100644 --- a/packages/valory/skills/check_stop_trading_abci/skill.yaml +++ b/packages/valory/skills/check_stop_trading_abci/skill.yaml @@ -18,7 +18,7 @@ fingerprint: tests/__init__.py: bafybeihv2cjk4va5bc5ncqtppqg2xmmxcro34bma36trtvk32gtmhdycxu tests/test_dialogues.py: bafybeia5ac27w7ijx2nyx5dqyrnv4troo4572gjq7nrcxdncexoxucnqti tests/test_handlers.py: bafybeigpmtx2hyunzn6nxk2x4bvvybek7jvuhbk34fqlj7fgfsszcoqhxy - tests/test_payloads.py: bafybeibygk4xox7itkxwypolxp6yak2hpbtvhtpdaqey2zj6qxqnzo4uqm + tests/test_payloads.py: bafybeic3sbhm7maqyrxkr7pshtzi3tt2prnyb5nvaywj36ttkd5nw7sate tests/test_rounds.py: bafybeigxv27wqlpf4si2xcpe7bgn6k6ubr5nt37w7sskiapbuht5miz3wq fingerprint_ignore_patterns: [] connections: [] diff --git a/packages/valory/skills/check_stop_trading_abci/tests/test_payloads.py b/packages/valory/skills/check_stop_trading_abci/tests/test_payloads.py index a27d2a44..a6c6bf0b 100644 --- a/packages/valory/skills/check_stop_trading_abci/tests/test_payloads.py +++ b/packages/valory/skills/check_stop_trading_abci/tests/test_payloads.py @@ -29,6 +29,6 @@ def test_check_stop_trading_payload() -> None: payload = CheckStopTradingPayload(sender="sender", vote=True, mech_request_count=1) assert payload.vote - assert payload.data == {"vote": True} - assert payload.mech_request_count == 1 + assert payload.mech_request_count + assert payload.data == {"vote": True, "mech_request_count": 1} assert CheckStopTradingPayload.from_json(payload.json) == payload diff --git a/packages/valory/skills/trader_abci/skill.yaml b/packages/valory/skills/trader_abci/skill.yaml index 59dc4fd8..d26d43db 100644 --- a/packages/valory/skills/trader_abci/skill.yaml +++ b/packages/valory/skills/trader_abci/skill.yaml @@ -30,7 +30,7 @@ skills: - valory/decision_maker_abci:0.1.0:bafybeicqgue6mens3colokwycsmznlk5fobheteqghmzczbkmlpwm45c7q - valory/tx_settlement_multiplexer_abci:0.1.0:bafybeichwngeh3wiqxxp34zdbx77gzw2bhc5dkovsmwogtppenn3kyk4ym - valory/staking_abci:0.1.0:bafybeif2cwf2bcjczbj4fykzyogtvfbfwo3u3ot2gfmeh4cygdenzvt2d4 -- valory/check_stop_trading_abci:0.1.0:bafybeiggs243oehh736f3j4lwuahgperjfnkv6clxdmqdqjbt62g46q254 +- valory/check_stop_trading_abci:0.1.0:bafybeia5uldu4na4qtrli7sbahrsdc56egagltvtrrvaiivvsceljd5uje - valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm behaviours: main: