prediction-market-agent-tooling 0.65.11__py3-none-any.whl → 0.65.12__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.
@@ -158,7 +158,7 @@ def print_using_logger_info(
158
158
  # If `logger.exception` is used, loguru+traceback somehow uses `print` statement to format the error stack,
159
159
  # if that happens, without this if condition, it errors out because of deadlock and/or recursion errors.
160
160
  # This is hacky, but that's exactly how loguru is checking for it internally..
161
- if getattr(logger._core.handlers[1]._lock_acquired, "acquired", False): # type: ignore # They use stubs and didn't type this.
161
+ if any(getattr(handler._lock_acquired, "acquired", False) for handler in logger._core.handlers.values()): # type: ignore # They use stubs and didn't type this.
162
162
  UNPATCHED_PRINT_FN(*values, sep=sep, end=end, **kwargs)
163
163
  else:
164
164
  logger.info(sep.join(map(str, values)) + end)
@@ -6,3 +6,6 @@ WRAPPED_XDAI_CONTRACT_ADDRESS = Web3.to_checksum_address(
6
6
  SDAI_CONTRACT_ADDRESS = Web3.to_checksum_address(
7
7
  "0xaf204776c7245bF4147c2612BF6e5972Ee483701"
8
8
  )
9
+ METRI_SUPER_GROUP_CONTRACT_ADDRESS = Web3.to_checksum_address(
10
+ "0x7147A7405fCFe5CFa30c6d5363f9f357a317d082"
11
+ )
@@ -33,6 +33,7 @@ from prediction_market_agent_tooling.markets.omen.data_models import (
33
33
  format_realitio_question,
34
34
  )
35
35
  from prediction_market_agent_tooling.markets.omen.omen_constants import (
36
+ METRI_SUPER_GROUP_CONTRACT_ADDRESS,
36
37
  SDAI_CONTRACT_ADDRESS,
37
38
  WRAPPED_XDAI_CONTRACT_ADDRESS,
38
39
  )
@@ -433,7 +434,7 @@ class OmenFixedProductMarketMakerContract(ContractOnGnosisChain):
433
434
 
434
435
  class MetriSuperGroup(ContractERC20OnGnosisChain):
435
436
  address: ChecksumAddress = Web3.to_checksum_address(
436
- "0x7147A7405fCFe5CFa30c6d5363f9f357a317d082"
437
+ METRI_SUPER_GROUP_CONTRACT_ADDRESS
437
438
  )
438
439
 
439
440
 
@@ -32,6 +32,7 @@ from prediction_market_agent_tooling.markets.omen.omen_contracts import (
32
32
  COWContract,
33
33
  EUReContract,
34
34
  GNOContract,
35
+ MetriSuperGroup,
35
36
  OmenThumbnailMapping,
36
37
  SAFEContract,
37
38
  WETHContract,
@@ -60,6 +61,7 @@ SAFE_COLLATERAL_TOKENS = (
60
61
  EUReContract(),
61
62
  SAFEContract(),
62
63
  COWContract(),
64
+ MetriSuperGroup(),
63
65
  )
64
66
  SAFE_COLLATERAL_TOKENS_ADDRESSES = tuple(
65
67
  contract.address for contract in SAFE_COLLATERAL_TOKENS
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.65.11
3
+ Version: 0.65.12
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -38,7 +38,7 @@ prediction_market_agent_tooling/gtypes.py,sha256=bUIZfZIGvIi3aiZNu5rVE9kRevw8sfM
38
38
  prediction_market_agent_tooling/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  prediction_market_agent_tooling/jobs/jobs_models.py,sha256=DoZ9dlvVhpNrnINiR1uy6YUOsuzI_L-avBt362y5xXM,2467
40
40
  prediction_market_agent_tooling/jobs/omen/omen_jobs.py,sha256=qbTZ9HVvu_iP4dDxuvOZxAp6JsRKejvEW2YDYCnRmd4,5039
41
- prediction_market_agent_tooling/loggers.py,sha256=7hNsTbH0K9wjOaUZu4xtuIBCVlrfbP8b8eiea8uNUgs,5762
41
+ prediction_market_agent_tooling/loggers.py,sha256=o1HyvwtK1DbuC0YWQwJNqzXLLbSC41gNBkEUxiAziEg,5796
42
42
  prediction_market_agent_tooling/logprobs_parser.py,sha256=DBlBQtWX8_URXhzTU3YWIPa76Zx3QDHlx1ARqbgJsVI,5008
43
43
  prediction_market_agent_tooling/markets/agent_market.py,sha256=pnyxTMUrL8cQsP4lmBBpe07R-Mi7S4vNjrvNLdOzAa8,19258
44
44
  prediction_market_agent_tooling/markets/base_subgraph_handler.py,sha256=7RaYO_4qAmQ6ZGM8oPK2-CkiJfKmV9MxM-rJlduaecU,1971
@@ -59,10 +59,10 @@ prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TI
59
59
  prediction_market_agent_tooling/markets/omen/cow_contracts.py,sha256=sl1L4cK5nAJwZ2wdhLzqh8p7h_IEValNvLwKUlInKxw,957
60
60
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=0jCxgUEVpaggt_avkNqgXAnZWdA6D-ew9PE2gm0aqDk,29930
61
61
  prediction_market_agent_tooling/markets/omen/omen.py,sha256=q3SqvQEpZAsbFBbSid_rhRn-hVi-roCRN4piGj2wxU8,50301
62
- prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
63
- prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=f0dKbdVM2OUTSpkCSZdPtKqeckS2c48j3rjnK8oD3wE,29716
62
+ prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=pYcdK5a1nPte9x7E154vkIiM6cLw1JvqpLibs9HsBbo,347
63
+ prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=_Zkyqad_ft4OFSDrNKsepkRQ-Uda4me_4Rbk0ZFmsVw,29746
64
64
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=D-ubf_LumHs_c5rBAAntQ8wGKprtO2V1JZeedmChNIE,11035
65
- prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=149T_tJxK2GFnGCulOlGr2Mwiaa7sa74E4lqYsuCv68,39962
65
+ prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=h-YFRLY5rlhM9RqqceyfbHlno3elltN8Nr_Mnu1kJ90,40006
66
66
  prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
67
67
  prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=U1SXTz93FIG3GO1h5BJWSt1hPKn_YAMBeZ3k8IS-ook,4552
68
68
  prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=wCwpZ8Kppy8JG_1HZDfEK_Gg1g1sL7NCbGoPeTeMSko,12756
@@ -124,8 +124,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
124
124
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
125
125
  prediction_market_agent_tooling/tools/utils.py,sha256=RlWSlzS2LavMIWrpwn1fevbzgPZruD4VcXTa-XxjWnE,7343
126
126
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=0r26snqCXGdLKCWA8jpe7DV8x2NPYWZwOy4oyKyDCYk,12615
127
- prediction_market_agent_tooling-0.65.11.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
128
- prediction_market_agent_tooling-0.65.11.dist-info/METADATA,sha256=Sae7uwTRaQX3tZx71Sp-ecNMBF81BgIj5i2TZOGXAmU,8735
129
- prediction_market_agent_tooling-0.65.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
130
- prediction_market_agent_tooling-0.65.11.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
131
- prediction_market_agent_tooling-0.65.11.dist-info/RECORD,,
127
+ prediction_market_agent_tooling-0.65.12.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
128
+ prediction_market_agent_tooling-0.65.12.dist-info/METADATA,sha256=9-GeVeUmwe58cQ3nQOv99cBxQyRoT3TCb9xa_jVdhCM,8735
129
+ prediction_market_agent_tooling-0.65.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
130
+ prediction_market_agent_tooling-0.65.12.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
131
+ prediction_market_agent_tooling-0.65.12.dist-info/RECORD,,