prediction-market-agent-tooling 0.63.0.dev499__py3-none-any.whl → 0.63.0.dev501__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@ from web3 import Web3
2
2
 
3
3
  from prediction_market_agent_tooling.gtypes import (
4
4
  ChecksumAddress,
5
+ CollateralToken,
5
6
  Probability,
6
7
  Wei,
7
- CollateralToken,
8
8
  )
9
9
  from prediction_market_agent_tooling.loggers import logger
10
10
  from prediction_market_agent_tooling.markets.seer.data_models import (
@@ -22,8 +22,8 @@ from prediction_market_agent_tooling.markets.agent_market import (
22
22
  AgentMarket,
23
23
  FilterBy,
24
24
  ProcessedMarket,
25
- SortBy,
26
25
  ProcessedTradedMarket,
26
+ SortBy,
27
27
  )
28
28
  from prediction_market_agent_tooling.markets.data_models import ExistingPosition
29
29
  from prediction_market_agent_tooling.markets.market_fees import MarketFees
@@ -88,7 +88,6 @@ class SeerAgentMarket(AgentMarket):
88
88
  agent_name: str,
89
89
  ) -> None:
90
90
  """On Seer, we have to store predictions along with trades, see `store_trades`."""
91
- pass
92
91
 
93
92
  def store_trades(
94
93
  self,
@@ -8,8 +8,8 @@ from prediction_market_agent_tooling.gtypes import (
8
8
  ABI,
9
9
  ChecksumAddress,
10
10
  OutcomeStr,
11
- xDai,
12
11
  TxReceipt,
12
+ xDai,
13
13
  )
14
14
  from prediction_market_agent_tooling.markets.seer.subgraph_data_models import (
15
15
  CreateCategoricalMarketsParams,
@@ -241,9 +241,9 @@ class SeerSubgraphHandler(BaseSubgraphHandler):
241
241
  optional_params["orderDirection"] = "desc"
242
242
 
243
243
  pools_field = self.swapr_algebra_subgraph.Query.pools(
244
- where=unwrap_generic_value({"or": wheres}, **optional_params
245
- )
244
+ where=unwrap_generic_value({"or": wheres}), **optional_params
246
245
  )
246
+
247
247
  fields = self._get_fields_for_pools(pools_field)
248
248
  pools = self.do_query(fields=fields, pydantic_model=SeerPool)
249
249
  # We assume there is only one pool for outcomeToken/sDAI.
@@ -1,7 +1,7 @@
1
1
  from pydantic import BaseModel, ConfigDict, Field
2
2
  from web3.constants import ADDRESS_ZERO
3
3
 
4
- from prediction_market_agent_tooling.gtypes import HexAddress, HexBytes, Wei, OutcomeStr
4
+ from prediction_market_agent_tooling.gtypes import HexAddress, HexBytes, OutcomeStr, Wei
5
5
 
6
6
 
7
7
  class SeerToken(BaseModel):
@@ -15,16 +15,16 @@ from cowdao_cowpy.order_book.generated.model import (
15
15
  Address,
16
16
  OrderMetaData,
17
17
  OrderQuoteRequest,
18
+ OrderQuoteResponse,
18
19
  OrderQuoteSide1,
20
+ OrderQuoteSide3,
21
+ OrderQuoteSideKindBuy,
19
22
  OrderQuoteSideKindSell,
20
23
  OrderStatus,
21
24
  TokenAmount,
22
- OrderQuoteResponse,
23
- OrderQuoteSide3,
24
- OrderQuoteSideKindBuy,
25
25
  )
26
26
  from eth_account.signers.local import LocalAccount
27
- from tenacity import stop_after_attempt, wait_fixed, retry_if_not_exception_type
27
+ from tenacity import retry_if_not_exception_type, stop_after_attempt, wait_fixed
28
28
  from web3 import Web3
29
29
 
30
30
  from prediction_market_agent_tooling.config import APIKeys
@@ -10,7 +10,6 @@ from prediction_market_agent_tooling.tools.contract import (
10
10
  ContractERC4626BaseClass,
11
11
  )
12
12
  from prediction_market_agent_tooling.tools.cow.cow_order import (
13
- get_buy_token_amount_else_raise,
14
13
  get_sell_token_amount,
15
14
  swap_tokens_waiting,
16
15
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.63.0.dev499
3
+ Version: 0.63.0.dev501
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -62,11 +62,11 @@ prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=LVE
62
62
  prediction_market_agent_tooling/markets/polymarket/polymarket.py,sha256=6rc9qulPl90MxXKB55XiiWKLhjfAyG_eUzAlqpq1UIE,3339
63
63
  prediction_market_agent_tooling/markets/polymarket/utils.py,sha256=8kTeVjXPcXC6DkDvWYsZQLY7x8DS6CEp_yznSEazsNU,2037
64
64
  prediction_market_agent_tooling/markets/seer/data_models.py,sha256=FwTOq9X2iJ7r3ijtE0evl8pMSbFPm4lUwuc9m7YsMVA,6373
65
- prediction_market_agent_tooling/markets/seer/price_manager.py,sha256=_rQDowNVA3DAzOM2L3d3lb9jf6sBL1d1Z8cP-t5bpjw,4976
66
- prediction_market_agent_tooling/markets/seer/seer.py,sha256=WFpXIFUdWDj30ey9XFXSkcj53E7JmfEuxfFyrKTLCU0,15249
67
- prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=NCZbeiZgPIwEZS2qM6F1_i72FTOHg7Zq1ZvzuU6atH8,2715
68
- prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py,sha256=bAuMRBmPNax20RvB448U7_OfBtfRf6P6TouoYDu_OfM,9867
69
- prediction_market_agent_tooling/markets/seer/subgraph_data_models.py,sha256=_i4x9o2ZvC2K2fgaYvjxSiRtzwx8_N-lWyAUCdA4pGU,1663
65
+ prediction_market_agent_tooling/markets/seer/price_manager.py,sha256=gA-WurjKC4e5B-YWqaSFqSLnI0jFpLhPD-kA31j7Pm0,4976
66
+ prediction_market_agent_tooling/markets/seer/seer.py,sha256=-F9WBBS1nq_RTBxNYFdpWT_aI_6hdXgyWs1s8mne_aE,15236
67
+ prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=KXLPhxQuVEvXLKzKhiJCkINNB5xEO3fS2HsKqxQCcbs,2715
68
+ prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py,sha256=KKRI493VNNAY9tR1AjzNraeH76MvDsBV6GsiLZas0_Y,9859
69
+ prediction_market_agent_tooling/markets/seer/subgraph_data_models.py,sha256=knlBD6yQkbqbfan8l3_mIHRT3gprbWYBXAsoerDi-zg,1663
70
70
  prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py,sha256=fjIgjDIx5MhH5mwf7S0cspLOOSU3elYLhGYoIiM26mU,2746
71
71
  prediction_market_agent_tooling/monitor/markets/manifold.py,sha256=TS4ERwTfQnot8dhekNyVNhJYf5ysYsjF-9v5_kM3aVI,3334
72
72
  prediction_market_agent_tooling/monitor/markets/metaculus.py,sha256=LOnyWWBFdg10-cTWdb76nOsNjDloO8OfMT85GBzRCFI,1455
@@ -88,7 +88,7 @@ prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjq
88
88
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=vFDx4fsPxclXp2q0sv27j4al_M_Tj9aR2JJP-xNHQXA,2151
89
89
  prediction_market_agent_tooling/tools/contract.py,sha256=1ZFp_VoqTjM8cqOfAhco2Ht0DTqakjhZpuZUrAXr28Q,21332
90
90
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
91
- prediction_market_agent_tooling/tools/cow/cow_order.py,sha256=6qwT6gF1ZsBuargTVKNNjPgmMqm__b1u4kXBk8pzwe0,6709
91
+ prediction_market_agent_tooling/tools/cow/cow_order.py,sha256=SU0xp0MqriqJYpyTfk-y6ogUn3fCi_vIDIA-npfGOyQ,6709
92
92
  prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
93
93
  prediction_market_agent_tooling/tools/datetime_utc.py,sha256=8_WackjtjC8zHXrhQFTGQ6e6Fz_6llWoKR4CSFvIv9I,2766
94
94
  prediction_market_agent_tooling/tools/db/db_manager.py,sha256=GtzHH1NLl8HwqC8Z7s6eTlIQXuV0blxfaV2PeQrBnfQ,3013
@@ -113,7 +113,7 @@ prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0r
113
113
  prediction_market_agent_tooling/tools/streamlit_user_login.py,sha256=NXEqfjT9Lc9QtliwSGRASIz1opjQ7Btme43H4qJbzgE,3010
114
114
  prediction_market_agent_tooling/tools/tavily/tavily_models.py,sha256=5ldQs1pZe6uJ5eDAuP4OLpzmcqYShlIV67kttNFvGS0,342
115
115
  prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=pPs0qZNfJ7G-1ajfz0iaWOBQyiC0TbcShfrW8T39jtg,3859
116
- prediction_market_agent_tooling/tools/tokens/auto_deposit.py,sha256=dO-2XUcsCVvuRpvSN4dr1ZEoVS3Ee9soisLQI3bX8CU,6737
116
+ prediction_market_agent_tooling/tools/tokens/auto_deposit.py,sha256=MWIRHYCN-7o2uawEBwnBNhlzme1kLyX_5Q2zg7UIegQ,6700
117
117
  prediction_market_agent_tooling/tools/tokens/auto_withdraw.py,sha256=22g0SIVmLlgITpdt3kPhJOw0sU4OPeBuYk_7xCrQr9U,2491
118
118
  prediction_market_agent_tooling/tools/tokens/main_token.py,sha256=1rbwpdCusPgQIVFuo3m00nBZ_b2lCAoFVm67i-YDcEw,812
119
119
  prediction_market_agent_tooling/tools/tokens/token_utils.py,sha256=fhs-FH9m9IbzGa-30R3ZleSKLeKfLEDoJ7F5Om285Vk,1369
@@ -121,8 +121,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=Qq8ofVCCMX-eo8mDlHv4g
121
121
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
122
122
  prediction_market_agent_tooling/tools/utils.py,sha256=1xsyBBJfiEdSoMlceB2F8o2sCb6Z8-qNz11pEJFrdyE,6566
123
123
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=eYCc1iWAVtqDKUPTwnMUHuYolPdwh_OTiM3-AdRgDp4,12198
124
- prediction_market_agent_tooling-0.63.0.dev499.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
125
- prediction_market_agent_tooling-0.63.0.dev499.dist-info/METADATA,sha256=c7gvHoM7e67d4LhV---3JRwzYiuGkSBgpOX3vXcZvYg,8696
126
- prediction_market_agent_tooling-0.63.0.dev499.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
127
- prediction_market_agent_tooling-0.63.0.dev499.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
128
- prediction_market_agent_tooling-0.63.0.dev499.dist-info/RECORD,,
124
+ prediction_market_agent_tooling-0.63.0.dev501.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
125
+ prediction_market_agent_tooling-0.63.0.dev501.dist-info/METADATA,sha256=Yt4LRyUOlUnlmiMa9q_Hlh6RAl9VynJ1Vu4BQJYqkq8,8696
126
+ prediction_market_agent_tooling-0.63.0.dev501.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
127
+ prediction_market_agent_tooling-0.63.0.dev501.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
128
+ prediction_market_agent_tooling-0.63.0.dev501.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any