prediction-market-agent-tooling 0.69.11.dev1122__py3-none-any.whl → 0.69.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.

Potentially problematic release.


This version of prediction-market-agent-tooling might be problematic. Click here for more details.

@@ -940,6 +940,7 @@ def uni_implementation_address(
940
940
  implementation_proxy_address(contract_address, web3),
941
941
  minimal_proxy_address(contract_address, web3),
942
942
  seer_minimal_proxy_address(contract_address, web3),
943
+ eip_1967_proxy_address(contract_address, web3),
943
944
  ]
944
945
  return [addr for addr in addresses if addr is not None]
945
946
 
@@ -982,6 +983,19 @@ def seer_minimal_proxy_address(
982
983
  return None
983
984
 
984
985
 
986
+ def eip_1967_proxy_address(
987
+ contract_address: ChecksumAddress, web3: Web3
988
+ ) -> ChecksumAddress | None:
989
+ try:
990
+ slot = HexBytes(Web3.keccak(text="eip1967.proxy.implementation")).as_int() - 1
991
+ raw_slot = web3.eth.get_storage_at(contract_address, slot)
992
+ address = eth_abi.decode(["address"], raw_slot)[0]
993
+ return Web3.to_checksum_address(address)
994
+ except DecodingError:
995
+ logger.info("Error decoding contract address for eip 1967 proxy")
996
+ return None
997
+
998
+
985
999
  def init_collateral_token_contract(
986
1000
  address: ChecksumAddress, web3: Web3 | None
987
1001
  ) -> ContractERC20BaseClass:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.69.11.dev1122
3
+ Version: 0.69.12
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  License-File: LICENSE
6
6
  Author: Gnosis
@@ -92,7 +92,7 @@ prediction_market_agent_tooling/tools/betting_strategies/utils.py,sha256=MpS3FOM
92
92
  prediction_market_agent_tooling/tools/caches/db_cache.py,sha256=V6o6UdesjkKzSJMhqkUtD76cJGPaNhuwA4OL2chIYSI,13801
93
93
  prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjqeAebu5T7ftRnlkxiL02IC-MxCfDB80x7w,1506
94
94
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=fwyIHUsL7u9NY7ZihTcUdqsvl2psatcbTfgWHTSez3U,2427
95
- prediction_market_agent_tooling/tools/contract.py,sha256=BzpAFcbKl_KqwgAlaXx63Fg8jzr0EO3qEeOs1K11CPA,33905
95
+ prediction_market_agent_tooling/tools/contract.py,sha256=KPp_1y5htYt0TRdmCJE2upv4qokojXRsLtjcGD3Vh-0,34461
96
96
  prediction_market_agent_tooling/tools/contract_utils.py,sha256=9X9raICUZkPDShilt02aYzS_ILZ62u0vG5081uWLdqk,2152
97
97
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
98
98
  prediction_market_agent_tooling/tools/cow/cow_order.py,sha256=DN_8cPrr4jWVpXdS4D0j1QB19nB8fxDoSheo2BFMc8M,14523
@@ -137,8 +137,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=DPO-4HBTy1-TZHKL_9CnH
137
137
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
138
138
  prediction_market_agent_tooling/tools/utils.py,sha256=ruq6P5TFs8CBHxeBLj1Plpx7kuNFPpDgMsJGQgDiRNs,8785
139
139
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=CDbaidlLeQ4VHzSg150L7QNfHfGveljSePGuDVFEYqc,13963
140
- prediction_market_agent_tooling-0.69.11.dev1122.dist-info/METADATA,sha256=--DwjAkzPXoeCKFir_GnmfydDWkx3NObybMpINRJrKE,8899
141
- prediction_market_agent_tooling-0.69.11.dev1122.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
142
- prediction_market_agent_tooling-0.69.11.dev1122.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
143
- prediction_market_agent_tooling-0.69.11.dev1122.dist-info/licenses/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
144
- prediction_market_agent_tooling-0.69.11.dev1122.dist-info/RECORD,,
140
+ prediction_market_agent_tooling-0.69.12.dist-info/METADATA,sha256=IxIVr4LSrgeMhqtFKDJR_60wY5q140Xb6Mwonq1MxUQ,8891
141
+ prediction_market_agent_tooling-0.69.12.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
142
+ prediction_market_agent_tooling-0.69.12.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
143
+ prediction_market_agent_tooling-0.69.12.dist-info/licenses/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
144
+ prediction_market_agent_tooling-0.69.12.dist-info/RECORD,,