prediction-market-agent-tooling 0.64.12.dev659__py3-none-any.whl → 0.64.12.dev660__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.
@@ -0,0 +1,4 @@
1
+ from prediction_market_agent_tooling.gtypes import ChainID
2
+
3
+ ETHEREUM_ID = ChainID(1)
4
+ GNOSIS_CHAIN_ID = ChainID(100)
@@ -12,6 +12,7 @@ from safe_eth.eth import EthereumClient
12
12
  from safe_eth.safe.safe import SafeV141
13
13
  from web3 import Account, Web3
14
14
 
15
+ from prediction_market_agent_tooling.chains import ETHEREUM_ID, GNOSIS_CHAIN_ID
15
16
  from prediction_market_agent_tooling.deploy.gcp.utils import gcp_get_secret_value
16
17
  from prediction_market_agent_tooling.gtypes import (
17
18
  ChainID,
@@ -280,7 +281,7 @@ class RPCConfig(BaseSettings):
280
281
 
281
282
  ETHEREUM_RPC_URL: URI = Field(default=URI("https://rpc.eth.gateway.fm"))
282
283
  GNOSIS_RPC_URL: URI = Field(default=URI("https://rpc.gnosis.gateway.fm"))
283
- CHAIN_ID: ChainID = Field(default=ChainID(100))
284
+ CHAIN_ID: ChainID = Field(default=GNOSIS_CHAIN_ID)
284
285
 
285
286
  @property
286
287
  def ethereum_rpc_url(self) -> URI:
@@ -299,9 +300,9 @@ class RPCConfig(BaseSettings):
299
300
  return check_not_none(self.CHAIN_ID, "CHAIN_ID missing in the environment.")
300
301
 
301
302
  def chain_id_to_rpc_url(self, chain_id: ChainID) -> URI:
302
- if chain_id == ChainID(1):
303
+ if chain_id == ETHEREUM_ID:
303
304
  return self.ethereum_rpc_url
304
- elif chain_id == ChainID(100):
305
+ elif chain_id == GNOSIS_CHAIN_ID:
305
306
  return self.gnosis_rpc_url
306
307
  else:
307
308
  raise ValueError(f"Unsupported chain ID: {chain_id}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.64.12.dev659
3
+ Version: 0.64.12.dev660
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -22,7 +22,8 @@ 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=4nhDV_IkGl2-tK_yif4P3sTZm7cIvx2dWUlraSRtMwQ,10735
25
+ prediction_market_agent_tooling/chains.py,sha256=1qQstoqXMwqwM7k-KH7MjMz8Ei-D83KZByvDbCZpAxs,116
26
+ prediction_market_agent_tooling/config.py,sha256=rdpRHZyoTvRIDn7Qu6eViOjPBkR9Z0MOdEMFsQOuAIE,10822
26
27
  prediction_market_agent_tooling/deploy/agent.py,sha256=dobqPUQkaDPhsvMmXwibNKu4hSSTXTvmfa3F46ylLBc,26560
27
28
  prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
28
29
  prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=p25t7VU7I4hSkSl6SpzI_W55kLbYEySQdBqeschmARY,12918
@@ -125,8 +126,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
125
126
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
126
127
  prediction_market_agent_tooling/tools/utils.py,sha256=AC2a68jwASMWuQi-w8twl8b_M52YwrEJ81abmuEaqMY,6661
127
128
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
128
- prediction_market_agent_tooling-0.64.12.dev659.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
129
- prediction_market_agent_tooling-0.64.12.dev659.dist-info/METADATA,sha256=h5X6hcjazmTczUeSjQ1AhZV9ti-Ygp_OWmMkENcSLXY,8749
130
- prediction_market_agent_tooling-0.64.12.dev659.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
131
- prediction_market_agent_tooling-0.64.12.dev659.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
132
- prediction_market_agent_tooling-0.64.12.dev659.dist-info/RECORD,,
129
+ prediction_market_agent_tooling-0.64.12.dev660.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
130
+ prediction_market_agent_tooling-0.64.12.dev660.dist-info/METADATA,sha256=wajlfqxBT6kAwuG6yP5PWxB4v6eTM9li14k9m9SAaaU,8749
131
+ prediction_market_agent_tooling-0.64.12.dev660.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
132
+ prediction_market_agent_tooling-0.64.12.dev660.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
133
+ prediction_market_agent_tooling-0.64.12.dev660.dist-info/RECORD,,