prediction-market-agent-tooling 0.57.10__py3-none-any.whl → 0.57.11.dev247__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.
- prediction_market_agent_tooling/markets/omen/omen_resolving.py +4 -6
- prediction_market_agent_tooling/tools/balances.py +5 -2
- {prediction_market_agent_tooling-0.57.10.dist-info → prediction_market_agent_tooling-0.57.11.dev247.dist-info}/METADATA +3 -2
- {prediction_market_agent_tooling-0.57.10.dist-info → prediction_market_agent_tooling-0.57.11.dev247.dist-info}/RECORD +7 -7
- {prediction_market_agent_tooling-0.57.10.dist-info → prediction_market_agent_tooling-0.57.11.dev247.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.10.dist-info → prediction_market_agent_tooling-0.57.11.dev247.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.57.10.dist-info → prediction_market_agent_tooling-0.57.11.dev247.dist-info}/entry_points.txt +0 -0
@@ -25,9 +25,6 @@ from prediction_market_agent_tooling.markets.omen.omen_contracts import (
|
|
25
25
|
from prediction_market_agent_tooling.markets.omen.omen_subgraph_handler import (
|
26
26
|
OmenSubgraphHandler,
|
27
27
|
)
|
28
|
-
from prediction_market_agent_tooling.markets.polymarket.utils import (
|
29
|
-
find_resolution_on_polymarket,
|
30
|
-
)
|
31
28
|
from prediction_market_agent_tooling.tools.utils import utcnow
|
32
29
|
from prediction_market_agent_tooling.tools.web3_utils import ZERO_BYTES, xdai_to_wei
|
33
30
|
|
@@ -263,9 +260,10 @@ def find_resolution_on_other_markets(market: OmenMarket) -> Resolution | None:
|
|
263
260
|
logger.info(f"Looking on Manifold for {market.question_title=}")
|
264
261
|
resolution = find_resolution_on_manifold(market.question_title)
|
265
262
|
|
266
|
-
|
267
|
-
|
268
|
-
|
263
|
+
# TODO: Uncomment after https://github.com/gnosis/prediction-market-agent-tooling/issues/459 is done.
|
264
|
+
# case MarketType.POLYMARKET:
|
265
|
+
# logger.info(f"Looking on Polymarket for {market.question_title=}")
|
266
|
+
# resolution = find_resolution_on_polymarket(market.question_title)
|
269
267
|
|
270
268
|
case _:
|
271
269
|
logger.warning(
|
@@ -5,6 +5,7 @@ from web3.types import Wei
|
|
5
5
|
from prediction_market_agent_tooling.gtypes import ChecksumAddress, xDai
|
6
6
|
from prediction_market_agent_tooling.markets.omen.omen_contracts import (
|
7
7
|
WrappedxDaiContract,
|
8
|
+
sDaiContract,
|
8
9
|
)
|
9
10
|
from prediction_market_agent_tooling.tools.web3_utils import wei_to_xdai
|
10
11
|
|
@@ -12,10 +13,11 @@ from prediction_market_agent_tooling.tools.web3_utils import wei_to_xdai
|
|
12
13
|
class Balances(BaseModel):
|
13
14
|
xdai: xDai
|
14
15
|
wxdai: xDai
|
16
|
+
sdai: xDai
|
15
17
|
|
16
18
|
@property
|
17
19
|
def total(self) -> xDai:
|
18
|
-
return xDai(self.xdai + self.wxdai)
|
20
|
+
return xDai(self.xdai + self.wxdai + self.sdai)
|
19
21
|
|
20
22
|
|
21
23
|
def get_balances(address: ChecksumAddress, web3: Web3 | None = None) -> Balances:
|
@@ -24,4 +26,5 @@ def get_balances(address: ChecksumAddress, web3: Web3 | None = None) -> Balances
|
|
24
26
|
xdai_balance = Wei(web3.eth.get_balance(address))
|
25
27
|
xdai = wei_to_xdai(xdai_balance)
|
26
28
|
wxdai = wei_to_xdai(WrappedxDaiContract().balanceOf(address, web3=web3))
|
27
|
-
|
29
|
+
sdai = wei_to_xdai(sDaiContract().balanceOf(address, web3=web3))
|
30
|
+
return Balances(xdai=xdai, wxdai=wxdai, sdai=sdai)
|
@@ -1,12 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: prediction-market-agent-tooling
|
3
|
-
Version: 0.57.
|
3
|
+
Version: 0.57.11.dev247
|
4
4
|
Summary: Tools to benchmark, deploy and monitor prediction market agents.
|
5
5
|
Author: Gnosis
|
6
|
-
Requires-Python: >=3.10,<3.
|
6
|
+
Requires-Python: >=3.10,<3.13
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
8
8
|
Classifier: Programming Language :: Python :: 3.10
|
9
9
|
Classifier: Programming Language :: Python :: 3.11
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
10
11
|
Provides-Extra: google
|
11
12
|
Provides-Extra: langchain
|
12
13
|
Provides-Extra: openai
|
@@ -50,7 +50,7 @@ prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TI
|
|
50
50
|
prediction_market_agent_tooling/markets/omen/data_models.py,sha256=javEACWZL-9y-BaFpyXu-Rl0tQJxMlOWu_vZ89nqK8w,28387
|
51
51
|
prediction_market_agent_tooling/markets/omen/omen.py,sha256=zmERtzp1JNsd-8Bo-chnj30MDJX3rfLc3JPEHObaFFY,51851
|
52
52
|
prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=baXJwk-jSI3-FV-k239oCNOA4oKz6LT47juX8AKpW3A,28297
|
53
|
-
prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=
|
53
|
+
prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=ZmOmCeRMkfY9_AodX3-L2dIgUz9IW7aVd9mxNMyGyQc,9427
|
54
54
|
prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=mZ0CgKfHj0gLFq9plNpBhNqMuclb8V3qNagWfLYcpUc,38806
|
55
55
|
prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
|
56
56
|
prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=Fd5PI5y3mJM8VHExBhWFWEnuuIKxQmIAXgBuoPDvNjw,4341
|
@@ -68,7 +68,7 @@ prediction_market_agent_tooling/monitor/monitor.py,sha256=4kMev1iGHQiEFslEqt5bWi
|
|
68
68
|
prediction_market_agent_tooling/monitor/monitor_app.py,sha256=zNHSwH_KEiv8aOwvfo1JrNuSFMefpzXPWtellhnJpTI,4775
|
69
69
|
prediction_market_agent_tooling/monitor/monitor_settings.py,sha256=Xiozs3AsufuJ04JOe1vjUri-IAMWHjjmc2ugGGiHNH4,947
|
70
70
|
prediction_market_agent_tooling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
71
|
-
prediction_market_agent_tooling/tools/balances.py,sha256=
|
71
|
+
prediction_market_agent_tooling/tools/balances.py,sha256=PhLUKHKJR5Fx9j2EcaUzuQRnnZJM10cw70SxVdsELlI,962
|
72
72
|
prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py,sha256=TKVF8qZhxgz-4TTEHr7iVLfpurIhuji38qLc8CYaiXA,4662
|
73
73
|
prediction_market_agent_tooling/tools/betting_strategies/market_moving.py,sha256=J63kFdDlTHLjWwHE5pDp1fArWpuU6hNNFVpGLE1aRYw,5269
|
74
74
|
prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py,sha256=-FUSuQQgjcWSSnoFxnlAyTeilY6raJABJVM2QKkFqAY,438
|
@@ -106,8 +106,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
|
|
106
106
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
107
107
|
prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
|
108
108
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
|
109
|
-
prediction_market_agent_tooling-0.57.
|
110
|
-
prediction_market_agent_tooling-0.57.
|
111
|
-
prediction_market_agent_tooling-0.57.
|
112
|
-
prediction_market_agent_tooling-0.57.
|
113
|
-
prediction_market_agent_tooling-0.57.
|
109
|
+
prediction_market_agent_tooling-0.57.11.dev247.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
110
|
+
prediction_market_agent_tooling-0.57.11.dev247.dist-info/METADATA,sha256=EDi-tCsB_o6tBKVHLsBks8hGaPtKhUu-HPy6qHH0ZQI,8247
|
111
|
+
prediction_market_agent_tooling-0.57.11.dev247.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
112
|
+
prediction_market_agent_tooling-0.57.11.dev247.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
113
|
+
prediction_market_agent_tooling-0.57.11.dev247.dist-info/RECORD,,
|
File without changes
|
File without changes
|