From a66d37e468665b30564d925ab67ac343dc2140b8 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 5 Dec 2024 11:36:47 +0100 Subject: [PATCH 1/2] fix: http port, path --- packages/dvilela/agents/memeooorr/aea-config.yaml | 2 +- packages/dvilela/connections/twikit/connection.py | 3 +++ packages/dvilela/services/memeooorr/service.yaml | 4 ++-- .../dvilela/skills/memeooorr_abci/behaviour_classes/base.py | 6 +++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/dvilela/agents/memeooorr/aea-config.yaml b/packages/dvilela/agents/memeooorr/aea-config.yaml index 54fc6aa0..6da83857 100644 --- a/packages/dvilela/agents/memeooorr/aea-config.yaml +++ b/packages/dvilela/agents/memeooorr/aea-config.yaml @@ -203,7 +203,7 @@ public_id: valory/http_server:0.22.0:bafybeicblltx7ha3ulthg7bzfccuqqyjmihhrvfezt type: connection config: host: ${str:0.0.0.0} - port: ${int:8000} + port: ${int:8833} target_skill_id: dvilela/memeooorr_chained_abci:0.1.0 --- public_id: dvilela/genai:0.1.0:bafybeicblltx7ha3ulthg7bzfccuqqyjmihhrvfeztlgrlcoxhr7kf6nbq diff --git a/packages/dvilela/connections/twikit/connection.py b/packages/dvilela/connections/twikit/connection.py index fec222b4..74d0062e 100644 --- a/packages/dvilela/connections/twikit/connection.py +++ b/packages/dvilela/connections/twikit/connection.py @@ -267,6 +267,9 @@ async def twikit_login(self) -> None: password=self.password, ) + if not self.cookies_path.parent.exists(): + self.cookies_path.parent.mkdir(parents=True) + self.client.save_cookies(self.cookies_path) async def search( diff --git a/packages/dvilela/services/memeooorr/service.yaml b/packages/dvilela/services/memeooorr/service.yaml index 370c5264..fbc8ee0f 100644 --- a/packages/dvilela/services/memeooorr/service.yaml +++ b/packages/dvilela/services/memeooorr/service.yaml @@ -13,7 +13,7 @@ deployment: agent: ports: 0: - 8833: 8000 + 8833: 8833 --- public_id: dvilela/memeooorr_chained_abci:0.1.0 type: skill @@ -144,5 +144,5 @@ public_id: valory/http_server:0.22.0:bafybeicblltx7ha3ulthg7bzfccuqqyjmihhrvfezt type: connection config: host: ${HTTP_SERVER_HOST:str:0.0.0.0} - port: ${HTTP_SERVER_PORT:int:8000} + port: ${HTTP_SERVER_PORT:int:8833} target_skill_id: dvilela/memeooorr_chained_abci:0.1.0 diff --git a/packages/dvilela/skills/memeooorr_abci/behaviour_classes/base.py b/packages/dvilela/skills/memeooorr_abci/behaviour_classes/base.py index d14632f0..95ec6c1b 100644 --- a/packages/dvilela/skills/memeooorr_abci/behaviour_classes/base.py +++ b/packages/dvilela/skills/memeooorr_abci/behaviour_classes/base.py @@ -408,7 +408,11 @@ def get_meme_coins_from_subgraph(self) -> Generator[None, None, Optional[List]]: def get_chain_id(self) -> str: """Get chain id""" - return BASE_CHAIN_ID if self.params.home_chain_id == "BASE" else CELO_CHAIN_ID + chain_id = ( + BASE_CHAIN_ID if self.params.home_chain_id == "BASE" else CELO_CHAIN_ID + ) + print(f"CHAIN_ID={chain_id}") + return chain_id def get_packages(self, package_type: str) -> Generator[None, None, Optional[Dict]]: """Gets minted packages from the Olas subgraph""" From 921dc510f125c7f571cd24e6359c8d7f6f46015d Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 5 Dec 2024 11:38:02 +0100 Subject: [PATCH 2/2] fix: hashes --- packages/dvilela/agents/memeooorr/aea-config.yaml | 6 +++--- packages/dvilela/connections/twikit/connection.yaml | 2 +- packages/dvilela/services/memeooorr/service.yaml | 2 +- packages/dvilela/skills/memeooorr_abci/skill.yaml | 4 ++-- .../dvilela/skills/memeooorr_chained_abci/skill.yaml | 2 +- packages/packages.json | 10 +++++----- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/dvilela/agents/memeooorr/aea-config.yaml b/packages/dvilela/agents/memeooorr/aea-config.yaml index 6da83857..705d19ff 100644 --- a/packages/dvilela/agents/memeooorr/aea-config.yaml +++ b/packages/dvilela/agents/memeooorr/aea-config.yaml @@ -13,7 +13,7 @@ connections: - valory/http_client:0.23.0:bafybeihi772xgzpqeipp3fhmvpct4y6e6tpjp4sogwqrnf3wqspgeilg4u - valory/ledger:0.19.0:bafybeihynkdraqthjtv74qk3nc5r2xubniqx2hhzpxn7bd4qmlf7q4wruq - valory/p2p_libp2p_client:0.1.0:bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e -- dvilela/twikit:0.1.0:bafybeiawfdnjxlcpdfrlqayhzymwlyumsp4ingnat6t4cluiswkduf3kk4 +- dvilela/twikit:0.1.0:bafybeigk6gbijk6zbbtrnvou3twpxma743yzocuhfgdbde2fqzhieusyzq - dvilela/kv_store:0.1.0:bafybeiekugvb2kan4342hliluxl3h5och3fjwqoafdyttpcn57evvyztq4 - valory/http_server:0.22.0:bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m - dvilela/genai:0.1.0:bafybeifcrrfz6jwp437zutmrhtjjkruflauoa4go627c47haiv2r2ej2uq @@ -41,8 +41,8 @@ skills: - valory/transaction_settlement_abci:0.1.0:bafybeihq2yenstblmaadzcjousowj5kfn5l7ns5pxweq2gcrsczfyq5wzm - valory/registration_abci:0.1.0:bafybeicnth5q4httefsusywx3zrrq4al47owvge72dqf2fziruicq6hqta - valory/reset_pause_abci:0.1.0:bafybeievjciqdvxhqxfjd4whqs27h6qbxqzrae7wwj7fpvxlvmtw3x35im -- dvilela/memeooorr_abci:0.1.0:bafybeigfhi5k3fiodiyjbhy54lqcjjgiojtljlnzfnbhfkilg7slcz6ocu -- dvilela/memeooorr_chained_abci:0.1.0:bafybeie4vem72o3m5iryggjbzfkukdcyqrj74ov7qdyjwc4wmxycu6n44u +- dvilela/memeooorr_abci:0.1.0:bafybeigrve6npjfbqprz6psadsfjcgijs7qbdjm7pcv7aewrqojljhqyga +- dvilela/memeooorr_chained_abci:0.1.0:bafybeigv5hhl2fu3aqs7cg7svnhljhmmiu6zanrf4g6yi5vhqpqmm6dh5q default_ledger: ethereum required_ledgers: - ethereum diff --git a/packages/dvilela/connections/twikit/connection.yaml b/packages/dvilela/connections/twikit/connection.yaml index 0f03300b..232844f8 100644 --- a/packages/dvilela/connections/twikit/connection.yaml +++ b/packages/dvilela/connections/twikit/connection.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeiaism4qxp36o6dflr3emtu4hk37dw7evimcoqkvlvt5s42af5lr5m - connection.py: bafybeidpyc26j6gjthoqh7tkexjznsj4yfsmbf6obe7xgscydmxxeby22m + connection.py: bafybeihb4lobwtfhnt2kg6y4bghm3tsbxiipmf5xocgfr4egepcdodi75u readme.md: bafybeihl7k3yi3twtvlkjntaknmib6hnhmyjurn25c4nksffcagrwkx5t4 fingerprint_ignore_patterns: [] connections: [] diff --git a/packages/dvilela/services/memeooorr/service.yaml b/packages/dvilela/services/memeooorr/service.yaml index fbc8ee0f..eb005dfd 100644 --- a/packages/dvilela/services/memeooorr/service.yaml +++ b/packages/dvilela/services/memeooorr/service.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeiaekcmielp6mb4qvmo2twwkpmoun36bqajrh7wnnkcpdnia45ycl4 fingerprint_ignore_patterns: [] -agent: dvilela/memeooorr:0.1.0:bafybeiddclqnk6qfrtkmv7pqivgsut7nsxqybebyzkdbuhc3hugtmtkkne +agent: dvilela/memeooorr:0.1.0:bafybeicppw5vdsjephd55zfmqyvxjqejrgugclshresnvkz3dfhabmwmcq number_of_agents: 1 deployment: agent: diff --git a/packages/dvilela/skills/memeooorr_abci/skill.yaml b/packages/dvilela/skills/memeooorr_abci/skill.yaml index e83ca5be..4c2b8285 100644 --- a/packages/dvilela/skills/memeooorr_abci/skill.yaml +++ b/packages/dvilela/skills/memeooorr_abci/skill.yaml @@ -8,7 +8,7 @@ aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeidorrnxjv4n4ngovxnu4mzod46kyrdncfmli4hapqeqnzp7imq7hm behaviour_classes/__init__.py: bafybeicjks4kxsb2r6a4armmaqxyxngwm3pouegq3fycm37rbe7otiwsre - behaviour_classes/base.py: bafybeiey2uxwwapxtzakvoucmcba2teix6qdynxagb5lsowr5v7ezenlzi + behaviour_classes/base.py: bafybeib4f5aa3aoqoyag5pq6lmun7oejf4lhh5i4tly3ixxsj2sbovfnvy behaviour_classes/chain.py: bafybeidfs4c7ex26jp6u2s45ma6yz27cfhxqha3kjrzvar2dbk6fn7pk7q behaviour_classes/db.py: bafybeieuhjes2gsiidepjxcojgnn3swx2znem5uwvz7rwkxpwls3dmlxf4 behaviour_classes/llm.py: bafybeifz6h7q6bl336zj2cqb5l4drujz75zrs5oowmpdaohloq2ip3ccaa @@ -26,7 +26,7 @@ fingerprint: fingerprint_ignore_patterns: [] connections: - dvilela/kv_store:0.1.0:bafybeiekugvb2kan4342hliluxl3h5och3fjwqoafdyttpcn57evvyztq4 -- dvilela/twikit:0.1.0:bafybeiawfdnjxlcpdfrlqayhzymwlyumsp4ingnat6t4cluiswkduf3kk4 +- dvilela/twikit:0.1.0:bafybeigk6gbijk6zbbtrnvou3twpxma743yzocuhfgdbde2fqzhieusyzq - dvilela/genai:0.1.0:bafybeifcrrfz6jwp437zutmrhtjjkruflauoa4go627c47haiv2r2ej2uq - valory/http_server:0.22.0:bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m contracts: diff --git a/packages/dvilela/skills/memeooorr_chained_abci/skill.yaml b/packages/dvilela/skills/memeooorr_chained_abci/skill.yaml index 7fad449e..c1675997 100644 --- a/packages/dvilela/skills/memeooorr_chained_abci/skill.yaml +++ b/packages/dvilela/skills/memeooorr_chained_abci/skill.yaml @@ -23,7 +23,7 @@ skills: - valory/reset_pause_abci:0.1.0:bafybeievjciqdvxhqxfjd4whqs27h6qbxqzrae7wwj7fpvxlvmtw3x35im - valory/transaction_settlement_abci:0.1.0:bafybeihq2yenstblmaadzcjousowj5kfn5l7ns5pxweq2gcrsczfyq5wzm - valory/termination_abci:0.1.0:bafybeid54buqxipiuduw7b6nnliiwsxajnltseuroad53wukfonpxca2om -- dvilela/memeooorr_abci:0.1.0:bafybeigfhi5k3fiodiyjbhy54lqcjjgiojtljlnzfnbhfkilg7slcz6ocu +- dvilela/memeooorr_abci:0.1.0:bafybeigrve6npjfbqprz6psadsfjcgijs7qbdjm7pcv7aewrqojljhqyga behaviours: main: args: {} diff --git a/packages/packages.json b/packages/packages.json index 8c8fa64b..d382771f 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -2,11 +2,11 @@ "dev": { "contract/dvilela/meme_factory/0.1.0": "bafybeihh2fty6e3w2bvhn6y6jwa3yyssnn6yttopmmjczpgsudwrd7q4hq", "contract/dvilela/meme/0.1.0": "bafybeihubei6hbhbyiwwyxcbredb5mhomhwfktxlwufmqxrzo4jj4ohweq", - "connection/dvilela/twikit/0.1.0": "bafybeiawfdnjxlcpdfrlqayhzymwlyumsp4ingnat6t4cluiswkduf3kk4", - "skill/dvilela/memeooorr_abci/0.1.0": "bafybeigfhi5k3fiodiyjbhy54lqcjjgiojtljlnzfnbhfkilg7slcz6ocu", - "skill/dvilela/memeooorr_chained_abci/0.1.0": "bafybeie4vem72o3m5iryggjbzfkukdcyqrj74ov7qdyjwc4wmxycu6n44u", - "agent/dvilela/memeooorr/0.1.0": "bafybeiddclqnk6qfrtkmv7pqivgsut7nsxqybebyzkdbuhc3hugtmtkkne", - "service/dvilela/memeooorr/0.1.0": "bafybeidvfwl7mrrxh7rjq2ytjihr6xc4ac4hniszawsrc4oc7p6ubklloy" + "connection/dvilela/twikit/0.1.0": "bafybeigk6gbijk6zbbtrnvou3twpxma743yzocuhfgdbde2fqzhieusyzq", + "skill/dvilela/memeooorr_abci/0.1.0": "bafybeigrve6npjfbqprz6psadsfjcgijs7qbdjm7pcv7aewrqojljhqyga", + "skill/dvilela/memeooorr_chained_abci/0.1.0": "bafybeigv5hhl2fu3aqs7cg7svnhljhmmiu6zanrf4g6yi5vhqpqmm6dh5q", + "agent/dvilela/memeooorr/0.1.0": "bafybeicppw5vdsjephd55zfmqyvxjqejrgugclshresnvkz3dfhabmwmcq", + "service/dvilela/memeooorr/0.1.0": "bafybeif4xqnxr5crsrxzo3kigdwizfxxwhigi2lu7btkfovkuwpwectdbm" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",