From a468efe1c4a74ba0f78e91b26c1ceafb84a76197 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Wed, 13 Nov 2024 09:19:52 +0100 Subject: [PATCH 1/4] fix: points --- packages/valory/skills/twitter_scoring_abci/behaviours.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/valory/skills/twitter_scoring_abci/behaviours.py b/packages/valory/skills/twitter_scoring_abci/behaviours.py index 50652ff0..589f73ad 100644 --- a/packages/valory/skills/twitter_scoring_abci/behaviours.py +++ b/packages/valory/skills/twitter_scoring_abci/behaviours.py @@ -1029,11 +1029,16 @@ def async_act(self) -> Generator: "Evaluation data is not valid: key not valid" ) else: - points = 100 * ( + # Tweet quality, relationship and engagement go from 1 to 3. + # When we add the three of them, the total value goes from 3 to 9. + # We want to scale that value up so it goes from 1 to 10. + # (S - 3) / (9 - 3) = (X - 1) / (10 - 1) -> X = (3S - 7) / 2 + S = ( TWEET_QUALITY_TO_POINTS[quality] + TWEET_RELATIONSHIP_TO_POINTS[relationship] + engagement ) + points = 1.5 * S - 3.5 except Exception as e: self.context.logger.error( f"Evaluation data is not valid: exception {e}" From ec035b5ff9888854180864bee7ae989b5ddc33a2 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Wed, 13 Nov 2024 09:25:59 +0100 Subject: [PATCH 2/4] fix: max points per period --- docs/index.md | 2 +- packages/valory/agents/impact_evaluator/aea-config.yaml | 2 +- packages/valory/services/impact_evaluator/service.yaml | 8 ++++---- .../valory/services/impact_evaluator_local/service.yaml | 2 +- packages/valory/skills/impact_evaluator_abci/skill.yaml | 2 +- packages/valory/skills/olas_week_abci/skill.yaml | 1 - packages/valory/skills/twitter_scoring_abci/skill.yaml | 2 +- sample.env | 2 +- 8 files changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/index.md b/docs/index.md index 2c98868c..144eed5d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -93,7 +93,7 @@ In order to run a local demo service based on the IEKit: EARLIEST_BLOCK_TO_MONITOR=16097553 RESET_TENDERMINT_AFTER=5 TWITTER_SEARCH_ARGS=query=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=100&since_id={since_id} - MAX_POINTS_PER_PERIOD=5000 + MAX_POINTS_PER_PERIOD=1000 USE_ACN=false TWITTER_TWEETS_ARGS=tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=10&start_time={start_time} DEFAULT_CHAIN_ID=gnosis diff --git a/packages/valory/agents/impact_evaluator/aea-config.yaml b/packages/valory/agents/impact_evaluator/aea-config.yaml index e208a3fb..a91eab2a 100644 --- a/packages/valory/agents/impact_evaluator/aea-config.yaml +++ b/packages/valory/agents/impact_evaluator/aea-config.yaml @@ -267,7 +267,7 @@ models: finalize_timeout: 60.0 history_check_timeout: 1205 centaur_id_to_secrets: ${str:{}} - max_points_per_period: ${int:5000} + max_points_per_period: ${int:1000} use_slashing: ${bool:false} slash_cooldown_hours: ${int:3} slash_threshold_amount: ${int:10000000000000000} diff --git a/packages/valory/services/impact_evaluator/service.yaml b/packages/valory/services/impact_evaluator/service.yaml index 2a9d8ad5..0c452948 100644 --- a/packages/valory/services/impact_evaluator/service.yaml +++ b/packages/valory/services/impact_evaluator/service.yaml @@ -112,7 +112,7 @@ extra: use_termination: ${USE_TERMINATION:bool:true} validate_timeout: 1205 centaur_id_to_secrets: ${CENTAUR_ID_TO_SECRETS:str:{}} - max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:900} + max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:1000} openai_call_window_size: ${OPENAI_CALL_WINDOW_SIZE:float:3600.0} openai_calls_allowed_in_window: ${OPENAI_CALLS_ALLOWED_IN_WINDOW:int:100} service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/} @@ -208,7 +208,7 @@ extra: use_termination: ${USE_TERMINATION:bool:true} validate_timeout: 1205 centaur_id_to_secrets: ${CENTAUR_ID_TO_SECRETS:str:{}} - max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:900} + max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:1000} openai_call_window_size: ${OPENAI_CALL_WINDOW_SIZE:float:3600.0} openai_calls_allowed_in_window: ${OPENAI_CALLS_ALLOWED_IN_WINDOW:int:100} service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/} @@ -304,7 +304,7 @@ extra: use_termination: ${USE_TERMINATION:bool:true} validate_timeout: 1205 centaur_id_to_secrets: ${CENTAUR_ID_TO_SECRETS:str:{}} - max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:900} + max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:1000} openai_call_window_size: ${OPENAI_CALL_WINDOW_SIZE:float:3600.0} openai_calls_allowed_in_window: ${OPENAI_CALLS_ALLOWED_IN_WINDOW:int:100} service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/} @@ -404,7 +404,7 @@ extra: finalize_timeout: 60.0 history_check_timeout: 1205 centaur_id_to_secrets: ${CENTAUR_ID_TO_SECRETS:str:{}} - max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:900} + max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:1000} openai_call_window_size: ${OPENAI_CALL_WINDOW_SIZE:float:3600.0} openai_calls_allowed_in_window: ${OPENAI_CALLS_ALLOWED_IN_WINDOW:int:100} service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/} diff --git a/packages/valory/services/impact_evaluator_local/service.yaml b/packages/valory/services/impact_evaluator_local/service.yaml index aa57cef7..2daeb42c 100644 --- a/packages/valory/services/impact_evaluator_local/service.yaml +++ b/packages/valory/services/impact_evaluator_local/service.yaml @@ -111,7 +111,7 @@ models: use_termination: ${USE_TERMINATION:bool:true} validate_timeout: 1205 centaur_id_to_secrets: ${CENTAUR_ID_TO_SECRETS:str:{}} - max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:5000} + max_points_per_period: ${MAX_POINTS_PER_PERIOD:int:1000} openai_call_window_size: ${OPENAI_CALL_WINDOW_SIZE:float:3600.0} openai_calls_allowed_in_window: ${OPENAI_CALLS_ALLOWED_IN_WINDOW:int:100} service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/} diff --git a/packages/valory/skills/impact_evaluator_abci/skill.yaml b/packages/valory/skills/impact_evaluator_abci/skill.yaml index 076f01a3..14cc4e82 100644 --- a/packages/valory/skills/impact_evaluator_abci/skill.yaml +++ b/packages/valory/skills/impact_evaluator_abci/skill.yaml @@ -176,7 +176,7 @@ models: twitter_tweets_args: tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time} openai_call_window_size: 3600.0 openai_calls_allowed_in_window: 100 - max_points_per_period: 5000 + max_points_per_period: 1000 tx_timeout: 10.0 whitelist_api_key: null whitelist_endpoint: http://localhost diff --git a/packages/valory/skills/olas_week_abci/skill.yaml b/packages/valory/skills/olas_week_abci/skill.yaml index b23d28f1..b7b1c9e9 100644 --- a/packages/valory/skills/olas_week_abci/skill.yaml +++ b/packages/valory/skills/olas_week_abci/skill.yaml @@ -139,7 +139,6 @@ models: max_tweet_pulls_allowed: 80 openai_call_window_size: 3600.0 openai_calls_allowed_in_window: 100 - max_points_per_period: 5000 validate_timeout: 1205 use_termination: false use_slashing: false diff --git a/packages/valory/skills/twitter_scoring_abci/skill.yaml b/packages/valory/skills/twitter_scoring_abci/skill.yaml index 5ef83a68..a4fec9c8 100644 --- a/packages/valory/skills/twitter_scoring_abci/skill.yaml +++ b/packages/valory/skills/twitter_scoring_abci/skill.yaml @@ -143,7 +143,7 @@ models: twitter_search_args: query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results={max_results}&since_id={since_id} openai_call_window_size: 3600.0 openai_calls_allowed_in_window: 100 - max_points_per_period: 5000 + max_points_per_period: 1000 validate_timeout: 1205 use_termination: false use_slashing: false diff --git a/sample.env b/sample.env index c458205e..5e648cc7 100644 --- a/sample.env +++ b/sample.env @@ -42,7 +42,7 @@ MANUAL_POINTS_STREAM_ID= # SCORING # ----------------------------------------------------------------------------------------- POINTS_TO_IMAGE_HASHES='{"0":"bafybeiabtdl53v2a3irrgrg7eujzffjallpymli763wvhv6gceurfmcemm","100":"bafybeid46w6yzbehir7ackcnsyuasdkun5aq7jnckt4sknvmiewpph776q","50000":"bafybeigbxlwzljbxnlwteupmt6c6k7k2m4bbhunvxxa53dc7niuedilnr4","100000":"bafybeiawxpq4mqckbau3mjwzd3ic2o7ywlhp6zqo7jnaft26zeqm3xsjjy","150000":"bafybeie6k53dupf7rf6622rzfxu3dmlv36hytqrmzs5yrilxwcrlhrml2m"}' -MAX_POINTS_PER_PERIOD=900 +MAX_POINTS_PER_PERIOD=1000 # TWITTER From 697d7a58bf79a715ff2ab15a40f1b17dc2b59d6e Mon Sep 17 00:00:00 2001 From: David Vilela Date: Wed, 13 Nov 2024 09:34:44 +0100 Subject: [PATCH 3/4] fix: move safe out of mech_interact --- .../skills/mech_interact_abci/behaviours/request.py | 10 +++++----- packages/valory/skills/mech_interact_abci/models.py | 3 --- packages/valory/skills/mech_interact_abci/skill.yaml | 1 - packages/valory/skills/twitter_scoring_abci/models.py | 1 + packages/valory/skills/twitter_scoring_abci/rounds.py | 5 +++++ packages/valory/skills/twitter_scoring_abci/skill.yaml | 1 + 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/valory/skills/mech_interact_abci/behaviours/request.py b/packages/valory/skills/mech_interact_abci/behaviours/request.py index 751872b4..b2e48eba 100644 --- a/packages/valory/skills/mech_interact_abci/behaviours/request.py +++ b/packages/valory/skills/mech_interact_abci/behaviours/request.py @@ -222,7 +222,7 @@ def _get_wrapped_native_balance( def update_safe_balances(self) -> WaitableConditionType: """Check the safe's balance.""" - account = self.params.safe_contract_address_gnosis + account = self.synchronized_data.safe_contract_address wallet = yield from self._get_native_balance(account) if wallet is None: return False @@ -328,11 +328,11 @@ def _build_multisend_data( def _build_multisend_safe_tx_hash(self) -> WaitableConditionType: """Prepares and returns the safe tx hash for a multisend tx.""" self.context.logger.info( - f"Building multisend safe tx hash: safe={self.params.safe_contract_address_gnosis}" + f"Building multisend safe tx hash: safe={self.synchronized_data.safe_contract_address}" ) response_msg = yield from self.get_contract_api_response( performative=ContractApiMessage.Performative.GET_STATE, # type: ignore - contract_address=self.params.safe_contract_address_gnosis, + contract_address=self.synchronized_data.safe_contract_address, contract_id=str(GnosisSafeContract.contract_id), contract_callable="get_raw_safe_transaction_hash", to_address=self.params.multisend_address, @@ -475,7 +475,7 @@ def async_act(self) -> Generator: None, None, self.params.mech_chain_id, - self.params.safe_contract_address_gnosis, + self.synchronized_data.safe_contract_address, None, None, ) @@ -497,7 +497,7 @@ def async_act(self) -> Generator: self.tx_hex, self.price, self.params.mech_chain_id, - self.params.safe_contract_address_gnosis, + self.synchronized_data.safe_contract_address, *serialized_data, ) yield from self.finish_behaviour(payload) diff --git a/packages/valory/skills/mech_interact_abci/models.py b/packages/valory/skills/mech_interact_abci/models.py index 2fe38151..96fc52cc 100644 --- a/packages/valory/skills/mech_interact_abci/models.py +++ b/packages/valory/skills/mech_interact_abci/models.py @@ -112,9 +112,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: == self.mech_marketplace_config.priority_mech_address, "The mech contract address must be the same as the priority mech address when using the marketplace.", ) - self.safe_contract_address_gnosis: str = self._ensure( - "safe_contract_address_gnosis", kwargs, str - ) super().__init__(*args, **kwargs) @property diff --git a/packages/valory/skills/mech_interact_abci/skill.yaml b/packages/valory/skills/mech_interact_abci/skill.yaml index b0990cff..6f4b40d7 100644 --- a/packages/valory/skills/mech_interact_abci/skill.yaml +++ b/packages/valory/skills/mech_interact_abci/skill.yaml @@ -147,7 +147,6 @@ models: validate_timeout: 1205 multisend_batch_size: 50 mech_contract_address: '0x77af31De935740567Cf4fF1986D04B2c964A786a' - safe_contract_address_gnosis: '0x0000000000000000000000000000000000000000' mech_request_price: null mech_chain_id: gnosis mech_wrapped_native_token_address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d' diff --git a/packages/valory/skills/twitter_scoring_abci/models.py b/packages/valory/skills/twitter_scoring_abci/models.py index 294e3ac5..d2135f28 100644 --- a/packages/valory/skills/twitter_scoring_abci/models.py +++ b/packages/valory/skills/twitter_scoring_abci/models.py @@ -107,6 +107,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: ) self.staking_contract_addresses = kwargs.get("staking_contract_addresses", []) self.contributors_contract_address = kwargs.get("contributors_contract_address") + self.safe_contract_address_gnosis = kwargs.get("safe_contract_address_gnosis") super().__init__(*args, **kwargs) diff --git a/packages/valory/skills/twitter_scoring_abci/rounds.py b/packages/valory/skills/twitter_scoring_abci/rounds.py index 12898eab..cee45e0f 100644 --- a/packages/valory/skills/twitter_scoring_abci/rounds.py +++ b/packages/valory/skills/twitter_scoring_abci/rounds.py @@ -537,6 +537,11 @@ def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]: get_name( SynchronizedData.performed_twitter_tasks ): performed_twitter_tasks, + # Overwrite safe address with the gnosis one before + # a mech request + get_name( + SynchronizedData.safe_contract_address + ): self.context.params.safe_contract_address_gnosis, }, ) return synchronized_data, Event.DONE diff --git a/packages/valory/skills/twitter_scoring_abci/skill.yaml b/packages/valory/skills/twitter_scoring_abci/skill.yaml index a4fec9c8..cb91bb1c 100644 --- a/packages/valory/skills/twitter_scoring_abci/skill.yaml +++ b/packages/valory/skills/twitter_scoring_abci/skill.yaml @@ -151,6 +151,7 @@ models: slash_threshold_amount: 10000000000000000 light_slash_unit_amount: 5000000000000000 serious_slash_unit_amount: 8000000000000000 + safe_contract_address_gnosis: '0x0000000000000000000000000000000000000000' class_name: Params randomness_api: args: From d7e718f950bddd7a359ba095312f54a4d37f5fab Mon Sep 17 00:00:00 2001 From: David Vilela Date: Wed, 13 Nov 2024 09:44:11 +0100 Subject: [PATCH 4/4] fix: tests --- docs/index.md | 2 +- packages/packages.json | 14 +++++++------- .../valory/agents/impact_evaluator/aea-config.yaml | 8 ++++---- .../valory/services/impact_evaluator/service.yaml | 2 +- .../services/impact_evaluator_local/service.yaml | 2 +- .../valory/skills/impact_evaluator_abci/skill.yaml | 6 +++--- .../valory/skills/mech_interact_abci/skill.yaml | 4 ++-- .../valory/skills/twitter_scoring_abci/skill.yaml | 10 +++++----- .../twitter_scoring_abci/tests/test_rounds.py | 1 + 9 files changed, 25 insertions(+), 24 deletions(-) diff --git a/docs/index.md b/docs/index.md index 144eed5d..5f3abbd7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit: 2. Fetch the IEKit. ```bash - autonomy fetch valory/impact_evaluator:0.1.0:bafybeihbdws7fzicgmbvvrnwbaeuznqve7n7njt3nmcmznrynlcr7y5whq --service + autonomy fetch valory/impact_evaluator:0.1.0:bafybeihelzs5bn7o2c5kz3eotw5g2ga77laen3l2ohonb455b7uvqib74e --service ``` 3. Build the Docker image of the service agents diff --git a/packages/packages.json b/packages/packages.json index 23bbd1ee..27425647 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -15,23 +15,23 @@ "connection/valory/openai/0.1.0": "bafybeifz2n6s6u3zvvryhhxpkvn6guyp2jwpagtyjducvgwoldtmz7ea64", "connection/valory/farcaster/0.1.0": "bafybeibbdas7lxbipksodaphjms3uop7vnzjqkroktjq2g6wbvgtlldaxi", "skill/valory/dynamic_nft_abci/0.1.0": "bafybeic7w6vqpt6rqlw6t7opzm3px2gwb6doo2a6etyyqueez24mbrcqqy", - "skill/valory/twitter_scoring_abci/0.1.0": "bafybeier6oydc5saiyt2e47moz3n54degmlq2ekcifeagc4ggfcj6aemna", + "skill/valory/twitter_scoring_abci/0.1.0": "bafybeibwbxtdz6ypba4vpkxg4esqs3f5ug5ljlwza7njyccoyzmx37dpdu", "skill/valory/ceramic_read_abci/0.1.0": "bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u", "skill/valory/ceramic_write_abci/0.1.0": "bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i", - "skill/valory/impact_evaluator_abci/0.1.0": "bafybeiblxwctj3dzgpn5ev6jpfcm73cdrwhjxetl35sjsyy5hpecbcmozi", + "skill/valory/impact_evaluator_abci/0.1.0": "bafybeicc4cvshbkhcuaevonh3drpw5iqzsnvdnntiwkogu7x6oeufmy2dy", "skill/valory/generic_scoring_abci/0.1.0": "bafybeiffup7abnyqjinsakjawzwr6t6pp32joiuoz4gara7jm7tlfo725q", "skill/valory/twitter_write_abci/0.1.0": "bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde", "skill/valory/llm_abci/0.1.0": "bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq", "skill/valory/decision_making_abci/0.1.0": "bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4", - "skill/valory/olas_week_abci/0.1.0": "bafybeihtfb7c6m5ncznftfiww62pjwi3w2mkpzbjdwry5mf5msh5szzjt4", - "skill/valory/mech_interact_abci/0.1.0": "bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy", + "skill/valory/olas_week_abci/0.1.0": "bafybeihsnuymbv3wb6yvmbxegd5usctbzakfz27255lnvxlhncxsu3s7xi", + "skill/valory/mech_interact_abci/0.1.0": "bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma", "skill/valory/farcaster_write_abci/0.1.0": "bafybeigx2wyujnojer7er7g2eufm5lojon2dckotvsgwb6tn5iyiwdfgsu", "skill/valory/farcaster_test_abci/0.1.0": "bafybeihd3h37ngkxlqo6o3vuvdik54bwmbrjmqcxtgsr5is3tqgbk73yoa", "skill/valory/staking_abci/0.1.0": "bafybeieutg3epfnqtaucw6rpkq7vzzt5pkziqt4zlpjmispz2gqzth45ay", - "agent/valory/impact_evaluator/0.1.0": "bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou", + "agent/valory/impact_evaluator/0.1.0": "bafybeiekj2zd5wcqq7kzqw5ymi626wekpnrjzjsadj7bi3g2rnz32mdaku", "agent/valory/farcaster_test/0.1.0": "bafybeiefui6dnhhy5leqyvfrbkeleb64gap5tzctkrzzggjf4ubbxamjvy", - "service/valory/impact_evaluator/0.1.0": "bafybeihbdws7fzicgmbvvrnwbaeuznqve7n7njt3nmcmznrynlcr7y5whq", - "service/valory/impact_evaluator_local/0.1.0": "bafybeidnu46oftf25amc54lc4glx27pih62xq5xc4xii66ga62njli74fa" + "service/valory/impact_evaluator/0.1.0": "bafybeihelzs5bn7o2c5kz3eotw5g2ga77laen3l2ohonb455b7uvqib74e", + "service/valory/impact_evaluator_local/0.1.0": "bafybeihadh3gm5ouff4mgql5scregpniw7ovavmwvacaujqoix5ktghwnq" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", diff --git a/packages/valory/agents/impact_evaluator/aea-config.yaml b/packages/valory/agents/impact_evaluator/aea-config.yaml index a91eab2a..60334c69 100644 --- a/packages/valory/agents/impact_evaluator/aea-config.yaml +++ b/packages/valory/agents/impact_evaluator/aea-config.yaml @@ -45,9 +45,9 @@ protocols: skills: - valory/abstract_abci:0.1.0:bafybeieo7pe5wqjphs5izpz5aujjbubymlxub62b3rhx6yglu65ibalffu - valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti -- valory/impact_evaluator_abci:0.1.0:bafybeiblxwctj3dzgpn5ev6jpfcm73cdrwhjxetl35sjsyy5hpecbcmozi +- valory/impact_evaluator_abci:0.1.0:bafybeicc4cvshbkhcuaevonh3drpw5iqzsnvdnntiwkogu7x6oeufmy2dy - valory/generic_scoring_abci:0.1.0:bafybeiffup7abnyqjinsakjawzwr6t6pp32joiuoz4gara7jm7tlfo725q -- valory/twitter_scoring_abci:0.1.0:bafybeier6oydc5saiyt2e47moz3n54degmlq2ekcifeagc4ggfcj6aemna +- valory/twitter_scoring_abci:0.1.0:bafybeibwbxtdz6ypba4vpkxg4esqs3f5ug5ljlwza7njyccoyzmx37dpdu - valory/ceramic_read_abci:0.1.0:bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u - valory/ceramic_write_abci:0.1.0:bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i - valory/dynamic_nft_abci:0.1.0:bafybeic7w6vqpt6rqlw6t7opzm3px2gwb6doo2a6etyyqueez24mbrcqqy @@ -58,8 +58,8 @@ skills: - valory/twitter_write_abci:0.1.0:bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde - valory/decision_making_abci:0.1.0:bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4 - valory/llm_abci:0.1.0:bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq -- valory/olas_week_abci:0.1.0:bafybeihtfb7c6m5ncznftfiww62pjwi3w2mkpzbjdwry5mf5msh5szzjt4 -- valory/mech_interact_abci:0.1.0:bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy +- valory/olas_week_abci:0.1.0:bafybeihsnuymbv3wb6yvmbxegd5usctbzakfz27255lnvxlhncxsu3s7xi +- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma - valory/staking_abci:0.1.0:bafybeieutg3epfnqtaucw6rpkq7vzzt5pkziqt4zlpjmispz2gqzth45ay default_ledger: ethereum required_ledgers: diff --git a/packages/valory/services/impact_evaluator/service.yaml b/packages/valory/services/impact_evaluator/service.yaml index 0c452948..9930373a 100644 --- a/packages/valory/services/impact_evaluator/service.yaml +++ b/packages/valory/services/impact_evaluator/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe fingerprint_ignore_patterns: [] -agent: valory/impact_evaluator:0.1.0:bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou +agent: valory/impact_evaluator:0.1.0:bafybeiekj2zd5wcqq7kzqw5ymi626wekpnrjzjsadj7bi3g2rnz32mdaku number_of_agents: 4 deployment: agent: diff --git a/packages/valory/services/impact_evaluator_local/service.yaml b/packages/valory/services/impact_evaluator_local/service.yaml index 2daeb42c..0f558197 100644 --- a/packages/valory/services/impact_evaluator_local/service.yaml +++ b/packages/valory/services/impact_evaluator_local/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe fingerprint_ignore_patterns: [] -agent: valory/impact_evaluator:0.1.0:bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou +agent: valory/impact_evaluator:0.1.0:bafybeiekj2zd5wcqq7kzqw5ymi626wekpnrjzjsadj7bi3g2rnz32mdaku number_of_agents: 1 deployment: agent: diff --git a/packages/valory/skills/impact_evaluator_abci/skill.yaml b/packages/valory/skills/impact_evaluator_abci/skill.yaml index 14cc4e82..2562ce57 100644 --- a/packages/valory/skills/impact_evaluator_abci/skill.yaml +++ b/packages/valory/skills/impact_evaluator_abci/skill.yaml @@ -26,7 +26,7 @@ skills: - valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti - valory/ceramic_read_abci:0.1.0:bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u - valory/generic_scoring_abci:0.1.0:bafybeiffup7abnyqjinsakjawzwr6t6pp32joiuoz4gara7jm7tlfo725q -- valory/twitter_scoring_abci:0.1.0:bafybeier6oydc5saiyt2e47moz3n54degmlq2ekcifeagc4ggfcj6aemna +- valory/twitter_scoring_abci:0.1.0:bafybeibwbxtdz6ypba4vpkxg4esqs3f5ug5ljlwza7njyccoyzmx37dpdu - valory/ceramic_write_abci:0.1.0:bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i - valory/dynamic_nft_abci:0.1.0:bafybeic7w6vqpt6rqlw6t7opzm3px2gwb6doo2a6etyyqueez24mbrcqqy - valory/registration_abci:0.1.0:bafybeib3n6vqkfbrcubcbliebjnuwyywdinxkbzt76n6gbn2kg7ace47dq @@ -36,8 +36,8 @@ skills: - valory/decision_making_abci:0.1.0:bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4 - valory/llm_abci:0.1.0:bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq - valory/twitter_write_abci:0.1.0:bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde -- valory/olas_week_abci:0.1.0:bafybeihtfb7c6m5ncznftfiww62pjwi3w2mkpzbjdwry5mf5msh5szzjt4 -- valory/mech_interact_abci:0.1.0:bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy +- valory/olas_week_abci:0.1.0:bafybeihsnuymbv3wb6yvmbxegd5usctbzakfz27255lnvxlhncxsu3s7xi +- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma - valory/staking_abci:0.1.0:bafybeieutg3epfnqtaucw6rpkq7vzzt5pkziqt4zlpjmispz2gqzth45ay behaviours: main: diff --git a/packages/valory/skills/mech_interact_abci/skill.yaml b/packages/valory/skills/mech_interact_abci/skill.yaml index 6f4b40d7..d64a6506 100644 --- a/packages/valory/skills/mech_interact_abci/skill.yaml +++ b/packages/valory/skills/mech_interact_abci/skill.yaml @@ -10,13 +10,13 @@ fingerprint: __init__.py: bafybeidf3nlv5fpvfy4libtscayhirdw64shgmhfmvjiftjmjkmhu7auxq behaviours/__init__.py: bafybeie3zsi6p3yanz5mqwpkdrcgywaqvkit3hdintsb4awnvalgxpxa4i behaviours/base.py: bafybeif4dvt4p5wfh6q3ybqwnzy62lbr3vqy322sr3wm6pkcrha2ggin6q - behaviours/request.py: bafybeidl25lhusageykea2u4lktjr3cqhj2jox3eo4t4nhor7hbi3h7bdq + behaviours/request.py: bafybeic7nul5iawujburikfdr544g23gxto2wb3jqs4it3kpqffp3fdgrq behaviours/response.py: bafybeibigqdtdxxzufx7cclzjrafszg2lb6y5ommp3jzbyoit735wtm7tq behaviours/round_behaviour.py: bafybeib33inrpyzzlx7k7i3okkslsx4p46dgdaww2m5k7rno57o5nndage dialogues.py: bafybeigjmyzd2bx6mgqiet2c223k6wkc5jk7kdkstbhpaxlqxatey26tlm fsm_specification.yaml: bafybeiapzwz6zcneelc2b2wrcb7cae7x6vbthmf6a57cm4mv6hucp67lz4 handlers.py: bafybeiduy2nwkqdynainuimkjulcv7u2qq6iglkuut3gfurkckydapitg4 - models.py: bafybeihywx7wdzil4uuqsg5sllsary7nzpaimzq7742bledoanl3wmx5wi + models.py: bafybeidfes4ovzsyntxvqtx55qi2tznmllhzznf5qmozi52zrukiyrtbni payloads.py: bafybeie3s5irdmcggst5kmbm6duyhr4nm2qc67fkwznhrdskri4qzmkmla rounds.py: bafybeif7taciv6pqupb7xuewurqssziplbjeobbv4d7ea3vbngz3kpjnee states/__init__.py: bafybeie34wx5znr2hxwh3gs2fchmbeuzjcfnraymdvtzjaxaq5zsiw233q diff --git a/packages/valory/skills/twitter_scoring_abci/skill.yaml b/packages/valory/skills/twitter_scoring_abci/skill.yaml index cb91bb1c..0f32599a 100644 --- a/packages/valory/skills/twitter_scoring_abci/skill.yaml +++ b/packages/valory/skills/twitter_scoring_abci/skill.yaml @@ -8,21 +8,21 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeifudgakkjoyahuewp2o4gvqayw7nsgpyxw2ayrpgmzexurh2xomaq - behaviours.py: bafybeifnbjypim7wculvhktoqhs7aqeu5uqzp3vbgfthfqn5kcqw4x2avy + behaviours.py: bafybeibrzcmgl7uqndh2bviqsr24xvdodzfjhvdbrwe5rshp7rlmsloj3u dialogues.py: bafybeibdqzn37hbo2cq4skww4uh2zvvsjyaxxvdhxisefbdvmjp7rh53si fsm_specification.yaml: bafybeihbq2olrdqx2x5lcvypxyi44ecog4nntsvw2v6oeab4imvj5nz6ae handlers.py: bafybeid3nqvcyotqj5g5hlgrz57nf7vpjysmgvsxe3p7644f4z5dcwqn6u - models.py: bafybeicqgrvizvwvelzmc2tzrzcvoix7wf6xlgyz6a5vvrccjnejf6klb4 + models.py: bafybeiatpjymf7bvtr5f4e23jv2leaqsnwh766dymkm5vkzyhigbap4rhe payloads.py: bafybeidb2qiw26b5fhyxujseibbo2ji5zo54auhyelllsqnj7zn5sbc3pi prompts.py: bafybeidab3wypfzjia6fcj4svo4rzrnbuvqhivqhvdzzglfhl34bnnzm3e - rounds.py: bafybeieklx2bx5ampjtszvg75hacxexigvlf4idsxfgwwrok77hy52f7ja + rounds.py: bafybeiggsdyopywr27re4di6qp4ckysfvbl5pmhahjmsuv5j2iaiqhpk2m tests/__init__.py: bafybeidwzzd4ejsyf3aryd5kmrvd63h7ajgqyrxphmfaacvpjnneacejay tests/test_behaviours.py: bafybeie4upcbed254dybpgar465rnvoycbgtoq4zl62pgenvcpegvxiqvq tests/test_dialogues.py: bafybeiheyq7klonzb7rnjub2i22h7bmsnoimn2pq4j7ofikt3yovstvgt4 tests/test_handlers.py: bafybeigevirvi3saepukke2zmp334btgsdxhj55o2vawj3hqam63miirg4 tests/test_models.py: bafybeicz5jqlkgs7ffw6hdtvo6674t6uvwup5ffeqat2hvjl5yi2fttxoy tests/test_payloads.py: bafybeihoiaic7hmbhgknworqyoaexbxni4ufrsmw2xh56tf7fm2pqo3szi - tests/test_rounds.py: bafybeicrcjopci23cwdqrl64iewpfeqne26ekbb6rvyzqphoj5gxj3jfam + tests/test_rounds.py: bafybeiaeagiyophszvhqpx7vyew53upj5hogbjesweoj26teccgrvq65t4 fingerprint_ignore_patterns: [] connections: [] contracts: @@ -33,7 +33,7 @@ protocols: skills: - valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti - valory/decision_making_abci:0.1.0:bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4 -- valory/mech_interact_abci:0.1.0:bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy +- valory/mech_interact_abci:0.1.0:bafybeicpskytv7osu6bdpmcweemlsb4f3m6gldzpyoxgawkczsmvlrzgma behaviours: main: args: {} diff --git a/packages/valory/skills/twitter_scoring_abci/tests/test_rounds.py b/packages/valory/skills/twitter_scoring_abci/tests/test_rounds.py index e19c9457..a3c711ee 100644 --- a/packages/valory/skills/twitter_scoring_abci/tests/test_rounds.py +++ b/packages/valory/skills/twitter_scoring_abci/tests/test_rounds.py @@ -145,6 +145,7 @@ def run_test(self, test_case: RoundTestCase) -> None: self.synchronized_data.update(**test_case.initial_data) context_mock = mock.MagicMock() + context_mock.params.safe_contract_address_gnosis = "dummy_safe" if test_case.ceramic_db: context_mock.ceramic_db = test_case.ceramic_db test_round = self.round_class(