prediction-market-agent-tooling 0.64.11__py3-none-any.whl → 0.64.11.dev657__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/config.py +16 -1
- prediction_market_agent_tooling/markets/omen/omen.py +1 -1
- {prediction_market_agent_tooling-0.64.11.dist-info → prediction_market_agent_tooling-0.64.11.dev657.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.64.11.dist-info → prediction_market_agent_tooling-0.64.11.dev657.dist-info}/RECORD +7 -7
- {prediction_market_agent_tooling-0.64.11.dist-info → prediction_market_agent_tooling-0.64.11.dev657.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.64.11.dist-info → prediction_market_agent_tooling-0.64.11.dev657.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.64.11.dist-info → prediction_market_agent_tooling-0.64.11.dev657.dist-info}/entry_points.txt +0 -0
@@ -278,9 +278,16 @@ class RPCConfig(BaseSettings):
|
|
278
278
|
env_file=".env", env_file_encoding="utf-8", extra="ignore"
|
279
279
|
)
|
280
280
|
|
281
|
-
|
281
|
+
ETHEREUM_RPC_URL: URI = Field(default=URI("https://rpc.eth.gateway.fm"))
|
282
|
+
GNOSIS_RPC_URL: URI = Field(default=URI("https://rpc.gnosis.gateway.fm"))
|
282
283
|
CHAIN_ID: ChainID = Field(default=ChainID(100))
|
283
284
|
|
285
|
+
@property
|
286
|
+
def ethereum_rpc_url(self) -> URI:
|
287
|
+
return check_not_none(
|
288
|
+
self.ETHEREUM_RPC_URL, "ETHEREUM_RPC_URL missing in the environment."
|
289
|
+
)
|
290
|
+
|
284
291
|
@property
|
285
292
|
def gnosis_rpc_url(self) -> URI:
|
286
293
|
return check_not_none(
|
@@ -291,6 +298,14 @@ class RPCConfig(BaseSettings):
|
|
291
298
|
def chain_id(self) -> ChainID:
|
292
299
|
return check_not_none(self.CHAIN_ID, "CHAIN_ID missing in the environment.")
|
293
300
|
|
301
|
+
def chain_id_to_rpc_url(self, chain_id: ChainID) -> URI:
|
302
|
+
if chain_id == ChainID(1):
|
303
|
+
return self.ethereum_rpc_url
|
304
|
+
elif chain_id == ChainID(100):
|
305
|
+
return self.gnosis_rpc_url
|
306
|
+
else:
|
307
|
+
raise ValueError(f"Unsupported chain ID: {chain_id}")
|
308
|
+
|
294
309
|
def get_web3(self) -> Web3:
|
295
310
|
return Web3(Web3.HTTPProvider(self.gnosis_rpc_url))
|
296
311
|
|
@@ -90,7 +90,7 @@ from prediction_market_agent_tooling.tools.web3_utils import get_receipt_block_t
|
|
90
90
|
|
91
91
|
OMEN_DEFAULT_REALITIO_BOND_VALUE = xDai(0.01)
|
92
92
|
# Too low value would work with the Omen contract, but causes CoW orders (when buying the specific market's tokens) to fail.
|
93
|
-
OMEN_TINY_BET_AMOUNT = USD(0.
|
93
|
+
OMEN_TINY_BET_AMOUNT = USD(0.01)
|
94
94
|
|
95
95
|
|
96
96
|
class OmenAgentMarket(AgentMarket):
|
@@ -22,7 +22,7 @@ prediction_market_agent_tooling/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
22
22
|
prediction_market_agent_tooling/benchmark/agents.py,sha256=B1-uWdyeN4GGKMWGK_-CcAFJg1m9Y_XuaeIHPB29QR8,3971
|
23
23
|
prediction_market_agent_tooling/benchmark/benchmark.py,sha256=MqTiaaJ3cYiOLUVR7OyImLWxcEya3Rl5JyFYW-K0lwM,17097
|
24
24
|
prediction_market_agent_tooling/benchmark/utils.py,sha256=D0MfUkVZllmvcU0VOurk9tcKT7JTtwwOp-63zuCBVuc,2880
|
25
|
-
prediction_market_agent_tooling/config.py,sha256=
|
25
|
+
prediction_market_agent_tooling/config.py,sha256=4nhDV_IkGl2-tK_yif4P3sTZm7cIvx2dWUlraSRtMwQ,10735
|
26
26
|
prediction_market_agent_tooling/deploy/agent.py,sha256=dobqPUQkaDPhsvMmXwibNKu4hSSTXTvmfa3F46ylLBc,26560
|
27
27
|
prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
|
28
28
|
prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=p25t7VU7I4hSkSl6SpzI_W55kLbYEySQdBqeschmARY,12918
|
@@ -55,7 +55,7 @@ prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavE
|
|
55
55
|
prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
56
56
|
prediction_market_agent_tooling/markets/omen/cow_contracts.py,sha256=sl1L4cK5nAJwZ2wdhLzqh8p7h_IEValNvLwKUlInKxw,957
|
57
57
|
prediction_market_agent_tooling/markets/omen/data_models.py,sha256=4YEOpU-ypq8IBxlEr_qgrKKWwE7wKG6VE_Dq-UKVdOE,30513
|
58
|
-
prediction_market_agent_tooling/markets/omen/omen.py,sha256=
|
58
|
+
prediction_market_agent_tooling/markets/omen/omen.py,sha256=NKeTT2gU6uZ9a4gGpa9Dxy6msFQp_41Ug85hIdCmQy4,51733
|
59
59
|
prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
|
60
60
|
prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=dnefjlqw03x7nr9TAmC4NSfAL6GtBn72_Qkmy8fQPCk,29552
|
61
61
|
prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=Cyi9Ci-Z-K8WCZWVLs9oSuJC6qRobi_CpqDCno_5F-0,10238
|
@@ -125,8 +125,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
|
|
125
125
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
126
126
|
prediction_market_agent_tooling/tools/utils.py,sha256=AC2a68jwASMWuQi-w8twl8b_M52YwrEJ81abmuEaqMY,6661
|
127
127
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
|
128
|
-
prediction_market_agent_tooling-0.64.11.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
129
|
-
prediction_market_agent_tooling-0.64.11.dist-info/METADATA,sha256=
|
130
|
-
prediction_market_agent_tooling-0.64.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
131
|
-
prediction_market_agent_tooling-0.64.11.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
132
|
-
prediction_market_agent_tooling-0.64.11.dist-info/RECORD,,
|
128
|
+
prediction_market_agent_tooling-0.64.11.dev657.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
129
|
+
prediction_market_agent_tooling-0.64.11.dev657.dist-info/METADATA,sha256=ttU6Mz9EhbftcOKumK1IJbT5LJB0gMAKtKejFPr-ImA,8749
|
130
|
+
prediction_market_agent_tooling-0.64.11.dev657.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
131
|
+
prediction_market_agent_tooling-0.64.11.dev657.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
132
|
+
prediction_market_agent_tooling-0.64.11.dev657.dist-info/RECORD,,
|
File without changes
|
File without changes
|