Skip to content

Commit

Permalink
fix: misc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Nov 28, 2023
1 parent c7a9a68 commit 37ddce9
Show file tree
Hide file tree
Showing 7 changed files with 536 additions and 576 deletions.
8 changes: 4 additions & 4 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"dev": {
"connection/valory/websocket_client/0.1.0": "bafybeiflmystocxaqblhpzqlcop2vkhsknpzjx2jomohomaxamwskeokzm",
"skill/valory/contract_subscription/0.1.0": "bafybeicyugrkx5glat4p4ezwf6i7oduh26eycfie6ftd4uxrknztzl3ik4",
"agent/valory/mech/0.1.0": "bafybeih5idugp2jm7hxzj63tvvfep3tradk2hhnxipro2egaxnvmdaqjka",
"skill/valory/mech_abci/0.1.0": "bafybeigrndr6sd3nayqa3wbffl263f6guxcbnk67m6x2vzhpvpkmtdn6xu",
"agent/valory/mech/0.1.0": "bafybeic42vamyg3qs3cwqvnhrneowjrxfuhsdm4n3qzxotjq64aujhod64",
"skill/valory/mech_abci/0.1.0": "bafybeicb4xpabwxb7vui2bzbv7kxflrch567hm55fjclf2nbsekzwnj6lq",
"contract/valory/agent_mech/0.1.0": "bafybeidyfhwye3ybk3vxrceljafe2n4o43oxtmjepvexpcrwlccboi34e4",
"service/valory/mech/0.1.0": "bafybeiewvz4sdoarlrgrjwnlnzgpxz6t7xafsbhifbuhoimq333bev7hwy",
"service/valory/mech/0.1.0": "bafybeical6zwabqizq2uj6iokhckccxbb7rgmmmszhcf4xu2vedsfzibsa",
"protocol/valory/acn_data_share/0.1.0": "bafybeih5ydonnvrwvy2ygfqgfabkr47s4yw3uqxztmwyfprulwfsoe7ipq",
"skill/valory/task_submission_abci/0.1.0": "bafybeigdvfzghhjfrlov4f4newyalguuaxl7jk4ccomflgloy46wfijs5i",
"skill/valory/task_submission_abci/0.1.0": "bafybeihwkaxdvlgalbgnx3xrfb4nmyyre5fmqtl24yjowqw3q7busf5pfq",
"skill/valory/task_execution/0.1.0": "bafybeieup24rlnjosvbixq62f225qayflmxjohzmcopc2y5qfixohv2dlq",
"contract/valory/agent_registry/0.1.0": "bafybeiargayav6yiztdnwzejoejstcx4idssch2h4f5arlgtzj3tgsgfmu",
"protocol/valory/websocket_client/0.1.0": "bafybeih43mnztdv3v2hetr2k3gezg7d3yj4ur7cxdvcyaqhg65e52s5sf4",
Expand Down
7 changes: 5 additions & 2 deletions packages/valory/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ skills:
- valory/abstract_abci:0.1.0:bafybeieynwkrnlm6wwtufh2jsgnlprjbpmte7now5rk7fbgd5mh5yumhry
- valory/abstract_round_abci:0.1.0:bafybeifcq2nwd6m5tgxooe7436bc6lwo73xcreedmhcwauzhp5jic6jeq4
- valory/contract_subscription:0.1.0:bafybeicyugrkx5glat4p4ezwf6i7oduh26eycfie6ftd4uxrknztzl3ik4
- valory/mech_abci:0.1.0:bafybeigrndr6sd3nayqa3wbffl263f6guxcbnk67m6x2vzhpvpkmtdn6xu
- valory/mech_abci:0.1.0:bafybeicb4xpabwxb7vui2bzbv7kxflrch567hm55fjclf2nbsekzwnj6lq
- valory/task_execution:0.1.0:bafybeieup24rlnjosvbixq62f225qayflmxjohzmcopc2y5qfixohv2dlq
- valory/registration_abci:0.1.0:bafybeig5fb3ibz3tr4kie53venqtajnlhvh7gwt5h45rxwzakwgs6jjsjq
- valory/reset_pause_abci:0.1.0:bafybeiergfseqtmsphdimzjijxezqyyhigktvqriw2xb4dyujim6s5dr4a
- valory/task_submission_abci:0.1.0:bafybeigdvfzghhjfrlov4f4newyalguuaxl7jk4ccomflgloy46wfijs5i
- valory/task_submission_abci:0.1.0:bafybeihwkaxdvlgalbgnx3xrfb4nmyyre5fmqtl24yjowqw3q7busf5pfq
- valory/termination_abci:0.1.0:bafybeia73cl2vqj2uawt5lnoej3fzlhhum72i2p6ld4bbudd67lxb7f3cu
- valory/transaction_settlement_abci:0.1.0:bafybeifqase6vqfrakahogdl4h2hpxntug5ckioicfqlw2og5tn6htru3q
- valory/websocket_client:0.1.0:bafybeidwntmkk4b2ixq5454ycbkknclqx7a6vpn7aqpm2nw3duszqrxvta
Expand Down Expand Up @@ -176,6 +176,9 @@ models:
service_endpoint_base: ${str:https://dummy_service.autonolas.tech/}
init_fallback_gas: ${int:500000}
manual_gas_limit: ${int:1000000}
service_owner_share: ${float:0.1}
profit_split_freq: ${int:1}
hash_checkpoint_address: ${str:0x694e62BDF7Ff510A4EE66662cf4866A961a31653}
setup:
all_participants: ${list:["0x10E867Ac2Fb0Aa156ca81eF440a5cdf373bE1AaC"]}
safe_contract_address: ${str:0x5e1D1eb61E1164D5a50b28C575dA73A29595dFf7}
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: valory/mech:0.1.0:bafybeih5idugp2jm7hxzj63tvvfep3tradk2hhnxipro2egaxnvmdaqjka
agent: valory/mech:0.1.0:bafybeic42vamyg3qs3cwqvnhrneowjrxfuhsdm4n3qzxotjq64aujhod64
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 @@ -23,7 +23,7 @@ skills:
- valory/abstract_round_abci:0.1.0:bafybeifcq2nwd6m5tgxooe7436bc6lwo73xcreedmhcwauzhp5jic6jeq4
- valory/registration_abci:0.1.0:bafybeig5fb3ibz3tr4kie53venqtajnlhvh7gwt5h45rxwzakwgs6jjsjq
- valory/reset_pause_abci:0.1.0:bafybeiergfseqtmsphdimzjijxezqyyhigktvqriw2xb4dyujim6s5dr4a
- valory/task_submission_abci:0.1.0:bafybeigdvfzghhjfrlov4f4newyalguuaxl7jk4ccomflgloy46wfijs5i
- valory/task_submission_abci:0.1.0:bafybeihwkaxdvlgalbgnx3xrfb4nmyyre5fmqtl24yjowqw3q7busf5pfq
- valory/termination_abci:0.1.0:bafybeia73cl2vqj2uawt5lnoej3fzlhhum72i2p6ld4bbudd67lxb7f3cu
- valory/transaction_settlement_abci:0.1.0:bafybeifqase6vqfrakahogdl4h2hpxntug5ckioicfqlw2og5tn6htru3q
behaviours:
Expand Down
4 changes: 4 additions & 0 deletions packages/valory/skills/task_submission_abci/behaviours.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ def _get_funds_by_operator(
self, operator_share: int
) -> Generator[None, None, Optional[Dict[str, int]]]:
"""Split the funds among the operators based on the number of txs their agents have made."""
if operator_share == 0:
# nothing to split, no need to get the number of txs
return {}

reqs_by_agent = yield from self._get_num_reqs_by_agent()
if reqs_by_agent is None:
self.context.logger.warning(
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/task_submission_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
aea_version: '>=1.0.0, <2.0.0'
fingerprint:
__init__.py: bafybeiholqak7ltw6bbmn2c5tn3j7xgzkdlfzp3kcskiqsvmxoih6m4muq
behaviours.py: bafybeihpzxlxflvzfafffxdokxvx5qjr7bnkcqwaqmq76p67b7dsryypcu
behaviours.py: bafybeihua7g435376hvkb7sowwtm3wv7h7rc6s3gpwwvcjr47p6lac545e
dialogues.py: bafybeibmac3m5u5h6ucoyjr4dazay72dyga656wvjl6z6saapluvjo54ne
fsm_specification.yaml: bafybeig6bhn554qyou7kef5bstnlv54zke32avyti63uu4hvsol3lzqkoi
handlers.py: bafybeibe5n7my2vd2wlwo73sbma65epjqc7kxgtittewlylcmvnmoxtxzq
Expand Down
Loading

0 comments on commit 37ddce9

Please sign in to comment.