prediction-market-agent-tooling 0.57.11.dev259__py3-none-any.whl → 0.57.11.dev260__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.
@@ -6,6 +6,7 @@ from contextlib import contextmanager
6
6
 
7
7
  from pydantic import BaseModel, field_validator
8
8
  from web3 import Web3
9
+ from web3.constants import CHECKSUM_ADDRESSS_ZERO
9
10
  from web3.contract.contract import Contract as Web3Contract
10
11
 
11
12
  from prediction_market_agent_tooling.config import APIKeys, RPCConfig
@@ -80,7 +81,9 @@ class ContractBaseClass(BaseModel):
80
81
 
81
82
  @classmethod
82
83
  def merge_contract_abis(cls, contracts: list["ContractBaseClass"]) -> ABI:
83
- merged_abi = sum((json.loads(contract.abi) for contract in contracts), [])
84
+ merged_abi: list[dict[t.Any, t.Any]] = sum(
85
+ (json.loads(contract.abi) for contract in contracts), []
86
+ )
84
87
  return abi_field_validator(json.dumps(merged_abi))
85
88
 
86
89
  def get_web3_contract(self, web3: Web3 | None = None) -> Web3Contract:
@@ -470,8 +473,12 @@ class ContractERC721BaseClass(ContractBaseClass):
470
473
 
471
474
 
472
475
  class ContractOwnableERC721BaseClass(ContractERC721BaseClass, OwnableContract):
476
+ # We add dummy addresses below so that we can reference .abi later.
473
477
  abi: ABI = ContractBaseClass.merge_contract_abis(
474
- [ContractERC721BaseClass(address=""), OwnableContract(address="")]
478
+ [
479
+ ContractERC721BaseClass(address=ChecksumAddress(CHECKSUM_ADDRESSS_ZERO)),
480
+ OwnableContract(address=ChecksumAddress(CHECKSUM_ADDRESSS_ZERO)),
481
+ ]
475
482
  )
476
483
 
477
484
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.57.11.dev259
3
+ Version: 0.57.11.dev260
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -80,7 +80,7 @@ prediction_market_agent_tooling/tools/betting_strategies/utils.py,sha256=kpIb-ci
80
80
  prediction_market_agent_tooling/tools/caches/db_cache.py,sha256=aafau_n_AUbLIwkyIRiTPgKB0dmM0767mSqyPDLF2A4,10576
81
81
  prediction_market_agent_tooling/tools/caches/inmemory_cache.py,sha256=ZW5iI5rmjqeAebu5T7ftRnlkxiL02IC-MxCfDB80x7w,1506
82
82
  prediction_market_agent_tooling/tools/caches/serializers.py,sha256=upSXN5__rmRlzJ6tv1h7FodKzJu9eCkFrN_zeuwroJM,2151
83
- prediction_market_agent_tooling/tools/contract.py,sha256=IPc5O9D41SI7UHimy200E5DRCxsOKKWzLcYIcNmzYmc,29280
83
+ prediction_market_agent_tooling/tools/contract.py,sha256=glnPQr9B0WmhLcdifD892zLPaHS5f0fZZ3dKLOUB6pI,29559
84
84
  prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
85
85
  prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
86
86
  prediction_market_agent_tooling/tools/data_models.py,sha256=jDQ7FU0QQhXlcgJh5VZZGwDTYP2OPAqKPHZFewCPAUY,732
@@ -109,8 +109,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
109
109
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
110
110
  prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
111
111
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
112
- prediction_market_agent_tooling-0.57.11.dev259.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
113
- prediction_market_agent_tooling-0.57.11.dev259.dist-info/METADATA,sha256=JrUhYVQ4jO_ZcWQBbvLIohftpTe2Y4iFY3rFyVRBs3I,8247
114
- prediction_market_agent_tooling-0.57.11.dev259.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
115
- prediction_market_agent_tooling-0.57.11.dev259.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
116
- prediction_market_agent_tooling-0.57.11.dev259.dist-info/RECORD,,
112
+ prediction_market_agent_tooling-0.57.11.dev260.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
113
+ prediction_market_agent_tooling-0.57.11.dev260.dist-info/METADATA,sha256=UwIBMbs6cJebVZKvmQSaqueRxMRBqBqSihSofJu3e8U,8247
114
+ prediction_market_agent_tooling-0.57.11.dev260.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
115
+ prediction_market_agent_tooling-0.57.11.dev260.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
116
+ prediction_market_agent_tooling-0.57.11.dev260.dist-info/RECORD,,