prediction-market-agent-tooling 0.63.0.dev506__py3-none-any.whl → 0.63.0.dev507__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/blockchain_utils.py +1 -1
- prediction_market_agent_tooling/markets/seer/seer.py +2 -3
- prediction_market_agent_tooling/markets/seer/seer_contracts.py +2 -3
- prediction_market_agent_tooling/markets/seer/subgraph_data_models.py +3 -2
- {prediction_market_agent_tooling-0.63.0.dev506.dist-info → prediction_market_agent_tooling-0.63.0.dev507.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.63.0.dev506.dist-info → prediction_market_agent_tooling-0.63.0.dev507.dist-info}/RECORD +9 -9
- {prediction_market_agent_tooling-0.63.0.dev506.dist-info → prediction_market_agent_tooling-0.63.0.dev507.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.63.0.dev506.dist-info → prediction_market_agent_tooling-0.63.0.dev507.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.63.0.dev506.dist-info → prediction_market_agent_tooling-0.63.0.dev507.dist-info}/entry_points.txt +0 -0
@@ -47,7 +47,7 @@ def store_trades(
|
|
47
47
|
prediction = ContractPrediction(
|
48
48
|
publisher=keys.bet_from_address,
|
49
49
|
ipfs_hash=ipfs_hash_decoded,
|
50
|
-
tx_hashes=tx_hashes,
|
50
|
+
tx_hashes=tx_hashes, # type: ignore[arg-type]
|
51
51
|
estimated_probability_bps=int(traded_market.answer.p_yes * BPS_CONSTANT),
|
52
52
|
)
|
53
53
|
tx_receipt = OmenAgentResultMappingContract().add_prediction(
|
@@ -15,7 +15,6 @@ from prediction_market_agent_tooling.gtypes import (
|
|
15
15
|
OutcomeStr,
|
16
16
|
OutcomeToken,
|
17
17
|
OutcomeWei,
|
18
|
-
xDai,
|
19
18
|
)
|
20
19
|
from prediction_market_agent_tooling.loggers import logger
|
21
20
|
from prediction_market_agent_tooling.markets.agent_market import (
|
@@ -359,7 +358,7 @@ def seer_create_market_tx(
|
|
359
358
|
outcomes: t.Sequence[OutcomeStr],
|
360
359
|
auto_deposit: bool,
|
361
360
|
category: str,
|
362
|
-
|
361
|
+
min_bond_wei: int,
|
363
362
|
web3: Web3 | None = None,
|
364
363
|
) -> ChecksumAddress:
|
365
364
|
web3 = web3 or SeerMarketFactory.get_web3() # Default to Gnosis web3.
|
@@ -400,7 +399,7 @@ def seer_create_market_tx(
|
|
400
399
|
opening_time=opening_time,
|
401
400
|
language=language,
|
402
401
|
category=category,
|
403
|
-
min_bond=
|
402
|
+
min_bond=min_bond_wei,
|
404
403
|
)
|
405
404
|
tx_receipt = factory_contract.create_categorical_market(
|
406
405
|
api_keys=api_keys, params=params, web3=web3
|
@@ -9,7 +9,6 @@ from prediction_market_agent_tooling.gtypes import (
|
|
9
9
|
ChecksumAddress,
|
10
10
|
OutcomeStr,
|
11
11
|
TxReceipt,
|
12
|
-
xDai,
|
13
12
|
)
|
14
13
|
from prediction_market_agent_tooling.markets.seer.subgraph_data_models import (
|
15
14
|
CreateCategoricalMarketsParams,
|
@@ -38,7 +37,7 @@ class SeerMarketFactory(ContractOnGnosisChain):
|
|
38
37
|
market_question: str,
|
39
38
|
outcomes: t.Sequence[OutcomeStr],
|
40
39
|
opening_time: DatetimeUTC,
|
41
|
-
min_bond:
|
40
|
+
min_bond: int,
|
42
41
|
language: str = "en_US",
|
43
42
|
category: str = "misc",
|
44
43
|
) -> CreateCategoricalMarketsParams:
|
@@ -47,7 +46,7 @@ class SeerMarketFactory(ContractOnGnosisChain):
|
|
47
46
|
token_names=[
|
48
47
|
o.upper() for o in outcomes
|
49
48
|
], # Following usual token names on Seer (YES,NO).
|
50
|
-
min_bond=min_bond
|
49
|
+
min_bond=min_bond,
|
51
50
|
opening_time=int(opening_time.timestamp()),
|
52
51
|
outcomes=list(outcomes),
|
53
52
|
lang=language,
|
@@ -6,7 +6,6 @@ from prediction_market_agent_tooling.gtypes import (
|
|
6
6
|
HexAddress,
|
7
7
|
HexBytes,
|
8
8
|
OutcomeStr,
|
9
|
-
Wei,
|
10
9
|
)
|
11
10
|
|
12
11
|
|
@@ -54,7 +53,9 @@ class CreateCategoricalMarketsParams(BaseModel):
|
|
54
53
|
lang: str
|
55
54
|
lower_bound: int = Field(alias="lowerBound", default=0)
|
56
55
|
upper_bound: int = Field(alias="upperBound", default=0)
|
57
|
-
min_bond:
|
56
|
+
min_bond: int = Field(
|
57
|
+
..., alias="minBond"
|
58
|
+
) # typed as int for later .model_dump() usage (if using Wei, other keys also exported)
|
58
59
|
opening_time: int = Field(..., alias="openingTime")
|
59
60
|
token_names: list[str] = Field(..., alias="tokenNames")
|
60
61
|
|
@@ -36,7 +36,7 @@ prediction_market_agent_tooling/jobs/omen/omen_jobs.py,sha256=Pf6QxPXGyie-2l_wZU
|
|
36
36
|
prediction_market_agent_tooling/loggers.py,sha256=MvCkQSJL2_0yErNatqr81sJlc4aOgPzDp9VNrIhKUcc,4140
|
37
37
|
prediction_market_agent_tooling/markets/agent_market.py,sha256=1NomilM0GCXcRq_1N_cr2AbSK5ONTowFeRbrhc7V5zE,14929
|
38
38
|
prediction_market_agent_tooling/markets/base_subgraph_handler.py,sha256=7RaYO_4qAmQ6ZGM8oPK2-CkiJfKmV9MxM-rJlduaecU,1971
|
39
|
-
prediction_market_agent_tooling/markets/blockchain_utils.py,sha256=
|
39
|
+
prediction_market_agent_tooling/markets/blockchain_utils.py,sha256=0sMBfSK8Tx1VQVtRDbSDSH95AwMHPEXKPNfVXG7uH6A,2390
|
40
40
|
prediction_market_agent_tooling/markets/categorize.py,sha256=jsoHWvZk9pU6n17oWSCcCxNNYVwlb_NXsZxKRI7vmsk,1301
|
41
41
|
prediction_market_agent_tooling/markets/data_models.py,sha256=_R9Hr5zwGLpZLPXq0Jo2wZRNRQyOnSi3WVQJZ81syuk,4541
|
42
42
|
prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -63,10 +63,10 @@ prediction_market_agent_tooling/markets/polymarket/polymarket.py,sha256=6rc9qulP
|
|
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
65
|
prediction_market_agent_tooling/markets/seer/price_manager.py,sha256=i31iHTZCxAbKoyU9x7k52DyfmMf-W1xc0Yu3Lxi3rEE,4771
|
66
|
-
prediction_market_agent_tooling/markets/seer/seer.py,sha256=
|
67
|
-
prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=
|
66
|
+
prediction_market_agent_tooling/markets/seer/seer.py,sha256=LcNc9vH8OMkzr7FgzKHqMqxd86FNRRG57BRbvvZuvu8,15150
|
67
|
+
prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=0pXFzCNO9RFgCWAyyVRQliJuMvMr4uVS5B7cmSz_ffA,2685
|
68
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=
|
69
|
+
prediction_market_agent_tooling/markets/seer/subgraph_data_models.py,sha256=0izxS8Mtzonfdl9UqvFVXrdj0hVzieroekXhogfZKCw,1817
|
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
|
@@ -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.
|
125
|
-
prediction_market_agent_tooling-0.63.0.
|
126
|
-
prediction_market_agent_tooling-0.63.0.
|
127
|
-
prediction_market_agent_tooling-0.63.0.
|
128
|
-
prediction_market_agent_tooling-0.63.0.
|
124
|
+
prediction_market_agent_tooling-0.63.0.dev507.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
125
|
+
prediction_market_agent_tooling-0.63.0.dev507.dist-info/METADATA,sha256=zzyy18IvlAtzdr9qWfR-ArMZ2AnXPdS8VppWUygU1zc,8696
|
126
|
+
prediction_market_agent_tooling-0.63.0.dev507.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
127
|
+
prediction_market_agent_tooling-0.63.0.dev507.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
128
|
+
prediction_market_agent_tooling-0.63.0.dev507.dist-info/RECORD,,
|
File without changes
|
File without changes
|