Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberosa committed Nov 28, 2024
1 parent 075152a commit 367bf94
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
12 changes: 6 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"contract/valory/staking_token/0.1.0": "bafybeiep4r6qyilbfgzdvx6t7zvpgaioxqktmxm7puwtnbpb2ftlib43gy",
"contract/valory/relayer/0.1.0": "bafybeicawmds6czx7db2lcktvexwrp245jpekgulndtos5s5zdid3ilvq4",
"skill/valory/market_manager_abci/0.1.0": "bafybeidbeblyusl73wucduilaz3ggfdooglf2xpjb6hwzytmhqqm6bidha",
"skill/valory/decision_maker_abci/0.1.0": "bafybeiexrouz4ce7s3hsxiz2f7iuyyhjuvwxsorlrxa65zgqtlvjz7umtu",
"skill/valory/trader_abci/0.1.0": "bafybeic5cchguukbglyei5edmh7dpja6puvsdzk5mdb7bn5chfsg2mhoii",
"skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeicurfi4fkk2w4lefxipf7plnf6bnfexoxegcuxinrx5ge2gxxveua",
"skill/valory/decision_maker_abci/0.1.0": "bafybeihoixxh3evvdldcylz5gq4k4myg6etjptyu3j2maxz27o2s6map74",
"skill/valory/trader_abci/0.1.0": "bafybeia6qzatylv2sfh5h3rrxr2l53gncerxse5shyapywxg2st7y7idoa",
"skill/valory/tx_settlement_multiplexer_abci/0.1.0": "bafybeia7s5lomn7a3uvqaebndg4k5yktikdddjfzvqnd2hr4pg2gozldnu",
"skill/valory/staking_abci/0.1.0": "bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne",
"skill/valory/check_stop_trading_abci/0.1.0": "bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini",
"agent/valory/trader/0.1.0": "bafybeigvw2ls62cuiar5v77i7oqyobvz6d4bylwx57jxagd773dgvm3p5i",
"service/valory/trader/0.1.0": "bafybeicpclycxpkhwd757ezqegbvvakq32clbdvcmzx2fchj3xnfedpfzi",
"service/valory/trader_pearl/0.1.0": "bafybeibcdyfuljyanx6sue2xvilfh6kduecun73mgepx22rdl5qlgnttta"
"agent/valory/trader/0.1.0": "bafybeido6tlp4ye7hqgmix2ydy5aphjhe2rgfso23hs7tr5bipxoj6466m",
"service/valory/trader/0.1.0": "bafybeibaqwvj2tuofcuuneykq67yvpoxqj7i45xrnxrgikytauqsn3ifpu",
"service/valory/trader_pearl/0.1.0": "bafybeia43rrrvla5ohirfw2tacfjskit7ceddepnfku6rsx4c2uvzolru4"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
6 changes: 3 additions & 3 deletions packages/valory/agents/trader/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ skills:
- valory/reset_pause_abci:0.1.0:bafybeigrdlxed3xlsnxtjhnsbl3cojruihxcqx4jxhgivkd5i2fkjncgba
- valory/termination_abci:0.1.0:bafybeib5l7jhew5ic6iq24dd23nidcoimzqkrk556gqywhoziatj33zvwm
- valory/transaction_settlement_abci:0.1.0:bafybeic7q7recyka272udwcupblwbkc3jkodgp74fvcdxb7urametg5dae
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeicurfi4fkk2w4lefxipf7plnf6bnfexoxegcuxinrx5ge2gxxveua
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeia7s5lomn7a3uvqaebndg4k5yktikdddjfzvqnd2hr4pg2gozldnu
- valory/market_manager_abci:0.1.0:bafybeidbeblyusl73wucduilaz3ggfdooglf2xpjb6hwzytmhqqm6bidha
- valory/decision_maker_abci:0.1.0:bafybeiexrouz4ce7s3hsxiz2f7iuyyhjuvwxsorlrxa65zgqtlvjz7umtu
- valory/trader_abci:0.1.0:bafybeic5cchguukbglyei5edmh7dpja6puvsdzk5mdb7bn5chfsg2mhoii
- valory/decision_maker_abci:0.1.0:bafybeihoixxh3evvdldcylz5gq4k4myg6etjptyu3j2maxz27o2s6map74
- valory/trader_abci:0.1.0:bafybeia6qzatylv2sfh5h3rrxr2l53gncerxse5shyapywxg2st7y7idoa
- valory/staking_abci:0.1.0:bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne
- valory/check_stop_trading_abci:0.1.0:bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini
- valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/trader/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: bafybeigtuothskwyvrhfosps2bu6suauycolj67dpuxqvnicdrdu7yhtvq
fingerprint_ignore_patterns: []
agent: valory/trader:0.1.0:bafybeigvw2ls62cuiar5v77i7oqyobvz6d4bylwx57jxagd773dgvm3p5i
agent: valory/trader:0.1.0:bafybeido6tlp4ye7hqgmix2ydy5aphjhe2rgfso23hs7tr5bipxoj6466m
number_of_agents: 4
deployment:
agent:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/trader_pearl/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeibg7bdqpioh4lmvknw3ygnllfku32oca4eq5pqtvdrdsgw6buko7e
fingerprint_ignore_patterns: []
agent: valory/trader:0.1.0:bafybeigvw2ls62cuiar5v77i7oqyobvz6d4bylwx57jxagd773dgvm3p5i
agent: valory/trader:0.1.0:bafybeido6tlp4ye7hqgmix2ydy5aphjhe2rgfso23hs7tr5bipxoj6466m
number_of_agents: 1
deployment:
agent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def _update_market_liquidity(self) -> None:
self.shared_state.current_liquidity_prices = (
active_sampled_bet.outcomeTokenMarginalPrices
)
self.shared_state.liquidity_cache[question_id] = (
active_sampled_bet.scaledLiquidityMeasure
)
self.shared_state.liquidity_cache[
question_id
] = active_sampled_bet.scaledLiquidityMeasure

