Skip to content

Commit

Permalink
Merge pull request #67 from dvilelaf/fix_/path-ports
Browse files Browse the repository at this point in the history
Fix /path ports
  • Loading branch information
dvilelaf authored Dec 5, 2024
2 parents 5c7725c + 921dc51 commit d1fe8aa
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 17 deletions.
8 changes: 4 additions & 4 deletions packages/dvilela/agents/memeooorr/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions packages/dvilela/connections/twikit/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/dvilela/connections/twikit/connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down
6 changes: 3 additions & 3 deletions packages/dvilela/services/memeooorr/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ 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:
ports:
0:
8833: 8000
8833: 8833
---
public_id: dvilela/memeooorr_chained_abci:0.1.0
type: skill
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
4 changes: 2 additions & 2 deletions packages/dvilela/skills/memeooorr_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/dvilela/skills/memeooorr_chained_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
10 changes: 5 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d1fe8aa

Please sign in to comment.