Skip to content

Commit

Permalink
Merge branch 'fix/task' of github.com:valory-xyz/mech into fix/task
Browse files Browse the repository at this point in the history
  • Loading branch information
8baller committed May 13, 2023
2 parents 6c81848 + 53a9da9 commit 032dadf
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/eightballer/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ skills:
- eightballer/contract_subscription:0.1.0:bafybeidhgfkrxh7ki56ua2fg27vpu2doxri7lh2yqlag6vf64e6e6qtsne
- valory/abstract_abci:0.1.0:bafybeihgerjeq4u4apuue7zzhpb3wmntuju34dbdijbbvl4wclww2gy7di
- valory/abstract_round_abci:0.1.0:bafybeicensk7a2vpqj52iyhf6yhc6z2iwulb2txbym546qvwgsxm3skvcm
- valory/mech_abci:0.1.0:bafybeibufvqnkicu54md6tvo2eiarrrahiorxutgvdn2jhklqon4qa47va
- valory/multiplexer_abci:0.1.0:bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka
- valory/mech_abci:0.1.0:bafybeibkeakq3yk7ezddyyvihkfuue2fs5ie7bvmffhjxica6x7if4uxlm
- valory/multiplexer_abci:0.1.0:bafybeig7oiekvvbgja6gjmi7dprhmixdyuefbis4s2et2ptab6xh5nomfy
- valory/registration_abci:0.1.0:bafybeicsqhakfliwauyqow62yopcjhejknmfcjzh7ilbjt32ozydbhxleq
- valory/reset_pause_abci:0.1.0:bafybeigwsp2crzvqan7xnap6dh4f4lxdut5il6naj7r4jwaslopstufgl4
- valory/task_execution_abci:0.1.0:bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple
Expand Down
2 changes: 1 addition & 1 deletion packages/eightballer/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aea_version: '>=1.0.0, <2.0.0'
license: Apache-2.0
fingerprint: {}
fingerprint_ignore_patterns: []
agent: eightballer/mech:0.1.0:bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci
agent: eightballer/mech:0.1.0:bafybeiaez5gnporerx6bhm5rao5naterknx7bgi66yuyg4p3zl7vxjbdfm
number_of_agents: 1
deployment: {}
---
Expand Down
10 changes: 5 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"dev": {
"connection/eightballer/websocket_client/0.1.0": "bafybeihwcracii3fvvdbvku2wmz7ephsi6dlhycisq5yn3xemryxovqn5i",
"skill/eightballer/contract_subscription/0.1.0": "bafybeidhgfkrxh7ki56ua2fg27vpu2doxri7lh2yqlag6vf64e6e6qtsne",
"agent/eightballer/mech/0.1.0": "bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci",
"service/eightballer/mech/0.1.0": "bafybeif6scubpapidoqberaqcvt4gyvcfhymg62o7ejibvddhtps35onpa",
"skill/valory/multiplexer_abci/0.1.0": "bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka",
"agent/eightballer/mech/0.1.0": "bafybeiaez5gnporerx6bhm5rao5naterknx7bgi66yuyg4p3zl7vxjbdfm",
"service/eightballer/mech/0.1.0": "bafybeiftk2t4qspjnzrfpnrb5r3baurdfaui4gpywvojplpgmmzohlj3wi",
"skill/valory/multiplexer_abci/0.1.0": "bafybeig7oiekvvbgja6gjmi7dprhmixdyuefbis4s2et2ptab6xh5nomfy",
"skill/valory/task_execution_abci/0.1.0": "bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple",
"skill/valory/mech_abci/0.1.0": "bafybeibufvqnkicu54md6tvo2eiarrrahiorxutgvdn2jhklqon4qa47va",
"skill/valory/mech_abci/0.1.0": "bafybeibkeakq3yk7ezddyyvihkfuue2fs5ie7bvmffhjxica6x7if4uxlm",
"skill/valory/transaction_preparation_abci/0.1.0": "bafybeifjcan7yqnscsnw3x6536nfubz5zpjot7zo5egpqzfovpoqieus64",
"contract/valory/agent_mech/0.1.0": "bafybeifjjnnbtqttvq3ox5fpmdbppl5vzkcbfdnxes3bdt4z53ayet2yiy",
"service/valory/mech/0.1.0": "bafybeicy2j3yybnvsvb26tcfsti2uhblguanzt3k4bbk27g57ssf7htkme"
"service/valory/mech/0.1.0": "bafybeihdovyzkchwluiptndrz4h7qjtqjey2nfhtios2ome5w7qmqmy3ta"
},
"third_party": {
"protocol/fetchai/default/1.0.0": "bafybeig3w57l7laofhuyl7nco2lfzgtbqf4cto75edfccymugtixjqnm6y",
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba
fingerprint_ignore_patterns: []
agent: eightballer/mech:0.1.0:bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci
agent: eightballer/mech:0.1.0:bafybeiaez5gnporerx6bhm5rao5naterknx7bgi66yuyg4p3zl7vxjbdfm
number_of_agents: 4
deployment:
agent:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/mech_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contracts: []
protocols: []
skills:
- valory/abstract_round_abci:0.1.0:bafybeicensk7a2vpqj52iyhf6yhc6z2iwulb2txbym546qvwgsxm3skvcm
- valory/multiplexer_abci:0.1.0:bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka
- valory/multiplexer_abci:0.1.0:bafybeig7oiekvvbgja6gjmi7dprhmixdyuefbis4s2et2ptab6xh5nomfy
- valory/registration_abci:0.1.0:bafybeicsqhakfliwauyqow62yopcjhejknmfcjzh7ilbjt32ozydbhxleq
- valory/reset_pause_abci:0.1.0:bafybeigwsp2crzvqan7xnap6dh4f4lxdut5il6naj7r4jwaslopstufgl4
- valory/task_execution_abci:0.1.0:bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple
Expand Down
1 change: 1 addition & 0 deletions packages/valory/skills/multiplexer_abci/behaviours.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def async_act(self) -> Generator:

period_counter = self.synchronized_data.period_counter
do_reset = period_counter % self.params.reset_period_count == 0
self.context.logger.info(f"Period counter: {period_counter}/{self.params.reset_period_count}. Do reset? {do_reset}")

if self.context.shared_state["pending_tasks"]:
payload_content = MultiplexerRound.EXECUTE_PAYLOAD
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/multiplexer_abci/rounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SynchronizedData(BaseSynchronizedData):
@property
def period_counter(self) -> int:
"""Get the period_counter."""
return cast(int, self.db.get("period_counter", 0))
return cast(int, self.db.get("period_counter", 1))

class MultiplexerRound(CollectSameUntilThresholdRound):
"""MultiplexerRound"""
Expand Down
4 changes: 2 additions & 2 deletions packages/valory/skills/multiplexer_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ license: Apache-2.0
aea_version: '>=1.0.0, <2.0.0'
fingerprint:
__init__.py: bafybeihmlhtsobnj6vrhthmy3bgnwbb2x27wjbzea35ypraag6bgbazr4e
behaviours.py: bafybeiavf36mpv5uqhmqz2ozj45l5junuhap63cq65k526smmkooyowuam
behaviours.py: bafybeibmi3mz7wwh7j5kqwd4462mu3x7afrckrv6jmwpolqf5j2yfp6lj4
dialogues.py: bafybeiew6j4u7ggc43scytblq7r6ulijcbqr2tjvtp7cr6hru4sb3irl3m
fsm_specification.yaml: bafybeibmbpdgq7h6sgaxtdb2aawha5xdwd6oszbn3nwr2tolaijoswkfly
handlers.py: bafybeifuvjckl3yjdwjoz6uj3sbdbmcesggfuidolfzpvfbnhb4e73wxb4
models.py: bafybeiagy2uislg4scfhrycfdasrss6styw4q7aeztozwbjtumth3juuxu
payloads.py: bafybeibhg7q5ejfhjkjvcfeqjyzp32msn4alu5btnywimh2zd5arr2f2mm
rounds.py: bafybeie7v3fxxycbtvsqkwz3zoi4g4a5jk4dq574e3y7tzeezmp4ijt3ae
rounds.py: bafybeiaemvgm6j6vycfwvelp7ig3puprh2g2yygixb6uymnczln6zi6hx4
fingerprint_ignore_patterns: []
connections: []
contracts: []
Expand Down
46 changes: 45 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ open-autonomy = "==0.10.4"
autonomy-dev = "^0.1.1"
mypy = "^1.3.0"
pylint = "^2.17.4"
openai = "0.27.2"


[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 032dadf

Please sign in to comment.