prediction-market-agent-tooling 0.57.15__py3-none-any.whl → 0.57.16.dev311__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.
@@ -4,9 +4,10 @@ from prediction_market_agent_tooling.markets.manifold.api import (
4
4
  )
5
5
 
6
6
 
7
- def find_resolution_on_manifold(question: str) -> Resolution | None:
7
+ def find_resolution_on_manifold(question: str, n: int = 100) -> Resolution | None:
8
+ # Even with exact-match search, Manifold doesn't return it as the first result, increase `n` if you can't find market that you know exists.
8
9
  manifold_markets = get_manifold_binary_markets(
9
- 10, term=question, filter_=None, sort=None
10
+ n, term=question, filter_=None, sort=None
10
11
  )
11
12
  for manifold_market in manifold_markets:
12
13
  if manifold_market.question == question:
@@ -451,7 +451,7 @@ class OmenAgentMarket(AgentMarket):
451
451
  HexBytes(HexStr(i.id)) for i in traded_market.trades if i.id is not None
452
452
  ]
453
453
  prediction = ContractPrediction(
454
- publisher=keys.public_key,
454
+ publisher=keys.bet_from_address,
455
455
  ipfs_hash=ipfs_hash_decoded,
456
456
  tx_hashes=tx_hashes,
457
457
  estimated_probability_bps=int(traded_market.answer.p_yes * BPS_CONSTANT),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.57.15
3
+ Version: 0.57.16.dev311
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -43,7 +43,7 @@ prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa
43
43
  prediction_market_agent_tooling/markets/manifold/api.py,sha256=Fd0HYnstvvHO6AZkp1xiRlvCwQUc8kLR8DAj6PAZu0s,7297
44
44
  prediction_market_agent_tooling/markets/manifold/data_models.py,sha256=eiGS4rEkxseZNpEb2BICKnjF0qqgkQTMuUPbSe7_04I,6059
45
45
  prediction_market_agent_tooling/markets/manifold/manifold.py,sha256=qemQIwuFg4yf6egGWFp9lWpz1lXr02QiBeZ2akcT6II,5026
46
- prediction_market_agent_tooling/markets/manifold/utils.py,sha256=cPPFWXm3vCYH1jy7_ctJZuQH9ZDaPL4_AgAYzGWkoow,513
46
+ prediction_market_agent_tooling/markets/manifold/utils.py,sha256=_gGlWid0sPF127Omx5qQ1fq17frLInv0wdyXJBMGVzM,670
47
47
  prediction_market_agent_tooling/markets/market_fees.py,sha256=Q64T9uaJx0Vllt0BkrPmpMEz53ra-hMVY8Czi7CEP7s,1227
48
48
  prediction_market_agent_tooling/markets/markets.py,sha256=5x_bX_Mr-696RGXL97qZWnkqq6uV3q2stI-v2-dcaHs,3894
49
49
  prediction_market_agent_tooling/markets/metaculus/api.py,sha256=4TRPGytQQbSdf42DCg2M_JWYPAuNjqZ3eBqaQBLkNks,2736
@@ -51,7 +51,7 @@ prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=Suxa7xEL
51
51
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavEWc8Cv4KpZxSvwiSw9oFybXE3YB49pg-CA,4377
52
52
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=uT8ILKrg2g4jGodPxtolPErk25buNzMYndb01ZL2dYE,28421
54
- prediction_market_agent_tooling/markets/omen/omen.py,sha256=KmZGD7kG5QInNmoQ2i4dXF6zZ6CFyCx6g8jlkj6jyBM,51874
54
+ prediction_market_agent_tooling/markets/omen/omen.py,sha256=w6uf_hDpVS2_9LnfmC3ZX9KZSMtXeuUvyOr1fs9nGZU,51880
55
55
  prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=baXJwk-jSI3-FV-k239oCNOA4oKz6LT47juX8AKpW3A,28297
56
56
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=TTi-HP_fUHKH5YTlWSBdszQFb5q3pfzXnXr1FsFu3bM,9703
57
57
  prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=mZ0CgKfHj0gLFq9plNpBhNqMuclb8V3qNagWfLYcpUc,38806
@@ -109,8 +109,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
109
109
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
110
110
  prediction_market_agent_tooling/tools/utils.py,sha256=jLG4nbEoIzzJiZ4RgMx4Q969Zdl0p0s63p8uET_0Fuw,6440
111
111
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
112
- prediction_market_agent_tooling-0.57.15.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
113
- prediction_market_agent_tooling-0.57.15.dist-info/METADATA,sha256=djehU6bzoPbaSzNyC0oJHXbiCj4DEDQLslSpOmgDGe4,8452
114
- prediction_market_agent_tooling-0.57.15.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
115
- prediction_market_agent_tooling-0.57.15.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
116
- prediction_market_agent_tooling-0.57.15.dist-info/RECORD,,
112
+ prediction_market_agent_tooling-0.57.16.dev311.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
113
+ prediction_market_agent_tooling-0.57.16.dev311.dist-info/METADATA,sha256=T67P5-zqlNFVIA4QDcQbnKhFcVi1CM6L5YHZJMu_jvY,8459
114
+ prediction_market_agent_tooling-0.57.16.dev311.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
115
+ prediction_market_agent_tooling-0.57.16.dev311.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
116
+ prediction_market_agent_tooling-0.57.16.dev311.dist-info/RECORD,,