def _calculate_new_liquidity(self, net_bet_amount: int, vote: int) -> LiquidityInfo:
"""Calculate and return the new liquidity information."""
Expand Down Expand Up @@ -385,11 +385,11 @@ def _update_liquidity_info(self, net_bet_amount: int, vote: int) -> LiquidityInf
self.context.logger.info(log_message)

# update the scaled liquidity Measure
self.shared_state.liquidity_cache[market_id] = (
self._compute_scaled_liquidity_measure(
self.shared_state.current_liquidity_amounts,
self.shared_state.current_liquidity_prices,
)
self.shared_state.liquidity_cache[
market_id
] = self._compute_scaled_liquidity_measure(
self.shared_state.current_liquidity_amounts,
self.shared_state.current_liquidity_prices,
)

return liquidity_info
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/decision_maker_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fingerprint:
behaviours/blacklisting.py: bafybeidpgpoz4yfcn22cb2zw5erdc4kmkg6qkspkzwksilbjiecy22ppzi
behaviours/check_benchmarking.py: bafybeiao2lyj7apezkqrpgsyzb3dwvrdgsrgtprf6iuhsmlsufvxfl5bci
behaviours/claim_subscription.py: bafybeigbqkhc6mb73rbwaks32tfiqx6u2xza43uiy6rvbtrnqd6m4fru3e
behaviours/decision_receive.py: bafybeih335hnuxmze3j672xkvewjx4xy3tztbvj6ubxnoilpswwx6fp5vi
behaviours/decision_receive.py: bafybeiga2eddrkbwnqcvzonbens4kj3i3fvfkdngoml5neoob23jgxtcpy
behaviours/decision_request.py: bafybeia22omb7tvocyfe3z2ucn5au5mcas7dg37ha42u7znefzrewjpk7y
behaviours/handle_failed_tx.py: bafybeidxpc6u575ymct5tdwutvzov6zqfdoio5irgldn3fw7q3lg36mmxm
behaviours/order_subscription.py: bafybeicrmdvhci5prfldvuf3bclbbqi6j7lpv6hmphw3qwgmkmwat3od44
Expand Down
4 changes: 2 additions & 2 deletions packages/valory/skills/trader_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ skills:
- valory/transaction_settlement_abci:0.1.0:bafybeic7q7recyka272udwcupblwbkc3jkodgp74fvcdxb7urametg5dae
- valory/termination_abci:0.1.0:bafybeib5l7jhew5ic6iq24dd23nidcoimzqkrk556gqywhoziatj33zvwm
- valory/market_manager_abci:0.1.0:bafybeidbeblyusl73wucduilaz3ggfdooglf2xpjb6hwzytmhqqm6bidha
- valory/decision_maker_abci:0.1.0:bafybeiexrouz4ce7s3hsxiz2f7iuyyhjuvwxsorlrxa65zgqtlvjz7umtu
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeicurfi4fkk2w4lefxipf7plnf6bnfexoxegcuxinrx5ge2gxxveua
- valory/decision_maker_abci:0.1.0:bafybeihoixxh3evvdldcylz5gq4k4myg6etjptyu3j2maxz27o2s6map74
- valory/tx_settlement_multiplexer_abci:0.1.0:bafybeia7s5lomn7a3uvqaebndg4k5yktikdddjfzvqnd2hr4pg2gozldnu
- valory/staking_abci:0.1.0:bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne
- valory/check_stop_trading_abci:0.1.0:bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini
- valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protocols:
- valory/ledger_api:1.0.0:bafybeihdk6psr4guxmbcrc26jr2cbgzpd5aljkqvpwo64bvaz7tdti2oni
skills:
- valory/abstract_round_abci:0.1.0:bafybeib733xfbndtpvkf44mtk7oyodnficgloo6xhn7xmqxxeos33es65u
- valory/decision_maker_abci:0.1.0:bafybeiexrouz4ce7s3hsxiz2f7iuyyhjuvwxsorlrxa65zgqtlvjz7umtu
- valory/decision_maker_abci:0.1.0:bafybeihoixxh3evvdldcylz5gq4k4myg6etjptyu3j2maxz27o2s6map74
- valory/staking_abci:0.1.0:bafybeictd5pxhscuhqntvctb7l5lfjausxt2m22rg5mkaiuj4cwwcxpvne
- valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm
behaviours:
Expand Down

0 comments on commit 367bf94

Please sign in to comment.