From 7f158de664179d5d6e21a9e0d17f6ae0b8d1879c Mon Sep 17 00:00:00 2001 From: Adamantios Date: Tue, 21 Nov 2023 13:24:25 +0200 Subject: [PATCH 1/2] fix: db update Fixes commit bed1244c28519ce9f444d0d26deaa9e982ca0a8b in #152. --- packages/valory/skills/decision_maker_abci/states/redeem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/valory/skills/decision_maker_abci/states/redeem.py b/packages/valory/skills/decision_maker_abci/states/redeem.py index 017eb78ba..dbcc2f670 100644 --- a/packages/valory/skills/decision_maker_abci/states/redeem.py +++ b/packages/valory/skills/decision_maker_abci/states/redeem.py @@ -60,7 +60,7 @@ def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]: if synced_data.period_count == 0: # necessary for persisted keys to function properly and not raise an exception when the first period ends update = { - db_key: getattr(synced_data.db, db_key, None) + db_key: synced_data.db.get(db_key, None) for db_key in RedeemRound.selection_key } synced_data.db.update(**update) From 344fbf658752d4ef125dbe827ca3def73227f76f Mon Sep 17 00:00:00 2001 From: Adamantios Date: Tue, 21 Nov 2023 13:25:06 +0200 Subject: [PATCH 2/2] chore: run generators --- packages/packages.json | 10 +++++----- packages/valory/agents/trader/aea-config.yaml | 6 +++--- packages/valory/services/trader/service.yaml | 2 +- packages/valory/skills/decision_maker_abci/skill.yaml | 2 +- packages/valory/skills/trader_abci/skill.yaml | 4 ++-- .../skills/tx_settlement_multiplexer_abci/skill.yaml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index 85b87cc28..f243e029d 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,13 +1,13 @@ { "dev": { "skill/valory/market_manager_abci/0.1.0": "bafybeigesvgfjjtzxnsofhwutsp4pyclxnn62z2luy4xt7yarm64u6pbti", - "skill/valory/decision_maker_abci/0.1.0": "bafybeibuc4wl6olt6eyygn2e76gtxlef7vzfaxbymralqe6vc5qwpgtpbu", - "skill/valory/trader_abci/0.1.0": "bafybeiemwbcfcw4ggxmwhl4zjcft4sox7tybcbwgnvy7jz4qaekhzkfdde", + "skill/valory/decision_maker_abci/0.1.0": "bafybeiat7jknc4bvrzzeltkcgk4fs5axldux4tmyv5vey7bjeggyoj6rga", + "skill/valory/trader_abci/0.1.0": "bafybeidkkeqtlcyorpeqzewhvkl6o2o3bw242j5wdkcvbl2l7atg7tc6nm", "contract/valory/market_maker/0.1.0": "bafybeih4r35d3plsjw56ham6xvi6dn4semmuihc53lh3qofpwj242rnjkq", - "agent/valory/trader/0.1.0": "bafybeicb4m2np45z5v5q573pgqzyiyp5wfermhn6ncuqqr4rof4oewle3u", - "service/valory/trader/0.1.0": "bafybeibsnfe7m3lif4jl7vkwrhia47hko5l5u5dboguhgv2pske3nflvoi", + "agent/valory/trader/0.1.0": "bafybeicfkrwlifvvzgthblbaabew5nggj4raygdxryn2jmjevbvn36lqam", + "service/valory/trader/0.1.0": "bafybeigfjfisqjidu5o3ip3ymvo3vwlflhkejcx2ioqjy3fvdr35j2uc7y", "contract/valory/erc20/0.1.0": "bafybeidpjppgs7jlig2gdpdr3a6q3etbejpxrifjhzlcufpo5zf23dqv7y", - "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeihgcwtate3ujsfualxwhrf62vwbkgx7wdioeqy3pfc4eban4kzqjm", + "skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeifcrxduztpeil2uzmi5ma3pxcctqltyv5373dezml2dbpgssakio4", "contract/valory/mech/0.1.0": "bafybeigjn4q6mxal2hxzjyzldl4t4aykkpxjnbsgnli2c3xwf6binkmn74", "contract/valory/realitio/0.1.0": "bafybeiamgkwwqhray4fs2hlipwxkq7mosmi7ev7jut4vneetaaycc4ruji", "contract/valory/realitio_proxy/0.1.0": "bafybeidx37xzjjmapwacedgzhum6grfzhp5vhouz4zu3pvpgdy5pgb2fr4", diff --git a/packages/valory/agents/trader/aea-config.yaml b/packages/valory/agents/trader/aea-config.yaml index 9c9d07b64..fc6c8d5c5 100644 --- a/packages/valory/agents/trader/aea-config.yaml +++ b/packages/valory/agents/trader/aea-config.yaml @@ -43,10 +43,10 @@ skills: - valory/reset_pause_abci:0.1.0:bafybeiflxcl2dtzayyzzddc4f2astzxunyp66meutornanrgeemicdea5q - valory/termination_abci:0.1.0:bafybeifazwrksp756h7z42qqfcgi6lya6wmhbx46l7ghlaooe45gqnju7q - valory/transaction_settlement_abci:0.1.0:bafybeigxkdujugzvve2dszkwr5kgfx4uhz2epofo4lorbcnthmzfjegwzi -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeihgcwtate3ujsfualxwhrf62vwbkgx7wdioeqy3pfc4eban4kzqjm +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeifcrxduztpeil2uzmi5ma3pxcctqltyv5373dezml2dbpgssakio4 - valory/market_manager_abci:0.1.0:bafybeigesvgfjjtzxnsofhwutsp4pyclxnn62z2luy4xt7yarm64u6pbti -- valory/decision_maker_abci:0.1.0:bafybeibuc4wl6olt6eyygn2e76gtxlef7vzfaxbymralqe6vc5qwpgtpbu -- valory/trader_abci:0.1.0:bafybeiemwbcfcw4ggxmwhl4zjcft4sox7tybcbwgnvy7jz4qaekhzkfdde +- valory/decision_maker_abci:0.1.0:bafybeiat7jknc4bvrzzeltkcgk4fs5axldux4tmyv5vey7bjeggyoj6rga +- valory/trader_abci:0.1.0:bafybeidkkeqtlcyorpeqzewhvkl6o2o3bw242j5wdkcvbl2l7atg7tc6nm - valory/staking_abci:0.1.0:bafybeifoejd5q6wgmqohhwp46uwk3g4ysr7f5mf2fbmjhxulwzwdy2udui default_ledger: ethereum required_ledgers: diff --git a/packages/valory/services/trader/service.yaml b/packages/valory/services/trader/service.yaml index 6a69fc790..3735c5aaa 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:bafybeicb4m2np45z5v5q573pgqzyiyp5wfermhn6ncuqqr4rof4oewle3u +agent: valory/trader:0.1.0:bafybeicfkrwlifvvzgthblbaabew5nggj4raygdxryn2jmjevbvn36lqam number_of_agents: 4 deployment: {} --- diff --git a/packages/valory/skills/decision_maker_abci/skill.yaml b/packages/valory/skills/decision_maker_abci/skill.yaml index 298818d67..d21bab7fe 100644 --- a/packages/valory/skills/decision_maker_abci/skill.yaml +++ b/packages/valory/skills/decision_maker_abci/skill.yaml @@ -38,7 +38,7 @@ fingerprint: states/decision_request.py: bafybeic7otc3hjb753svbmur3yyk6szahc25yii3x4w4vcnpfz6jwvacuu states/final_states.py: bafybeidiwhuyd5zm2cq7vhv2owcrxdpm7fnvn3db6p6tql4jz5hgpalflu states/handle_failed_tx.py: bafybeihewm2vernvhktuorljdupjqcg2p5vs6wvsira2d62wkoyo5xlzjm - states/redeem.py: bafybeicbhbljpav3fhnrpj4tvhxtpbbbvrwmha2scf6jdq37ox6vhc427y + states/redeem.py: bafybeie63laufsdxhf4vngmon5lne7cpmvvosqervp6l2riysqnwuotzim states/sampling.py: bafybeidnvdogjlthjfe7jpaiuezm3xydrbxxukyoss4gx6t5fdin52rsta states/tool_selection.py: bafybeiaaijv6dukp3bmsptcwkcmumc6wu6ztzkvaqzsqqjbfn4ozgyuykq tests/__init__.py: bafybeiakpi3k3kc7wrjj7hrluvjcj36lu2gezpmrctwiz5yg2fe7ggnf3i diff --git a/packages/valory/skills/trader_abci/skill.yaml b/packages/valory/skills/trader_abci/skill.yaml index 7cce812fe..ffeba9249 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:bafybeigxkdujugzvve2dszkwr5kgfx4uhz2epofo4lorbcnthmzfjegwzi - valory/termination_abci:0.1.0:bafybeifazwrksp756h7z42qqfcgi6lya6wmhbx46l7ghlaooe45gqnju7q - valory/market_manager_abci:0.1.0:bafybeigesvgfjjtzxnsofhwutsp4pyclxnn62z2luy4xt7yarm64u6pbti -- valory/decision_maker_abci:0.1.0:bafybeibuc4wl6olt6eyygn2e76gtxlef7vzfaxbymralqe6vc5qwpgtpbu -- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeihgcwtate3ujsfualxwhrf62vwbkgx7wdioeqy3pfc4eban4kzqjm +- valory/decision_maker_abci:0.1.0:bafybeiat7jknc4bvrzzeltkcgk4fs5axldux4tmyv5vey7bjeggyoj6rga +- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeifcrxduztpeil2uzmi5ma3pxcctqltyv5373dezml2dbpgssakio4 - valory/staking_abci:0.1.0:bafybeifoejd5q6wgmqohhwp46uwk3g4ysr7f5mf2fbmjhxulwzwdy2udui behaviours: main: diff --git a/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml b/packages/valory/skills/tx_settlement_multiplexer_abci/skill.yaml index 1e29769da..3b333274e 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:bafybeige5agrztgzfevyglf7mb4o7pzfttmq4f6zi765y4g2zvftbyowru skills: - valory/abstract_round_abci:0.1.0:bafybeigrqhygo2hl2owisj5rqyh3acdvee773ajije64snlzalcgtaac7q -- valory/decision_maker_abci:0.1.0:bafybeibuc4wl6olt6eyygn2e76gtxlef7vzfaxbymralqe6vc5qwpgtpbu +- valory/decision_maker_abci:0.1.0:bafybeiat7jknc4bvrzzeltkcgk4fs5axldux4tmyv5vey7bjeggyoj6rga - valory/staking_abci:0.1.0:bafybeifoejd5q6wgmqohhwp46uwk3g4ysr7f5mf2fbmjhxulwzwdy2udui behaviours: main: